what-the-bank/sources/com/google/android/gms/location/ActivityTransitionEvent.java

83 lines
2.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.location;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
/* loaded from: classes2.dex */
public class ActivityTransitionEvent extends AbstractSafeParcelable {
public static final Parcelable.Creator<ActivityTransitionEvent> CREATOR = new zzp();
private final int zza;
private final int zzb;
private final long zzc;
public ActivityTransitionEvent(int i, int i2, long j) {
ActivityTransition.zza(i2);
this.zza = i;
this.zzb = i2;
this.zzc = j;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof ActivityTransitionEvent)) {
return false;
}
ActivityTransitionEvent activityTransitionEvent = (ActivityTransitionEvent) obj;
return this.zza == activityTransitionEvent.zza && this.zzb == activityTransitionEvent.zzb && this.zzc == activityTransitionEvent.zzc;
}
public int hashCode() {
return Objects.hashCode(Integer.valueOf(this.zza), Integer.valueOf(this.zzb), Long.valueOf(this.zzc));
}
public String toString() {
StringBuilder sb = new StringBuilder();
int i = this.zza;
StringBuilder sb2 = new StringBuilder(24);
sb2.append("ActivityType ");
sb2.append(i);
sb.append(sb2.toString());
sb.append(" ");
int i2 = this.zzb;
StringBuilder sb3 = new StringBuilder(26);
sb3.append("TransitionType ");
sb3.append(i2);
sb.append(sb3.toString());
sb.append(" ");
long j = this.zzc;
StringBuilder sb4 = new StringBuilder(41);
sb4.append("ElapsedRealTimeNanos ");
sb4.append(j);
sb.append(sb4.toString());
return sb.toString();
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
Preconditions.checkNotNull(parcel);
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeInt(parcel, 1, getActivityType());
SafeParcelWriter.writeInt(parcel, 2, getTransitionType());
SafeParcelWriter.writeLong(parcel, 3, getElapsedRealTimeNanos());
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
public int getTransitionType() {
return this.zzb;
}
public long getElapsedRealTimeNanos() {
return this.zzc;
}
public int getActivityType() {
return this.zza;
}
}