what-the-bank/sources/com/google/android/gms/auth/api/proxy/zzb.java

48 lines
2.0 KiB
Java

package com.google.android.gms.auth.api.proxy;
import android.app.PendingIntent;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* loaded from: classes.dex */
public final class zzb implements Parcelable.Creator<ProxyResponse> {
@Override // android.os.Parcelable.Creator
public final /* synthetic */ ProxyResponse[] newArray(int i) {
return new ProxyResponse[i];
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ ProxyResponse createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
int i = 0;
int i2 = 0;
int i3 = 0;
PendingIntent pendingIntent = null;
Bundle bundle = null;
byte[] bArr = null;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(readHeader);
if (fieldId == 1) {
i2 = SafeParcelReader.readInt(parcel, readHeader);
} else if (fieldId == 2) {
pendingIntent = (PendingIntent) SafeParcelReader.createParcelable(parcel, readHeader, PendingIntent.CREATOR);
} else if (fieldId == 3) {
i3 = SafeParcelReader.readInt(parcel, readHeader);
} else if (fieldId == 4) {
bundle = SafeParcelReader.createBundle(parcel, readHeader);
} else if (fieldId == 5) {
bArr = SafeParcelReader.createByteArray(parcel, readHeader);
} else if (fieldId == 1000) {
i = SafeParcelReader.readInt(parcel, readHeader);
} else {
SafeParcelReader.skipUnknownField(parcel, readHeader);
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new ProxyResponse(i, i2, pendingIntent, i3, bundle, bArr);
}
}