76 lines
2.0 KiB
Java
76 lines
2.0 KiB
Java
|
package com.google.firebase.iid;
|
||
|
|
||
|
import android.os.IBinder;
|
||
|
import android.os.Message;
|
||
|
import android.os.Messenger;
|
||
|
import android.os.Parcel;
|
||
|
import android.os.Parcelable;
|
||
|
import android.os.RemoteException;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public class zzj implements Parcelable {
|
||
|
public static final Parcelable.Creator<zzj> CREATOR = new zzi();
|
||
|
private Messenger zza;
|
||
|
private zzx zzb;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public static final class zza extends ClassLoader {
|
||
|
@Override // java.lang.ClassLoader
|
||
|
protected final Class<?> loadClass(String str, boolean z) throws ClassNotFoundException {
|
||
|
if ("com.google.android.gms.iid.MessengerCompat".equals(str)) {
|
||
|
FirebaseInstanceId.zzd();
|
||
|
return zzj.class;
|
||
|
}
|
||
|
return super.loadClass(str, z);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public zzj(IBinder iBinder) {
|
||
|
this.zza = new Messenger(iBinder);
|
||
|
}
|
||
|
|
||
|
@Override // android.os.Parcelable
|
||
|
public int describeContents() {
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
public final void zza(Message message) throws RemoteException {
|
||
|
Messenger messenger = this.zza;
|
||
|
if (messenger != null) {
|
||
|
messenger.send(message);
|
||
|
} else {
|
||
|
this.zzb.zza(message);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private final IBinder zza() {
|
||
|
Messenger messenger = this.zza;
|
||
|
return messenger != null ? messenger.getBinder() : this.zzb.asBinder();
|
||
|
}
|
||
|
|
||
|
public boolean equals(Object obj) {
|
||
|
if (obj == null) {
|
||
|
return false;
|
||
|
}
|
||
|
try {
|
||
|
return zza().equals(((zzj) obj).zza());
|
||
|
} catch (ClassCastException unused) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public int hashCode() {
|
||
|
return zza().hashCode();
|
||
|
}
|
||
|
|
||
|
@Override // android.os.Parcelable
|
||
|
public void writeToParcel(Parcel parcel, int i) {
|
||
|
Messenger messenger = this.zza;
|
||
|
if (messenger != null) {
|
||
|
parcel.writeStrongBinder(messenger.getBinder());
|
||
|
} else {
|
||
|
parcel.writeStrongBinder(this.zzb.asBinder());
|
||
|
}
|
||
|
}
|
||
|
}
|