package com.google.android.gms.location; import android.os.Parcel; import android.os.Parcelable; import android.os.SystemClock; import com.google.android.gms.common.internal.Objects; import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable; import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter; import com.google.android.gms.maps.model.BitmapDescriptorFactory; /* loaded from: classes2.dex */ public final class zzw extends AbstractSafeParcelable { public static final Parcelable.Creator CREATOR = new zzx(); boolean zza; long zzb; float zzc; long zzd; int zze; public zzw() { this(true, 50L, BitmapDescriptorFactory.HUE_RED, Long.MAX_VALUE, Integer.MAX_VALUE); } public final boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof zzw)) { return false; } zzw zzwVar = (zzw) obj; return this.zza == zzwVar.zza && this.zzb == zzwVar.zzb && Float.compare(this.zzc, zzwVar.zzc) == 0 && this.zzd == zzwVar.zzd && this.zze == zzwVar.zze; } public final int hashCode() { return Objects.hashCode(Boolean.valueOf(this.zza), Long.valueOf(this.zzb), Float.valueOf(this.zzc), Long.valueOf(this.zzd), Integer.valueOf(this.zze)); } public final String toString() { StringBuilder sb = new StringBuilder("DeviceOrientationRequest[mShouldUseMag="); sb.append(this.zza); sb.append(" mMinimumSamplingPeriodMs="); sb.append(this.zzb); sb.append(" mSmallestAngleChangeRadians="); sb.append(this.zzc); long j = this.zzd; if (j != Long.MAX_VALUE) { long elapsedRealtime = SystemClock.elapsedRealtime(); sb.append(" expireIn="); sb.append(j - elapsedRealtime); sb.append("ms"); } if (this.zze != Integer.MAX_VALUE) { sb.append(" num="); sb.append(this.zze); } sb.append(']'); return sb.toString(); } @Override // android.os.Parcelable public final void writeToParcel(Parcel parcel, int i) { int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel); SafeParcelWriter.writeBoolean(parcel, 1, this.zza); SafeParcelWriter.writeLong(parcel, 2, this.zzb); SafeParcelWriter.writeFloat(parcel, 3, this.zzc); SafeParcelWriter.writeLong(parcel, 4, this.zzd); SafeParcelWriter.writeInt(parcel, 5, this.zze); SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader); } /* JADX INFO: Access modifiers changed from: package-private */ public zzw(boolean z, long j, float f, long j2, int i) { this.zza = z; this.zzb = j; this.zzc = f; this.zzd = j2; this.zze = i; } }