58 lines
2.6 KiB
Java
58 lines
2.6 KiB
Java
package com.google.android.gms.vision.barcode;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
|
import com.google.android.gms.vision.barcode.Barcode;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class zzf implements Parcelable.Creator<Barcode.ContactInfo> {
|
|
@Override // android.os.Parcelable.Creator
|
|
public final /* synthetic */ Barcode.ContactInfo[] newArray(int i) {
|
|
return new Barcode.ContactInfo[i];
|
|
}
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
public final /* synthetic */ Barcode.ContactInfo createFromParcel(Parcel parcel) {
|
|
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
|
Barcode.PersonName personName = null;
|
|
String str = null;
|
|
String str2 = null;
|
|
Barcode.Phone[] phoneArr = null;
|
|
Barcode.Email[] emailArr = null;
|
|
String[] strArr = null;
|
|
Barcode.Address[] addressArr = null;
|
|
while (parcel.dataPosition() < validateObjectHeader) {
|
|
int readHeader = SafeParcelReader.readHeader(parcel);
|
|
switch (SafeParcelReader.getFieldId(readHeader)) {
|
|
case 2:
|
|
personName = (Barcode.PersonName) SafeParcelReader.createParcelable(parcel, readHeader, Barcode.PersonName.CREATOR);
|
|
break;
|
|
case 3:
|
|
str = SafeParcelReader.createString(parcel, readHeader);
|
|
break;
|
|
case 4:
|
|
str2 = SafeParcelReader.createString(parcel, readHeader);
|
|
break;
|
|
case 5:
|
|
phoneArr = (Barcode.Phone[]) SafeParcelReader.createTypedArray(parcel, readHeader, Barcode.Phone.CREATOR);
|
|
break;
|
|
case 6:
|
|
emailArr = (Barcode.Email[]) SafeParcelReader.createTypedArray(parcel, readHeader, Barcode.Email.CREATOR);
|
|
break;
|
|
case 7:
|
|
strArr = SafeParcelReader.createStringArray(parcel, readHeader);
|
|
break;
|
|
case 8:
|
|
addressArr = (Barcode.Address[]) SafeParcelReader.createTypedArray(parcel, readHeader, Barcode.Address.CREATOR);
|
|
break;
|
|
default:
|
|
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
|
break;
|
|
}
|
|
}
|
|
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
|
return new Barcode.ContactInfo(personName, str, str2, phoneArr, emailArr, strArr, addressArr);
|
|
}
|
|
}
|