mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-15 10:27:17 +01:00
92 lines
3.6 KiB
Java
92 lines
3.6 KiB
Java
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.common.internal.safeparcel.SafeParcelable;
|
|
import kotlinx.serialization.json.internal.AbstractJsonLexerKt;
|
|
|
|
@SafeParcelable.Class(creator = "DeviceOrientationRequestCreator")
|
|
/* loaded from: classes7.dex */
|
|
public final class zzj extends AbstractSafeParcelable {
|
|
public static final Parcelable.Creator<zzj> CREATOR = new zzk();
|
|
|
|
@SafeParcelable.Field(defaultValueUnchecked = "DeviceOrientationRequest.DEFAULT_SHOULD_USE_MAG", id = 1)
|
|
private boolean zzt;
|
|
|
|
@SafeParcelable.Field(defaultValueUnchecked = "DeviceOrientationRequest.DEFAULT_MINIMUM_SAMPLING_PERIOD_MS", id = 2)
|
|
private long zzu;
|
|
|
|
@SafeParcelable.Field(defaultValueUnchecked = "DeviceOrientationRequest.DEFAULT_SMALLEST_ANGLE_CHANGE_RADIANS", id = 3)
|
|
private float zzv;
|
|
|
|
@SafeParcelable.Field(defaultValueUnchecked = "DeviceOrientationRequest.DEFAULT_EXPIRE_AT_MS", id = 4)
|
|
private long zzw;
|
|
|
|
@SafeParcelable.Field(defaultValueUnchecked = "DeviceOrientationRequest.DEFAULT_NUM_UPDATES", id = 5)
|
|
private int zzx;
|
|
|
|
public zzj() {
|
|
this(true, 50L, 0.0f, Long.MAX_VALUE, Integer.MAX_VALUE);
|
|
}
|
|
|
|
public final boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof zzj)) {
|
|
return false;
|
|
}
|
|
zzj zzjVar = (zzj) obj;
|
|
return this.zzt == zzjVar.zzt && this.zzu == zzjVar.zzu && Float.compare(this.zzv, zzjVar.zzv) == 0 && this.zzw == zzjVar.zzw && this.zzx == zzjVar.zzx;
|
|
}
|
|
|
|
public final int hashCode() {
|
|
return Objects.hashCode(Boolean.valueOf(this.zzt), Long.valueOf(this.zzu), Float.valueOf(this.zzv), Long.valueOf(this.zzw), Integer.valueOf(this.zzx));
|
|
}
|
|
|
|
public final String toString() {
|
|
StringBuilder sb = new StringBuilder("DeviceOrientationRequest[mShouldUseMag=");
|
|
sb.append(this.zzt);
|
|
sb.append(" mMinimumSamplingPeriodMs=");
|
|
sb.append(this.zzu);
|
|
sb.append(" mSmallestAngleChangeRadians=");
|
|
sb.append(this.zzv);
|
|
long j = this.zzw;
|
|
if (j != Long.MAX_VALUE) {
|
|
long elapsedRealtime = j - SystemClock.elapsedRealtime();
|
|
sb.append(" expireIn=");
|
|
sb.append(elapsedRealtime);
|
|
sb.append("ms");
|
|
}
|
|
if (this.zzx != Integer.MAX_VALUE) {
|
|
sb.append(" num=");
|
|
sb.append(this.zzx);
|
|
}
|
|
sb.append(AbstractJsonLexerKt.END_LIST);
|
|
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.zzt);
|
|
SafeParcelWriter.writeLong(parcel, 2, this.zzu);
|
|
SafeParcelWriter.writeFloat(parcel, 3, this.zzv);
|
|
SafeParcelWriter.writeLong(parcel, 4, this.zzw);
|
|
SafeParcelWriter.writeInt(parcel, 5, this.zzx);
|
|
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
|
}
|
|
|
|
@SafeParcelable.Constructor
|
|
public zzj(@SafeParcelable.Param(id = 1) boolean z, @SafeParcelable.Param(id = 2) long j, @SafeParcelable.Param(id = 3) float f, @SafeParcelable.Param(id = 4) long j2, @SafeParcelable.Param(id = 5) int i) {
|
|
this.zzt = z;
|
|
this.zzu = j;
|
|
this.zzv = f;
|
|
this.zzw = j2;
|
|
this.zzx = i;
|
|
}
|
|
}
|