what-the-bank/sources/com/google/android/gms/common/zzs.java

66 lines
2.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.common;
import android.os.IBinder;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
import android.util.Log;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.dynamic.IObjectWrapper;
import com.google.android.gms.dynamic.ObjectWrapper;
/* loaded from: classes.dex */
public final class zzs extends AbstractSafeParcelable {
public static final Parcelable.Creator<zzs> CREATOR = new zzt();
private final String zza;
private final zzj zzb;
private final boolean zzc;
private final boolean zzd;
/* JADX INFO: Access modifiers changed from: package-private */
public zzs(String str, IBinder iBinder, boolean z, boolean z2) {
this.zza = str;
zzk zzkVar = null;
if (iBinder != null) {
try {
IObjectWrapper zzd = com.google.android.gms.common.internal.zzy.zzg(iBinder).zzd();
byte[] bArr = zzd == null ? null : (byte[]) ObjectWrapper.unwrap(zzd);
if (bArr != null) {
zzkVar = new zzk(bArr);
} else {
Log.e("GoogleCertificatesQuery", "Could not unwrap certificate");
}
} catch (RemoteException e) {
Log.e("GoogleCertificatesQuery", "Could not unwrap certificate", e);
}
}
this.zzb = zzkVar;
this.zzc = z;
this.zzd = z2;
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeString(parcel, 1, this.zza, false);
zzj zzjVar = this.zzb;
if (zzjVar == null) {
Log.w("GoogleCertificatesQuery", "certificate binder is null");
zzjVar = null;
}
SafeParcelWriter.writeIBinder(parcel, 2, zzjVar, false);
SafeParcelWriter.writeBoolean(parcel, 3, this.zzc);
SafeParcelWriter.writeBoolean(parcel, 4, this.zzd);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
/* JADX INFO: Access modifiers changed from: package-private */
public zzs(String str, zzj zzjVar, boolean z, boolean z2) {
this.zza = str;
this.zzb = zzjVar;
this.zzc = z;
this.zzd = z2;
}
}