Initial version -- added millennium read funcionality
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public class ClientIdentity extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<ClientIdentity> CREATOR = new zaa();
|
||||
public final String packageName;
|
||||
public final int uid;
|
||||
|
||||
public ClientIdentity(int i, String str) {
|
||||
this.uid = i;
|
||||
this.packageName = str;
|
||||
}
|
||||
|
||||
public final boolean equals(Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof ClientIdentity)) {
|
||||
return false;
|
||||
}
|
||||
ClientIdentity clientIdentity = (ClientIdentity) obj;
|
||||
return clientIdentity.uid == this.uid && Objects.equal(clientIdentity.packageName, this.packageName);
|
||||
}
|
||||
|
||||
public final int hashCode() {
|
||||
return this.uid;
|
||||
}
|
||||
|
||||
public final String toString() {
|
||||
return this.uid + ":" + this.packageName;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int i2 = this.uid;
|
||||
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, i2);
|
||||
SafeParcelWriter.writeString(parcel, 2, this.packageName, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user