Initial version -- added millennium read funcionality
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
package com.google.android.gms.common.server;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.ReflectedParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public class FavaDiagnosticsEntity extends AbstractSafeParcelable implements ReflectedParcelable {
|
||||
public static final Parcelable.Creator<FavaDiagnosticsEntity> CREATOR = new zaa();
|
||||
final int zaa;
|
||||
public final String zab;
|
||||
public final int zac;
|
||||
|
||||
public FavaDiagnosticsEntity(int i, String str, int i2) {
|
||||
this.zaa = i;
|
||||
this.zab = str;
|
||||
this.zac = i2;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int i2 = this.zaa;
|
||||
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, i2);
|
||||
SafeParcelWriter.writeString(parcel, 2, this.zab, false);
|
||||
SafeParcelWriter.writeInt(parcel, 3, this.zac);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
|
||||
}
|
||||
|
||||
public FavaDiagnosticsEntity(String str, int i) {
|
||||
this.zaa = 1;
|
||||
this.zab = str;
|
||||
this.zac = i;
|
||||
}
|
||||
}
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
package com.google.android.gms.common.server.converter;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.util.SparseArray;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
||||
import com.google.android.gms.common.server.response.FastJsonResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class StringToIntConverter extends AbstractSafeParcelable implements FastJsonResponse.FieldConverter<String, Integer> {
|
||||
public static final Parcelable.Creator<StringToIntConverter> CREATOR = new zad();
|
||||
final int zaa;
|
||||
private final HashMap zab;
|
||||
private final SparseArray zac;
|
||||
|
||||
public StringToIntConverter() {
|
||||
this.zaa = 1;
|
||||
this.zab = new HashMap();
|
||||
this.zac = new SparseArray();
|
||||
}
|
||||
|
||||
public StringToIntConverter add(String str, int i) {
|
||||
this.zab.put(str, Integer.valueOf(i));
|
||||
this.zac.put(i, str);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int i2 = this.zaa;
|
||||
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, i2);
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (String str : this.zab.keySet()) {
|
||||
arrayList.add(new zac(str, ((Integer) this.zab.get(str)).intValue()));
|
||||
}
|
||||
SafeParcelWriter.writeTypedList(parcel, 2, arrayList, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse.FieldConverter
|
||||
public final int zaa() {
|
||||
return 7;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse.FieldConverter
|
||||
public final int zab() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse.FieldConverter
|
||||
public final /* bridge */ /* synthetic */ Object zac(Object obj) {
|
||||
Integer num = (Integer) this.zab.get((String) obj);
|
||||
return num == null ? (Integer) this.zab.get("gms_unknown") : num;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse.FieldConverter
|
||||
public final /* bridge */ /* synthetic */ Object zad(Object obj) {
|
||||
String str = (String) this.zac.get(((Integer) obj).intValue());
|
||||
return (str == null && this.zab.containsKey("gms_unknown")) ? "gms_unknown" : str;
|
||||
}
|
||||
|
||||
StringToIntConverter(int i, ArrayList arrayList) {
|
||||
this.zaa = i;
|
||||
this.zab = new HashMap();
|
||||
this.zac = new SparseArray();
|
||||
int size = arrayList.size();
|
||||
for (int i2 = 0; i2 < size; i2++) {
|
||||
zac zacVar = (zac) arrayList.get(i2);
|
||||
add(zacVar.zab, zacVar.zac);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.google.android.gms.common.server.converter;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
||||
import com.google.android.gms.common.server.response.FastJsonResponse;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zaa extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<zaa> CREATOR = new zab();
|
||||
final int zaa;
|
||||
private final StringToIntConverter zab;
|
||||
|
||||
zaa(int i, StringToIntConverter stringToIntConverter) {
|
||||
this.zaa = i;
|
||||
this.zab = stringToIntConverter;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int i2 = this.zaa;
|
||||
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, i2);
|
||||
SafeParcelWriter.writeParcelable(parcel, 2, this.zab, i, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
|
||||
}
|
||||
|
||||
public final FastJsonResponse.FieldConverter zab() {
|
||||
StringToIntConverter stringToIntConverter = this.zab;
|
||||
if (stringToIntConverter != null) {
|
||||
return stringToIntConverter;
|
||||
}
|
||||
throw new IllegalStateException("There was no converter wrapped in this ConverterWrapper.");
|
||||
}
|
||||
|
||||
private zaa(StringToIntConverter stringToIntConverter) {
|
||||
this.zaa = 1;
|
||||
this.zab = stringToIntConverter;
|
||||
}
|
||||
|
||||
public static zaa zaa(FastJsonResponse.FieldConverter fieldConverter) {
|
||||
if (fieldConverter instanceof StringToIntConverter) {
|
||||
return new zaa((StringToIntConverter) fieldConverter);
|
||||
}
|
||||
throw new IllegalArgumentException("Unsupported safe parcelable field converter class.");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.google.android.gms.common.server.converter;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zab implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
StringToIntConverter stringToIntConverter = null;
|
||||
int i = 0;
|
||||
while (parcel.dataPosition() < iValidateObjectHeader) {
|
||||
int header = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(header);
|
||||
if (fieldId == 1) {
|
||||
i = SafeParcelReader.readInt(parcel, header);
|
||||
} else if (fieldId != 2) {
|
||||
SafeParcelReader.skipUnknownField(parcel, header);
|
||||
} else {
|
||||
stringToIntConverter = (StringToIntConverter) SafeParcelReader.createParcelable(parcel, header, StringToIntConverter.CREATOR);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
|
||||
return new zaa(i, stringToIntConverter);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new zaa[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.google.android.gms.common.server.converter;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zac extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<zac> CREATOR = new zae();
|
||||
final int zaa;
|
||||
final String zab;
|
||||
final int zac;
|
||||
|
||||
zac(int i, String str, int i2) {
|
||||
this.zaa = i;
|
||||
this.zab = str;
|
||||
this.zac = i2;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int i2 = this.zaa;
|
||||
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, i2);
|
||||
SafeParcelWriter.writeString(parcel, 2, this.zab, false);
|
||||
SafeParcelWriter.writeInt(parcel, 3, this.zac);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
|
||||
}
|
||||
|
||||
zac(String str, int i) {
|
||||
this.zaa = 1;
|
||||
this.zab = str;
|
||||
this.zac = i;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.google.android.gms.common.server.converter;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zad implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
ArrayList arrayListCreateTypedList = null;
|
||||
int i = 0;
|
||||
while (parcel.dataPosition() < iValidateObjectHeader) {
|
||||
int header = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(header);
|
||||
if (fieldId == 1) {
|
||||
i = SafeParcelReader.readInt(parcel, header);
|
||||
} else if (fieldId != 2) {
|
||||
SafeParcelReader.skipUnknownField(parcel, header);
|
||||
} else {
|
||||
arrayListCreateTypedList = SafeParcelReader.createTypedList(parcel, header, zac.CREATOR);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
|
||||
return new StringToIntConverter(i, arrayListCreateTypedList);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new StringToIntConverter[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.google.android.gms.common.server.converter;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zae implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
int i = 0;
|
||||
String strCreateString = null;
|
||||
int i2 = 0;
|
||||
while (parcel.dataPosition() < iValidateObjectHeader) {
|
||||
int header = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(header);
|
||||
if (fieldId == 1) {
|
||||
i = SafeParcelReader.readInt(parcel, header);
|
||||
} else if (fieldId == 2) {
|
||||
strCreateString = SafeParcelReader.createString(parcel, header);
|
||||
} else if (fieldId != 3) {
|
||||
SafeParcelReader.skipUnknownField(parcel, header);
|
||||
} else {
|
||||
i2 = SafeParcelReader.readInt(parcel, header);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
|
||||
return new zac(i, strCreateString, i2);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new zac[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,632 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.util.Log;
|
||||
import com.google.android.gms.common.internal.Objects;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
||||
import com.google.android.gms.common.util.Base64Utils;
|
||||
import com.google.android.gms.common.util.JsonUtils;
|
||||
import com.google.android.gms.common.util.MapUtils;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public abstract class FastJsonResponse {
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
public interface FieldConverter<I, O> {
|
||||
int zaa();
|
||||
|
||||
int zab();
|
||||
|
||||
Object zac(Object obj);
|
||||
|
||||
Object zad(Object obj);
|
||||
}
|
||||
|
||||
protected static final Object zaD(Field field, Object obj) {
|
||||
return field.zak != null ? field.zaf(obj) : obj;
|
||||
}
|
||||
|
||||
private final void zaE(Field field, Object obj) {
|
||||
int i = field.zac;
|
||||
Object objZae = field.zae(obj);
|
||||
String str = field.zae;
|
||||
switch (i) {
|
||||
case 0:
|
||||
if (objZae != null) {
|
||||
setIntegerInternal(field, str, ((Integer) objZae).intValue());
|
||||
return;
|
||||
} else {
|
||||
zaG(str);
|
||||
return;
|
||||
}
|
||||
case 1:
|
||||
zaf(field, str, (BigInteger) objZae);
|
||||
return;
|
||||
case 2:
|
||||
if (objZae != null) {
|
||||
setLongInternal(field, str, ((Long) objZae).longValue());
|
||||
return;
|
||||
} else {
|
||||
zaG(str);
|
||||
return;
|
||||
}
|
||||
case 3:
|
||||
default:
|
||||
throw new IllegalStateException("Unsupported type for conversion: " + i);
|
||||
case 4:
|
||||
if (objZae != null) {
|
||||
zan(field, str, ((Double) objZae).doubleValue());
|
||||
return;
|
||||
} else {
|
||||
zaG(str);
|
||||
return;
|
||||
}
|
||||
case 5:
|
||||
zab(field, str, (BigDecimal) objZae);
|
||||
return;
|
||||
case 6:
|
||||
if (objZae != null) {
|
||||
setBooleanInternal(field, str, ((Boolean) objZae).booleanValue());
|
||||
return;
|
||||
} else {
|
||||
zaG(str);
|
||||
return;
|
||||
}
|
||||
case 7:
|
||||
setStringInternal(field, str, (String) objZae);
|
||||
return;
|
||||
case 8:
|
||||
case 9:
|
||||
if (objZae != null) {
|
||||
setDecodedBytesInternal(field, str, (byte[]) objZae);
|
||||
return;
|
||||
} else {
|
||||
zaG(str);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static final void zaF(StringBuilder sb, Field field, Object obj) {
|
||||
int i = field.zaa;
|
||||
if (i == 11) {
|
||||
Class cls = field.zag;
|
||||
Preconditions.checkNotNull(cls);
|
||||
sb.append(((FastJsonResponse) cls.cast(obj)).toString());
|
||||
} else {
|
||||
if (i != 7) {
|
||||
sb.append(obj);
|
||||
return;
|
||||
}
|
||||
sb.append("\"");
|
||||
sb.append(JsonUtils.escapeString((String) obj));
|
||||
sb.append("\"");
|
||||
}
|
||||
}
|
||||
|
||||
private static final void zaG(String str) {
|
||||
if (Log.isLoggable("FastJsonResponse", 6)) {
|
||||
Log.e("FastJsonResponse", "Output field (" + str + ") has a null value, but expected a primitive");
|
||||
}
|
||||
}
|
||||
|
||||
public <T extends FastJsonResponse> void addConcreteTypeArrayInternal(Field field, String str, ArrayList<T> arrayList) {
|
||||
throw new UnsupportedOperationException("Concrete type array not supported");
|
||||
}
|
||||
|
||||
public <T extends FastJsonResponse> void addConcreteTypeInternal(Field field, String str, T t) {
|
||||
throw new UnsupportedOperationException("Concrete type not supported");
|
||||
}
|
||||
|
||||
public abstract Map<String, Field<?, ?>> getFieldMappings();
|
||||
|
||||
protected abstract Object getValueObject(String str);
|
||||
|
||||
protected abstract boolean isPrimitiveFieldSet(String str);
|
||||
|
||||
protected void setBooleanInternal(Field<?, ?> field, String str, boolean z) {
|
||||
throw new UnsupportedOperationException("Boolean not supported");
|
||||
}
|
||||
|
||||
protected void setDecodedBytesInternal(Field<?, ?> field, String str, byte[] bArr) {
|
||||
throw new UnsupportedOperationException("byte[] not supported");
|
||||
}
|
||||
|
||||
protected void setIntegerInternal(Field<?, ?> field, String str, int i) {
|
||||
throw new UnsupportedOperationException("Integer not supported");
|
||||
}
|
||||
|
||||
protected void setLongInternal(Field<?, ?> field, String str, long j) {
|
||||
throw new UnsupportedOperationException("Long not supported");
|
||||
}
|
||||
|
||||
protected void setStringInternal(Field<?, ?> field, String str, String str2) {
|
||||
throw new UnsupportedOperationException("String not supported");
|
||||
}
|
||||
|
||||
protected void setStringMapInternal(Field<?, ?> field, String str, Map<String, String> map) {
|
||||
throw new UnsupportedOperationException("String map not supported");
|
||||
}
|
||||
|
||||
protected void setStringsInternal(Field<?, ?> field, String str, ArrayList<String> arrayList) {
|
||||
throw new UnsupportedOperationException("String list not supported");
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
Map<String, Field<?, ?>> fieldMappings = getFieldMappings();
|
||||
StringBuilder sb = new StringBuilder(100);
|
||||
for (String str : fieldMappings.keySet()) {
|
||||
Field<?, ?> field = fieldMappings.get(str);
|
||||
if (isFieldSet(field)) {
|
||||
Object objZaD = zaD(field, getFieldValue(field));
|
||||
if (sb.length() == 0) {
|
||||
sb.append("{");
|
||||
} else {
|
||||
sb.append(",");
|
||||
}
|
||||
sb.append("\"");
|
||||
sb.append(str);
|
||||
sb.append("\":");
|
||||
if (objZaD != null) {
|
||||
switch (field.zac) {
|
||||
case 8:
|
||||
sb.append("\"");
|
||||
sb.append(Base64Utils.encode((byte[]) objZaD));
|
||||
sb.append("\"");
|
||||
break;
|
||||
case 9:
|
||||
sb.append("\"");
|
||||
sb.append(Base64Utils.encodeUrlSafe((byte[]) objZaD));
|
||||
sb.append("\"");
|
||||
break;
|
||||
case 10:
|
||||
MapUtils.writeStringMapToJson(sb, (HashMap) objZaD);
|
||||
break;
|
||||
default:
|
||||
if (field.zab) {
|
||||
ArrayList arrayList = (ArrayList) objZaD;
|
||||
sb.append("[");
|
||||
int size = arrayList.size();
|
||||
for (int i = 0; i < size; i++) {
|
||||
if (i > 0) {
|
||||
sb.append(",");
|
||||
}
|
||||
Object obj = arrayList.get(i);
|
||||
if (obj != null) {
|
||||
zaF(sb, field, obj);
|
||||
}
|
||||
}
|
||||
sb.append("]");
|
||||
} else {
|
||||
zaF(sb, field, objZaD);
|
||||
}
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
sb.append("null");
|
||||
}
|
||||
}
|
||||
}
|
||||
if (sb.length() > 0) {
|
||||
sb.append("}");
|
||||
} else {
|
||||
sb.append("{}");
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public final void zaA(Field field, String str) {
|
||||
if (field.zak != null) {
|
||||
zaE(field, str);
|
||||
} else {
|
||||
setStringInternal(field, field.zae, str);
|
||||
}
|
||||
}
|
||||
|
||||
public final void zaB(Field field, Map map) {
|
||||
if (field.zak != null) {
|
||||
zaE(field, map);
|
||||
} else {
|
||||
setStringMapInternal(field, field.zae, map);
|
||||
}
|
||||
}
|
||||
|
||||
public final void zaC(Field field, ArrayList arrayList) {
|
||||
if (field.zak != null) {
|
||||
zaE(field, arrayList);
|
||||
} else {
|
||||
setStringsInternal(field, field.zae, arrayList);
|
||||
}
|
||||
}
|
||||
|
||||
public final void zaa(Field field, BigDecimal bigDecimal) {
|
||||
if (field.zak != null) {
|
||||
zaE(field, bigDecimal);
|
||||
} else {
|
||||
zab(field, field.zae, bigDecimal);
|
||||
}
|
||||
}
|
||||
|
||||
protected void zab(Field field, String str, BigDecimal bigDecimal) {
|
||||
throw new UnsupportedOperationException("BigDecimal not supported");
|
||||
}
|
||||
|
||||
public final void zac(Field field, ArrayList arrayList) {
|
||||
if (field.zak != null) {
|
||||
zaE(field, arrayList);
|
||||
} else {
|
||||
zad(field, field.zae, arrayList);
|
||||
}
|
||||
}
|
||||
|
||||
protected void zad(Field field, String str, ArrayList arrayList) {
|
||||
throw new UnsupportedOperationException("BigDecimal list not supported");
|
||||
}
|
||||
|
||||
public final void zae(Field field, BigInteger bigInteger) {
|
||||
if (field.zak != null) {
|
||||
zaE(field, bigInteger);
|
||||
} else {
|
||||
zaf(field, field.zae, bigInteger);
|
||||
}
|
||||
}
|
||||
|
||||
protected void zaf(Field field, String str, BigInteger bigInteger) {
|
||||
throw new UnsupportedOperationException("BigInteger not supported");
|
||||
}
|
||||
|
||||
public final void zag(Field field, ArrayList arrayList) {
|
||||
if (field.zak != null) {
|
||||
zaE(field, arrayList);
|
||||
} else {
|
||||
zah(field, field.zae, arrayList);
|
||||
}
|
||||
}
|
||||
|
||||
protected void zah(Field field, String str, ArrayList arrayList) {
|
||||
throw new UnsupportedOperationException("BigInteger list not supported");
|
||||
}
|
||||
|
||||
public final void zai(Field field, boolean z) {
|
||||
if (field.zak != null) {
|
||||
zaE(field, Boolean.valueOf(z));
|
||||
} else {
|
||||
setBooleanInternal(field, field.zae, z);
|
||||
}
|
||||
}
|
||||
|
||||
public final void zaj(Field field, ArrayList arrayList) {
|
||||
if (field.zak != null) {
|
||||
zaE(field, arrayList);
|
||||
} else {
|
||||
zak(field, field.zae, arrayList);
|
||||
}
|
||||
}
|
||||
|
||||
protected void zak(Field field, String str, ArrayList arrayList) {
|
||||
throw new UnsupportedOperationException("Boolean list not supported");
|
||||
}
|
||||
|
||||
public final void zal(Field field, byte[] bArr) {
|
||||
if (field.zak != null) {
|
||||
zaE(field, bArr);
|
||||
} else {
|
||||
setDecodedBytesInternal(field, field.zae, bArr);
|
||||
}
|
||||
}
|
||||
|
||||
public final void zam(Field field, double d) {
|
||||
if (field.zak != null) {
|
||||
zaE(field, Double.valueOf(d));
|
||||
} else {
|
||||
zan(field, field.zae, d);
|
||||
}
|
||||
}
|
||||
|
||||
protected void zan(Field field, String str, double d) {
|
||||
throw new UnsupportedOperationException("Double not supported");
|
||||
}
|
||||
|
||||
public final void zao(Field field, ArrayList arrayList) {
|
||||
if (field.zak != null) {
|
||||
zaE(field, arrayList);
|
||||
} else {
|
||||
zap(field, field.zae, arrayList);
|
||||
}
|
||||
}
|
||||
|
||||
protected void zap(Field field, String str, ArrayList arrayList) {
|
||||
throw new UnsupportedOperationException("Double list not supported");
|
||||
}
|
||||
|
||||
public final void zaq(Field field, float f) {
|
||||
if (field.zak != null) {
|
||||
zaE(field, Float.valueOf(f));
|
||||
} else {
|
||||
zar(field, field.zae, f);
|
||||
}
|
||||
}
|
||||
|
||||
protected void zar(Field field, String str, float f) {
|
||||
throw new UnsupportedOperationException("Float not supported");
|
||||
}
|
||||
|
||||
public final void zas(Field field, ArrayList arrayList) {
|
||||
if (field.zak != null) {
|
||||
zaE(field, arrayList);
|
||||
} else {
|
||||
zat(field, field.zae, arrayList);
|
||||
}
|
||||
}
|
||||
|
||||
protected void zat(Field field, String str, ArrayList arrayList) {
|
||||
throw new UnsupportedOperationException("Float list not supported");
|
||||
}
|
||||
|
||||
public final void zau(Field field, int i) {
|
||||
if (field.zak != null) {
|
||||
zaE(field, Integer.valueOf(i));
|
||||
} else {
|
||||
setIntegerInternal(field, field.zae, i);
|
||||
}
|
||||
}
|
||||
|
||||
public final void zav(Field field, ArrayList arrayList) {
|
||||
if (field.zak != null) {
|
||||
zaE(field, arrayList);
|
||||
} else {
|
||||
zaw(field, field.zae, arrayList);
|
||||
}
|
||||
}
|
||||
|
||||
protected void zaw(Field field, String str, ArrayList arrayList) {
|
||||
throw new UnsupportedOperationException("Integer list not supported");
|
||||
}
|
||||
|
||||
public final void zax(Field field, long j) {
|
||||
if (field.zak != null) {
|
||||
zaE(field, Long.valueOf(j));
|
||||
} else {
|
||||
setLongInternal(field, field.zae, j);
|
||||
}
|
||||
}
|
||||
|
||||
public final void zay(Field field, ArrayList arrayList) {
|
||||
if (field.zak != null) {
|
||||
zaE(field, arrayList);
|
||||
} else {
|
||||
zaz(field, field.zae, arrayList);
|
||||
}
|
||||
}
|
||||
|
||||
protected void zaz(Field field, String str, ArrayList arrayList) {
|
||||
throw new UnsupportedOperationException("Long list not supported");
|
||||
}
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
public static class Field<I, O> extends AbstractSafeParcelable {
|
||||
public static final zaj CREATOR = new zaj();
|
||||
protected final int zaa;
|
||||
protected final boolean zab;
|
||||
protected final int zac;
|
||||
protected final boolean zad;
|
||||
protected final String zae;
|
||||
protected final int zaf;
|
||||
protected final Class zag;
|
||||
protected final String zah;
|
||||
private final int zai;
|
||||
private zan zaj;
|
||||
private final FieldConverter zak;
|
||||
|
||||
Field(int i, int i2, boolean z, int i3, boolean z2, String str, int i4, String str2, com.google.android.gms.common.server.converter.zaa zaaVar) {
|
||||
this.zai = i;
|
||||
this.zaa = i2;
|
||||
this.zab = z;
|
||||
this.zac = i3;
|
||||
this.zad = z2;
|
||||
this.zae = str;
|
||||
this.zaf = i4;
|
||||
if (str2 == null) {
|
||||
this.zag = null;
|
||||
this.zah = null;
|
||||
} else {
|
||||
this.zag = SafeParcelResponse.class;
|
||||
this.zah = str2;
|
||||
}
|
||||
if (zaaVar == null) {
|
||||
this.zak = null;
|
||||
} else {
|
||||
this.zak = zaaVar.zab();
|
||||
}
|
||||
}
|
||||
|
||||
public static Field<byte[], byte[]> forBase64(String str, int i) {
|
||||
return new Field<>(8, false, 8, false, str, i, null, null);
|
||||
}
|
||||
|
||||
public static Field<Boolean, Boolean> forBoolean(String str, int i) {
|
||||
return new Field<>(6, false, 6, false, str, i, null, null);
|
||||
}
|
||||
|
||||
public static <T extends FastJsonResponse> Field<T, T> forConcreteType(String str, int i, Class<T> cls) {
|
||||
return new Field<>(11, false, 11, false, str, i, cls, null);
|
||||
}
|
||||
|
||||
public static <T extends FastJsonResponse> Field<ArrayList<T>, ArrayList<T>> forConcreteTypeArray(String str, int i, Class<T> cls) {
|
||||
return new Field<>(11, true, 11, true, str, i, cls, null);
|
||||
}
|
||||
|
||||
public static Field<Double, Double> forDouble(String str, int i) {
|
||||
return new Field<>(4, false, 4, false, str, i, null, null);
|
||||
}
|
||||
|
||||
public static Field<Float, Float> forFloat(String str, int i) {
|
||||
return new Field<>(3, false, 3, false, str, i, null, null);
|
||||
}
|
||||
|
||||
public static Field<Integer, Integer> forInteger(String str, int i) {
|
||||
return new Field<>(0, false, 0, false, str, i, null, null);
|
||||
}
|
||||
|
||||
public static Field<Long, Long> forLong(String str, int i) {
|
||||
return new Field<>(2, false, 2, false, str, i, null, null);
|
||||
}
|
||||
|
||||
public static Field<String, String> forString(String str, int i) {
|
||||
return new Field<>(7, false, 7, false, str, i, null, null);
|
||||
}
|
||||
|
||||
public static Field<HashMap<String, String>, HashMap<String, String>> forStringMap(String str, int i) {
|
||||
return new Field<>(10, false, 10, false, str, i, null, null);
|
||||
}
|
||||
|
||||
public static Field<ArrayList<String>, ArrayList<String>> forStrings(String str, int i) {
|
||||
return new Field<>(7, true, 7, true, str, i, null, null);
|
||||
}
|
||||
|
||||
public static Field withConverter(String str, int i, FieldConverter<?, ?> fieldConverter, boolean z) {
|
||||
fieldConverter.zaa();
|
||||
fieldConverter.zab();
|
||||
return new Field(7, z, 0, false, str, i, null, fieldConverter);
|
||||
}
|
||||
|
||||
public int getSafeParcelableFieldId() {
|
||||
return this.zaf;
|
||||
}
|
||||
|
||||
public final String toString() {
|
||||
Objects.ToStringHelper toStringHelperAdd = Objects.toStringHelper(this).add("versionCode", Integer.valueOf(this.zai)).add("typeIn", Integer.valueOf(this.zaa)).add("typeInArray", Boolean.valueOf(this.zab)).add("typeOut", Integer.valueOf(this.zac)).add("typeOutArray", Boolean.valueOf(this.zad)).add("outputFieldName", this.zae).add("safeParcelFieldId", Integer.valueOf(this.zaf)).add("concreteTypeName", zag());
|
||||
Class cls = this.zag;
|
||||
if (cls != null) {
|
||||
toStringHelperAdd.add("concreteType.class", cls.getCanonicalName());
|
||||
}
|
||||
FieldConverter fieldConverter = this.zak;
|
||||
if (fieldConverter != null) {
|
||||
toStringHelperAdd.add("converterName", fieldConverter.getClass().getCanonicalName());
|
||||
}
|
||||
return toStringHelperAdd.toString();
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int i2 = this.zai;
|
||||
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, i2);
|
||||
SafeParcelWriter.writeInt(parcel, 2, this.zaa);
|
||||
SafeParcelWriter.writeBoolean(parcel, 3, this.zab);
|
||||
SafeParcelWriter.writeInt(parcel, 4, this.zac);
|
||||
SafeParcelWriter.writeBoolean(parcel, 5, this.zad);
|
||||
SafeParcelWriter.writeString(parcel, 6, this.zae, false);
|
||||
SafeParcelWriter.writeInt(parcel, 7, getSafeParcelableFieldId());
|
||||
SafeParcelWriter.writeString(parcel, 8, zag(), false);
|
||||
SafeParcelWriter.writeParcelable(parcel, 9, zaa(), i, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
|
||||
}
|
||||
|
||||
final com.google.android.gms.common.server.converter.zaa zaa() {
|
||||
FieldConverter fieldConverter = this.zak;
|
||||
if (fieldConverter == null) {
|
||||
return null;
|
||||
}
|
||||
return com.google.android.gms.common.server.converter.zaa.zaa(fieldConverter);
|
||||
}
|
||||
|
||||
public final Field zab() {
|
||||
return new Field(this.zai, this.zaa, this.zab, this.zac, this.zad, this.zae, this.zaf, this.zah, zaa());
|
||||
}
|
||||
|
||||
public final FastJsonResponse zad() throws IllegalAccessException, InstantiationException {
|
||||
Preconditions.checkNotNull(this.zag);
|
||||
Class cls = this.zag;
|
||||
if (cls != SafeParcelResponse.class) {
|
||||
return (FastJsonResponse) cls.newInstance();
|
||||
}
|
||||
Preconditions.checkNotNull(this.zah);
|
||||
Preconditions.checkNotNull(this.zaj, "The field mapping dictionary must be set if the concrete type is a SafeParcelResponse object.");
|
||||
return new SafeParcelResponse(this.zaj, this.zah);
|
||||
}
|
||||
|
||||
public final Object zae(Object obj) {
|
||||
Preconditions.checkNotNull(this.zak);
|
||||
return Preconditions.checkNotNull(this.zak.zac(obj));
|
||||
}
|
||||
|
||||
public final Object zaf(Object obj) {
|
||||
Preconditions.checkNotNull(this.zak);
|
||||
return this.zak.zad(obj);
|
||||
}
|
||||
|
||||
final String zag() {
|
||||
String str = this.zah;
|
||||
if (str == null) {
|
||||
return null;
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
public final Map zah() {
|
||||
Preconditions.checkNotNull(this.zah);
|
||||
Preconditions.checkNotNull(this.zaj);
|
||||
return (Map) Preconditions.checkNotNull(this.zaj.zab(this.zah));
|
||||
}
|
||||
|
||||
public final void zai(zan zanVar) {
|
||||
this.zaj = zanVar;
|
||||
}
|
||||
|
||||
public final boolean zaj() {
|
||||
return this.zak != null;
|
||||
}
|
||||
|
||||
protected Field(int i, boolean z, int i2, boolean z2, String str, int i3, Class cls, FieldConverter fieldConverter) {
|
||||
this.zai = 1;
|
||||
this.zaa = i;
|
||||
this.zab = z;
|
||||
this.zac = i2;
|
||||
this.zad = z2;
|
||||
this.zae = str;
|
||||
this.zaf = i3;
|
||||
this.zag = cls;
|
||||
if (cls == null) {
|
||||
this.zah = null;
|
||||
} else {
|
||||
this.zah = cls.getCanonicalName();
|
||||
}
|
||||
this.zak = fieldConverter;
|
||||
}
|
||||
}
|
||||
|
||||
protected Object getFieldValue(Field field) {
|
||||
String str = field.zae;
|
||||
if (field.zag == null) {
|
||||
return getValueObject(str);
|
||||
}
|
||||
Preconditions.checkState(getValueObject(str) == null, "Concrete field shouldn't be value object: %s", field.zae);
|
||||
boolean z = field.zad;
|
||||
try {
|
||||
return getClass().getMethod("get" + Character.toUpperCase(str.charAt(0)) + str.substring(1), new Class[0]).invoke(this, new Object[0]);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean isFieldSet(Field field) {
|
||||
if (field.zac != 11) {
|
||||
return isPrimitiveFieldSet(field.zae);
|
||||
}
|
||||
boolean z = field.zad;
|
||||
String str = field.zae;
|
||||
if (z) {
|
||||
throw new UnsupportedOperationException("Concrete type arrays not supported");
|
||||
}
|
||||
throw new UnsupportedOperationException("Concrete types not supported");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,660 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import android.util.Log;
|
||||
import com.google.android.gms.common.server.response.FastJsonResponse;
|
||||
import com.google.errorprone.annotations.ResultIgnorabilityUnspecified;
|
||||
import io.ktor.util.date.GMTDateParser;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Map;
|
||||
import java.util.Stack;
|
||||
import kotlinx.serialization.json.internal.AbstractJsonLexerKt;
|
||||
import okio.internal.Buffer;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public class FastParser<T extends FastJsonResponse> {
|
||||
private static final char[] zaa = {AbstractJsonLexerKt.UNICODE_ESC, 'l', 'l'};
|
||||
private static final char[] zab = {'r', AbstractJsonLexerKt.UNICODE_ESC, 'e'};
|
||||
private static final char[] zac = {'r', AbstractJsonLexerKt.UNICODE_ESC, 'e', '\"'};
|
||||
private static final char[] zad = {'a', 'l', GMTDateParser.SECONDS, 'e'};
|
||||
private static final char[] zae = {'a', 'l', GMTDateParser.SECONDS, 'e', '\"'};
|
||||
private static final char[] zaf = {'\n'};
|
||||
private static final zai zag = new zaa();
|
||||
private static final zai zah = new zab();
|
||||
private static final zai zai = new zac();
|
||||
private static final zai zaj = new zad();
|
||||
private static final zai zak = new zae();
|
||||
private static final zai zal = new zaf();
|
||||
private static final zai zam = new zag();
|
||||
private static final zai zan = new zah();
|
||||
private final char[] zao = new char[1];
|
||||
private final char[] zap = new char[32];
|
||||
private final char[] zaq = new char[1024];
|
||||
private final StringBuilder zar = new StringBuilder(32);
|
||||
private final StringBuilder zas = new StringBuilder(1024);
|
||||
private final Stack zat = new Stack();
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
public static class ParseException extends Exception {
|
||||
public ParseException(String str) {
|
||||
super(str);
|
||||
}
|
||||
|
||||
public ParseException(String str, Throwable th) {
|
||||
super("Error instantiating inner object", th);
|
||||
}
|
||||
|
||||
public ParseException(Throwable th) {
|
||||
super(th);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x002a, code lost:
|
||||
|
||||
throw new com.google.android.gms.common.server.response.FastParser.ParseException("Unexpected control character while reading string");
|
||||
*/
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
private static final java.lang.String zaA(java.io.BufferedReader r8, char[] r9, java.lang.StringBuilder r10, char[] r11) throws com.google.android.gms.common.server.response.FastParser.ParseException, java.io.IOException {
|
||||
/*
|
||||
r0 = 0
|
||||
r10.setLength(r0)
|
||||
int r1 = r9.length
|
||||
r8.mark(r1)
|
||||
r1 = r0
|
||||
r2 = r1
|
||||
La:
|
||||
int r3 = r8.read(r9)
|
||||
r4 = -1
|
||||
if (r3 == r4) goto L60
|
||||
r4 = r0
|
||||
L12:
|
||||
if (r4 >= r3) goto L58
|
||||
char r5 = r9[r4]
|
||||
boolean r6 = java.lang.Character.isISOControl(r5)
|
||||
if (r6 == 0) goto L2b
|
||||
if (r11 == 0) goto L23
|
||||
char r6 = r11[r0]
|
||||
if (r6 != r5) goto L23
|
||||
goto L2b
|
||||
L23:
|
||||
com.google.android.gms.common.server.response.FastParser$ParseException r8 = new com.google.android.gms.common.server.response.FastParser$ParseException
|
||||
java.lang.String r9 = "Unexpected control character while reading string"
|
||||
r8.<init>(r9)
|
||||
throw r8
|
||||
L2b:
|
||||
int r6 = r4 + 1
|
||||
r7 = 34
|
||||
if (r5 != r7) goto L4d
|
||||
if (r1 != 0) goto L55
|
||||
r10.append(r9, r0, r4)
|
||||
r8.reset()
|
||||
long r0 = (long) r6
|
||||
r8.skip(r0)
|
||||
if (r2 == 0) goto L48
|
||||
java.lang.String r8 = r10.toString()
|
||||
java.lang.String r8 = com.google.android.gms.common.util.JsonUtils.unescapeString(r8)
|
||||
return r8
|
||||
L48:
|
||||
java.lang.String r8 = r10.toString()
|
||||
return r8
|
||||
L4d:
|
||||
r4 = 92
|
||||
if (r5 != r4) goto L55
|
||||
r1 = r1 ^ 1
|
||||
r2 = 1
|
||||
goto L56
|
||||
L55:
|
||||
r1 = r0
|
||||
L56:
|
||||
r4 = r6
|
||||
goto L12
|
||||
L58:
|
||||
r10.append(r9, r0, r3)
|
||||
int r3 = r9.length
|
||||
r8.mark(r3)
|
||||
goto La
|
||||
L60:
|
||||
com.google.android.gms.common.server.response.FastParser$ParseException r8 = new com.google.android.gms.common.server.response.FastParser$ParseException
|
||||
java.lang.String r9 = "Unexpected EOF while parsing string"
|
||||
r8.<init>(r9)
|
||||
throw r8
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.common.server.response.FastParser.zaA(java.io.BufferedReader, char[], java.lang.StringBuilder, char[]):java.lang.String");
|
||||
}
|
||||
|
||||
private final char zai(BufferedReader bufferedReader) throws ParseException, IOException {
|
||||
if (bufferedReader.read(this.zao) != -1) {
|
||||
while (Character.isWhitespace(this.zao[0])) {
|
||||
if (bufferedReader.read(this.zao) == -1) {
|
||||
}
|
||||
}
|
||||
return this.zao[0];
|
||||
}
|
||||
return (char) 0;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final double zaj(BufferedReader bufferedReader) throws ParseException, IOException {
|
||||
int iZam = zam(bufferedReader, this.zaq);
|
||||
if (iZam == 0) {
|
||||
return 0.0d;
|
||||
}
|
||||
return Double.parseDouble(new String(this.zaq, 0, iZam));
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final float zak(BufferedReader bufferedReader) throws ParseException, IOException {
|
||||
int iZam = zam(bufferedReader, this.zaq);
|
||||
if (iZam == 0) {
|
||||
return 0.0f;
|
||||
}
|
||||
return Float.parseFloat(new String(this.zaq, 0, iZam));
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final int zal(BufferedReader bufferedReader) throws ParseException, IOException {
|
||||
int i;
|
||||
int i2;
|
||||
int iZam = zam(bufferedReader, this.zaq);
|
||||
if (iZam == 0) {
|
||||
return 0;
|
||||
}
|
||||
char[] cArr = this.zaq;
|
||||
if (iZam <= 0) {
|
||||
throw new ParseException("No number to parse");
|
||||
}
|
||||
char c = cArr[0];
|
||||
int i3 = c == '-' ? Integer.MIN_VALUE : -2147483647;
|
||||
int i4 = c == '-' ? 1 : 0;
|
||||
if (i4 < iZam) {
|
||||
i2 = i4 + 1;
|
||||
int iDigit = Character.digit(cArr[i4], 10);
|
||||
if (iDigit < 0) {
|
||||
throw new ParseException("Unexpected non-digit character");
|
||||
}
|
||||
i = -iDigit;
|
||||
} else {
|
||||
i = 0;
|
||||
i2 = i4;
|
||||
}
|
||||
while (i2 < iZam) {
|
||||
int i5 = i2 + 1;
|
||||
int iDigit2 = Character.digit(cArr[i2], 10);
|
||||
if (iDigit2 < 0) {
|
||||
throw new ParseException("Unexpected non-digit character");
|
||||
}
|
||||
if (i < -214748364) {
|
||||
throw new ParseException("Number too large");
|
||||
}
|
||||
int i6 = i * 10;
|
||||
if (i6 < i3 + iDigit2) {
|
||||
throw new ParseException("Number too large");
|
||||
}
|
||||
i = i6 - iDigit2;
|
||||
i2 = i5;
|
||||
}
|
||||
if (i4 == 0) {
|
||||
return -i;
|
||||
}
|
||||
if (i2 > 1) {
|
||||
return i;
|
||||
}
|
||||
throw new ParseException("No digits to parse");
|
||||
}
|
||||
|
||||
@ResultIgnorabilityUnspecified
|
||||
private final int zam(BufferedReader bufferedReader, char[] cArr) throws ParseException, IOException {
|
||||
int i;
|
||||
char cZai = zai(bufferedReader);
|
||||
if (cZai == 0) {
|
||||
throw new ParseException("Unexpected EOF");
|
||||
}
|
||||
if (cZai == ',') {
|
||||
throw new ParseException("Missing value");
|
||||
}
|
||||
if (cZai == 'n') {
|
||||
zax(bufferedReader, zaa);
|
||||
return 0;
|
||||
}
|
||||
bufferedReader.mark(1024);
|
||||
if (cZai == '\"') {
|
||||
i = 0;
|
||||
boolean z = false;
|
||||
while (i < 1024 && bufferedReader.read(cArr, i, 1) != -1) {
|
||||
char c = cArr[i];
|
||||
if (Character.isISOControl(c)) {
|
||||
throw new ParseException("Unexpected control character while reading string");
|
||||
}
|
||||
int i2 = i + 1;
|
||||
if (c != '\"') {
|
||||
if (c == '\\') {
|
||||
z = !z;
|
||||
}
|
||||
i = i2;
|
||||
} else if (!z) {
|
||||
bufferedReader.reset();
|
||||
bufferedReader.skip(i2);
|
||||
return i;
|
||||
}
|
||||
z = false;
|
||||
i = i2;
|
||||
}
|
||||
} else {
|
||||
cArr[0] = cZai;
|
||||
i = 1;
|
||||
while (i < 1024 && bufferedReader.read(cArr, i, 1) != -1) {
|
||||
char c2 = cArr[i];
|
||||
if (c2 == '}' || c2 == ',' || Character.isWhitespace(c2) || cArr[i] == ']') {
|
||||
bufferedReader.reset();
|
||||
bufferedReader.skip(i - 1);
|
||||
cArr[i] = 0;
|
||||
return i;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
if (i == 1024) {
|
||||
throw new ParseException("Absurdly long value");
|
||||
}
|
||||
throw new ParseException("Unexpected EOF");
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final long zan(BufferedReader bufferedReader) throws ParseException, IOException {
|
||||
long j;
|
||||
int i;
|
||||
int iZam = zam(bufferedReader, this.zaq);
|
||||
if (iZam == 0) {
|
||||
return 0L;
|
||||
}
|
||||
char[] cArr = this.zaq;
|
||||
if (iZam <= 0) {
|
||||
throw new ParseException("No number to parse");
|
||||
}
|
||||
char c = cArr[0];
|
||||
long j2 = c == '-' ? Long.MIN_VALUE : -9223372036854775807L;
|
||||
int i2 = c == '-' ? 1 : 0;
|
||||
if (i2 < iZam) {
|
||||
i = i2 + 1;
|
||||
int iDigit = Character.digit(cArr[i2], 10);
|
||||
if (iDigit < 0) {
|
||||
throw new ParseException("Unexpected non-digit character");
|
||||
}
|
||||
j = -iDigit;
|
||||
} else {
|
||||
j = 0;
|
||||
i = i2;
|
||||
}
|
||||
while (i < iZam) {
|
||||
int i3 = i + 1;
|
||||
int iDigit2 = Character.digit(cArr[i], 10);
|
||||
if (iDigit2 < 0) {
|
||||
throw new ParseException("Unexpected non-digit character");
|
||||
}
|
||||
if (j < Buffer.OVERFLOW_ZONE) {
|
||||
throw new ParseException("Number too large");
|
||||
}
|
||||
long j3 = j * 10;
|
||||
int i4 = iZam;
|
||||
long j4 = iDigit2;
|
||||
if (j3 < j2 + j4) {
|
||||
throw new ParseException("Number too large");
|
||||
}
|
||||
j = j3 - j4;
|
||||
iZam = i4;
|
||||
i = i3;
|
||||
}
|
||||
if (i2 == 0) {
|
||||
return -j;
|
||||
}
|
||||
if (i > 1) {
|
||||
return j;
|
||||
}
|
||||
throw new ParseException("No digits to parse");
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final String zao(BufferedReader bufferedReader) throws ParseException, IOException {
|
||||
return zap(bufferedReader, this.zap, this.zar, null);
|
||||
}
|
||||
|
||||
private final String zap(BufferedReader bufferedReader, char[] cArr, StringBuilder sb, char[] cArr2) throws ParseException, IOException {
|
||||
char cZai = zai(bufferedReader);
|
||||
if (cZai == '\"') {
|
||||
return zaA(bufferedReader, cArr, sb, cArr2);
|
||||
}
|
||||
if (cZai != 'n') {
|
||||
throw new ParseException("Expected string");
|
||||
}
|
||||
zax(bufferedReader, zaa);
|
||||
return null;
|
||||
}
|
||||
|
||||
@ResultIgnorabilityUnspecified
|
||||
private final String zaq(BufferedReader bufferedReader) throws ParseException, IOException {
|
||||
this.zat.push(2);
|
||||
char cZai = zai(bufferedReader);
|
||||
if (cZai == '\"') {
|
||||
this.zat.push(3);
|
||||
String strZaA = zaA(bufferedReader, this.zap, this.zar, null);
|
||||
zaw(3);
|
||||
if (zai(bufferedReader) == ':') {
|
||||
return strZaA;
|
||||
}
|
||||
throw new ParseException("Expected key/value separator");
|
||||
}
|
||||
if (cZai == ']') {
|
||||
zaw(2);
|
||||
zaw(1);
|
||||
zaw(5);
|
||||
return null;
|
||||
}
|
||||
if (cZai == '}') {
|
||||
zaw(2);
|
||||
return null;
|
||||
}
|
||||
throw new ParseException("Unexpected token: " + cZai);
|
||||
}
|
||||
|
||||
private final String zar(BufferedReader bufferedReader) throws ParseException, IOException {
|
||||
bufferedReader.mark(1024);
|
||||
char cZai = zai(bufferedReader);
|
||||
int i = 1;
|
||||
if (cZai == '\"') {
|
||||
if (bufferedReader.read(this.zao) == -1) {
|
||||
throw new ParseException("Unexpected EOF while parsing string");
|
||||
}
|
||||
char c = this.zao[0];
|
||||
boolean z = false;
|
||||
do {
|
||||
if (c == '\"') {
|
||||
if (z) {
|
||||
c = '\"';
|
||||
z = true;
|
||||
}
|
||||
}
|
||||
z = c == '\\' ? !z : false;
|
||||
if (bufferedReader.read(this.zao) == -1) {
|
||||
throw new ParseException("Unexpected EOF while parsing string");
|
||||
}
|
||||
c = this.zao[0];
|
||||
} while (!Character.isISOControl(c));
|
||||
throw new ParseException("Unexpected control character while reading string");
|
||||
}
|
||||
if (cZai == ',') {
|
||||
throw new ParseException("Missing value");
|
||||
}
|
||||
if (cZai == '[') {
|
||||
this.zat.push(5);
|
||||
bufferedReader.mark(32);
|
||||
if (zai(bufferedReader) == ']') {
|
||||
zaw(5);
|
||||
} else {
|
||||
bufferedReader.reset();
|
||||
boolean z2 = false;
|
||||
boolean z3 = false;
|
||||
while (i > 0) {
|
||||
char cZai2 = zai(bufferedReader);
|
||||
if (cZai2 == 0) {
|
||||
throw new ParseException("Unexpected EOF while parsing array");
|
||||
}
|
||||
if (Character.isISOControl(cZai2)) {
|
||||
throw new ParseException("Unexpected control character while reading array");
|
||||
}
|
||||
if (cZai2 == '\"') {
|
||||
if (!z3) {
|
||||
z2 = !z2;
|
||||
}
|
||||
cZai2 = '\"';
|
||||
}
|
||||
if (cZai2 == '[') {
|
||||
if (!z2) {
|
||||
i++;
|
||||
}
|
||||
cZai2 = '[';
|
||||
}
|
||||
if (cZai2 == ']' && !z2) {
|
||||
i--;
|
||||
}
|
||||
z3 = (cZai2 == '\\' && z2) ? !z3 : false;
|
||||
}
|
||||
zaw(5);
|
||||
}
|
||||
} else if (cZai != '{') {
|
||||
bufferedReader.reset();
|
||||
zam(bufferedReader, this.zaq);
|
||||
} else {
|
||||
this.zat.push(1);
|
||||
bufferedReader.mark(32);
|
||||
char cZai3 = zai(bufferedReader);
|
||||
if (cZai3 == '}') {
|
||||
zaw(1);
|
||||
} else {
|
||||
if (cZai3 != '\"') {
|
||||
throw new ParseException("Unexpected token " + cZai3);
|
||||
}
|
||||
bufferedReader.reset();
|
||||
zaq(bufferedReader);
|
||||
while (zar(bufferedReader) != null) {
|
||||
}
|
||||
zaw(1);
|
||||
}
|
||||
}
|
||||
char cZai4 = zai(bufferedReader);
|
||||
if (cZai4 == ',') {
|
||||
zaw(2);
|
||||
return zaq(bufferedReader);
|
||||
}
|
||||
if (cZai4 == '}') {
|
||||
zaw(2);
|
||||
return null;
|
||||
}
|
||||
throw new ParseException("Unexpected token " + cZai4);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final BigDecimal zas(BufferedReader bufferedReader) throws ParseException, IOException {
|
||||
int iZam = zam(bufferedReader, this.zaq);
|
||||
if (iZam == 0) {
|
||||
return null;
|
||||
}
|
||||
return new BigDecimal(new String(this.zaq, 0, iZam));
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final BigInteger zat(BufferedReader bufferedReader) throws ParseException, IOException {
|
||||
int iZam = zam(bufferedReader, this.zaq);
|
||||
if (iZam == 0) {
|
||||
return null;
|
||||
}
|
||||
return new BigInteger(new String(this.zaq, 0, iZam));
|
||||
}
|
||||
|
||||
private final ArrayList zau(BufferedReader bufferedReader, zai zaiVar) throws ParseException, IOException {
|
||||
char cZai = zai(bufferedReader);
|
||||
if (cZai == 'n') {
|
||||
zax(bufferedReader, zaa);
|
||||
return null;
|
||||
}
|
||||
if (cZai != '[') {
|
||||
throw new ParseException("Expected start of array");
|
||||
}
|
||||
this.zat.push(5);
|
||||
ArrayList arrayList = new ArrayList();
|
||||
while (true) {
|
||||
bufferedReader.mark(1024);
|
||||
char cZai2 = zai(bufferedReader);
|
||||
if (cZai2 == 0) {
|
||||
throw new ParseException("Unexpected EOF");
|
||||
}
|
||||
if (cZai2 != ',') {
|
||||
if (cZai2 == ']') {
|
||||
zaw(5);
|
||||
return arrayList;
|
||||
}
|
||||
bufferedReader.reset();
|
||||
arrayList.add(zaiVar.zaa(this, bufferedReader));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private final ArrayList zav(BufferedReader bufferedReader, FastJsonResponse.Field field) throws ParseException, IOException {
|
||||
ArrayList arrayList = new ArrayList();
|
||||
char cZai = zai(bufferedReader);
|
||||
if (cZai == ']') {
|
||||
zaw(5);
|
||||
return arrayList;
|
||||
}
|
||||
if (cZai == 'n') {
|
||||
zax(bufferedReader, zaa);
|
||||
zaw(5);
|
||||
return null;
|
||||
}
|
||||
if (cZai != '{') {
|
||||
throw new ParseException("Unexpected token: " + cZai);
|
||||
}
|
||||
this.zat.push(1);
|
||||
while (true) {
|
||||
try {
|
||||
FastJsonResponse fastJsonResponseZad = field.zad();
|
||||
if (!zaz(bufferedReader, fastJsonResponseZad)) {
|
||||
return arrayList;
|
||||
}
|
||||
arrayList.add(fastJsonResponseZad);
|
||||
char cZai2 = zai(bufferedReader);
|
||||
if (cZai2 != ',') {
|
||||
if (cZai2 == ']') {
|
||||
zaw(5);
|
||||
return arrayList;
|
||||
}
|
||||
throw new ParseException("Unexpected token: " + cZai2);
|
||||
}
|
||||
if (zai(bufferedReader) != '{') {
|
||||
throw new ParseException("Expected start of next object in array");
|
||||
}
|
||||
this.zat.push(1);
|
||||
} catch (IllegalAccessException e) {
|
||||
throw new ParseException("Error instantiating inner object", e);
|
||||
} catch (InstantiationException e2) {
|
||||
throw new ParseException("Error instantiating inner object", e2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private final void zaw(int i) throws ParseException {
|
||||
if (this.zat.isEmpty()) {
|
||||
throw new ParseException("Expected state " + i + " but had empty stack");
|
||||
}
|
||||
int iIntValue = ((Integer) this.zat.pop()).intValue();
|
||||
if (iIntValue == i) {
|
||||
return;
|
||||
}
|
||||
throw new ParseException("Expected state " + i + " but had " + iIntValue);
|
||||
}
|
||||
|
||||
private final void zax(BufferedReader bufferedReader, char[] cArr) throws ParseException, IOException {
|
||||
int i = 0;
|
||||
while (true) {
|
||||
int length = cArr.length;
|
||||
if (i >= length) {
|
||||
return;
|
||||
}
|
||||
int i2 = bufferedReader.read(this.zap, 0, length - i);
|
||||
if (i2 == -1) {
|
||||
throw new ParseException("Unexpected EOF");
|
||||
}
|
||||
for (int i3 = 0; i3 < i2; i3++) {
|
||||
if (cArr[i3 + i] != this.zap[i3]) {
|
||||
throw new ParseException("Unexpected character");
|
||||
}
|
||||
}
|
||||
i += i2;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final boolean zay(BufferedReader bufferedReader, boolean z) throws ParseException, IOException {
|
||||
char cZai = zai(bufferedReader);
|
||||
if (cZai == '\"') {
|
||||
if (z) {
|
||||
throw new ParseException("No boolean value found in string");
|
||||
}
|
||||
return zay(bufferedReader, true);
|
||||
}
|
||||
if (cZai == 'f') {
|
||||
zax(bufferedReader, z ? zae : zad);
|
||||
return false;
|
||||
}
|
||||
if (cZai == 'n') {
|
||||
zax(bufferedReader, zaa);
|
||||
return false;
|
||||
}
|
||||
if (cZai == 't') {
|
||||
zax(bufferedReader, z ? zac : zab);
|
||||
return true;
|
||||
}
|
||||
throw new ParseException("Unexpected token: " + cZai);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:129:0x0266 A[SYNTHETIC] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:131:0x024d A[SYNTHETIC] */
|
||||
@com.google.errorprone.annotations.ResultIgnorabilityUnspecified
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
private final boolean zaz(java.io.BufferedReader r17, com.google.android.gms.common.server.response.FastJsonResponse r18) throws com.google.android.gms.common.server.response.FastParser.ParseException, java.io.IOException {
|
||||
/*
|
||||
Method dump skipped, instruction units count: 658
|
||||
To view this dump change 'Code comments level' option to 'DEBUG'
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.common.server.response.FastParser.zaz(java.io.BufferedReader, com.google.android.gms.common.server.response.FastJsonResponse):boolean");
|
||||
}
|
||||
|
||||
public void parse(InputStream inputStream, T t) throws ParseException {
|
||||
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream), 1024);
|
||||
try {
|
||||
try {
|
||||
this.zat.push(0);
|
||||
char cZai = zai(bufferedReader);
|
||||
if (cZai == 0) {
|
||||
throw new ParseException("No data to parse");
|
||||
}
|
||||
if (cZai == '[') {
|
||||
this.zat.push(5);
|
||||
Map<String, FastJsonResponse.Field<?, ?>> fieldMappings = t.getFieldMappings();
|
||||
if (fieldMappings.size() != 1) {
|
||||
throw new ParseException("Object array response class must have a single Field");
|
||||
}
|
||||
FastJsonResponse.Field<?, ?> value = fieldMappings.entrySet().iterator().next().getValue();
|
||||
t.addConcreteTypeArrayInternal(value, value.zae, zav(bufferedReader, value));
|
||||
} else {
|
||||
if (cZai != '{') {
|
||||
throw new ParseException("Unexpected token: " + cZai);
|
||||
}
|
||||
this.zat.push(1);
|
||||
zaz(bufferedReader, t);
|
||||
}
|
||||
zaw(0);
|
||||
} catch (IOException e) {
|
||||
throw new ParseException(e);
|
||||
}
|
||||
} finally {
|
||||
try {
|
||||
bufferedReader.close();
|
||||
} catch (IOException unused) {
|
||||
Log.w("FastParser", "Failed to close reader while parsing.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import android.os.Parcel;
|
||||
import com.google.android.gms.common.internal.Objects;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
|
||||
import com.google.android.gms.common.server.response.FastJsonResponse;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public abstract class FastSafeParcelableJsonResponse extends FastJsonResponse implements SafeParcelable {
|
||||
@Override // android.os.Parcelable
|
||||
public final int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (obj == null) {
|
||||
return false;
|
||||
}
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!getClass().isInstance(obj)) {
|
||||
return false;
|
||||
}
|
||||
FastJsonResponse fastJsonResponse = (FastJsonResponse) obj;
|
||||
for (FastJsonResponse.Field<?, ?> field : getFieldMappings().values()) {
|
||||
if (isFieldSet(field)) {
|
||||
if (!fastJsonResponse.isFieldSet(field) || !Objects.equal(getFieldValue(field), fastJsonResponse.getFieldValue(field))) {
|
||||
return false;
|
||||
}
|
||||
} else if (fastJsonResponse.isFieldSet(field)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
public Object getValueObject(String str) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int iHashCode = 0;
|
||||
for (FastJsonResponse.Field<?, ?> field : getFieldMappings().values()) {
|
||||
if (isFieldSet(field)) {
|
||||
iHashCode = (iHashCode * 31) + Preconditions.checkNotNull(getFieldValue(field)).hashCode();
|
||||
}
|
||||
}
|
||||
return iHashCode;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
public boolean isPrimitiveFieldSet(String str) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public byte[] toByteArray() {
|
||||
Parcel parcelObtain = Parcel.obtain();
|
||||
writeToParcel(parcelObtain, 0);
|
||||
byte[] bArrMarshall = parcelObtain.marshall();
|
||||
parcelObtain.recycle();
|
||||
return bArrMarshall;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,580 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.util.SparseArray;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
|
||||
import com.google.android.gms.common.server.response.FastJsonResponse;
|
||||
import com.google.android.gms.common.util.ArrayUtils;
|
||||
import com.google.android.gms.common.util.Base64Utils;
|
||||
import com.google.android.gms.common.util.JsonUtils;
|
||||
import com.google.android.gms.common.util.MapUtils;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import kotlinx.serialization.json.internal.AbstractJsonLexerKt;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public class SafeParcelResponse extends FastSafeParcelableJsonResponse {
|
||||
public static final Parcelable.Creator<SafeParcelResponse> CREATOR = new zaq();
|
||||
private final int zaa;
|
||||
private final Parcel zab;
|
||||
private final int zac;
|
||||
private final zan zad;
|
||||
private final String zae;
|
||||
private int zaf;
|
||||
private int zag;
|
||||
|
||||
SafeParcelResponse(int i, Parcel parcel, zan zanVar) {
|
||||
this.zaa = i;
|
||||
this.zab = (Parcel) Preconditions.checkNotNull(parcel);
|
||||
this.zac = 2;
|
||||
this.zad = zanVar;
|
||||
this.zae = zanVar == null ? null : zanVar.zaa();
|
||||
this.zaf = 2;
|
||||
}
|
||||
|
||||
public static <T extends FastJsonResponse & SafeParcelable> SafeParcelResponse from(T t) {
|
||||
String str = (String) Preconditions.checkNotNull(t.getClass().getCanonicalName());
|
||||
zan zanVar = new zan(t.getClass());
|
||||
zaF(zanVar, t);
|
||||
zanVar.zac();
|
||||
zanVar.zad();
|
||||
return new SafeParcelResponse(t, zanVar, str);
|
||||
}
|
||||
|
||||
private static void zaF(zan zanVar, FastJsonResponse fastJsonResponse) {
|
||||
Class<?> cls = fastJsonResponse.getClass();
|
||||
if (zanVar.zaf(cls)) {
|
||||
return;
|
||||
}
|
||||
Map<String, FastJsonResponse.Field<?, ?>> fieldMappings = fastJsonResponse.getFieldMappings();
|
||||
zanVar.zae(cls, fieldMappings);
|
||||
Iterator<String> it = fieldMappings.keySet().iterator();
|
||||
while (it.hasNext()) {
|
||||
FastJsonResponse.Field<?, ?> field = fieldMappings.get(it.next());
|
||||
Class cls2 = field.zag;
|
||||
if (cls2 != null) {
|
||||
try {
|
||||
zaF(zanVar, (FastJsonResponse) cls2.newInstance());
|
||||
} catch (IllegalAccessException e) {
|
||||
throw new IllegalStateException("Could not access object of type ".concat(String.valueOf(((Class) Preconditions.checkNotNull(field.zag)).getCanonicalName())), e);
|
||||
} catch (InstantiationException e2) {
|
||||
throw new IllegalStateException("Could not instantiate an object of type ".concat(String.valueOf(((Class) Preconditions.checkNotNull(field.zag)).getCanonicalName())), e2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private final void zaH(StringBuilder sb, Map map, Parcel parcel) {
|
||||
SparseArray sparseArray = new SparseArray();
|
||||
for (Map.Entry entry : map.entrySet()) {
|
||||
sparseArray.put(((FastJsonResponse.Field) entry.getValue()).getSafeParcelableFieldId(), entry);
|
||||
}
|
||||
sb.append(AbstractJsonLexerKt.BEGIN_OBJ);
|
||||
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
boolean z = false;
|
||||
while (parcel.dataPosition() < iValidateObjectHeader) {
|
||||
int header = SafeParcelReader.readHeader(parcel);
|
||||
Map.Entry entry2 = (Map.Entry) sparseArray.get(SafeParcelReader.getFieldId(header));
|
||||
if (entry2 != null) {
|
||||
if (z) {
|
||||
sb.append(",");
|
||||
}
|
||||
String str = (String) entry2.getKey();
|
||||
FastJsonResponse.Field field = (FastJsonResponse.Field) entry2.getValue();
|
||||
sb.append("\"");
|
||||
sb.append(str);
|
||||
sb.append("\":");
|
||||
if (field.zaj()) {
|
||||
int i = field.zac;
|
||||
switch (i) {
|
||||
case 0:
|
||||
zaJ(sb, field, zaD(field, Integer.valueOf(SafeParcelReader.readInt(parcel, header))));
|
||||
break;
|
||||
case 1:
|
||||
zaJ(sb, field, zaD(field, SafeParcelReader.createBigInteger(parcel, header)));
|
||||
break;
|
||||
case 2:
|
||||
zaJ(sb, field, zaD(field, Long.valueOf(SafeParcelReader.readLong(parcel, header))));
|
||||
break;
|
||||
case 3:
|
||||
zaJ(sb, field, zaD(field, Float.valueOf(SafeParcelReader.readFloat(parcel, header))));
|
||||
break;
|
||||
case 4:
|
||||
zaJ(sb, field, zaD(field, Double.valueOf(SafeParcelReader.readDouble(parcel, header))));
|
||||
break;
|
||||
case 5:
|
||||
zaJ(sb, field, zaD(field, SafeParcelReader.createBigDecimal(parcel, header)));
|
||||
break;
|
||||
case 6:
|
||||
zaJ(sb, field, zaD(field, Boolean.valueOf(SafeParcelReader.readBoolean(parcel, header))));
|
||||
break;
|
||||
case 7:
|
||||
zaJ(sb, field, zaD(field, SafeParcelReader.createString(parcel, header)));
|
||||
break;
|
||||
case 8:
|
||||
case 9:
|
||||
zaJ(sb, field, zaD(field, SafeParcelReader.createByteArray(parcel, header)));
|
||||
break;
|
||||
case 10:
|
||||
Bundle bundleCreateBundle = SafeParcelReader.createBundle(parcel, header);
|
||||
HashMap map2 = new HashMap();
|
||||
for (String str2 : bundleCreateBundle.keySet()) {
|
||||
map2.put(str2, (String) Preconditions.checkNotNull(bundleCreateBundle.getString(str2)));
|
||||
}
|
||||
zaJ(sb, field, zaD(field, map2));
|
||||
break;
|
||||
case 11:
|
||||
throw new IllegalArgumentException("Method does not accept concrete type.");
|
||||
default:
|
||||
throw new IllegalArgumentException("Unknown field out type = " + i);
|
||||
}
|
||||
} else if (field.zad) {
|
||||
sb.append("[");
|
||||
switch (field.zac) {
|
||||
case 0:
|
||||
ArrayUtils.writeArray(sb, SafeParcelReader.createIntArray(parcel, header));
|
||||
break;
|
||||
case 1:
|
||||
ArrayUtils.writeArray(sb, SafeParcelReader.createBigIntegerArray(parcel, header));
|
||||
break;
|
||||
case 2:
|
||||
ArrayUtils.writeArray(sb, SafeParcelReader.createLongArray(parcel, header));
|
||||
break;
|
||||
case 3:
|
||||
ArrayUtils.writeArray(sb, SafeParcelReader.createFloatArray(parcel, header));
|
||||
break;
|
||||
case 4:
|
||||
ArrayUtils.writeArray(sb, SafeParcelReader.createDoubleArray(parcel, header));
|
||||
break;
|
||||
case 5:
|
||||
ArrayUtils.writeArray(sb, SafeParcelReader.createBigDecimalArray(parcel, header));
|
||||
break;
|
||||
case 6:
|
||||
ArrayUtils.writeArray(sb, SafeParcelReader.createBooleanArray(parcel, header));
|
||||
break;
|
||||
case 7:
|
||||
ArrayUtils.writeStringArray(sb, SafeParcelReader.createStringArray(parcel, header));
|
||||
break;
|
||||
case 8:
|
||||
case 9:
|
||||
case 10:
|
||||
throw new UnsupportedOperationException("List of type BASE64, BASE64_URL_SAFE, or STRING_MAP is not supported");
|
||||
case 11:
|
||||
Parcel[] parcelArrCreateParcelArray = SafeParcelReader.createParcelArray(parcel, header);
|
||||
int length = parcelArrCreateParcelArray.length;
|
||||
for (int i2 = 0; i2 < length; i2++) {
|
||||
if (i2 > 0) {
|
||||
sb.append(",");
|
||||
}
|
||||
parcelArrCreateParcelArray[i2].setDataPosition(0);
|
||||
zaH(sb, field.zah(), parcelArrCreateParcelArray[i2]);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
throw new IllegalStateException("Unknown field type out.");
|
||||
}
|
||||
sb.append("]");
|
||||
} else {
|
||||
switch (field.zac) {
|
||||
case 0:
|
||||
sb.append(SafeParcelReader.readInt(parcel, header));
|
||||
break;
|
||||
case 1:
|
||||
sb.append(SafeParcelReader.createBigInteger(parcel, header));
|
||||
break;
|
||||
case 2:
|
||||
sb.append(SafeParcelReader.readLong(parcel, header));
|
||||
break;
|
||||
case 3:
|
||||
sb.append(SafeParcelReader.readFloat(parcel, header));
|
||||
break;
|
||||
case 4:
|
||||
sb.append(SafeParcelReader.readDouble(parcel, header));
|
||||
break;
|
||||
case 5:
|
||||
sb.append(SafeParcelReader.createBigDecimal(parcel, header));
|
||||
break;
|
||||
case 6:
|
||||
sb.append(SafeParcelReader.readBoolean(parcel, header));
|
||||
break;
|
||||
case 7:
|
||||
String strCreateString = SafeParcelReader.createString(parcel, header);
|
||||
sb.append("\"");
|
||||
sb.append(JsonUtils.escapeString(strCreateString));
|
||||
sb.append("\"");
|
||||
break;
|
||||
case 8:
|
||||
byte[] bArrCreateByteArray = SafeParcelReader.createByteArray(parcel, header);
|
||||
sb.append("\"");
|
||||
sb.append(Base64Utils.encode(bArrCreateByteArray));
|
||||
sb.append("\"");
|
||||
break;
|
||||
case 9:
|
||||
byte[] bArrCreateByteArray2 = SafeParcelReader.createByteArray(parcel, header);
|
||||
sb.append("\"");
|
||||
sb.append(Base64Utils.encodeUrlSafe(bArrCreateByteArray2));
|
||||
sb.append("\"");
|
||||
break;
|
||||
case 10:
|
||||
Bundle bundleCreateBundle2 = SafeParcelReader.createBundle(parcel, header);
|
||||
Set<String> setKeySet = bundleCreateBundle2.keySet();
|
||||
sb.append("{");
|
||||
boolean z2 = true;
|
||||
for (String str3 : setKeySet) {
|
||||
if (!z2) {
|
||||
sb.append(",");
|
||||
}
|
||||
sb.append("\"");
|
||||
sb.append(str3);
|
||||
sb.append("\":\"");
|
||||
sb.append(JsonUtils.escapeString(bundleCreateBundle2.getString(str3)));
|
||||
sb.append("\"");
|
||||
z2 = false;
|
||||
}
|
||||
sb.append("}");
|
||||
break;
|
||||
case 11:
|
||||
Parcel parcelCreateParcel = SafeParcelReader.createParcel(parcel, header);
|
||||
parcelCreateParcel.setDataPosition(0);
|
||||
zaH(sb, field.zah(), parcelCreateParcel);
|
||||
break;
|
||||
default:
|
||||
throw new IllegalStateException("Unknown field type out");
|
||||
}
|
||||
}
|
||||
z = true;
|
||||
}
|
||||
}
|
||||
if (parcel.dataPosition() != iValidateObjectHeader) {
|
||||
throw new SafeParcelReader.ParseException("Overread allowed size end=" + iValidateObjectHeader, parcel);
|
||||
}
|
||||
sb.append(AbstractJsonLexerKt.END_OBJ);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
public final <T extends FastJsonResponse> void addConcreteTypeArrayInternal(FastJsonResponse.Field field, String str, ArrayList<T> arrayList) {
|
||||
zaG(field);
|
||||
ArrayList arrayList2 = new ArrayList();
|
||||
((ArrayList) Preconditions.checkNotNull(arrayList)).size();
|
||||
int size = arrayList.size();
|
||||
for (int i = 0; i < size; i++) {
|
||||
arrayList2.add(((SafeParcelResponse) arrayList.get(i)).zaE());
|
||||
}
|
||||
SafeParcelWriter.writeParcelList(this.zab, field.getSafeParcelableFieldId(), arrayList2, true);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
public final <T extends FastJsonResponse> void addConcreteTypeInternal(FastJsonResponse.Field field, String str, T t) {
|
||||
zaG(field);
|
||||
SafeParcelWriter.writeParcel(this.zab, field.getSafeParcelableFieldId(), ((SafeParcelResponse) t).zaE(), true);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
public final Map<String, FastJsonResponse.Field<?, ?>> getFieldMappings() {
|
||||
zan zanVar = this.zad;
|
||||
if (zanVar == null) {
|
||||
return null;
|
||||
}
|
||||
return zanVar.zab((String) Preconditions.checkNotNull(this.zae));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastSafeParcelableJsonResponse, com.google.android.gms.common.server.response.FastJsonResponse
|
||||
public final Object getValueObject(String str) {
|
||||
throw new UnsupportedOperationException("Converting to JSON does not require this method.");
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastSafeParcelableJsonResponse, com.google.android.gms.common.server.response.FastJsonResponse
|
||||
public final boolean isPrimitiveFieldSet(String str) {
|
||||
throw new UnsupportedOperationException("Converting to JSON does not require this method.");
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
protected final void setBooleanInternal(FastJsonResponse.Field<?, ?> field, String str, boolean z) {
|
||||
zaG(field);
|
||||
SafeParcelWriter.writeBoolean(this.zab, field.getSafeParcelableFieldId(), z);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
protected final void setDecodedBytesInternal(FastJsonResponse.Field<?, ?> field, String str, byte[] bArr) {
|
||||
zaG(field);
|
||||
SafeParcelWriter.writeByteArray(this.zab, field.getSafeParcelableFieldId(), bArr, true);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
protected final void setIntegerInternal(FastJsonResponse.Field<?, ?> field, String str, int i) {
|
||||
zaG(field);
|
||||
SafeParcelWriter.writeInt(this.zab, field.getSafeParcelableFieldId(), i);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
protected final void setLongInternal(FastJsonResponse.Field<?, ?> field, String str, long j) {
|
||||
zaG(field);
|
||||
SafeParcelWriter.writeLong(this.zab, field.getSafeParcelableFieldId(), j);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
protected final void setStringInternal(FastJsonResponse.Field<?, ?> field, String str, String str2) {
|
||||
zaG(field);
|
||||
SafeParcelWriter.writeString(this.zab, field.getSafeParcelableFieldId(), str2, true);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
protected final void setStringMapInternal(FastJsonResponse.Field<?, ?> field, String str, Map<String, String> map) {
|
||||
zaG(field);
|
||||
Bundle bundle = new Bundle();
|
||||
for (String str2 : ((Map) Preconditions.checkNotNull(map)).keySet()) {
|
||||
bundle.putString(str2, map.get(str2));
|
||||
}
|
||||
SafeParcelWriter.writeBundle(this.zab, field.getSafeParcelableFieldId(), bundle, true);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
protected final void setStringsInternal(FastJsonResponse.Field<?, ?> field, String str, ArrayList<String> arrayList) {
|
||||
zaG(field);
|
||||
int size = ((ArrayList) Preconditions.checkNotNull(arrayList)).size();
|
||||
String[] strArr = new String[size];
|
||||
for (int i = 0; i < size; i++) {
|
||||
strArr[i] = arrayList.get(i);
|
||||
}
|
||||
SafeParcelWriter.writeStringArray(this.zab, field.getSafeParcelableFieldId(), strArr, true);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
public final String toString() {
|
||||
Preconditions.checkNotNull(this.zad, "Cannot convert to JSON on client side.");
|
||||
Parcel parcelZaE = zaE();
|
||||
parcelZaE.setDataPosition(0);
|
||||
StringBuilder sb = new StringBuilder(100);
|
||||
zaH(sb, (Map) Preconditions.checkNotNull(this.zad.zab((String) Preconditions.checkNotNull(this.zae))), parcelZaE);
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int i2 = this.zaa;
|
||||
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, i2);
|
||||
SafeParcelWriter.writeParcel(parcel, 2, zaE(), false);
|
||||
int i3 = this.zac;
|
||||
SafeParcelWriter.writeParcelable(parcel, 3, i3 != 0 ? i3 != 1 ? this.zad : this.zad : null, i, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
protected final void zab(FastJsonResponse.Field field, String str, BigDecimal bigDecimal) {
|
||||
zaG(field);
|
||||
SafeParcelWriter.writeBigDecimal(this.zab, field.getSafeParcelableFieldId(), bigDecimal, true);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
protected final void zad(FastJsonResponse.Field field, String str, ArrayList arrayList) {
|
||||
zaG(field);
|
||||
int size = ((ArrayList) Preconditions.checkNotNull(arrayList)).size();
|
||||
BigDecimal[] bigDecimalArr = new BigDecimal[size];
|
||||
for (int i = 0; i < size; i++) {
|
||||
bigDecimalArr[i] = (BigDecimal) arrayList.get(i);
|
||||
}
|
||||
SafeParcelWriter.writeBigDecimalArray(this.zab, field.getSafeParcelableFieldId(), bigDecimalArr, true);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
protected final void zaf(FastJsonResponse.Field field, String str, BigInteger bigInteger) {
|
||||
zaG(field);
|
||||
SafeParcelWriter.writeBigInteger(this.zab, field.getSafeParcelableFieldId(), bigInteger, true);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
protected final void zah(FastJsonResponse.Field field, String str, ArrayList arrayList) {
|
||||
zaG(field);
|
||||
int size = ((ArrayList) Preconditions.checkNotNull(arrayList)).size();
|
||||
BigInteger[] bigIntegerArr = new BigInteger[size];
|
||||
for (int i = 0; i < size; i++) {
|
||||
bigIntegerArr[i] = (BigInteger) arrayList.get(i);
|
||||
}
|
||||
SafeParcelWriter.writeBigIntegerArray(this.zab, field.getSafeParcelableFieldId(), bigIntegerArr, true);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
protected final void zak(FastJsonResponse.Field field, String str, ArrayList arrayList) {
|
||||
zaG(field);
|
||||
int size = ((ArrayList) Preconditions.checkNotNull(arrayList)).size();
|
||||
boolean[] zArr = new boolean[size];
|
||||
for (int i = 0; i < size; i++) {
|
||||
zArr[i] = ((Boolean) arrayList.get(i)).booleanValue();
|
||||
}
|
||||
SafeParcelWriter.writeBooleanArray(this.zab, field.getSafeParcelableFieldId(), zArr, true);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
protected final void zan(FastJsonResponse.Field field, String str, double d) {
|
||||
zaG(field);
|
||||
SafeParcelWriter.writeDouble(this.zab, field.getSafeParcelableFieldId(), d);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
protected final void zap(FastJsonResponse.Field field, String str, ArrayList arrayList) {
|
||||
zaG(field);
|
||||
int size = ((ArrayList) Preconditions.checkNotNull(arrayList)).size();
|
||||
double[] dArr = new double[size];
|
||||
for (int i = 0; i < size; i++) {
|
||||
dArr[i] = ((Double) arrayList.get(i)).doubleValue();
|
||||
}
|
||||
SafeParcelWriter.writeDoubleArray(this.zab, field.getSafeParcelableFieldId(), dArr, true);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
protected final void zar(FastJsonResponse.Field field, String str, float f) {
|
||||
zaG(field);
|
||||
SafeParcelWriter.writeFloat(this.zab, field.getSafeParcelableFieldId(), f);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
protected final void zat(FastJsonResponse.Field field, String str, ArrayList arrayList) {
|
||||
zaG(field);
|
||||
int size = ((ArrayList) Preconditions.checkNotNull(arrayList)).size();
|
||||
float[] fArr = new float[size];
|
||||
for (int i = 0; i < size; i++) {
|
||||
fArr[i] = ((Float) arrayList.get(i)).floatValue();
|
||||
}
|
||||
SafeParcelWriter.writeFloatArray(this.zab, field.getSafeParcelableFieldId(), fArr, true);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
protected final void zaw(FastJsonResponse.Field field, String str, ArrayList arrayList) {
|
||||
zaG(field);
|
||||
int size = ((ArrayList) Preconditions.checkNotNull(arrayList)).size();
|
||||
int[] iArr = new int[size];
|
||||
for (int i = 0; i < size; i++) {
|
||||
iArr[i] = ((Integer) arrayList.get(i)).intValue();
|
||||
}
|
||||
SafeParcelWriter.writeIntArray(this.zab, field.getSafeParcelableFieldId(), iArr, true);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.FastJsonResponse
|
||||
protected final void zaz(FastJsonResponse.Field field, String str, ArrayList arrayList) {
|
||||
zaG(field);
|
||||
int size = ((ArrayList) Preconditions.checkNotNull(arrayList)).size();
|
||||
long[] jArr = new long[size];
|
||||
for (int i = 0; i < size; i++) {
|
||||
jArr[i] = ((Long) arrayList.get(i)).longValue();
|
||||
}
|
||||
SafeParcelWriter.writeLongArray(this.zab, field.getSafeParcelableFieldId(), jArr, true);
|
||||
}
|
||||
|
||||
private SafeParcelResponse(SafeParcelable safeParcelable, zan zanVar, String str) {
|
||||
this.zaa = 1;
|
||||
Parcel parcelObtain = Parcel.obtain();
|
||||
this.zab = parcelObtain;
|
||||
safeParcelable.writeToParcel(parcelObtain, 0);
|
||||
this.zac = 1;
|
||||
this.zad = (zan) Preconditions.checkNotNull(zanVar);
|
||||
this.zae = (String) Preconditions.checkNotNull(str);
|
||||
this.zaf = 2;
|
||||
}
|
||||
|
||||
private final void zaG(FastJsonResponse.Field field) {
|
||||
if (field.zaf == -1) {
|
||||
throw new IllegalStateException("Field does not have a valid safe parcelable field id.");
|
||||
}
|
||||
Parcel parcel = this.zab;
|
||||
if (parcel == null) {
|
||||
throw new IllegalStateException("Internal Parcel object is null.");
|
||||
}
|
||||
int i = this.zaf;
|
||||
if (i != 0) {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("Attempted to parse JSON with a SafeParcelResponse object that is already filled with data.");
|
||||
}
|
||||
} else {
|
||||
this.zag = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
this.zaf = 1;
|
||||
}
|
||||
}
|
||||
|
||||
private static final void zaJ(StringBuilder sb, FastJsonResponse.Field field, Object obj) {
|
||||
if (!field.zab) {
|
||||
zaI(sb, field.zaa, obj);
|
||||
return;
|
||||
}
|
||||
ArrayList arrayList = (ArrayList) obj;
|
||||
sb.append("[");
|
||||
int size = arrayList.size();
|
||||
for (int i = 0; i < size; i++) {
|
||||
if (i != 0) {
|
||||
sb.append(",");
|
||||
}
|
||||
zaI(sb, field.zaa, arrayList.get(i));
|
||||
}
|
||||
sb.append("]");
|
||||
}
|
||||
|
||||
public final Parcel zaE() {
|
||||
int i = this.zaf;
|
||||
if (i == 0) {
|
||||
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(this.zab);
|
||||
this.zag = iBeginObjectHeader;
|
||||
SafeParcelWriter.finishObjectHeader(this.zab, iBeginObjectHeader);
|
||||
this.zaf = 2;
|
||||
} else if (i == 1) {
|
||||
SafeParcelWriter.finishObjectHeader(this.zab, this.zag);
|
||||
this.zaf = 2;
|
||||
}
|
||||
return this.zab;
|
||||
}
|
||||
|
||||
public SafeParcelResponse(zan zanVar, String str) {
|
||||
this.zaa = 1;
|
||||
this.zab = Parcel.obtain();
|
||||
this.zac = 0;
|
||||
this.zad = (zan) Preconditions.checkNotNull(zanVar);
|
||||
this.zae = (String) Preconditions.checkNotNull(str);
|
||||
this.zaf = 0;
|
||||
}
|
||||
|
||||
private static final void zaI(StringBuilder sb, int i, Object obj) {
|
||||
switch (i) {
|
||||
case 0:
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
case 4:
|
||||
case 5:
|
||||
case 6:
|
||||
sb.append(obj);
|
||||
return;
|
||||
case 7:
|
||||
sb.append("\"");
|
||||
sb.append(JsonUtils.escapeString(Preconditions.checkNotNull(obj).toString()));
|
||||
sb.append("\"");
|
||||
return;
|
||||
case 8:
|
||||
sb.append("\"");
|
||||
sb.append(Base64Utils.encode((byte[]) obj));
|
||||
sb.append("\"");
|
||||
return;
|
||||
case 9:
|
||||
sb.append("\"");
|
||||
sb.append(Base64Utils.encodeUrlSafe((byte[]) obj));
|
||||
sb.append("\"");
|
||||
return;
|
||||
case 10:
|
||||
MapUtils.writeStringMapToJson(sb, (HashMap) Preconditions.checkNotNull(obj));
|
||||
return;
|
||||
case 11:
|
||||
throw new IllegalArgumentException("Method does not accept concrete type.");
|
||||
default:
|
||||
throw new IllegalArgumentException("Unknown type = " + i);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import com.google.android.gms.common.server.response.FastParser;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zaa implements zai {
|
||||
zaa() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.zai
|
||||
public final /* synthetic */ Object zaa(FastParser fastParser, BufferedReader bufferedReader) throws FastParser.ParseException, IOException {
|
||||
return Integer.valueOf(fastParser.zal(bufferedReader));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import com.google.android.gms.common.server.response.FastParser;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zab implements zai {
|
||||
zab() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.zai
|
||||
public final /* synthetic */ Object zaa(FastParser fastParser, BufferedReader bufferedReader) throws FastParser.ParseException, IOException {
|
||||
return Long.valueOf(fastParser.zan(bufferedReader));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import com.google.android.gms.common.server.response.FastParser;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zac implements zai {
|
||||
zac() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.zai
|
||||
public final /* synthetic */ Object zaa(FastParser fastParser, BufferedReader bufferedReader) throws FastParser.ParseException, IOException {
|
||||
return Float.valueOf(fastParser.zak(bufferedReader));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import com.google.android.gms.common.server.response.FastParser;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zad implements zai {
|
||||
zad() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.zai
|
||||
public final /* synthetic */ Object zaa(FastParser fastParser, BufferedReader bufferedReader) throws FastParser.ParseException, IOException {
|
||||
return Double.valueOf(fastParser.zaj(bufferedReader));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import com.google.android.gms.common.server.response.FastParser;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zae implements zai {
|
||||
zae() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.zai
|
||||
public final /* bridge */ /* synthetic */ Object zaa(FastParser fastParser, BufferedReader bufferedReader) throws FastParser.ParseException, IOException {
|
||||
return Boolean.valueOf(fastParser.zay(bufferedReader, false));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import com.google.android.gms.common.server.response.FastParser;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zaf implements zai {
|
||||
zaf() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.zai
|
||||
public final /* synthetic */ Object zaa(FastParser fastParser, BufferedReader bufferedReader) throws FastParser.ParseException, IOException {
|
||||
return fastParser.zao(bufferedReader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import com.google.android.gms.common.server.response.FastParser;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zag implements zai {
|
||||
zag() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.zai
|
||||
public final /* synthetic */ Object zaa(FastParser fastParser, BufferedReader bufferedReader) throws FastParser.ParseException, IOException {
|
||||
return fastParser.zat(bufferedReader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import com.google.android.gms.common.server.response.FastParser;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zah implements zai {
|
||||
zah() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.server.response.zai
|
||||
public final /* synthetic */ Object zaa(FastParser fastParser, BufferedReader bufferedReader) throws FastParser.ParseException, IOException {
|
||||
return fastParser.zas(bufferedReader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import com.google.android.gms.common.server.response.FastParser;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
interface zai {
|
||||
Object zaa(FastParser fastParser, BufferedReader bufferedReader) throws FastParser.ParseException, IOException;
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
import com.google.android.gms.common.server.response.FastJsonResponse;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zaj implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
String strCreateString = null;
|
||||
String strCreateString2 = null;
|
||||
com.google.android.gms.common.server.converter.zaa zaaVar = null;
|
||||
int i = 0;
|
||||
int i2 = 0;
|
||||
boolean z = false;
|
||||
int i3 = 0;
|
||||
boolean z2 = false;
|
||||
int i4 = 0;
|
||||
while (parcel.dataPosition() < iValidateObjectHeader) {
|
||||
int header = SafeParcelReader.readHeader(parcel);
|
||||
switch (SafeParcelReader.getFieldId(header)) {
|
||||
case 1:
|
||||
i = SafeParcelReader.readInt(parcel, header);
|
||||
break;
|
||||
case 2:
|
||||
i2 = SafeParcelReader.readInt(parcel, header);
|
||||
break;
|
||||
case 3:
|
||||
z = SafeParcelReader.readBoolean(parcel, header);
|
||||
break;
|
||||
case 4:
|
||||
i3 = SafeParcelReader.readInt(parcel, header);
|
||||
break;
|
||||
case 5:
|
||||
z2 = SafeParcelReader.readBoolean(parcel, header);
|
||||
break;
|
||||
case 6:
|
||||
strCreateString = SafeParcelReader.createString(parcel, header);
|
||||
break;
|
||||
case 7:
|
||||
i4 = SafeParcelReader.readInt(parcel, header);
|
||||
break;
|
||||
case 8:
|
||||
strCreateString2 = SafeParcelReader.createString(parcel, header);
|
||||
break;
|
||||
case 9:
|
||||
zaaVar = (com.google.android.gms.common.server.converter.zaa) SafeParcelReader.createParcelable(parcel, header, com.google.android.gms.common.server.converter.zaa.CREATOR);
|
||||
break;
|
||||
default:
|
||||
SafeParcelReader.skipUnknownField(parcel, header);
|
||||
break;
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
|
||||
return new FastJsonResponse.Field(i, i2, z, i3, z2, strCreateString, i4, strCreateString2, zaaVar);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new FastJsonResponse.Field[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
import com.google.android.gms.common.server.response.FastJsonResponse;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zak implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
String strCreateString = null;
|
||||
int i = 0;
|
||||
FastJsonResponse.Field field = null;
|
||||
while (parcel.dataPosition() < iValidateObjectHeader) {
|
||||
int header = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(header);
|
||||
if (fieldId == 1) {
|
||||
i = SafeParcelReader.readInt(parcel, header);
|
||||
} else if (fieldId == 2) {
|
||||
strCreateString = SafeParcelReader.createString(parcel, header);
|
||||
} else if (fieldId != 3) {
|
||||
SafeParcelReader.skipUnknownField(parcel, header);
|
||||
} else {
|
||||
field = (FastJsonResponse.Field) SafeParcelReader.createParcelable(parcel, header, FastJsonResponse.Field.CREATOR);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
|
||||
return new zam(i, strCreateString, field);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new zam[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
||||
import com.google.android.gms.common.server.response.FastJsonResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Map;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zal extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<zal> CREATOR = new zap();
|
||||
final int zaa;
|
||||
final String zab;
|
||||
final ArrayList zac;
|
||||
|
||||
zal(int i, String str, ArrayList arrayList) {
|
||||
this.zaa = i;
|
||||
this.zab = str;
|
||||
this.zac = arrayList;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int i2 = this.zaa;
|
||||
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, i2);
|
||||
SafeParcelWriter.writeString(parcel, 2, this.zab, false);
|
||||
SafeParcelWriter.writeTypedList(parcel, 3, this.zac, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
|
||||
}
|
||||
|
||||
zal(String str, Map map) {
|
||||
ArrayList arrayList;
|
||||
this.zaa = 1;
|
||||
this.zab = str;
|
||||
if (map == null) {
|
||||
arrayList = null;
|
||||
} else {
|
||||
arrayList = new ArrayList();
|
||||
for (String str2 : map.keySet()) {
|
||||
arrayList.add(new zam(str2, (FastJsonResponse.Field) map.get(str2)));
|
||||
}
|
||||
}
|
||||
this.zac = arrayList;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
||||
import com.google.android.gms.common.server.response.FastJsonResponse;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zam extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<zam> CREATOR = new zak();
|
||||
final int zaa;
|
||||
final String zab;
|
||||
final FastJsonResponse.Field zac;
|
||||
|
||||
zam(int i, String str, FastJsonResponse.Field field) {
|
||||
this.zaa = i;
|
||||
this.zab = str;
|
||||
this.zac = field;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int i2 = this.zaa;
|
||||
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, i2);
|
||||
SafeParcelWriter.writeString(parcel, 2, this.zab, false);
|
||||
SafeParcelWriter.writeParcelable(parcel, 3, this.zac, i, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
|
||||
}
|
||||
|
||||
zam(String str, FastJsonResponse.Field field) {
|
||||
this.zaa = 1;
|
||||
this.zab = str;
|
||||
this.zac = field;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
||||
import com.google.android.gms.common.server.response.FastJsonResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zan extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<zan> CREATOR = new zao();
|
||||
final int zaa;
|
||||
private final HashMap zab;
|
||||
private final String zac;
|
||||
|
||||
zan(int i, ArrayList arrayList, String str) {
|
||||
this.zaa = i;
|
||||
HashMap map = new HashMap();
|
||||
int size = arrayList.size();
|
||||
for (int i2 = 0; i2 < size; i2++) {
|
||||
zal zalVar = (zal) arrayList.get(i2);
|
||||
String str2 = zalVar.zab;
|
||||
HashMap map2 = new HashMap();
|
||||
int size2 = ((ArrayList) Preconditions.checkNotNull(zalVar.zac)).size();
|
||||
for (int i3 = 0; i3 < size2; i3++) {
|
||||
zam zamVar = (zam) zalVar.zac.get(i3);
|
||||
map2.put(zamVar.zab, zamVar.zac);
|
||||
}
|
||||
map.put(str2, map2);
|
||||
}
|
||||
this.zab = map;
|
||||
this.zac = (String) Preconditions.checkNotNull(str);
|
||||
zad();
|
||||
}
|
||||
|
||||
public final String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (String str : this.zab.keySet()) {
|
||||
sb.append(str);
|
||||
sb.append(":\n");
|
||||
Map map = (Map) this.zab.get(str);
|
||||
for (String str2 : map.keySet()) {
|
||||
sb.append(" ");
|
||||
sb.append(str2);
|
||||
sb.append(": ");
|
||||
sb.append(map.get(str2));
|
||||
}
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, this.zaa);
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (String str : this.zab.keySet()) {
|
||||
arrayList.add(new zal(str, (Map) this.zab.get(str)));
|
||||
}
|
||||
SafeParcelWriter.writeTypedList(parcel, 2, arrayList, false);
|
||||
SafeParcelWriter.writeString(parcel, 3, this.zac, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
|
||||
}
|
||||
|
||||
public final String zaa() {
|
||||
return this.zac;
|
||||
}
|
||||
|
||||
public final Map zab(String str) {
|
||||
return (Map) this.zab.get(str);
|
||||
}
|
||||
|
||||
public final void zac() {
|
||||
for (String str : this.zab.keySet()) {
|
||||
Map map = (Map) this.zab.get(str);
|
||||
HashMap map2 = new HashMap();
|
||||
for (String str2 : map.keySet()) {
|
||||
map2.put(str2, ((FastJsonResponse.Field) map.get(str2)).zab());
|
||||
}
|
||||
this.zab.put(str, map2);
|
||||
}
|
||||
}
|
||||
|
||||
public final void zad() {
|
||||
Iterator it = this.zab.keySet().iterator();
|
||||
while (it.hasNext()) {
|
||||
Map map = (Map) this.zab.get((String) it.next());
|
||||
Iterator it2 = map.keySet().iterator();
|
||||
while (it2.hasNext()) {
|
||||
((FastJsonResponse.Field) map.get((String) it2.next())).zai(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public final void zae(Class cls, Map map) {
|
||||
this.zab.put((String) Preconditions.checkNotNull(cls.getCanonicalName()), map);
|
||||
}
|
||||
|
||||
public final boolean zaf(Class cls) {
|
||||
return this.zab.containsKey(Preconditions.checkNotNull(cls.getCanonicalName()));
|
||||
}
|
||||
|
||||
public zan(Class cls) {
|
||||
this.zaa = 1;
|
||||
this.zab = new HashMap();
|
||||
this.zac = (String) Preconditions.checkNotNull(cls.getCanonicalName());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zao implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
ArrayList arrayListCreateTypedList = null;
|
||||
int i = 0;
|
||||
String strCreateString = null;
|
||||
while (parcel.dataPosition() < iValidateObjectHeader) {
|
||||
int header = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(header);
|
||||
if (fieldId == 1) {
|
||||
i = SafeParcelReader.readInt(parcel, header);
|
||||
} else if (fieldId == 2) {
|
||||
arrayListCreateTypedList = SafeParcelReader.createTypedList(parcel, header, zal.CREATOR);
|
||||
} else if (fieldId != 3) {
|
||||
SafeParcelReader.skipUnknownField(parcel, header);
|
||||
} else {
|
||||
strCreateString = SafeParcelReader.createString(parcel, header);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
|
||||
return new zan(i, arrayListCreateTypedList, strCreateString);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new zan[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zap implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
String strCreateString = null;
|
||||
int i = 0;
|
||||
ArrayList arrayListCreateTypedList = null;
|
||||
while (parcel.dataPosition() < iValidateObjectHeader) {
|
||||
int header = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(header);
|
||||
if (fieldId == 1) {
|
||||
i = SafeParcelReader.readInt(parcel, header);
|
||||
} else if (fieldId == 2) {
|
||||
strCreateString = SafeParcelReader.createString(parcel, header);
|
||||
} else if (fieldId != 3) {
|
||||
SafeParcelReader.skipUnknownField(parcel, header);
|
||||
} else {
|
||||
arrayListCreateTypedList = SafeParcelReader.createTypedList(parcel, header, zam.CREATOR);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
|
||||
return new zal(i, strCreateString, arrayListCreateTypedList);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new zal[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.google.android.gms.common.server.response;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zaq implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
Parcel parcelCreateParcel = null;
|
||||
int i = 0;
|
||||
zan zanVar = null;
|
||||
while (parcel.dataPosition() < iValidateObjectHeader) {
|
||||
int header = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(header);
|
||||
if (fieldId == 1) {
|
||||
i = SafeParcelReader.readInt(parcel, header);
|
||||
} else if (fieldId == 2) {
|
||||
parcelCreateParcel = SafeParcelReader.createParcel(parcel, header);
|
||||
} else if (fieldId != 3) {
|
||||
SafeParcelReader.skipUnknownField(parcel, header);
|
||||
} else {
|
||||
zanVar = (zan) SafeParcelReader.createParcelable(parcel, header, zan.CREATOR);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
|
||||
return new SafeParcelResponse(i, parcelCreateParcel, zanVar);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new SafeParcelResponse[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.google.android.gms.common.server;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zaa implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
int i = 0;
|
||||
String strCreateString = null;
|
||||
int i2 = 0;
|
||||
while (parcel.dataPosition() < iValidateObjectHeader) {
|
||||
int header = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(header);
|
||||
if (fieldId == 1) {
|
||||
i = SafeParcelReader.readInt(parcel, header);
|
||||
} else if (fieldId == 2) {
|
||||
strCreateString = SafeParcelReader.createString(parcel, header);
|
||||
} else if (fieldId != 3) {
|
||||
SafeParcelReader.skipUnknownField(parcel, header);
|
||||
} else {
|
||||
i2 = SafeParcelReader.readInt(parcel, header);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
|
||||
return new FavaDiagnosticsEntity(i, strCreateString, i2);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new FavaDiagnosticsEntity[i];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user