what-the-bank/sources/com/google/android/gms/vision/barcode/zzi.java

35 lines
1.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
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 zzi implements Parcelable.Creator<Barcode.GeoPoint> {
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Barcode.GeoPoint[] newArray(int i) {
return new Barcode.GeoPoint[i];
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Barcode.GeoPoint createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
double d = 0.0d;
double d2 = 0.0d;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(readHeader);
if (fieldId == 2) {
d = SafeParcelReader.readDouble(parcel, readHeader);
} else if (fieldId == 3) {
d2 = SafeParcelReader.readDouble(parcel, readHeader);
} else {
SafeParcelReader.skipUnknownField(parcel, readHeader);
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new Barcode.GeoPoint(d, d2);
}
}