Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.accounts.Account;
|
||||
import android.os.Binder;
|
||||
import android.os.RemoteException;
|
||||
import android.util.Log;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.internal.IAccountAccessor;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class AccountAccessor extends IAccountAccessor.Stub {
|
||||
@KeepForSdk
|
||||
public static Account getAccountBinderSafe(IAccountAccessor iAccountAccessor) {
|
||||
if (iAccountAccessor == null) {
|
||||
return null;
|
||||
}
|
||||
long clearCallingIdentity = Binder.clearCallingIdentity();
|
||||
try {
|
||||
return iAccountAccessor.zzb();
|
||||
} catch (RemoteException unused) {
|
||||
Log.w("AccountAccessor", "Remote account accessor probably died");
|
||||
return null;
|
||||
} finally {
|
||||
Binder.restoreCallingIdentity(clearCallingIdentity);
|
||||
}
|
||||
}
|
||||
|
||||
public final boolean equals(Object obj) {
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.IAccountAccessor
|
||||
public final Account zzb() {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public final class AccountType {
|
||||
|
||||
@KeepForSdk
|
||||
public static final String GOOGLE = "com.google";
|
||||
public static final String[] zza = {GOOGLE, "com.google.work", "cn.google"};
|
||||
|
||||
private AccountType() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.api.ApiException;
|
||||
import com.google.android.gms.common.api.ResolvableApiException;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public class ApiExceptionUtil {
|
||||
@KeepForSdk
|
||||
public static ApiException fromStatus(Status status) {
|
||||
return status.hasResolution() ? new ResolvableApiException(status) : new ApiException(status);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Looper;
|
||||
import android.util.Log;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import org.checkerframework.checker.nullness.qual.EnsuresNonNull;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public final class Asserts {
|
||||
private Asserts() {
|
||||
throw new AssertionError("Uninstantiable");
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static void checkMainThread(String str) {
|
||||
if (Looper.getMainLooper().getThread() == Thread.currentThread()) {
|
||||
return;
|
||||
}
|
||||
Log.e("Asserts", "checkMainThread: current thread " + String.valueOf(Thread.currentThread()) + " IS NOT the main thread " + String.valueOf(Looper.getMainLooper().getThread()) + "!");
|
||||
throw new IllegalStateException(str);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static void checkNotMainThread(String str) {
|
||||
if (Looper.getMainLooper().getThread() != Thread.currentThread()) {
|
||||
return;
|
||||
}
|
||||
Log.e("Asserts", "checkNotMainThread: current thread " + String.valueOf(Thread.currentThread()) + " IS the main thread " + String.valueOf(Looper.getMainLooper().getThread()) + "!");
|
||||
throw new IllegalStateException(str);
|
||||
}
|
||||
|
||||
@EnsuresNonNull({"#1"})
|
||||
@KeepForSdk
|
||||
public static void checkNotNull(Object obj) {
|
||||
if (obj == null) {
|
||||
throw new IllegalArgumentException("null reference");
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static void checkNull(Object obj) {
|
||||
if (obj != null) {
|
||||
throw new IllegalArgumentException("non-null reference");
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static void checkState(boolean z3) {
|
||||
if (!z3) {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
}
|
||||
|
||||
@EnsuresNonNull({"#1"})
|
||||
@KeepForSdk
|
||||
public static void checkNotNull(Object obj, Object obj2) {
|
||||
if (obj == null) {
|
||||
throw new IllegalArgumentException(String.valueOf(obj2));
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static void checkState(boolean z3, Object obj) {
|
||||
if (!z3) {
|
||||
throw new IllegalStateException(String.valueOf(obj));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,762 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.accounts.Account;
|
||||
import android.app.PendingIntent;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.os.DeadObjectException;
|
||||
import android.os.Handler;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Looper;
|
||||
import android.os.RemoteException;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import com.google.android.gms.common.ConnectionResult;
|
||||
import com.google.android.gms.common.Feature;
|
||||
import com.google.android.gms.common.GoogleApiAvailabilityLight;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.api.CommonStatusCodes;
|
||||
import com.google.android.gms.common.api.Scope;
|
||||
import com.google.android.gms.common.util.VisibleForTesting;
|
||||
import java.io.FileDescriptor;
|
||||
import java.io.PrintWriter;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.Locale;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.Executor;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class BaseGmsClient<T extends IInterface> {
|
||||
|
||||
@KeepForSdk
|
||||
public static final int CONNECT_STATE_CONNECTED = 4;
|
||||
|
||||
@KeepForSdk
|
||||
public static final int CONNECT_STATE_DISCONNECTED = 1;
|
||||
|
||||
@KeepForSdk
|
||||
public static final int CONNECT_STATE_DISCONNECTING = 5;
|
||||
|
||||
@KeepForSdk
|
||||
public static final String DEFAULT_ACCOUNT = "<<default account>>";
|
||||
|
||||
@KeepForSdk
|
||||
public static final String KEY_PENDING_INTENT = "pendingIntent";
|
||||
private volatile String zzA;
|
||||
private ConnectionResult zzB;
|
||||
private boolean zzC;
|
||||
private volatile zzj zzD;
|
||||
|
||||
@VisibleForTesting
|
||||
zzu zza;
|
||||
final Handler zzb;
|
||||
|
||||
@VisibleForTesting
|
||||
protected ConnectionProgressReportCallbacks zzc;
|
||||
|
||||
@VisibleForTesting
|
||||
protected AtomicInteger zzd;
|
||||
private int zzf;
|
||||
private long zzg;
|
||||
private long zzh;
|
||||
private int zzi;
|
||||
private long zzj;
|
||||
private volatile String zzk;
|
||||
private final Context zzl;
|
||||
private final Looper zzm;
|
||||
private final GmsClientSupervisor zzn;
|
||||
private final GoogleApiAvailabilityLight zzo;
|
||||
private final Object zzp;
|
||||
private final Object zzq;
|
||||
private IGmsServiceBroker zzr;
|
||||
private IInterface zzs;
|
||||
private final ArrayList zzt;
|
||||
private zze zzu;
|
||||
private int zzv;
|
||||
private final BaseConnectionCallbacks zzw;
|
||||
private final BaseOnConnectionFailedListener zzx;
|
||||
private final int zzy;
|
||||
private final String zzz;
|
||||
private static final Feature[] zze = new Feature[0];
|
||||
|
||||
@KeepForSdk
|
||||
public static final String[] GOOGLE_PLUS_REQUIRED_FEATURES = {"service_esmobile", "service_googleme"};
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public interface BaseConnectionCallbacks {
|
||||
|
||||
@KeepForSdk
|
||||
public static final int CAUSE_DEAD_OBJECT_EXCEPTION = 3;
|
||||
|
||||
@KeepForSdk
|
||||
public static final int CAUSE_SERVICE_DISCONNECTED = 1;
|
||||
|
||||
@KeepForSdk
|
||||
void onConnected(Bundle bundle);
|
||||
|
||||
@KeepForSdk
|
||||
void onConnectionSuspended(int i);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public interface BaseOnConnectionFailedListener {
|
||||
@KeepForSdk
|
||||
void onConnectionFailed(ConnectionResult connectionResult);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public interface ConnectionProgressReportCallbacks {
|
||||
@KeepForSdk
|
||||
void onReportServiceBinding(ConnectionResult connectionResult);
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class LegacyClientCallbackAdapter implements ConnectionProgressReportCallbacks {
|
||||
@KeepForSdk
|
||||
public LegacyClientCallbackAdapter() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient.ConnectionProgressReportCallbacks
|
||||
public final void onReportServiceBinding(ConnectionResult connectionResult) {
|
||||
if (connectionResult.isSuccess()) {
|
||||
BaseGmsClient baseGmsClient = BaseGmsClient.this;
|
||||
baseGmsClient.getRemoteService(null, baseGmsClient.getScopes());
|
||||
} else if (BaseGmsClient.this.zzx != null) {
|
||||
BaseGmsClient.this.zzx.onConnectionFailed(connectionResult);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public interface SignOutCallbacks {
|
||||
@KeepForSdk
|
||||
void onSignOutComplete();
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
@KeepForSdk
|
||||
public BaseGmsClient(Context context, Handler handler, GmsClientSupervisor gmsClientSupervisor, GoogleApiAvailabilityLight googleApiAvailabilityLight, int i, BaseConnectionCallbacks baseConnectionCallbacks, BaseOnConnectionFailedListener baseOnConnectionFailedListener) {
|
||||
this.zzk = null;
|
||||
this.zzp = new Object();
|
||||
this.zzq = new Object();
|
||||
this.zzt = new ArrayList();
|
||||
this.zzv = 1;
|
||||
this.zzB = null;
|
||||
this.zzC = false;
|
||||
this.zzD = null;
|
||||
this.zzd = new AtomicInteger(0);
|
||||
Preconditions.checkNotNull(context, "Context must not be null");
|
||||
this.zzl = context;
|
||||
Preconditions.checkNotNull(handler, "Handler must not be null");
|
||||
this.zzb = handler;
|
||||
this.zzm = handler.getLooper();
|
||||
Preconditions.checkNotNull(gmsClientSupervisor, "Supervisor must not be null");
|
||||
this.zzn = gmsClientSupervisor;
|
||||
Preconditions.checkNotNull(googleApiAvailabilityLight, "API availability must not be null");
|
||||
this.zzo = googleApiAvailabilityLight;
|
||||
this.zzy = i;
|
||||
this.zzw = baseConnectionCallbacks;
|
||||
this.zzx = baseOnConnectionFailedListener;
|
||||
this.zzz = null;
|
||||
}
|
||||
|
||||
public static /* bridge */ /* synthetic */ void zzj(BaseGmsClient baseGmsClient, zzj zzjVar) {
|
||||
baseGmsClient.zzD = zzjVar;
|
||||
if (baseGmsClient.usesClientTelemetry()) {
|
||||
ConnectionTelemetryConfiguration connectionTelemetryConfiguration = zzjVar.zzd;
|
||||
RootTelemetryConfigManager.getInstance().zza(connectionTelemetryConfiguration == null ? null : connectionTelemetryConfiguration.zza());
|
||||
}
|
||||
}
|
||||
|
||||
public static /* bridge */ /* synthetic */ void zzk(BaseGmsClient baseGmsClient, int i) {
|
||||
int i4;
|
||||
int i5;
|
||||
synchronized (baseGmsClient.zzp) {
|
||||
i4 = baseGmsClient.zzv;
|
||||
}
|
||||
if (i4 == 3) {
|
||||
baseGmsClient.zzC = true;
|
||||
i5 = 5;
|
||||
} else {
|
||||
i5 = 4;
|
||||
}
|
||||
Handler handler = baseGmsClient.zzb;
|
||||
handler.sendMessage(handler.obtainMessage(i5, baseGmsClient.zzd.get(), 16));
|
||||
}
|
||||
|
||||
public static /* bridge */ /* synthetic */ boolean zzn(BaseGmsClient baseGmsClient, int i, int i4, IInterface iInterface) {
|
||||
synchronized (baseGmsClient.zzp) {
|
||||
try {
|
||||
if (baseGmsClient.zzv != i) {
|
||||
return false;
|
||||
}
|
||||
baseGmsClient.zzp(i4, iInterface);
|
||||
return true;
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static /* bridge */ /* synthetic */ boolean zzo(BaseGmsClient baseGmsClient) {
|
||||
if (baseGmsClient.zzC || TextUtils.isEmpty(baseGmsClient.getServiceDescriptor()) || TextUtils.isEmpty(baseGmsClient.getLocalStartServiceAction())) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
Class.forName(baseGmsClient.getServiceDescriptor());
|
||||
return true;
|
||||
} catch (ClassNotFoundException unused) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public final void zzp(int i, IInterface iInterface) {
|
||||
zzu zzuVar;
|
||||
Preconditions.checkArgument((i == 4) == (iInterface != 0));
|
||||
synchronized (this.zzp) {
|
||||
try {
|
||||
this.zzv = i;
|
||||
this.zzs = iInterface;
|
||||
if (i == 1) {
|
||||
zze zzeVar = this.zzu;
|
||||
if (zzeVar != null) {
|
||||
GmsClientSupervisor gmsClientSupervisor = this.zzn;
|
||||
String zzc = this.zza.zzc();
|
||||
Preconditions.checkNotNull(zzc);
|
||||
gmsClientSupervisor.zzb(zzc, this.zza.zzb(), this.zza.zza(), zzeVar, zze(), this.zza.zzd());
|
||||
this.zzu = null;
|
||||
}
|
||||
} else if (i == 2 || i == 3) {
|
||||
zze zzeVar2 = this.zzu;
|
||||
if (zzeVar2 != null && (zzuVar = this.zza) != null) {
|
||||
Log.e("GmsClient", "Calling connect() while still connected, missing disconnect() for " + zzuVar.zzc() + " on " + zzuVar.zzb());
|
||||
GmsClientSupervisor gmsClientSupervisor2 = this.zzn;
|
||||
String zzc2 = this.zza.zzc();
|
||||
Preconditions.checkNotNull(zzc2);
|
||||
gmsClientSupervisor2.zzb(zzc2, this.zza.zzb(), this.zza.zza(), zzeVar2, zze(), this.zza.zzd());
|
||||
this.zzd.incrementAndGet();
|
||||
}
|
||||
zze zzeVar3 = new zze(this, this.zzd.get());
|
||||
this.zzu = zzeVar3;
|
||||
zzu zzuVar2 = (this.zzv != 3 || getLocalStartServiceAction() == null) ? new zzu(getStartServicePackage(), getStartServiceAction(), false, GmsClientSupervisor.getDefaultBindFlags(), getUseDynamicLookup()) : new zzu(getContext().getPackageName(), getLocalStartServiceAction(), true, GmsClientSupervisor.getDefaultBindFlags(), false);
|
||||
this.zza = zzuVar2;
|
||||
if (zzuVar2.zzd() && getMinApkVersion() < 17895000) {
|
||||
throw new IllegalStateException("Internal Error, the minimum apk version of this BaseGmsClient is too low to support dynamic lookup. Start service action: ".concat(String.valueOf(this.zza.zzc())));
|
||||
}
|
||||
GmsClientSupervisor gmsClientSupervisor3 = this.zzn;
|
||||
String zzc3 = this.zza.zzc();
|
||||
Preconditions.checkNotNull(zzc3);
|
||||
if (!gmsClientSupervisor3.zzc(new zzn(zzc3, this.zza.zzb(), this.zza.zza(), this.zza.zzd()), zzeVar3, zze(), getBindServiceExecutor())) {
|
||||
Log.w("GmsClient", "unable to connect to service: " + this.zza.zzc() + " on " + this.zza.zzb());
|
||||
zzl(16, null, this.zzd.get());
|
||||
}
|
||||
} else if (i == 4) {
|
||||
Preconditions.checkNotNull(iInterface);
|
||||
onConnectedLocked(iInterface);
|
||||
}
|
||||
} finally {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void checkAvailabilityAndConnect() {
|
||||
int isGooglePlayServicesAvailable = this.zzo.isGooglePlayServicesAvailable(this.zzl, getMinApkVersion());
|
||||
if (isGooglePlayServicesAvailable == 0) {
|
||||
connect(new LegacyClientCallbackAdapter());
|
||||
} else {
|
||||
zzp(1, null);
|
||||
triggerNotAvailable(new LegacyClientCallbackAdapter(), isGooglePlayServicesAvailable, null);
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public final void checkConnected() {
|
||||
if (!isConnected()) {
|
||||
throw new IllegalStateException("Not connected. Call connect() and wait for onConnected() to be called.");
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void connect(ConnectionProgressReportCallbacks connectionProgressReportCallbacks) {
|
||||
Preconditions.checkNotNull(connectionProgressReportCallbacks, "Connection progress callbacks cannot be null.");
|
||||
this.zzc = connectionProgressReportCallbacks;
|
||||
zzp(2, null);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public abstract T createServiceInterface(IBinder iBinder);
|
||||
|
||||
@KeepForSdk
|
||||
public void disconnect() {
|
||||
this.zzd.incrementAndGet();
|
||||
synchronized (this.zzt) {
|
||||
try {
|
||||
int size = this.zzt.size();
|
||||
for (int i = 0; i < size; i++) {
|
||||
((zzc) this.zzt.get(i)).zzf();
|
||||
}
|
||||
this.zzt.clear();
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
synchronized (this.zzq) {
|
||||
this.zzr = null;
|
||||
}
|
||||
zzp(1, null);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void dump(String str, FileDescriptor fileDescriptor, PrintWriter printWriter, String[] strArr) {
|
||||
int i;
|
||||
IInterface iInterface;
|
||||
IGmsServiceBroker iGmsServiceBroker;
|
||||
synchronized (this.zzp) {
|
||||
i = this.zzv;
|
||||
iInterface = this.zzs;
|
||||
}
|
||||
synchronized (this.zzq) {
|
||||
iGmsServiceBroker = this.zzr;
|
||||
}
|
||||
printWriter.append((CharSequence) str).append("mConnectState=");
|
||||
if (i == 1) {
|
||||
printWriter.print("DISCONNECTED");
|
||||
} else if (i == 2) {
|
||||
printWriter.print("REMOTE_CONNECTING");
|
||||
} else if (i == 3) {
|
||||
printWriter.print("LOCAL_CONNECTING");
|
||||
} else if (i == 4) {
|
||||
printWriter.print("CONNECTED");
|
||||
} else if (i != 5) {
|
||||
printWriter.print("UNKNOWN");
|
||||
} else {
|
||||
printWriter.print("DISCONNECTING");
|
||||
}
|
||||
printWriter.append(" mService=");
|
||||
if (iInterface == null) {
|
||||
printWriter.append("null");
|
||||
} else {
|
||||
printWriter.append((CharSequence) getServiceDescriptor()).append("@").append((CharSequence) Integer.toHexString(System.identityHashCode(iInterface.asBinder())));
|
||||
}
|
||||
printWriter.append(" mServiceBroker=");
|
||||
if (iGmsServiceBroker == null) {
|
||||
printWriter.println("null");
|
||||
} else {
|
||||
printWriter.append("IGmsServiceBroker@").println(Integer.toHexString(System.identityHashCode(iGmsServiceBroker.asBinder())));
|
||||
}
|
||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS", Locale.US);
|
||||
if (this.zzh > 0) {
|
||||
PrintWriter append = printWriter.append((CharSequence) str).append("lastConnectedTime=");
|
||||
long j4 = this.zzh;
|
||||
append.println(j4 + " " + simpleDateFormat.format(new Date(j4)));
|
||||
}
|
||||
if (this.zzg > 0) {
|
||||
printWriter.append((CharSequence) str).append("lastSuspendedCause=");
|
||||
int i4 = this.zzf;
|
||||
if (i4 == 1) {
|
||||
printWriter.append("CAUSE_SERVICE_DISCONNECTED");
|
||||
} else if (i4 == 2) {
|
||||
printWriter.append("CAUSE_NETWORK_LOST");
|
||||
} else if (i4 != 3) {
|
||||
printWriter.append((CharSequence) String.valueOf(i4));
|
||||
} else {
|
||||
printWriter.append("CAUSE_DEAD_OBJECT_EXCEPTION");
|
||||
}
|
||||
PrintWriter append2 = printWriter.append(" lastSuspendedTime=");
|
||||
long j5 = this.zzg;
|
||||
append2.println(j5 + " " + simpleDateFormat.format(new Date(j5)));
|
||||
}
|
||||
if (this.zzj > 0) {
|
||||
printWriter.append((CharSequence) str).append("lastFailedStatus=").append((CharSequence) CommonStatusCodes.getStatusCodeString(this.zzi));
|
||||
PrintWriter append3 = printWriter.append(" lastFailedTime=");
|
||||
long j6 = this.zzj;
|
||||
append3.println(j6 + " " + simpleDateFormat.format(new Date(j6)));
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public boolean enableLocalFallback() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public Account getAccount() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public Feature[] getApiFeatures() {
|
||||
return zze;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public final Feature[] getAvailableFeatures() {
|
||||
zzj zzjVar = this.zzD;
|
||||
if (zzjVar == null) {
|
||||
return null;
|
||||
}
|
||||
return zzjVar.zzb;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public Executor getBindServiceExecutor() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public Bundle getConnectionHint() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public final Context getContext() {
|
||||
return this.zzl;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public String getEndpointPackageName() {
|
||||
zzu zzuVar;
|
||||
if (!isConnected() || (zzuVar = this.zza) == null) {
|
||||
throw new RuntimeException("Failed to connect when checking package");
|
||||
}
|
||||
return zzuVar.zzb();
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public int getGCoreServiceId() {
|
||||
return this.zzy;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public Bundle getGetServiceRequestExtraArgs() {
|
||||
return new Bundle();
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public String getLastDisconnectMessage() {
|
||||
return this.zzk;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public String getLocalStartServiceAction() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public final Looper getLooper() {
|
||||
return this.zzm;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public int getMinApkVersion() {
|
||||
return GoogleApiAvailabilityLight.GOOGLE_PLAY_SERVICES_VERSION_CODE;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void getRemoteService(IAccountAccessor iAccountAccessor, Set<Scope> set) {
|
||||
Bundle getServiceRequestExtraArgs = getGetServiceRequestExtraArgs();
|
||||
int i = this.zzy;
|
||||
String str = this.zzA;
|
||||
int i4 = GoogleApiAvailabilityLight.GOOGLE_PLAY_SERVICES_VERSION_CODE;
|
||||
Scope[] scopeArr = GetServiceRequest.zza;
|
||||
Bundle bundle = new Bundle();
|
||||
Feature[] featureArr = GetServiceRequest.zzb;
|
||||
GetServiceRequest getServiceRequest = new GetServiceRequest(6, i, i4, null, null, scopeArr, bundle, null, featureArr, featureArr, true, 0, false, str);
|
||||
getServiceRequest.zzf = this.zzl.getPackageName();
|
||||
getServiceRequest.zzi = getServiceRequestExtraArgs;
|
||||
if (set != null) {
|
||||
getServiceRequest.zzh = (Scope[]) set.toArray(new Scope[0]);
|
||||
}
|
||||
if (requiresSignIn()) {
|
||||
Account account = getAccount();
|
||||
if (account == null) {
|
||||
account = new Account("<<default account>>", AccountType.GOOGLE);
|
||||
}
|
||||
getServiceRequest.zzj = account;
|
||||
if (iAccountAccessor != null) {
|
||||
getServiceRequest.zzg = iAccountAccessor.asBinder();
|
||||
}
|
||||
} else if (requiresAccount()) {
|
||||
getServiceRequest.zzj = getAccount();
|
||||
}
|
||||
getServiceRequest.zzk = zze;
|
||||
getServiceRequest.zzl = getApiFeatures();
|
||||
if (usesClientTelemetry()) {
|
||||
getServiceRequest.zzo = true;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
synchronized (this.zzq) {
|
||||
try {
|
||||
IGmsServiceBroker iGmsServiceBroker = this.zzr;
|
||||
if (iGmsServiceBroker != null) {
|
||||
iGmsServiceBroker.getService(new zzd(this, this.zzd.get()), getServiceRequest);
|
||||
} else {
|
||||
Log.w("GmsClient", "mServiceBroker is null, client disconnected");
|
||||
}
|
||||
} finally {
|
||||
}
|
||||
}
|
||||
} catch (RemoteException | RuntimeException e4) {
|
||||
Log.w("GmsClient", "IGmsServiceBroker.getService failed", e4);
|
||||
onPostInitHandler(8, null, null, this.zzd.get());
|
||||
}
|
||||
} catch (DeadObjectException e5) {
|
||||
Log.w("GmsClient", "IGmsServiceBroker.getService failed", e5);
|
||||
triggerConnectionSuspended(3);
|
||||
} catch (SecurityException e6) {
|
||||
throw e6;
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public Set<Scope> getScopes() {
|
||||
return Collections.EMPTY_SET;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public final T getService() throws DeadObjectException {
|
||||
T t2;
|
||||
synchronized (this.zzp) {
|
||||
try {
|
||||
if (this.zzv == 5) {
|
||||
throw new DeadObjectException();
|
||||
}
|
||||
checkConnected();
|
||||
t2 = (T) this.zzs;
|
||||
Preconditions.checkNotNull(t2, "Client is connected but service is null");
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
return t2;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public IBinder getServiceBrokerBinder() {
|
||||
synchronized (this.zzq) {
|
||||
try {
|
||||
IGmsServiceBroker iGmsServiceBroker = this.zzr;
|
||||
if (iGmsServiceBroker == null) {
|
||||
return null;
|
||||
}
|
||||
return iGmsServiceBroker.asBinder();
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public abstract String getServiceDescriptor();
|
||||
|
||||
@KeepForSdk
|
||||
public Intent getSignInIntent() {
|
||||
throw new UnsupportedOperationException("Not a sign in API");
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public abstract String getStartServiceAction();
|
||||
|
||||
@KeepForSdk
|
||||
public String getStartServicePackage() {
|
||||
return "com.google.android.gms";
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public ConnectionTelemetryConfiguration getTelemetryConfiguration() {
|
||||
zzj zzjVar = this.zzD;
|
||||
if (zzjVar == null) {
|
||||
return null;
|
||||
}
|
||||
return zzjVar.zzd;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public boolean getUseDynamicLookup() {
|
||||
return getMinApkVersion() >= 211700000;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public boolean hasConnectionInfo() {
|
||||
return this.zzD != null;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public boolean isConnected() {
|
||||
boolean z3;
|
||||
synchronized (this.zzp) {
|
||||
z3 = this.zzv == 4;
|
||||
}
|
||||
return z3;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public boolean isConnecting() {
|
||||
boolean z3;
|
||||
synchronized (this.zzp) {
|
||||
int i = this.zzv;
|
||||
z3 = true;
|
||||
if (i != 2 && i != 3) {
|
||||
z3 = false;
|
||||
}
|
||||
}
|
||||
return z3;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void onConnectedLocked(T t2) {
|
||||
this.zzh = System.currentTimeMillis();
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void onConnectionFailed(ConnectionResult connectionResult) {
|
||||
this.zzi = connectionResult.getErrorCode();
|
||||
this.zzj = System.currentTimeMillis();
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void onConnectionSuspended(int i) {
|
||||
this.zzf = i;
|
||||
this.zzg = System.currentTimeMillis();
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void onPostInitHandler(int i, IBinder iBinder, Bundle bundle, int i4) {
|
||||
Handler handler = this.zzb;
|
||||
handler.sendMessage(handler.obtainMessage(1, i4, -1, new zzf(this, i, iBinder, bundle)));
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void onUserSignOut(SignOutCallbacks signOutCallbacks) {
|
||||
signOutCallbacks.onSignOutComplete();
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public boolean providesSignIn() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public boolean requiresAccount() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public boolean requiresGooglePlayServices() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public boolean requiresSignIn() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void setAttributionTag(String str) {
|
||||
this.zzA = str;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void triggerConnectionSuspended(int i) {
|
||||
Handler handler = this.zzb;
|
||||
handler.sendMessage(handler.obtainMessage(6, this.zzd.get(), i));
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
@KeepForSdk
|
||||
public void triggerNotAvailable(ConnectionProgressReportCallbacks connectionProgressReportCallbacks, int i, PendingIntent pendingIntent) {
|
||||
Preconditions.checkNotNull(connectionProgressReportCallbacks, "Connection progress callbacks cannot be null.");
|
||||
this.zzc = connectionProgressReportCallbacks;
|
||||
Handler handler = this.zzb;
|
||||
handler.sendMessage(handler.obtainMessage(3, this.zzd.get(), i, pendingIntent));
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public boolean usesClientTelemetry() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final String zze() {
|
||||
String str = this.zzz;
|
||||
return str == null ? this.zzl.getClass().getName() : str;
|
||||
}
|
||||
|
||||
public final void zzl(int i, Bundle bundle, int i4) {
|
||||
Handler handler = this.zzb;
|
||||
handler.sendMessage(handler.obtainMessage(7, i4, -1, new zzg(this, i, null)));
|
||||
}
|
||||
|
||||
/* JADX WARN: Illegal instructions before constructor call */
|
||||
@com.google.android.gms.common.annotation.KeepForSdk
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public BaseGmsClient(android.content.Context r10, android.os.Looper r11, int r12, com.google.android.gms.common.internal.BaseGmsClient.BaseConnectionCallbacks r13, com.google.android.gms.common.internal.BaseGmsClient.BaseOnConnectionFailedListener r14, java.lang.String r15) {
|
||||
/*
|
||||
r9 = this;
|
||||
com.google.android.gms.common.internal.GmsClientSupervisor r3 = com.google.android.gms.common.internal.GmsClientSupervisor.getInstance(r10)
|
||||
com.google.android.gms.common.GoogleApiAvailabilityLight r4 = com.google.android.gms.common.GoogleApiAvailabilityLight.getInstance()
|
||||
com.google.android.gms.common.internal.Preconditions.checkNotNull(r13)
|
||||
com.google.android.gms.common.internal.Preconditions.checkNotNull(r14)
|
||||
r0 = r9
|
||||
r1 = r10
|
||||
r2 = r11
|
||||
r5 = r12
|
||||
r6 = r13
|
||||
r7 = r14
|
||||
r8 = r15
|
||||
r0.<init>(r1, r2, r3, r4, r5, r6, r7, r8)
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.common.internal.BaseGmsClient.<init>(android.content.Context, android.os.Looper, int, com.google.android.gms.common.internal.BaseGmsClient$BaseConnectionCallbacks, com.google.android.gms.common.internal.BaseGmsClient$BaseOnConnectionFailedListener, java.lang.String):void");
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void disconnect(String str) {
|
||||
this.zzk = str;
|
||||
disconnect();
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
@KeepForSdk
|
||||
public BaseGmsClient(Context context, Looper looper, GmsClientSupervisor gmsClientSupervisor, GoogleApiAvailabilityLight googleApiAvailabilityLight, int i, BaseConnectionCallbacks baseConnectionCallbacks, BaseOnConnectionFailedListener baseOnConnectionFailedListener, String str) {
|
||||
this.zzk = null;
|
||||
this.zzp = new Object();
|
||||
this.zzq = new Object();
|
||||
this.zzt = new ArrayList();
|
||||
this.zzv = 1;
|
||||
this.zzB = null;
|
||||
this.zzC = false;
|
||||
this.zzD = null;
|
||||
this.zzd = new AtomicInteger(0);
|
||||
Preconditions.checkNotNull(context, "Context must not be null");
|
||||
this.zzl = context;
|
||||
Preconditions.checkNotNull(looper, "Looper must not be null");
|
||||
this.zzm = looper;
|
||||
Preconditions.checkNotNull(gmsClientSupervisor, "Supervisor must not be null");
|
||||
this.zzn = gmsClientSupervisor;
|
||||
Preconditions.checkNotNull(googleApiAvailabilityLight, "API availability must not be null");
|
||||
this.zzo = googleApiAvailabilityLight;
|
||||
this.zzb = new zzb(this, looper);
|
||||
this.zzy = i;
|
||||
this.zzw = baseConnectionCallbacks;
|
||||
this.zzx = baseOnConnectionFailedListener;
|
||||
this.zzz = str;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.IBinder;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.annotation.KeepName;
|
||||
|
||||
@KeepForSdk
|
||||
@KeepName
|
||||
/* loaded from: classes3.dex */
|
||||
public final class BinderWrapper implements Parcelable {
|
||||
public static final Parcelable.Creator<BinderWrapper> CREATOR = new zzh();
|
||||
private IBinder zza;
|
||||
|
||||
@KeepForSdk
|
||||
public BinderWrapper(IBinder iBinder) {
|
||||
this.zza = iBinder;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
parcel.writeStrongBinder(this.zza);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
|
||||
|
||||
@KeepForSdk
|
||||
@SafeParcelable.Class(creator = "ClientIdentityCreator")
|
||||
@SafeParcelable.Reserved({1000})
|
||||
/* loaded from: classes3.dex */
|
||||
public class ClientIdentity extends AbstractSafeParcelable {
|
||||
|
||||
@KeepForSdk
|
||||
public static final Parcelable.Creator<ClientIdentity> CREATOR = new zaa();
|
||||
|
||||
@KeepForSdk
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "null", id = 2)
|
||||
public final String packageName;
|
||||
|
||||
@KeepForSdk
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "0", id = 1)
|
||||
public final int uid;
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public ClientIdentity(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) String str) {
|
||||
this.uid = i;
|
||||
this.packageName = str;
|
||||
}
|
||||
|
||||
public final boolean equals(Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof ClientIdentity)) {
|
||||
return false;
|
||||
}
|
||||
ClientIdentity clientIdentity = (ClientIdentity) obj;
|
||||
return clientIdentity.uid == this.uid && Objects.equal(clientIdentity.packageName, this.packageName);
|
||||
}
|
||||
|
||||
public final int hashCode() {
|
||||
return this.uid;
|
||||
}
|
||||
|
||||
public final String toString() {
|
||||
return this.uid + ":" + this.packageName;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, this.uid);
|
||||
SafeParcelWriter.writeString(parcel, 2, this.packageName, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,179 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.accounts.Account;
|
||||
import android.content.Context;
|
||||
import android.view.View;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.api.Scope;
|
||||
import com.google.android.gms.common.util.VisibleForTesting;
|
||||
import com.google.android.gms.signin.SignInOptions;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import s.f;
|
||||
|
||||
@VisibleForTesting
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public final class ClientSettings {
|
||||
private final Account zaa;
|
||||
private final Set zab;
|
||||
private final Set zac;
|
||||
private final Map zad;
|
||||
private final int zae;
|
||||
private final View zaf;
|
||||
private final String zag;
|
||||
private final String zah;
|
||||
private final SignInOptions zai;
|
||||
private Integer zaj;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Builder {
|
||||
private Account zaa;
|
||||
private f zab;
|
||||
private String zac;
|
||||
private String zad;
|
||||
private SignInOptions zae = SignInOptions.zaa;
|
||||
|
||||
@KeepForSdk
|
||||
public ClientSettings build() {
|
||||
return new ClientSettings(this.zaa, this.zab, null, 0, null, this.zac, this.zad, this.zae, false);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public Builder setRealClientPackageName(String str) {
|
||||
this.zac = str;
|
||||
return this;
|
||||
}
|
||||
|
||||
public final Builder zaa(Collection collection) {
|
||||
if (this.zab == null) {
|
||||
this.zab = new f(0);
|
||||
}
|
||||
this.zab.addAll(collection);
|
||||
return this;
|
||||
}
|
||||
|
||||
public final Builder zab(Account account) {
|
||||
this.zaa = account;
|
||||
return this;
|
||||
}
|
||||
|
||||
public final Builder zac(String str) {
|
||||
this.zad = str;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public ClientSettings(Account account, Set<Scope> set, Map<Api<?>, zab> map, int i, View view, String str, String str2, SignInOptions signInOptions) {
|
||||
this(account, set, map, i, view, str, str2, signInOptions, false);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static ClientSettings createDefault(Context context) {
|
||||
return new GoogleApiClient.Builder(context).zaa();
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public Account getAccount() {
|
||||
return this.zaa;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
@Deprecated
|
||||
public String getAccountName() {
|
||||
Account account = this.zaa;
|
||||
if (account != null) {
|
||||
return account.name;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public Account getAccountOrDefault() {
|
||||
Account account = this.zaa;
|
||||
return account != null ? account : new Account("<<default account>>", AccountType.GOOGLE);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public Set<Scope> getAllRequestedScopes() {
|
||||
return this.zac;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public Set<Scope> getApplicableScopes(Api<?> api) {
|
||||
zab zabVar = (zab) this.zad.get(api);
|
||||
if (zabVar == null || zabVar.zaa.isEmpty()) {
|
||||
return this.zab;
|
||||
}
|
||||
HashSet hashSet = new HashSet(this.zab);
|
||||
hashSet.addAll(zabVar.zaa);
|
||||
return hashSet;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public int getGravityForPopups() {
|
||||
return this.zae;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public String getRealClientPackageName() {
|
||||
return this.zag;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public Set<Scope> getRequiredScopes() {
|
||||
return this.zab;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public View getViewForPopups() {
|
||||
return this.zaf;
|
||||
}
|
||||
|
||||
public final SignInOptions zaa() {
|
||||
return this.zai;
|
||||
}
|
||||
|
||||
public final Integer zab() {
|
||||
return this.zaj;
|
||||
}
|
||||
|
||||
public final String zac() {
|
||||
return this.zah;
|
||||
}
|
||||
|
||||
public final Map zad() {
|
||||
return this.zad;
|
||||
}
|
||||
|
||||
public final void zae(Integer num) {
|
||||
this.zaj = num;
|
||||
}
|
||||
|
||||
public ClientSettings(Account account, Set set, Map map, int i, View view, String str, String str2, SignInOptions signInOptions, boolean z3) {
|
||||
this.zaa = account;
|
||||
Set unmodifiableSet = set == null ? Collections.EMPTY_SET : Collections.unmodifiableSet(set);
|
||||
this.zab = unmodifiableSet;
|
||||
map = map == null ? Collections.EMPTY_MAP : map;
|
||||
this.zad = map;
|
||||
this.zaf = view;
|
||||
this.zae = i;
|
||||
this.zag = str;
|
||||
this.zah = str2;
|
||||
this.zai = signInOptions == null ? SignInOptions.zaa : signInOptions;
|
||||
HashSet hashSet = new HashSet(unmodifiableSet);
|
||||
Iterator it = map.values().iterator();
|
||||
while (it.hasNext()) {
|
||||
hashSet.addAll(((zab) it.next()).zaa);
|
||||
}
|
||||
this.zac = Collections.unmodifiableSet(hashSet);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
|
||||
|
||||
@KeepForSdk
|
||||
@SafeParcelable.Class(creator = "ConnectionTelemetryConfigurationCreator")
|
||||
/* loaded from: classes3.dex */
|
||||
public class ConnectionTelemetryConfiguration extends AbstractSafeParcelable {
|
||||
|
||||
@KeepForSdk
|
||||
public static final Parcelable.Creator<ConnectionTelemetryConfiguration> CREATOR = new zzl();
|
||||
|
||||
@SafeParcelable.Field(getter = "getRootTelemetryConfiguration", id = 1)
|
||||
private final RootTelemetryConfiguration zza;
|
||||
|
||||
@SafeParcelable.Field(getter = "getMethodInvocationTelemetryEnabled", id = 2)
|
||||
private final boolean zzb;
|
||||
|
||||
@SafeParcelable.Field(getter = "getMethodTimingTelemetryEnabled", id = 3)
|
||||
private final boolean zzc;
|
||||
|
||||
@SafeParcelable.Field(getter = "getMethodInvocationMethodKeyAllowlist", id = 4)
|
||||
private final int[] zzd;
|
||||
|
||||
@SafeParcelable.Field(getter = "getMaxMethodInvocationsLogged", id = 5)
|
||||
private final int zze;
|
||||
|
||||
@SafeParcelable.Field(getter = "getMethodInvocationMethodKeyDisallowlist", id = 6)
|
||||
private final int[] zzf;
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public ConnectionTelemetryConfiguration(@SafeParcelable.Param(id = 1) RootTelemetryConfiguration rootTelemetryConfiguration, @SafeParcelable.Param(id = 2) boolean z3, @SafeParcelable.Param(id = 3) boolean z4, @SafeParcelable.Param(id = 4) int[] iArr, @SafeParcelable.Param(id = 5) int i, @SafeParcelable.Param(id = 6) int[] iArr2) {
|
||||
this.zza = rootTelemetryConfiguration;
|
||||
this.zzb = z3;
|
||||
this.zzc = z4;
|
||||
this.zzd = iArr;
|
||||
this.zze = i;
|
||||
this.zzf = iArr2;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public int getMaxMethodInvocationsLogged() {
|
||||
return this.zze;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public int[] getMethodInvocationMethodKeyAllowlist() {
|
||||
return this.zzd;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public int[] getMethodInvocationMethodKeyDisallowlist() {
|
||||
return this.zzf;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public boolean getMethodInvocationTelemetryEnabled() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public boolean getMethodTimingTelemetryEnabled() {
|
||||
return this.zzc;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeParcelable(parcel, 1, this.zza, i, false);
|
||||
SafeParcelWriter.writeBoolean(parcel, 2, getMethodInvocationTelemetryEnabled());
|
||||
SafeParcelWriter.writeBoolean(parcel, 3, getMethodTimingTelemetryEnabled());
|
||||
SafeParcelWriter.writeIntArray(parcel, 4, getMethodInvocationMethodKeyAllowlist(), false);
|
||||
SafeParcelWriter.writeInt(parcel, 5, getMaxMethodInvocationsLogged());
|
||||
SafeParcelWriter.writeIntArray(parcel, 6, getMethodInvocationMethodKeyDisallowlist(), false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
|
||||
public final RootTelemetryConfiguration zza() {
|
||||
return this.zza;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public final class Constants {
|
||||
|
||||
@KeepForSdk
|
||||
public static final String ACTION_LOAD_IMAGE = "com.google.android.gms.common.images.LOAD_IMAGE";
|
||||
|
||||
@KeepForSdk
|
||||
public static final String EXTRA_PRIORITY = "com.google.android.gms.extras.priority";
|
||||
|
||||
@KeepForSdk
|
||||
public static final String EXTRA_RESULT_RECEIVER = "com.google.android.gms.extras.resultReceiver";
|
||||
|
||||
@KeepForSdk
|
||||
public static final String EXTRA_URI = "com.google.android.gms.extras.uri";
|
||||
|
||||
@KeepForSdk
|
||||
public static final String KEY_GMS_ERROR_CODE = "gms_error_code";
|
||||
|
||||
@KeepForSdk
|
||||
public static final String KEY_NETWORK_TO_USE = "networkToUse";
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class DowngradeableSafeParcel extends AbstractSafeParcelable implements ReflectedParcelable {
|
||||
private static final Object zza = new Object();
|
||||
private boolean zzb = false;
|
||||
|
||||
@KeepForSdk
|
||||
public static boolean canUnparcelSafely(String str) {
|
||||
synchronized (zza) {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static Integer getUnparcelClientVersion() {
|
||||
synchronized (zza) {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public abstract boolean prepareForClientVersion(int i);
|
||||
|
||||
@KeepForSdk
|
||||
public void setShouldDowngrade(boolean z3) {
|
||||
this.zzb = z3;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public boolean shouldDowngrade() {
|
||||
return this.zzb;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.internal.IGmsServiceBroker;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class FallbackServiceBroker extends IGmsServiceBroker.Stub {
|
||||
@KeepForSdk
|
||||
public FallbackServiceBroker() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.accounts.Account;
|
||||
import android.os.Bundle;
|
||||
import android.os.IBinder;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.Feature;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.api.Scope;
|
||||
import com.google.android.gms.common.internal.IAccountAccessor;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
|
||||
|
||||
@KeepForSdk
|
||||
@SafeParcelable.Class(creator = "GetServiceRequestCreator")
|
||||
@SafeParcelable.Reserved({9})
|
||||
/* loaded from: classes3.dex */
|
||||
public class GetServiceRequest extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<GetServiceRequest> CREATOR = new zzm();
|
||||
static final Scope[] zza = new Scope[0];
|
||||
static final Feature[] zzb = new Feature[0];
|
||||
|
||||
@SafeParcelable.VersionField(id = 1)
|
||||
final int zzc;
|
||||
|
||||
@SafeParcelable.Field(id = 2)
|
||||
final int zzd;
|
||||
|
||||
@SafeParcelable.Field(id = 3)
|
||||
int zze;
|
||||
|
||||
@SafeParcelable.Field(id = 4)
|
||||
String zzf;
|
||||
|
||||
@SafeParcelable.Field(id = 5)
|
||||
IBinder zzg;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "GetServiceRequest.EMPTY_SCOPES", id = 6)
|
||||
Scope[] zzh;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "new android.os.Bundle()", id = 7)
|
||||
Bundle zzi;
|
||||
|
||||
@SafeParcelable.Field(id = 8)
|
||||
Account zzj;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "GetServiceRequest.EMPTY_FEATURES", id = 10)
|
||||
Feature[] zzk;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "GetServiceRequest.EMPTY_FEATURES", id = 11)
|
||||
Feature[] zzl;
|
||||
|
||||
@SafeParcelable.Field(id = 12)
|
||||
boolean zzm;
|
||||
|
||||
@SafeParcelable.Field(defaultValue = "0", id = 13)
|
||||
int zzn;
|
||||
|
||||
@SafeParcelable.Field(getter = "isRequestingTelemetryConfiguration", id = 14)
|
||||
boolean zzo;
|
||||
|
||||
@SafeParcelable.Field(getter = "getAttributionTag", id = 15)
|
||||
private String zzp;
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public GetServiceRequest(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) int i4, @SafeParcelable.Param(id = 3) int i5, @SafeParcelable.Param(id = 4) String str, @SafeParcelable.Param(id = 5) IBinder iBinder, @SafeParcelable.Param(id = 6) Scope[] scopeArr, @SafeParcelable.Param(id = 7) Bundle bundle, @SafeParcelable.Param(id = 8) Account account, @SafeParcelable.Param(id = 10) Feature[] featureArr, @SafeParcelable.Param(id = 11) Feature[] featureArr2, @SafeParcelable.Param(id = 12) boolean z3, @SafeParcelable.Param(id = 13) int i6, @SafeParcelable.Param(id = 14) boolean z4, @SafeParcelable.Param(id = 15) String str2) {
|
||||
scopeArr = scopeArr == null ? zza : scopeArr;
|
||||
bundle = bundle == null ? new Bundle() : bundle;
|
||||
featureArr = featureArr == null ? zzb : featureArr;
|
||||
featureArr2 = featureArr2 == null ? zzb : featureArr2;
|
||||
this.zzc = i;
|
||||
this.zzd = i4;
|
||||
this.zze = i5;
|
||||
if ("com.google.android.gms".equals(str)) {
|
||||
this.zzf = "com.google.android.gms";
|
||||
} else {
|
||||
this.zzf = str;
|
||||
}
|
||||
if (i < 2) {
|
||||
this.zzj = iBinder != null ? AccountAccessor.getAccountBinderSafe(IAccountAccessor.Stub.asInterface(iBinder)) : null;
|
||||
} else {
|
||||
this.zzg = iBinder;
|
||||
this.zzj = account;
|
||||
}
|
||||
this.zzh = scopeArr;
|
||||
this.zzi = bundle;
|
||||
this.zzk = featureArr;
|
||||
this.zzl = featureArr2;
|
||||
this.zzm = z3;
|
||||
this.zzn = i6;
|
||||
this.zzo = z4;
|
||||
this.zzp = str2;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public Bundle getExtraArgs() {
|
||||
return this.zzi;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
zzm.zza(this, parcel, i);
|
||||
}
|
||||
|
||||
public final String zza() {
|
||||
return this.zzp;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.accounts.Account;
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
import android.os.IInterface;
|
||||
import android.os.Looper;
|
||||
import com.google.android.gms.common.Feature;
|
||||
import com.google.android.gms.common.GoogleApiAvailability;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.api.Scope;
|
||||
import com.google.android.gms.common.api.internal.ConnectionCallbacks;
|
||||
import com.google.android.gms.common.api.internal.OnConnectionFailedListener;
|
||||
import com.google.android.gms.common.util.VisibleForTesting;
|
||||
import java.util.Collections;
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class GmsClient<T extends IInterface> extends BaseGmsClient<T> implements Api.Client, zaj {
|
||||
private static volatile Executor zaa;
|
||||
private final ClientSettings zab;
|
||||
private final Set zac;
|
||||
private final Account zad;
|
||||
|
||||
@VisibleForTesting
|
||||
@KeepForSdk
|
||||
public GmsClient(Context context, Handler handler, int i, ClientSettings clientSettings) {
|
||||
super(context, handler, GmsClientSupervisor.getInstance(context), GoogleApiAvailability.getInstance(), i, null, null);
|
||||
this.zab = (ClientSettings) Preconditions.checkNotNull(clientSettings);
|
||||
this.zad = clientSettings.getAccount();
|
||||
this.zac = zaa(clientSettings.getAllRequestedScopes());
|
||||
}
|
||||
|
||||
private final Set zaa(Set set) {
|
||||
Set<Scope> validateScopes = validateScopes(set);
|
||||
Iterator<Scope> it = validateScopes.iterator();
|
||||
while (it.hasNext()) {
|
||||
if (!set.contains(it.next())) {
|
||||
throw new IllegalStateException("Expanding scopes is not permitted, use implied scopes instead");
|
||||
}
|
||||
}
|
||||
return validateScopes;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final Account getAccount() {
|
||||
return this.zad;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final Executor getBindServiceExecutor() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public final ClientSettings getClientSettings() {
|
||||
return this.zab;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.Api.Client
|
||||
@KeepForSdk
|
||||
public Feature[] getRequiredFeatures() {
|
||||
return new Feature[0];
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
@KeepForSdk
|
||||
public final Set<Scope> getScopes() {
|
||||
return this.zac;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.Api.Client
|
||||
@KeepForSdk
|
||||
public Set<Scope> getScopesForConnectionlessNonSignIn() {
|
||||
return requiresSignIn() ? this.zac : Collections.EMPTY_SET;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public Set<Scope> validateScopes(Set<Scope> set) {
|
||||
return set;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public GmsClient(Context context, Looper looper, int i, ClientSettings clientSettings) {
|
||||
this(context, looper, GmsClientSupervisor.getInstance(context), GoogleApiAvailability.getInstance(), i, clientSettings, null, null);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
@Deprecated
|
||||
public GmsClient(Context context, Looper looper, int i, ClientSettings clientSettings, GoogleApiClient.ConnectionCallbacks connectionCallbacks, GoogleApiClient.OnConnectionFailedListener onConnectionFailedListener) {
|
||||
this(context, looper, i, clientSettings, (ConnectionCallbacks) connectionCallbacks, (OnConnectionFailedListener) onConnectionFailedListener);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public GmsClient(Context context, Looper looper, int i, ClientSettings clientSettings, ConnectionCallbacks connectionCallbacks, OnConnectionFailedListener onConnectionFailedListener) {
|
||||
this(context, looper, GmsClientSupervisor.getInstance(context), GoogleApiAvailability.getInstance(), i, clientSettings, (ConnectionCallbacks) Preconditions.checkNotNull(connectionCallbacks), (OnConnectionFailedListener) Preconditions.checkNotNull(onConnectionFailedListener));
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
public GmsClient(Context context, Looper looper, GmsClientSupervisor gmsClientSupervisor, GoogleApiAvailability googleApiAvailability, int i, ClientSettings clientSettings, ConnectionCallbacks connectionCallbacks, OnConnectionFailedListener onConnectionFailedListener) {
|
||||
super(context, looper, gmsClientSupervisor, googleApiAvailability, i, connectionCallbacks == null ? null : new zah(connectionCallbacks), onConnectionFailedListener != null ? new zai(onConnectionFailedListener) : null, clientSettings.zac());
|
||||
this.zab = clientSettings;
|
||||
this.zad = clientSettings.getAccount();
|
||||
this.zac = zaa(clientSettings.getAllRequestedScopes());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.ServiceConnection;
|
||||
import android.os.HandlerThread;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.util.VisibleForTesting;
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class GmsClientSupervisor {
|
||||
|
||||
@VisibleForTesting
|
||||
static HandlerThread zza = null;
|
||||
private static int zzb = 4225;
|
||||
private static final Object zzc = new Object();
|
||||
private static zzr zzd = null;
|
||||
private static boolean zze = false;
|
||||
|
||||
@KeepForSdk
|
||||
public static int getDefaultBindFlags() {
|
||||
return zzb;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static GmsClientSupervisor getInstance(Context context) {
|
||||
synchronized (zzc) {
|
||||
try {
|
||||
if (zzd == null) {
|
||||
zzd = new zzr(context.getApplicationContext(), zze ? getOrStartHandlerThread().getLooper() : context.getMainLooper());
|
||||
}
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
return zzd;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static HandlerThread getOrStartHandlerThread() {
|
||||
synchronized (zzc) {
|
||||
try {
|
||||
HandlerThread handlerThread = zza;
|
||||
if (handlerThread != null) {
|
||||
return handlerThread;
|
||||
}
|
||||
HandlerThread handlerThread2 = new HandlerThread("GoogleApiHandler", 9);
|
||||
zza = handlerThread2;
|
||||
handlerThread2.start();
|
||||
return zza;
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static void setUseHandlerThreadForCallbacks() {
|
||||
synchronized (zzc) {
|
||||
try {
|
||||
zzr zzrVar = zzd;
|
||||
if (zzrVar != null && !zze) {
|
||||
zzrVar.zzi(getOrStartHandlerThread().getLooper());
|
||||
}
|
||||
zze = true;
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public boolean bindService(ComponentName componentName, ServiceConnection serviceConnection, String str) {
|
||||
return zzc(new zzn(componentName, getDefaultBindFlags()), serviceConnection, str, null);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void unbindService(ComponentName componentName, ServiceConnection serviceConnection, String str) {
|
||||
zza(new zzn(componentName, getDefaultBindFlags()), serviceConnection, str);
|
||||
}
|
||||
|
||||
public abstract void zza(zzn zznVar, ServiceConnection serviceConnection, String str);
|
||||
|
||||
public final void zzb(String str, String str2, int i, ServiceConnection serviceConnection, String str3, boolean z3) {
|
||||
zza(new zzn(str, str2, i, z3), serviceConnection, str3);
|
||||
}
|
||||
|
||||
public abstract boolean zzc(zzn zznVar, ServiceConnection serviceConnection, String str, Executor executor);
|
||||
|
||||
@KeepForSdk
|
||||
public boolean bindService(String str, ServiceConnection serviceConnection, String str2) {
|
||||
return zzc(new zzn(str, getDefaultBindFlags(), false), serviceConnection, str2, null);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void unbindService(String str, ServiceConnection serviceConnection, String str2) {
|
||||
zza(new zzn(str, getDefaultBindFlags(), false), serviceConnection, str2);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.util.Log;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public final class GmsLogger {
|
||||
private final String zza;
|
||||
private final String zzb;
|
||||
|
||||
@KeepForSdk
|
||||
public GmsLogger(String str) {
|
||||
this(str, null);
|
||||
}
|
||||
|
||||
private final String zza(String str) {
|
||||
String str2 = this.zzb;
|
||||
return str2 == null ? str : str2.concat(str);
|
||||
}
|
||||
|
||||
private final String zzb(String str, Object... objArr) {
|
||||
String format = String.format(str, objArr);
|
||||
String str2 = this.zzb;
|
||||
return str2 == null ? format : str2.concat(format);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public boolean canLog(int i) {
|
||||
return Log.isLoggable(this.zza, i);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public boolean canLogPii() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void d(String str, String str2) {
|
||||
if (canLog(3)) {
|
||||
Log.d(str, zza(str2));
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void e(String str, String str2) {
|
||||
if (canLog(6)) {
|
||||
Log.e(str, zza(str2));
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void efmt(String str, String str2, Object... objArr) {
|
||||
if (canLog(6)) {
|
||||
Log.e(str, zzb(str2, objArr));
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void i(String str, String str2) {
|
||||
if (canLog(4)) {
|
||||
Log.i(str, zza(str2));
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void pii(String str, String str2) {
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void v(String str, String str2) {
|
||||
if (canLog(2)) {
|
||||
Log.v(str, zza(str2));
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void w(String str, String str2) {
|
||||
if (canLog(5)) {
|
||||
Log.w(str, zza(str2));
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void wfmt(String str, String str2, Object... objArr) {
|
||||
if (canLog(5)) {
|
||||
Log.w(this.zza, zzb(str2, objArr));
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void wtf(String str, String str2, Throwable th) {
|
||||
if (canLog(7)) {
|
||||
Log.e(str, zza(str2), th);
|
||||
Log.wtf(str, zza(str2), th);
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public GmsLogger(String str, String str2) {
|
||||
Preconditions.checkNotNull(str, "log tag cannot be null");
|
||||
Preconditions.checkArgument(str.length() <= 23, "tag \"%s\" is longer than the %d character maximum", str, 23);
|
||||
this.zza = str;
|
||||
if (str2 == null || str2.length() <= 0) {
|
||||
this.zzb = null;
|
||||
} else {
|
||||
this.zzb = str2;
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void pii(String str, String str2, Throwable th) {
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void d(String str, String str2, Throwable th) {
|
||||
if (canLog(3)) {
|
||||
Log.d(str, zza(str2), th);
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void e(String str, String str2, Throwable th) {
|
||||
if (canLog(6)) {
|
||||
Log.e(str, zza(str2), th);
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void i(String str, String str2, Throwable th) {
|
||||
if (canLog(4)) {
|
||||
Log.i(str, zza(str2), th);
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void v(String str, String str2, Throwable th) {
|
||||
if (canLog(2)) {
|
||||
Log.v(str, zza(str2), th);
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public void w(String str, String str2, Throwable th) {
|
||||
if (canLog(5)) {
|
||||
Log.w(str, zza(str2), th);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR})
|
||||
@KeepForSdk
|
||||
@Documented
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
/* loaded from: classes3.dex */
|
||||
public @interface HideFirstParty {
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.accounts.Account;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface IAccountAccessor extends IInterface {
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static abstract class Stub extends com.google.android.gms.internal.common.zzb implements IAccountAccessor {
|
||||
public Stub() {
|
||||
super("com.google.android.gms.common.internal.IAccountAccessor");
|
||||
}
|
||||
|
||||
public static IAccountAccessor asInterface(IBinder iBinder) {
|
||||
if (iBinder == null) {
|
||||
return null;
|
||||
}
|
||||
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.common.internal.IAccountAccessor");
|
||||
return queryLocalInterface instanceof IAccountAccessor ? (IAccountAccessor) queryLocalInterface : new zzv(iBinder);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.common.zzb
|
||||
public final boolean zza(int i, Parcel parcel, Parcel parcel2, int i4) throws RemoteException {
|
||||
if (i != 2) {
|
||||
return false;
|
||||
}
|
||||
Account zzb = zzb();
|
||||
parcel2.writeNoException();
|
||||
com.google.android.gms.internal.common.zzc.zze(parcel2, zzb);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Account zzb() throws RemoteException;
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface ICancelToken extends IInterface {
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static abstract class Stub extends com.google.android.gms.internal.common.zzb implements ICancelToken {
|
||||
public Stub() {
|
||||
super("com.google.android.gms.common.internal.ICancelToken");
|
||||
}
|
||||
|
||||
public static ICancelToken asInterface(IBinder iBinder) {
|
||||
if (iBinder == null) {
|
||||
return null;
|
||||
}
|
||||
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.common.internal.ICancelToken");
|
||||
return queryLocalInterface instanceof ICancelToken ? (ICancelToken) queryLocalInterface : new zzw(iBinder);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.common.zzb
|
||||
public final boolean zza(int i, Parcel parcel, Parcel parcel2, int i4) throws RemoteException {
|
||||
if (i != 2) {
|
||||
return false;
|
||||
}
|
||||
cancel();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
void cancel() throws RemoteException;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface IGmsCallbacks extends IInterface {
|
||||
void onPostInitComplete(int i, IBinder iBinder, Bundle bundle) throws RemoteException;
|
||||
|
||||
void zzb(int i, Bundle bundle) throws RemoteException;
|
||||
|
||||
void zzc(int i, IBinder iBinder, zzj zzjVar) throws RemoteException;
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Binder;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface IGmsServiceBroker extends IInterface {
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static abstract class Stub extends Binder implements IGmsServiceBroker {
|
||||
public Stub() {
|
||||
attachInterface(this, "com.google.android.gms.common.internal.IGmsServiceBroker");
|
||||
}
|
||||
|
||||
@Override // android.os.IInterface
|
||||
@KeepForSdk
|
||||
public IBinder asBinder() {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override // android.os.Binder
|
||||
public final boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i4) throws RemoteException {
|
||||
IGmsCallbacks zzaaVar;
|
||||
if (i > 16777215) {
|
||||
return super.onTransact(i, parcel, parcel2, i4);
|
||||
}
|
||||
parcel.enforceInterface("com.google.android.gms.common.internal.IGmsServiceBroker");
|
||||
IBinder readStrongBinder = parcel.readStrongBinder();
|
||||
if (readStrongBinder == null) {
|
||||
zzaaVar = null;
|
||||
} else {
|
||||
IInterface queryLocalInterface = readStrongBinder.queryLocalInterface("com.google.android.gms.common.internal.IGmsCallbacks");
|
||||
zzaaVar = queryLocalInterface instanceof IGmsCallbacks ? (IGmsCallbacks) queryLocalInterface : new zzaa(readStrongBinder);
|
||||
}
|
||||
if (i == 46) {
|
||||
getService(zzaaVar, parcel.readInt() != 0 ? GetServiceRequest.CREATOR.createFromParcel(parcel) : null);
|
||||
Preconditions.checkNotNull(parcel2);
|
||||
parcel2.writeNoException();
|
||||
return true;
|
||||
}
|
||||
if (i == 47) {
|
||||
if (parcel.readInt() != 0) {
|
||||
zzaj.CREATOR.createFromParcel(parcel);
|
||||
}
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
parcel.readInt();
|
||||
if (i != 4) {
|
||||
parcel.readString();
|
||||
if (i != 1) {
|
||||
if (i != 2 && i != 23 && i != 25 && i != 27) {
|
||||
if (i != 30) {
|
||||
if (i == 34) {
|
||||
parcel.readString();
|
||||
} else if (i != 41 && i != 43 && i != 37 && i != 38) {
|
||||
switch (i) {
|
||||
case 9:
|
||||
parcel.readString();
|
||||
parcel.createStringArray();
|
||||
parcel.readString();
|
||||
parcel.readStrongBinder();
|
||||
parcel.readString();
|
||||
if (parcel.readInt() != 0) {
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 10:
|
||||
parcel.readString();
|
||||
parcel.createStringArray();
|
||||
break;
|
||||
case 19:
|
||||
parcel.readStrongBinder();
|
||||
if (parcel.readInt() != 0) {
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
parcel.createStringArray();
|
||||
parcel.readString();
|
||||
if (parcel.readInt() != 0) {
|
||||
}
|
||||
}
|
||||
if (parcel.readInt() != 0) {
|
||||
}
|
||||
} else {
|
||||
parcel.readString();
|
||||
parcel.createStringArray();
|
||||
parcel.readString();
|
||||
if (parcel.readInt() != 0) {
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
void getService(IGmsCallbacks iGmsCallbacks, GetServiceRequest getServiceRequest) throws RemoteException;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public final class ImagesContract {
|
||||
|
||||
@KeepForSdk
|
||||
public static final String LOCAL = "local";
|
||||
|
||||
@KeepForSdk
|
||||
public static final String URL = "url";
|
||||
}
|
||||
@@ -0,0 +1,147 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.util.VisibleForTesting;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
@KeepForSdk
|
||||
@Deprecated
|
||||
/* loaded from: classes3.dex */
|
||||
public class LibraryVersion {
|
||||
private static final GmsLogger zza = new GmsLogger("LibraryVersion", "");
|
||||
private static LibraryVersion zzb = new LibraryVersion();
|
||||
private ConcurrentHashMap zzc = new ConcurrentHashMap();
|
||||
|
||||
@VisibleForTesting
|
||||
public LibraryVersion() {
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static LibraryVersion getInstance() {
|
||||
return zzb;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:16:0x009d */
|
||||
/* JADX WARN: Type inference failed for: r4v0 */
|
||||
/* JADX WARN: Type inference failed for: r4v1 */
|
||||
/* JADX WARN: Type inference failed for: r4v11 */
|
||||
/* JADX WARN: Type inference failed for: r4v14 */
|
||||
/* JADX WARN: Type inference failed for: r4v15 */
|
||||
/* JADX WARN: Type inference failed for: r4v16 */
|
||||
/* JADX WARN: Type inference failed for: r4v2, types: [java.io.Closeable] */
|
||||
/* JADX WARN: Type inference failed for: r4v4 */
|
||||
/* JADX WARN: Type inference failed for: r4v5 */
|
||||
/* JADX WARN: Type inference failed for: r4v6, types: [java.lang.Object, java.lang.String] */
|
||||
/* JADX WARN: Type inference failed for: r4v7, types: [java.lang.String] */
|
||||
/* JADX WARN: Type inference failed for: r4v8 */
|
||||
/* JADX WARN: Type inference failed for: r4v9 */
|
||||
@com.google.android.gms.common.annotation.KeepForSdk
|
||||
@java.lang.Deprecated
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.String getVersion(java.lang.String r9) {
|
||||
/*
|
||||
r8 = this;
|
||||
java.lang.String r0 = "LibraryVersion"
|
||||
java.lang.String r1 = "Failed to get app version for libraryName: "
|
||||
java.lang.String r2 = "/"
|
||||
java.lang.String r3 = "Please provide a valid libraryName"
|
||||
com.google.android.gms.common.internal.Preconditions.checkNotEmpty(r9, r3)
|
||||
java.util.concurrent.ConcurrentHashMap r3 = r8.zzc
|
||||
boolean r3 = r3.containsKey(r9)
|
||||
if (r3 == 0) goto L1c
|
||||
java.util.concurrent.ConcurrentHashMap r8 = r8.zzc
|
||||
java.lang.Object r8 = r8.get(r9)
|
||||
java.lang.String r8 = (java.lang.String) r8
|
||||
return r8
|
||||
L1c:
|
||||
java.util.Properties r3 = new java.util.Properties
|
||||
r3.<init>()
|
||||
r4 = 0
|
||||
java.lang.Class<com.google.android.gms.common.internal.LibraryVersion> r5 = com.google.android.gms.common.internal.LibraryVersion.class
|
||||
java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch: java.io.IOException -> L7e java.lang.Throwable -> L81
|
||||
r6.<init>(r2) // Catch: java.io.IOException -> L7e java.lang.Throwable -> L81
|
||||
r6.append(r9) // Catch: java.io.IOException -> L7e java.lang.Throwable -> L81
|
||||
java.lang.String r2 = ".properties"
|
||||
r6.append(r2) // Catch: java.io.IOException -> L7e java.lang.Throwable -> L81
|
||||
java.lang.String r2 = r6.toString() // Catch: java.io.IOException -> L7e java.lang.Throwable -> L81
|
||||
java.io.InputStream r2 = r5.getResourceAsStream(r2) // Catch: java.io.IOException -> L7e java.lang.Throwable -> L81
|
||||
if (r2 == 0) goto L65
|
||||
r3.load(r2) // Catch: java.lang.Throwable -> L5e java.io.IOException -> L60
|
||||
java.lang.String r5 = "version"
|
||||
java.lang.String r4 = r3.getProperty(r5, r4) // Catch: java.lang.Throwable -> L5e java.io.IOException -> L60
|
||||
com.google.android.gms.common.internal.GmsLogger r3 = com.google.android.gms.common.internal.LibraryVersion.zza // Catch: java.lang.Throwable -> L5e java.io.IOException -> L60
|
||||
java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch: java.lang.Throwable -> L5e java.io.IOException -> L60
|
||||
r5.<init>() // Catch: java.lang.Throwable -> L5e java.io.IOException -> L60
|
||||
r5.append(r9) // Catch: java.lang.Throwable -> L5e java.io.IOException -> L60
|
||||
java.lang.String r6 = " version is "
|
||||
r5.append(r6) // Catch: java.lang.Throwable -> L5e java.io.IOException -> L60
|
||||
r5.append(r4) // Catch: java.lang.Throwable -> L5e java.io.IOException -> L60
|
||||
java.lang.String r5 = r5.toString() // Catch: java.lang.Throwable -> L5e java.io.IOException -> L60
|
||||
r3.v(r0, r5) // Catch: java.lang.Throwable -> L5e java.io.IOException -> L60
|
||||
goto L76
|
||||
L5e:
|
||||
r8 = move-exception
|
||||
goto L7c
|
||||
L60:
|
||||
r3 = move-exception
|
||||
r7 = r4
|
||||
r4 = r2
|
||||
r2 = r7
|
||||
goto L84
|
||||
L65:
|
||||
com.google.android.gms.common.internal.GmsLogger r3 = com.google.android.gms.common.internal.LibraryVersion.zza // Catch: java.lang.Throwable -> L5e java.io.IOException -> L60
|
||||
java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch: java.lang.Throwable -> L5e java.io.IOException -> L60
|
||||
r5.<init>(r1) // Catch: java.lang.Throwable -> L5e java.io.IOException -> L60
|
||||
r5.append(r9) // Catch: java.lang.Throwable -> L5e java.io.IOException -> L60
|
||||
java.lang.String r5 = r5.toString() // Catch: java.lang.Throwable -> L5e java.io.IOException -> L60
|
||||
r3.w(r0, r5) // Catch: java.lang.Throwable -> L5e java.io.IOException -> L60
|
||||
L76:
|
||||
if (r2 == 0) goto L9b
|
||||
com.google.android.gms.common.util.IOUtils.closeQuietly(r2)
|
||||
goto L9b
|
||||
L7c:
|
||||
r4 = r2
|
||||
goto Lac
|
||||
L7e:
|
||||
r2 = move-exception
|
||||
r3 = r2
|
||||
goto L83
|
||||
L81:
|
||||
r8 = move-exception
|
||||
goto Lac
|
||||
L83:
|
||||
r2 = r4
|
||||
L84:
|
||||
com.google.android.gms.common.internal.GmsLogger r5 = com.google.android.gms.common.internal.LibraryVersion.zza // Catch: java.lang.Throwable -> L81
|
||||
java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch: java.lang.Throwable -> L81
|
||||
r6.<init>(r1) // Catch: java.lang.Throwable -> L81
|
||||
r6.append(r9) // Catch: java.lang.Throwable -> L81
|
||||
java.lang.String r1 = r6.toString() // Catch: java.lang.Throwable -> L81
|
||||
r5.e(r0, r1, r3) // Catch: java.lang.Throwable -> L81
|
||||
if (r4 == 0) goto L9a
|
||||
com.google.android.gms.common.util.IOUtils.closeQuietly(r4)
|
||||
L9a:
|
||||
r4 = r2
|
||||
L9b:
|
||||
if (r4 != 0) goto La6
|
||||
com.google.android.gms.common.internal.GmsLogger r1 = com.google.android.gms.common.internal.LibraryVersion.zza
|
||||
java.lang.String r2 = ".properties file is dropped during release process. Failure to read app version is expected during Google internal testing where locally-built libraries are used"
|
||||
r1.d(r0, r2)
|
||||
java.lang.String r4 = "UNKNOWN"
|
||||
La6:
|
||||
java.util.concurrent.ConcurrentHashMap r8 = r8.zzc
|
||||
r8.put(r9, r4)
|
||||
return r4
|
||||
Lac:
|
||||
if (r4 == 0) goto Lb1
|
||||
com.google.android.gms.common.util.IOUtils.closeQuietly(r4)
|
||||
Lb1:
|
||||
throw r8
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.common.internal.LibraryVersion.getVersion(java.lang.String):java.lang.String");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
|
||||
|
||||
@KeepForSdk
|
||||
@SafeParcelable.Class(creator = "MethodInvocationCreator")
|
||||
/* loaded from: classes3.dex */
|
||||
public class MethodInvocation extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<MethodInvocation> CREATOR = new zan();
|
||||
|
||||
@SafeParcelable.Field(getter = "getMethodKey", id = 1)
|
||||
private final int zaa;
|
||||
|
||||
@SafeParcelable.Field(getter = "getResultStatusCode", id = 2)
|
||||
private final int zab;
|
||||
|
||||
@SafeParcelable.Field(getter = "getConnectionResultStatusCode", id = 3)
|
||||
private final int zac;
|
||||
|
||||
@SafeParcelable.Field(getter = "getStartTimeMillis", id = 4)
|
||||
private final long zad;
|
||||
|
||||
@SafeParcelable.Field(getter = "getEndTimeMillis", id = 5)
|
||||
private final long zae;
|
||||
|
||||
@SafeParcelable.Field(getter = "getCallingModuleId", id = 6)
|
||||
private final String zaf;
|
||||
|
||||
@SafeParcelable.Field(getter = "getCallingEntryPoint", id = 7)
|
||||
private final String zag;
|
||||
|
||||
@SafeParcelable.Field(defaultValue = "0", getter = "getServiceId", id = 8)
|
||||
private final int zah;
|
||||
|
||||
@SafeParcelable.Field(defaultValue = "-1", getter = "getLatencyMillis", id = 9)
|
||||
private final int zai;
|
||||
|
||||
@KeepForSdk
|
||||
@Deprecated
|
||||
public MethodInvocation(int i, int i4, int i5, long j4, long j5, String str, String str2, int i6) {
|
||||
this(i, i4, i5, j4, j5, str, str2, i6, -1);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, this.zaa);
|
||||
SafeParcelWriter.writeInt(parcel, 2, this.zab);
|
||||
SafeParcelWriter.writeInt(parcel, 3, this.zac);
|
||||
SafeParcelWriter.writeLong(parcel, 4, this.zad);
|
||||
SafeParcelWriter.writeLong(parcel, 5, this.zae);
|
||||
SafeParcelWriter.writeString(parcel, 6, this.zaf, false);
|
||||
SafeParcelWriter.writeString(parcel, 7, this.zag, false);
|
||||
SafeParcelWriter.writeInt(parcel, 8, this.zah);
|
||||
SafeParcelWriter.writeInt(parcel, 9, this.zai);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public MethodInvocation(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) int i4, @SafeParcelable.Param(id = 3) int i5, @SafeParcelable.Param(id = 4) long j4, @SafeParcelable.Param(id = 5) long j5, @SafeParcelable.Param(id = 6) String str, @SafeParcelable.Param(id = 7) String str2, @SafeParcelable.Param(id = 8) int i6, @SafeParcelable.Param(id = 9) int i7) {
|
||||
this.zaa = i;
|
||||
this.zab = i4;
|
||||
this.zac = i5;
|
||||
this.zad = j4;
|
||||
this.zae = j5;
|
||||
this.zaf = str;
|
||||
this.zag = str2;
|
||||
this.zah = i6;
|
||||
this.zai = i7;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Bundle;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public final class Objects {
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class ToStringHelper {
|
||||
private final List zza;
|
||||
private final Object zzb;
|
||||
|
||||
public /* synthetic */ ToStringHelper(Object obj, zzah zzahVar) {
|
||||
Preconditions.checkNotNull(obj);
|
||||
this.zzb = obj;
|
||||
this.zza = new ArrayList();
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public ToStringHelper add(String str, Object obj) {
|
||||
List list = this.zza;
|
||||
Preconditions.checkNotNull(str);
|
||||
list.add(str + "=" + String.valueOf(obj));
|
||||
return this;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder(100);
|
||||
sb.append(this.zzb.getClass().getSimpleName());
|
||||
sb.append('{');
|
||||
int size = this.zza.size();
|
||||
for (int i = 0; i < size; i++) {
|
||||
sb.append((String) this.zza.get(i));
|
||||
if (i < size - 1) {
|
||||
sb.append(", ");
|
||||
}
|
||||
}
|
||||
sb.append('}');
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
||||
private Objects() {
|
||||
throw new AssertionError("Uninstantiable");
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static boolean checkBundlesEquality(Bundle bundle, Bundle bundle2) {
|
||||
if (bundle == null || bundle2 == null) {
|
||||
return bundle == bundle2;
|
||||
}
|
||||
if (bundle.size() != bundle2.size()) {
|
||||
return false;
|
||||
}
|
||||
Set<String> keySet = bundle.keySet();
|
||||
if (!keySet.containsAll(bundle2.keySet())) {
|
||||
return false;
|
||||
}
|
||||
for (String str : keySet) {
|
||||
if (!equal(bundle.get(str), bundle2.get(str))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static boolean equal(Object obj, Object obj2) {
|
||||
if (obj != obj2) {
|
||||
return obj != null && obj.equals(obj2);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static int hashCode(Object... objArr) {
|
||||
return Arrays.hashCode(objArr);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static ToStringHelper toStringHelper(Object obj) {
|
||||
return new ToStringHelper(obj, null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.api.PendingResult;
|
||||
import com.google.android.gms.common.api.Response;
|
||||
import com.google.android.gms.common.api.Result;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public class PendingResultUtil {
|
||||
private static final zas zaa = new zao();
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public interface ResultConverter<R extends Result, T> {
|
||||
@KeepForSdk
|
||||
T convert(R r4);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static <R extends Result, T extends Response<R>> Task<T> toResponseTask(PendingResult<R> pendingResult, T t2) {
|
||||
return toTask(pendingResult, new zaq(t2));
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static <R extends Result, T> Task<T> toTask(PendingResult<R> pendingResult, ResultConverter<R, T> resultConverter) {
|
||||
zas zasVar = zaa;
|
||||
TaskCompletionSource taskCompletionSource = new TaskCompletionSource();
|
||||
pendingResult.addStatusListener(new zap(pendingResult, taskCompletionSource, resultConverter, zasVar));
|
||||
return taskCompletionSource.getTask();
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static <R extends Result> Task<Void> toVoidTask(PendingResult<R> pendingResult) {
|
||||
return toTask(pendingResult, new zar());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.text.TextUtils;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import org.checkerframework.checker.nullness.qual.EnsuresNonNull;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public final class Preconditions {
|
||||
private Preconditions() {
|
||||
throw new AssertionError("Uninstantiable");
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static void checkArgument(boolean z3) {
|
||||
if (!z3) {
|
||||
throw new IllegalArgumentException();
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static void checkHandlerThread(Handler handler) {
|
||||
String str;
|
||||
Looper myLooper = Looper.myLooper();
|
||||
if (myLooper != handler.getLooper()) {
|
||||
if (myLooper != null) {
|
||||
str = myLooper.getThread().getName();
|
||||
} else {
|
||||
str = "null current looper";
|
||||
}
|
||||
throw new IllegalStateException("Must be called on " + handler.getLooper().getThread().getName() + " thread, but got " + str + ".");
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static void checkMainThread() {
|
||||
checkMainThread("Must be called on the main application thread");
|
||||
}
|
||||
|
||||
@EnsuresNonNull({"#1"})
|
||||
@KeepForSdk
|
||||
public static String checkNotEmpty(String str) {
|
||||
if (TextUtils.isEmpty(str)) {
|
||||
throw new IllegalArgumentException("Given String is empty or null");
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static void checkNotMainThread() {
|
||||
checkNotMainThread("Must not be called on the main application thread");
|
||||
}
|
||||
|
||||
@EnsuresNonNull({"#1"})
|
||||
@KeepForSdk
|
||||
public static <T> T checkNotNull(T t2) {
|
||||
if (t2 != null) {
|
||||
return t2;
|
||||
}
|
||||
throw new NullPointerException("null reference");
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static int checkNotZero(int i) {
|
||||
if (i != 0) {
|
||||
return i;
|
||||
}
|
||||
throw new IllegalArgumentException("Given Integer is zero");
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static void checkState(boolean z3) {
|
||||
if (!z3) {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static void checkArgument(boolean z3, Object obj) {
|
||||
if (!z3) {
|
||||
throw new IllegalArgumentException(String.valueOf(obj));
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static void checkMainThread(String str) {
|
||||
if (!com.google.android.gms.common.util.zzb.zza()) {
|
||||
throw new IllegalStateException(str);
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static void checkNotMainThread(String str) {
|
||||
if (com.google.android.gms.common.util.zzb.zza()) {
|
||||
throw new IllegalStateException(str);
|
||||
}
|
||||
}
|
||||
|
||||
@EnsuresNonNull({"#1"})
|
||||
@KeepForSdk
|
||||
public static <T> T checkNotNull(T t2, Object obj) {
|
||||
if (t2 != null) {
|
||||
return t2;
|
||||
}
|
||||
throw new NullPointerException(String.valueOf(obj));
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static int checkNotZero(int i, Object obj) {
|
||||
if (i != 0) {
|
||||
return i;
|
||||
}
|
||||
throw new IllegalArgumentException(String.valueOf(obj));
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static void checkState(boolean z3, Object obj) {
|
||||
if (!z3) {
|
||||
throw new IllegalStateException(String.valueOf(obj));
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static void checkArgument(boolean z3, String str, Object... objArr) {
|
||||
if (!z3) {
|
||||
throw new IllegalArgumentException(String.format(str, objArr));
|
||||
}
|
||||
}
|
||||
|
||||
@EnsuresNonNull({"#1"})
|
||||
@KeepForSdk
|
||||
public static String checkNotEmpty(String str, Object obj) {
|
||||
if (TextUtils.isEmpty(str)) {
|
||||
throw new IllegalArgumentException(String.valueOf(obj));
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static long checkNotZero(long j4) {
|
||||
if (j4 != 0) {
|
||||
return j4;
|
||||
}
|
||||
throw new IllegalArgumentException("Given Long is zero");
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static void checkState(boolean z3, String str, Object... objArr) {
|
||||
if (!z3) {
|
||||
throw new IllegalStateException(String.format(str, objArr));
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static long checkNotZero(long j4, Object obj) {
|
||||
if (j4 != 0) {
|
||||
return j4;
|
||||
}
|
||||
throw new IllegalArgumentException(String.valueOf(obj));
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static void checkHandlerThread(Handler handler, String str) {
|
||||
if (Looper.myLooper() != handler.getLooper()) {
|
||||
throw new IllegalStateException(str);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Parcelable;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface ReflectedParcelable extends Parcelable {
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.net.Uri;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public final class ResourceUtils {
|
||||
private static final Uri zza = new Uri.Builder().scheme("android.resource").authority("com.google.android.gms").appendPath("drawable").build();
|
||||
|
||||
private ResourceUtils() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.util.VisibleForTesting;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public final class RootTelemetryConfigManager {
|
||||
private static RootTelemetryConfigManager zza;
|
||||
private static final RootTelemetryConfiguration zzb = new RootTelemetryConfiguration(0, false, false, 0, 0);
|
||||
private RootTelemetryConfiguration zzc;
|
||||
|
||||
private RootTelemetryConfigManager() {
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static synchronized RootTelemetryConfigManager getInstance() {
|
||||
RootTelemetryConfigManager rootTelemetryConfigManager;
|
||||
synchronized (RootTelemetryConfigManager.class) {
|
||||
try {
|
||||
if (zza == null) {
|
||||
zza = new RootTelemetryConfigManager();
|
||||
}
|
||||
rootTelemetryConfigManager = zza;
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
return rootTelemetryConfigManager;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public RootTelemetryConfiguration getConfig() {
|
||||
return this.zzc;
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
public final synchronized void zza(RootTelemetryConfiguration rootTelemetryConfiguration) {
|
||||
if (rootTelemetryConfiguration == null) {
|
||||
this.zzc = zzb;
|
||||
return;
|
||||
}
|
||||
RootTelemetryConfiguration rootTelemetryConfiguration2 = this.zzc;
|
||||
if (rootTelemetryConfiguration2 == null || rootTelemetryConfiguration2.getVersion() < rootTelemetryConfiguration.getVersion()) {
|
||||
this.zzc = rootTelemetryConfiguration;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
|
||||
|
||||
@KeepForSdk
|
||||
@SafeParcelable.Class(creator = "RootTelemetryConfigurationCreator")
|
||||
/* loaded from: classes3.dex */
|
||||
public class RootTelemetryConfiguration extends AbstractSafeParcelable {
|
||||
|
||||
@KeepForSdk
|
||||
public static final Parcelable.Creator<RootTelemetryConfiguration> CREATOR = new zzai();
|
||||
|
||||
@SafeParcelable.Field(getter = "getVersion", id = 1)
|
||||
private final int zza;
|
||||
|
||||
@SafeParcelable.Field(getter = "getMethodInvocationTelemetryEnabled", id = 2)
|
||||
private final boolean zzb;
|
||||
|
||||
@SafeParcelable.Field(getter = "getMethodTimingTelemetryEnabled", id = 3)
|
||||
private final boolean zzc;
|
||||
|
||||
@SafeParcelable.Field(getter = "getBatchPeriodMillis", id = 4)
|
||||
private final int zzd;
|
||||
|
||||
@SafeParcelable.Field(getter = "getMaxMethodInvocationsInBatch", id = 5)
|
||||
private final int zze;
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public RootTelemetryConfiguration(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) boolean z3, @SafeParcelable.Param(id = 3) boolean z4, @SafeParcelable.Param(id = 4) int i4, @SafeParcelable.Param(id = 5) int i5) {
|
||||
this.zza = i;
|
||||
this.zzb = z3;
|
||||
this.zzc = z4;
|
||||
this.zzd = i4;
|
||||
this.zze = i5;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public int getBatchPeriodMillis() {
|
||||
return this.zzd;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public int getMaxMethodInvocationsInBatch() {
|
||||
return this.zze;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public boolean getMethodInvocationTelemetryEnabled() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public boolean getMethodTimingTelemetryEnabled() {
|
||||
return this.zzc;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public int getVersion() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, getVersion());
|
||||
SafeParcelWriter.writeBoolean(parcel, 2, getMethodInvocationTelemetryEnabled());
|
||||
SafeParcelWriter.writeBoolean(parcel, 3, getMethodTimingTelemetryEnabled());
|
||||
SafeParcelWriter.writeInt(parcel, 4, getBatchPeriodMillis());
|
||||
SafeParcelWriter.writeInt(parcel, 5, getMaxMethodInvocationsInBatch());
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public final class ServiceSpecificExtraArgs {
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public interface CastExtraArgs {
|
||||
|
||||
@KeepForSdk
|
||||
public static final String LISTENER = "listener";
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public interface GamesExtraArgs {
|
||||
|
||||
@KeepForSdk
|
||||
public static final String DESIRED_LOCALE = "com.google.android.gms.games.key.desiredLocale";
|
||||
|
||||
@KeepForSdk
|
||||
public static final String GAME_PACKAGE_NAME = "com.google.android.gms.games.key.gamePackageName";
|
||||
|
||||
@KeepForSdk
|
||||
public static final String SIGNIN_OPTIONS = "com.google.android.gms.games.key.signInOptions";
|
||||
|
||||
@KeepForSdk
|
||||
public static final String WINDOW_TOKEN = "com.google.android.gms.games.key.popupWindowToken";
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public interface PlusExtraArgs {
|
||||
|
||||
@KeepForSdk
|
||||
public static final String PLUS_AUTH_PACKAGE = "auth_package";
|
||||
}
|
||||
|
||||
private ServiceSpecificExtraArgs() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR})
|
||||
@Documented
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
/* loaded from: classes3.dex */
|
||||
public @interface ShowFirstParty {
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.Resources;
|
||||
import com.google.android.gms.common.R;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public class StringResourceValueReader {
|
||||
private final Resources zza;
|
||||
private final String zzb;
|
||||
|
||||
public StringResourceValueReader(Context context) {
|
||||
Preconditions.checkNotNull(context);
|
||||
Resources resources = context.getResources();
|
||||
this.zza = resources;
|
||||
this.zzb = resources.getResourcePackageName(R.string.common_google_play_services_unknown_issue);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public String getString(String str) {
|
||||
int identifier = this.zza.getIdentifier(str, "string", this.zzb);
|
||||
if (identifier == 0) {
|
||||
return null;
|
||||
}
|
||||
return this.zza.getString(identifier);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@KeepForSdk
|
||||
@SafeParcelable.Class(creator = "TelemetryDataCreator")
|
||||
/* loaded from: classes3.dex */
|
||||
public class TelemetryData extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<TelemetryData> CREATOR = new zaab();
|
||||
|
||||
@SafeParcelable.Field(getter = "getTelemetryConfigVersion", id = 1)
|
||||
private final int zaa;
|
||||
|
||||
@SafeParcelable.Field(getter = "getMethodInvocations", id = 2)
|
||||
private List zab;
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public TelemetryData(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) List list) {
|
||||
this.zaa = i;
|
||||
this.zab = list;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, this.zaa);
|
||||
SafeParcelWriter.writeTypedList(parcel, 2, this.zab, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
|
||||
public final int zaa() {
|
||||
return this.zaa;
|
||||
}
|
||||
|
||||
public final List zab() {
|
||||
return this.zab;
|
||||
}
|
||||
|
||||
public final void zac(MethodInvocation methodInvocation) {
|
||||
if (this.zab == null) {
|
||||
this.zab = new ArrayList();
|
||||
}
|
||||
this.zab.add(methodInvocation);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.content.Context;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public class TelemetryLogging {
|
||||
private TelemetryLogging() {
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static TelemetryLoggingClient getClient(Context context) {
|
||||
return getClient(context, TelemetryLoggingOptions.zaa);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static TelemetryLoggingClient getClient(Context context, TelemetryLoggingOptions telemetryLoggingOptions) {
|
||||
return new com.google.android.gms.common.internal.service.zao(context, telemetryLoggingOptions);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.api.HasApiKey;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
import com.google.errorprone.annotations.RestrictedInheritance;
|
||||
|
||||
@KeepForSdk
|
||||
@RestrictedInheritance(allowedOnPath = ".*java.*/com/google/android/gms.*", explanation = "Use canonical fakes instead.", link = "go/gmscore-restrictedinheritance")
|
||||
/* loaded from: classes3.dex */
|
||||
public interface TelemetryLoggingClient extends HasApiKey<TelemetryLoggingOptions> {
|
||||
@KeepForSdk
|
||||
Task<Void> log(TelemetryData telemetryData);
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Bundle;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public class TelemetryLoggingOptions implements Api.ApiOptions.Optional {
|
||||
public static final TelemetryLoggingOptions zaa = builder().build();
|
||||
private final String zab;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public static class Builder {
|
||||
private String zaa;
|
||||
|
||||
private Builder() {
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public TelemetryLoggingOptions build() {
|
||||
return new TelemetryLoggingOptions(this.zaa, null);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public Builder setApi(String str) {
|
||||
this.zaa = str;
|
||||
return this;
|
||||
}
|
||||
|
||||
public /* synthetic */ Builder(zaac zaacVar) {
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ TelemetryLoggingOptions(String str, zaad zaadVar) {
|
||||
this.zab = str;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static Builder builder() {
|
||||
return new Builder(null);
|
||||
}
|
||||
|
||||
public final boolean equals(Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (obj instanceof TelemetryLoggingOptions) {
|
||||
return Objects.equal(this.zab, ((TelemetryLoggingOptions) obj).zab);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public final int hashCode() {
|
||||
return Objects.hashCode(this.zab);
|
||||
}
|
||||
|
||||
public final Bundle zaa() {
|
||||
Bundle bundle = new Bundle();
|
||||
String str = this.zab;
|
||||
if (str != null) {
|
||||
bundle.putString("api", str);
|
||||
}
|
||||
return bundle;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.Resources;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.util.TypedValue;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public class ViewUtils {
|
||||
private ViewUtils() {
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static String getXmlAttributeString(String str, String str2, Context context, AttributeSet attributeSet, boolean z3, boolean z4, String str3) {
|
||||
String attributeValue = attributeSet == null ? null : attributeSet.getAttributeValue(str, str2);
|
||||
if (attributeValue != null && attributeValue.startsWith("@string/") && z3) {
|
||||
String substring = attributeValue.substring(8);
|
||||
String packageName = context.getPackageName();
|
||||
TypedValue typedValue = new TypedValue();
|
||||
try {
|
||||
context.getResources().getValue(packageName + ":string/" + substring, typedValue, true);
|
||||
} catch (Resources.NotFoundException unused) {
|
||||
Log.w(str3, "Could not find resource for " + str2 + ": " + attributeValue);
|
||||
}
|
||||
CharSequence charSequence = typedValue.string;
|
||||
if (charSequence != null) {
|
||||
attributeValue = charSequence.toString();
|
||||
} else {
|
||||
Log.w(str3, "Resource " + str2 + " was not a string: " + typedValue.toString());
|
||||
}
|
||||
}
|
||||
if (z4 && attributeValue == null) {
|
||||
Log.w(str3, "Required XML attribute \"" + str2 + "\" missing");
|
||||
}
|
||||
return attributeValue;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.common.internal.constants;
|
||||
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public interface ListAppsActivityContract {
|
||||
|
||||
@KeepForSdk
|
||||
public static final String ACTION_APPS = "com.google.android.gms.plus.action.MANAGE_APPS";
|
||||
|
||||
@KeepForSdk
|
||||
public static final String EXTRA_PRESELECTED_FILTER = "com.google.android.gms.extras.PRESELECTED_FILTER";
|
||||
|
||||
@KeepForSdk
|
||||
public static final int PRESELECTED_FILTER_FITNESS_APPS = 2;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.google.android.gms.common.internal.safeparcel;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class AbstractSafeParcelable implements SafeParcelable {
|
||||
@Override // android.os.Parcelable
|
||||
public final int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,747 @@
|
||||
package com.google.android.gms.common.internal.safeparcel;
|
||||
|
||||
import C.w;
|
||||
import android.app.PendingIntent;
|
||||
import android.os.Bundle;
|
||||
import android.os.IBinder;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.util.SparseArray;
|
||||
import android.util.SparseBooleanArray;
|
||||
import android.util.SparseIntArray;
|
||||
import android.util.SparseLongArray;
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class SafeParcelReader {
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static class ParseException extends RuntimeException {
|
||||
public ParseException(String str, Parcel parcel) {
|
||||
super(str + " Parcel: pos=" + parcel.dataPosition() + " size=" + parcel.dataSize());
|
||||
}
|
||||
}
|
||||
|
||||
private SafeParcelReader() {
|
||||
}
|
||||
|
||||
public static BigDecimal createBigDecimal(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
byte[] createByteArray = parcel.createByteArray();
|
||||
int readInt = parcel.readInt();
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return new BigDecimal(new BigInteger(createByteArray), readInt);
|
||||
}
|
||||
|
||||
public static BigDecimal[] createBigDecimalArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
int readInt = parcel.readInt();
|
||||
BigDecimal[] bigDecimalArr = new BigDecimal[readInt];
|
||||
for (int i4 = 0; i4 < readInt; i4++) {
|
||||
byte[] createByteArray = parcel.createByteArray();
|
||||
bigDecimalArr[i4] = new BigDecimal(new BigInteger(createByteArray), parcel.readInt());
|
||||
}
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return bigDecimalArr;
|
||||
}
|
||||
|
||||
public static BigInteger createBigInteger(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
byte[] createByteArray = parcel.createByteArray();
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return new BigInteger(createByteArray);
|
||||
}
|
||||
|
||||
public static BigInteger[] createBigIntegerArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
int readInt = parcel.readInt();
|
||||
BigInteger[] bigIntegerArr = new BigInteger[readInt];
|
||||
for (int i4 = 0; i4 < readInt; i4++) {
|
||||
bigIntegerArr[i4] = new BigInteger(parcel.createByteArray());
|
||||
}
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return bigIntegerArr;
|
||||
}
|
||||
|
||||
public static boolean[] createBooleanArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
boolean[] createBooleanArray = parcel.createBooleanArray();
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return createBooleanArray;
|
||||
}
|
||||
|
||||
public static ArrayList<Boolean> createBooleanList(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
ArrayList<Boolean> arrayList = new ArrayList<>();
|
||||
int readInt = parcel.readInt();
|
||||
for (int i4 = 0; i4 < readInt; i4++) {
|
||||
arrayList.add(Boolean.valueOf(parcel.readInt() != 0));
|
||||
}
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
public static Bundle createBundle(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
Bundle readBundle = parcel.readBundle();
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return readBundle;
|
||||
}
|
||||
|
||||
public static byte[] createByteArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
byte[] createByteArray = parcel.createByteArray();
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return createByteArray;
|
||||
}
|
||||
|
||||
public static byte[][] createByteArrayArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
int readInt = parcel.readInt();
|
||||
byte[][] bArr = new byte[readInt];
|
||||
for (int i4 = 0; i4 < readInt; i4++) {
|
||||
bArr[i4] = parcel.createByteArray();
|
||||
}
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return bArr;
|
||||
}
|
||||
|
||||
public static SparseArray<byte[]> createByteArraySparseArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
int readInt = parcel.readInt();
|
||||
SparseArray<byte[]> sparseArray = new SparseArray<>(readInt);
|
||||
for (int i4 = 0; i4 < readInt; i4++) {
|
||||
sparseArray.append(parcel.readInt(), parcel.createByteArray());
|
||||
}
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return sparseArray;
|
||||
}
|
||||
|
||||
public static char[] createCharArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
char[] createCharArray = parcel.createCharArray();
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return createCharArray;
|
||||
}
|
||||
|
||||
public static double[] createDoubleArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
double[] createDoubleArray = parcel.createDoubleArray();
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return createDoubleArray;
|
||||
}
|
||||
|
||||
public static ArrayList<Double> createDoubleList(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
ArrayList<Double> arrayList = new ArrayList<>();
|
||||
int readInt = parcel.readInt();
|
||||
for (int i4 = 0; i4 < readInt; i4++) {
|
||||
arrayList.add(Double.valueOf(parcel.readDouble()));
|
||||
}
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
public static SparseArray<Double> createDoubleSparseArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
SparseArray<Double> sparseArray = new SparseArray<>();
|
||||
int readInt = parcel.readInt();
|
||||
for (int i4 = 0; i4 < readInt; i4++) {
|
||||
sparseArray.append(parcel.readInt(), Double.valueOf(parcel.readDouble()));
|
||||
}
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return sparseArray;
|
||||
}
|
||||
|
||||
public static float[] createFloatArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
float[] createFloatArray = parcel.createFloatArray();
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return createFloatArray;
|
||||
}
|
||||
|
||||
public static ArrayList<Float> createFloatList(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
ArrayList<Float> arrayList = new ArrayList<>();
|
||||
int readInt = parcel.readInt();
|
||||
for (int i4 = 0; i4 < readInt; i4++) {
|
||||
arrayList.add(Float.valueOf(parcel.readFloat()));
|
||||
}
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
public static SparseArray<Float> createFloatSparseArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
SparseArray<Float> sparseArray = new SparseArray<>();
|
||||
int readInt = parcel.readInt();
|
||||
for (int i4 = 0; i4 < readInt; i4++) {
|
||||
sparseArray.append(parcel.readInt(), Float.valueOf(parcel.readFloat()));
|
||||
}
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return sparseArray;
|
||||
}
|
||||
|
||||
public static IBinder[] createIBinderArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
IBinder[] createBinderArray = parcel.createBinderArray();
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return createBinderArray;
|
||||
}
|
||||
|
||||
public static ArrayList<IBinder> createIBinderList(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
ArrayList<IBinder> createBinderArrayList = parcel.createBinderArrayList();
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return createBinderArrayList;
|
||||
}
|
||||
|
||||
public static SparseArray<IBinder> createIBinderSparseArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
int readInt = parcel.readInt();
|
||||
SparseArray<IBinder> sparseArray = new SparseArray<>(readInt);
|
||||
for (int i4 = 0; i4 < readInt; i4++) {
|
||||
sparseArray.append(parcel.readInt(), parcel.readStrongBinder());
|
||||
}
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return sparseArray;
|
||||
}
|
||||
|
||||
public static int[] createIntArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
int[] createIntArray = parcel.createIntArray();
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return createIntArray;
|
||||
}
|
||||
|
||||
public static ArrayList<Integer> createIntegerList(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
ArrayList<Integer> arrayList = new ArrayList<>();
|
||||
int readInt = parcel.readInt();
|
||||
for (int i4 = 0; i4 < readInt; i4++) {
|
||||
arrayList.add(Integer.valueOf(parcel.readInt()));
|
||||
}
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
public static long[] createLongArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
long[] createLongArray = parcel.createLongArray();
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return createLongArray;
|
||||
}
|
||||
|
||||
public static ArrayList<Long> createLongList(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
ArrayList<Long> arrayList = new ArrayList<>();
|
||||
int readInt = parcel.readInt();
|
||||
for (int i4 = 0; i4 < readInt; i4++) {
|
||||
arrayList.add(Long.valueOf(parcel.readLong()));
|
||||
}
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
public static Parcel createParcel(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
Parcel obtain = Parcel.obtain();
|
||||
obtain.appendFrom(parcel, dataPosition, readSize);
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return obtain;
|
||||
}
|
||||
|
||||
public static Parcel[] createParcelArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
int readInt = parcel.readInt();
|
||||
Parcel[] parcelArr = new Parcel[readInt];
|
||||
for (int i4 = 0; i4 < readInt; i4++) {
|
||||
int readInt2 = parcel.readInt();
|
||||
if (readInt2 != 0) {
|
||||
int dataPosition2 = parcel.dataPosition();
|
||||
Parcel obtain = Parcel.obtain();
|
||||
obtain.appendFrom(parcel, dataPosition2, readInt2);
|
||||
parcelArr[i4] = obtain;
|
||||
parcel.setDataPosition(dataPosition2 + readInt2);
|
||||
} else {
|
||||
parcelArr[i4] = null;
|
||||
}
|
||||
}
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return parcelArr;
|
||||
}
|
||||
|
||||
public static ArrayList<Parcel> createParcelList(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
int readInt = parcel.readInt();
|
||||
ArrayList<Parcel> arrayList = new ArrayList<>();
|
||||
for (int i4 = 0; i4 < readInt; i4++) {
|
||||
int readInt2 = parcel.readInt();
|
||||
if (readInt2 != 0) {
|
||||
int dataPosition2 = parcel.dataPosition();
|
||||
Parcel obtain = Parcel.obtain();
|
||||
obtain.appendFrom(parcel, dataPosition2, readInt2);
|
||||
arrayList.add(obtain);
|
||||
parcel.setDataPosition(dataPosition2 + readInt2);
|
||||
} else {
|
||||
arrayList.add(null);
|
||||
}
|
||||
}
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
public static SparseArray<Parcel> createParcelSparseArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
int readInt = parcel.readInt();
|
||||
SparseArray<Parcel> sparseArray = new SparseArray<>();
|
||||
for (int i4 = 0; i4 < readInt; i4++) {
|
||||
int readInt2 = parcel.readInt();
|
||||
int readInt3 = parcel.readInt();
|
||||
if (readInt3 != 0) {
|
||||
int dataPosition2 = parcel.dataPosition();
|
||||
Parcel obtain = Parcel.obtain();
|
||||
obtain.appendFrom(parcel, dataPosition2, readInt3);
|
||||
sparseArray.append(readInt2, obtain);
|
||||
parcel.setDataPosition(dataPosition2 + readInt3);
|
||||
} else {
|
||||
sparseArray.append(readInt2, null);
|
||||
}
|
||||
}
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return sparseArray;
|
||||
}
|
||||
|
||||
public static <T extends Parcelable> T createParcelable(Parcel parcel, int i, Parcelable.Creator<T> creator) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
T createFromParcel = creator.createFromParcel(parcel);
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return createFromParcel;
|
||||
}
|
||||
|
||||
public static SparseBooleanArray createSparseBooleanArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
SparseBooleanArray readSparseBooleanArray = parcel.readSparseBooleanArray();
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return readSparseBooleanArray;
|
||||
}
|
||||
|
||||
public static SparseIntArray createSparseIntArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
SparseIntArray sparseIntArray = new SparseIntArray();
|
||||
int readInt = parcel.readInt();
|
||||
for (int i4 = 0; i4 < readInt; i4++) {
|
||||
sparseIntArray.append(parcel.readInt(), parcel.readInt());
|
||||
}
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return sparseIntArray;
|
||||
}
|
||||
|
||||
public static SparseLongArray createSparseLongArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
SparseLongArray sparseLongArray = new SparseLongArray();
|
||||
int readInt = parcel.readInt();
|
||||
for (int i4 = 0; i4 < readInt; i4++) {
|
||||
sparseLongArray.append(parcel.readInt(), parcel.readLong());
|
||||
}
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return sparseLongArray;
|
||||
}
|
||||
|
||||
public static String createString(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
String readString = parcel.readString();
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return readString;
|
||||
}
|
||||
|
||||
public static String[] createStringArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
String[] createStringArray = parcel.createStringArray();
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return createStringArray;
|
||||
}
|
||||
|
||||
public static ArrayList<String> createStringList(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
ArrayList<String> createStringArrayList = parcel.createStringArrayList();
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return createStringArrayList;
|
||||
}
|
||||
|
||||
public static SparseArray<String> createStringSparseArray(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
SparseArray<String> sparseArray = new SparseArray<>();
|
||||
int readInt = parcel.readInt();
|
||||
for (int i4 = 0; i4 < readInt; i4++) {
|
||||
sparseArray.append(parcel.readInt(), parcel.readString());
|
||||
}
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return sparseArray;
|
||||
}
|
||||
|
||||
public static <T> T[] createTypedArray(Parcel parcel, int i, Parcelable.Creator<T> creator) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
T[] tArr = (T[]) parcel.createTypedArray(creator);
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return tArr;
|
||||
}
|
||||
|
||||
public static <T> ArrayList<T> createTypedList(Parcel parcel, int i, Parcelable.Creator<T> creator) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
ArrayList<T> createTypedArrayList = parcel.createTypedArrayList(creator);
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return createTypedArrayList;
|
||||
}
|
||||
|
||||
public static <T> SparseArray<T> createTypedSparseArray(Parcel parcel, int i, Parcelable.Creator<T> creator) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
int readInt = parcel.readInt();
|
||||
SparseArray<T> sparseArray = new SparseArray<>();
|
||||
for (int i4 = 0; i4 < readInt; i4++) {
|
||||
sparseArray.append(parcel.readInt(), parcel.readInt() != 0 ? creator.createFromParcel(parcel) : null);
|
||||
}
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return sparseArray;
|
||||
}
|
||||
|
||||
public static void ensureAtEnd(Parcel parcel, int i) {
|
||||
if (parcel.dataPosition() != i) {
|
||||
throw new ParseException(a.l(i, "Overread allowed size end="), parcel);
|
||||
}
|
||||
}
|
||||
|
||||
public static int getFieldId(int i) {
|
||||
return (char) i;
|
||||
}
|
||||
|
||||
public static boolean readBoolean(Parcel parcel, int i) {
|
||||
zzb(parcel, i, 4);
|
||||
return parcel.readInt() != 0;
|
||||
}
|
||||
|
||||
public static Boolean readBooleanObject(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
zza(parcel, i, readSize, 4);
|
||||
return Boolean.valueOf(parcel.readInt() != 0);
|
||||
}
|
||||
|
||||
public static byte readByte(Parcel parcel, int i) {
|
||||
zzb(parcel, i, 4);
|
||||
return (byte) parcel.readInt();
|
||||
}
|
||||
|
||||
public static char readChar(Parcel parcel, int i) {
|
||||
zzb(parcel, i, 4);
|
||||
return (char) parcel.readInt();
|
||||
}
|
||||
|
||||
public static double readDouble(Parcel parcel, int i) {
|
||||
zzb(parcel, i, 8);
|
||||
return parcel.readDouble();
|
||||
}
|
||||
|
||||
public static Double readDoubleObject(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
zza(parcel, i, readSize, 8);
|
||||
return Double.valueOf(parcel.readDouble());
|
||||
}
|
||||
|
||||
public static float readFloat(Parcel parcel, int i) {
|
||||
zzb(parcel, i, 4);
|
||||
return parcel.readFloat();
|
||||
}
|
||||
|
||||
public static Float readFloatObject(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
zza(parcel, i, readSize, 4);
|
||||
return Float.valueOf(parcel.readFloat());
|
||||
}
|
||||
|
||||
public static int readHeader(Parcel parcel) {
|
||||
return parcel.readInt();
|
||||
}
|
||||
|
||||
public static IBinder readIBinder(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
IBinder readStrongBinder = parcel.readStrongBinder();
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return readStrongBinder;
|
||||
}
|
||||
|
||||
public static int readInt(Parcel parcel, int i) {
|
||||
zzb(parcel, i, 4);
|
||||
return parcel.readInt();
|
||||
}
|
||||
|
||||
public static Integer readIntegerObject(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
zza(parcel, i, readSize, 4);
|
||||
return Integer.valueOf(parcel.readInt());
|
||||
}
|
||||
|
||||
public static void readList(Parcel parcel, int i, List list, ClassLoader classLoader) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return;
|
||||
}
|
||||
parcel.readList(list, classLoader);
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
}
|
||||
|
||||
public static long readLong(Parcel parcel, int i) {
|
||||
zzb(parcel, i, 8);
|
||||
return parcel.readLong();
|
||||
}
|
||||
|
||||
public static Long readLongObject(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
zza(parcel, i, readSize, 8);
|
||||
return Long.valueOf(parcel.readLong());
|
||||
}
|
||||
|
||||
public static PendingIntent readPendingIntent(Parcel parcel, int i) {
|
||||
int readSize = readSize(parcel, i);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (readSize == 0) {
|
||||
return null;
|
||||
}
|
||||
PendingIntent readPendingIntentOrNullFromParcel = PendingIntent.readPendingIntentOrNullFromParcel(parcel);
|
||||
parcel.setDataPosition(dataPosition + readSize);
|
||||
return readPendingIntentOrNullFromParcel;
|
||||
}
|
||||
|
||||
public static short readShort(Parcel parcel, int i) {
|
||||
zzb(parcel, i, 4);
|
||||
return (short) parcel.readInt();
|
||||
}
|
||||
|
||||
public static int readSize(Parcel parcel, int i) {
|
||||
return (i & (-65536)) != -65536 ? (char) (i >> 16) : parcel.readInt();
|
||||
}
|
||||
|
||||
public static void skipUnknownField(Parcel parcel, int i) {
|
||||
parcel.setDataPosition(parcel.dataPosition() + readSize(parcel, i));
|
||||
}
|
||||
|
||||
public static int validateObjectHeader(Parcel parcel) {
|
||||
int readHeader = readHeader(parcel);
|
||||
int readSize = readSize(parcel, readHeader);
|
||||
int dataPosition = parcel.dataPosition();
|
||||
if (getFieldId(readHeader) != 20293) {
|
||||
throw new ParseException("Expected object header. Got 0x".concat(String.valueOf(Integer.toHexString(readHeader))), parcel);
|
||||
}
|
||||
int i = readSize + dataPosition;
|
||||
if (i < dataPosition || i > parcel.dataSize()) {
|
||||
throw new ParseException(w.k("Size read is invalid start=", dataPosition, i, " end="), parcel);
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
private static void zza(Parcel parcel, int i, int i4, int i5) {
|
||||
if (i4 == i5) {
|
||||
return;
|
||||
}
|
||||
String hexString = Integer.toHexString(i4);
|
||||
StringBuilder sb = new StringBuilder("Expected size ");
|
||||
sb.append(i5);
|
||||
sb.append(" got ");
|
||||
sb.append(i4);
|
||||
sb.append(" (0x");
|
||||
throw new ParseException(w.r(sb, hexString, ")"), parcel);
|
||||
}
|
||||
|
||||
private static void zzb(Parcel parcel, int i, int i4) {
|
||||
int readSize = readSize(parcel, i);
|
||||
if (readSize == i4) {
|
||||
return;
|
||||
}
|
||||
String hexString = Integer.toHexString(readSize);
|
||||
StringBuilder sb = new StringBuilder("Expected size ");
|
||||
sb.append(i4);
|
||||
sb.append(" got ");
|
||||
sb.append(readSize);
|
||||
sb.append(" (0x");
|
||||
throw new ParseException(w.r(sb, hexString, ")"), parcel);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,788 @@
|
||||
package com.google.android.gms.common.internal.safeparcel;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.os.Bundle;
|
||||
import android.os.IBinder;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.util.SparseArray;
|
||||
import android.util.SparseBooleanArray;
|
||||
import android.util.SparseIntArray;
|
||||
import android.util.SparseLongArray;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class SafeParcelWriter {
|
||||
private SafeParcelWriter() {
|
||||
}
|
||||
|
||||
public static int beginObjectHeader(Parcel parcel) {
|
||||
return zza(parcel, 20293);
|
||||
}
|
||||
|
||||
public static void finishObjectHeader(Parcel parcel, int i) {
|
||||
zzb(parcel, i);
|
||||
}
|
||||
|
||||
public static void writeBigDecimal(Parcel parcel, int i, BigDecimal bigDecimal, boolean z3) {
|
||||
if (bigDecimal == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeByteArray(bigDecimal.unscaledValue().toByteArray());
|
||||
parcel.writeInt(bigDecimal.scale());
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeBigDecimalArray(Parcel parcel, int i, BigDecimal[] bigDecimalArr, boolean z3) {
|
||||
if (bigDecimalArr == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
int length = bigDecimalArr.length;
|
||||
parcel.writeInt(length);
|
||||
for (int i4 = 0; i4 < length; i4++) {
|
||||
parcel.writeByteArray(bigDecimalArr[i4].unscaledValue().toByteArray());
|
||||
parcel.writeInt(bigDecimalArr[i4].scale());
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
public static void writeBigInteger(Parcel parcel, int i, BigInteger bigInteger, boolean z3) {
|
||||
if (bigInteger == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeByteArray(bigInteger.toByteArray());
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeBigIntegerArray(Parcel parcel, int i, BigInteger[] bigIntegerArr, boolean z3) {
|
||||
if (bigIntegerArr == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeInt(bigIntegerArr.length);
|
||||
for (BigInteger bigInteger : bigIntegerArr) {
|
||||
parcel.writeByteArray(bigInteger.toByteArray());
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
public static void writeBoolean(Parcel parcel, int i, boolean z3) {
|
||||
zzc(parcel, i, 4);
|
||||
parcel.writeInt(z3 ? 1 : 0);
|
||||
}
|
||||
|
||||
public static void writeBooleanArray(Parcel parcel, int i, boolean[] zArr, boolean z3) {
|
||||
if (zArr == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeBooleanArray(zArr);
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeBooleanList(Parcel parcel, int i, List<Boolean> list, boolean z3) {
|
||||
if (list == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
int size = list.size();
|
||||
parcel.writeInt(size);
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
parcel.writeInt(list.get(i4).booleanValue() ? 1 : 0);
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
public static void writeBooleanObject(Parcel parcel, int i, Boolean bool, boolean z3) {
|
||||
if (bool != null) {
|
||||
zzc(parcel, i, 4);
|
||||
parcel.writeInt(bool.booleanValue() ? 1 : 0);
|
||||
} else if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeBundle(Parcel parcel, int i, Bundle bundle, boolean z3) {
|
||||
if (bundle == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeBundle(bundle);
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeByte(Parcel parcel, int i, byte b4) {
|
||||
zzc(parcel, i, 4);
|
||||
parcel.writeInt(b4);
|
||||
}
|
||||
|
||||
public static void writeByteArray(Parcel parcel, int i, byte[] bArr, boolean z3) {
|
||||
if (bArr == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeByteArray(bArr);
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeByteArrayArray(Parcel parcel, int i, byte[][] bArr, boolean z3) {
|
||||
if (bArr == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeInt(bArr.length);
|
||||
for (byte[] bArr2 : bArr) {
|
||||
parcel.writeByteArray(bArr2);
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
public static void writeByteArraySparseArray(Parcel parcel, int i, SparseArray<byte[]> sparseArray, boolean z3) {
|
||||
if (sparseArray == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
int size = sparseArray.size();
|
||||
parcel.writeInt(size);
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
parcel.writeInt(sparseArray.keyAt(i4));
|
||||
parcel.writeByteArray(sparseArray.valueAt(i4));
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
public static void writeChar(Parcel parcel, int i, char c4) {
|
||||
zzc(parcel, i, 4);
|
||||
parcel.writeInt(c4);
|
||||
}
|
||||
|
||||
public static void writeCharArray(Parcel parcel, int i, char[] cArr, boolean z3) {
|
||||
if (cArr == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeCharArray(cArr);
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeDouble(Parcel parcel, int i, double d4) {
|
||||
zzc(parcel, i, 8);
|
||||
parcel.writeDouble(d4);
|
||||
}
|
||||
|
||||
public static void writeDoubleArray(Parcel parcel, int i, double[] dArr, boolean z3) {
|
||||
if (dArr == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeDoubleArray(dArr);
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeDoubleList(Parcel parcel, int i, List<Double> list, boolean z3) {
|
||||
if (list == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
int size = list.size();
|
||||
parcel.writeInt(size);
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
parcel.writeDouble(list.get(i4).doubleValue());
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
public static void writeDoubleObject(Parcel parcel, int i, Double d4, boolean z3) {
|
||||
if (d4 != null) {
|
||||
zzc(parcel, i, 8);
|
||||
parcel.writeDouble(d4.doubleValue());
|
||||
} else if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeDoubleSparseArray(Parcel parcel, int i, SparseArray<Double> sparseArray, boolean z3) {
|
||||
if (sparseArray == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
int size = sparseArray.size();
|
||||
parcel.writeInt(size);
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
parcel.writeInt(sparseArray.keyAt(i4));
|
||||
parcel.writeDouble(sparseArray.valueAt(i4).doubleValue());
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
public static void writeFloat(Parcel parcel, int i, float f2) {
|
||||
zzc(parcel, i, 4);
|
||||
parcel.writeFloat(f2);
|
||||
}
|
||||
|
||||
public static void writeFloatArray(Parcel parcel, int i, float[] fArr, boolean z3) {
|
||||
if (fArr == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeFloatArray(fArr);
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeFloatList(Parcel parcel, int i, List<Float> list, boolean z3) {
|
||||
if (list == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
int size = list.size();
|
||||
parcel.writeInt(size);
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
parcel.writeFloat(list.get(i4).floatValue());
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
public static void writeFloatObject(Parcel parcel, int i, Float f2, boolean z3) {
|
||||
if (f2 != null) {
|
||||
zzc(parcel, i, 4);
|
||||
parcel.writeFloat(f2.floatValue());
|
||||
} else if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeFloatSparseArray(Parcel parcel, int i, SparseArray<Float> sparseArray, boolean z3) {
|
||||
if (sparseArray == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
int size = sparseArray.size();
|
||||
parcel.writeInt(size);
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
parcel.writeInt(sparseArray.keyAt(i4));
|
||||
parcel.writeFloat(sparseArray.valueAt(i4).floatValue());
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
public static void writeIBinder(Parcel parcel, int i, IBinder iBinder, boolean z3) {
|
||||
if (iBinder == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeStrongBinder(iBinder);
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeIBinderArray(Parcel parcel, int i, IBinder[] iBinderArr, boolean z3) {
|
||||
if (iBinderArr == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeBinderArray(iBinderArr);
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeIBinderList(Parcel parcel, int i, List<IBinder> list, boolean z3) {
|
||||
if (list == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeBinderList(list);
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeIBinderSparseArray(Parcel parcel, int i, SparseArray<IBinder> sparseArray, boolean z3) {
|
||||
if (sparseArray == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
int size = sparseArray.size();
|
||||
parcel.writeInt(size);
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
parcel.writeInt(sparseArray.keyAt(i4));
|
||||
parcel.writeStrongBinder(sparseArray.valueAt(i4));
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
public static void writeInt(Parcel parcel, int i, int i4) {
|
||||
zzc(parcel, i, 4);
|
||||
parcel.writeInt(i4);
|
||||
}
|
||||
|
||||
public static void writeIntArray(Parcel parcel, int i, int[] iArr, boolean z3) {
|
||||
if (iArr == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeIntArray(iArr);
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeIntegerList(Parcel parcel, int i, List<Integer> list, boolean z3) {
|
||||
if (list == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
int size = list.size();
|
||||
parcel.writeInt(size);
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
parcel.writeInt(list.get(i4).intValue());
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
public static void writeIntegerObject(Parcel parcel, int i, Integer num, boolean z3) {
|
||||
if (num != null) {
|
||||
zzc(parcel, i, 4);
|
||||
parcel.writeInt(num.intValue());
|
||||
} else if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeList(Parcel parcel, int i, List list, boolean z3) {
|
||||
if (list == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeList(list);
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeLong(Parcel parcel, int i, long j4) {
|
||||
zzc(parcel, i, 8);
|
||||
parcel.writeLong(j4);
|
||||
}
|
||||
|
||||
public static void writeLongArray(Parcel parcel, int i, long[] jArr, boolean z3) {
|
||||
if (jArr == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeLongArray(jArr);
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeLongList(Parcel parcel, int i, List<Long> list, boolean z3) {
|
||||
if (list == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
int size = list.size();
|
||||
parcel.writeInt(size);
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
parcel.writeLong(list.get(i4).longValue());
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
public static void writeLongObject(Parcel parcel, int i, Long l4, boolean z3) {
|
||||
if (l4 != null) {
|
||||
zzc(parcel, i, 8);
|
||||
parcel.writeLong(l4.longValue());
|
||||
} else if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeParcel(Parcel parcel, int i, Parcel parcel2, boolean z3) {
|
||||
if (parcel2 == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
parcel.appendFrom(parcel2, 0, parcel2.dataSize());
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeParcelArray(Parcel parcel, int i, Parcel[] parcelArr, boolean z3) {
|
||||
if (parcelArr == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeInt(parcelArr.length);
|
||||
for (Parcel parcel2 : parcelArr) {
|
||||
if (parcel2 != null) {
|
||||
parcel.writeInt(parcel2.dataSize());
|
||||
parcel.appendFrom(parcel2, 0, parcel2.dataSize());
|
||||
} else {
|
||||
parcel.writeInt(0);
|
||||
}
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
public static void writeParcelList(Parcel parcel, int i, List<Parcel> list, boolean z3) {
|
||||
if (list == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
int size = list.size();
|
||||
parcel.writeInt(size);
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
Parcel parcel2 = list.get(i4);
|
||||
if (parcel2 != null) {
|
||||
parcel.writeInt(parcel2.dataSize());
|
||||
parcel.appendFrom(parcel2, 0, parcel2.dataSize());
|
||||
} else {
|
||||
parcel.writeInt(0);
|
||||
}
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
public static void writeParcelSparseArray(Parcel parcel, int i, SparseArray<Parcel> sparseArray, boolean z3) {
|
||||
if (sparseArray == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
int size = sparseArray.size();
|
||||
parcel.writeInt(size);
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
parcel.writeInt(sparseArray.keyAt(i4));
|
||||
Parcel valueAt = sparseArray.valueAt(i4);
|
||||
if (valueAt != null) {
|
||||
parcel.writeInt(valueAt.dataSize());
|
||||
parcel.appendFrom(valueAt, 0, valueAt.dataSize());
|
||||
} else {
|
||||
parcel.writeInt(0);
|
||||
}
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
public static void writeParcelable(Parcel parcel, int i, Parcelable parcelable, int i4, boolean z3) {
|
||||
if (parcelable == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
parcelable.writeToParcel(parcel, i4);
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writePendingIntent(Parcel parcel, int i, PendingIntent pendingIntent, boolean z3) {
|
||||
if (pendingIntent == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
PendingIntent.writePendingIntentOrNullToParcel(pendingIntent, parcel);
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeShort(Parcel parcel, int i, short s4) {
|
||||
zzc(parcel, i, 4);
|
||||
parcel.writeInt(s4);
|
||||
}
|
||||
|
||||
public static void writeSparseBooleanArray(Parcel parcel, int i, SparseBooleanArray sparseBooleanArray, boolean z3) {
|
||||
if (sparseBooleanArray == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeSparseBooleanArray(sparseBooleanArray);
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeSparseIntArray(Parcel parcel, int i, SparseIntArray sparseIntArray, boolean z3) {
|
||||
if (sparseIntArray == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
int size = sparseIntArray.size();
|
||||
parcel.writeInt(size);
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
parcel.writeInt(sparseIntArray.keyAt(i4));
|
||||
parcel.writeInt(sparseIntArray.valueAt(i4));
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
public static void writeSparseLongArray(Parcel parcel, int i, SparseLongArray sparseLongArray, boolean z3) {
|
||||
if (sparseLongArray == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
int size = sparseLongArray.size();
|
||||
parcel.writeInt(size);
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
parcel.writeInt(sparseLongArray.keyAt(i4));
|
||||
parcel.writeLong(sparseLongArray.valueAt(i4));
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
public static void writeString(Parcel parcel, int i, String str, boolean z3) {
|
||||
if (str == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeString(str);
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeStringArray(Parcel parcel, int i, String[] strArr, boolean z3) {
|
||||
if (strArr == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeStringArray(strArr);
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeStringList(Parcel parcel, int i, List<String> list, boolean z3) {
|
||||
if (list == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
}
|
||||
} else {
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeStringList(list);
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
}
|
||||
|
||||
public static void writeStringSparseArray(Parcel parcel, int i, SparseArray<String> sparseArray, boolean z3) {
|
||||
if (sparseArray == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
int size = sparseArray.size();
|
||||
parcel.writeInt(size);
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
parcel.writeInt(sparseArray.keyAt(i4));
|
||||
parcel.writeString(sparseArray.valueAt(i4));
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
public static <T extends Parcelable> void writeTypedArray(Parcel parcel, int i, T[] tArr, int i4, boolean z3) {
|
||||
if (tArr == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
parcel.writeInt(tArr.length);
|
||||
for (T t2 : tArr) {
|
||||
if (t2 == null) {
|
||||
parcel.writeInt(0);
|
||||
} else {
|
||||
zzd(parcel, t2, i4);
|
||||
}
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
public static <T extends Parcelable> void writeTypedList(Parcel parcel, int i, List<T> list, boolean z3) {
|
||||
if (list == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
int size = list.size();
|
||||
parcel.writeInt(size);
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
T t2 = list.get(i4);
|
||||
if (t2 == null) {
|
||||
parcel.writeInt(0);
|
||||
} else {
|
||||
zzd(parcel, t2, 0);
|
||||
}
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
public static <T extends Parcelable> void writeTypedSparseArray(Parcel parcel, int i, SparseArray<T> sparseArray, boolean z3) {
|
||||
if (sparseArray == null) {
|
||||
if (z3) {
|
||||
zzc(parcel, i, 0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int zza = zza(parcel, i);
|
||||
int size = sparseArray.size();
|
||||
parcel.writeInt(size);
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
parcel.writeInt(sparseArray.keyAt(i4));
|
||||
T valueAt = sparseArray.valueAt(i4);
|
||||
if (valueAt == null) {
|
||||
parcel.writeInt(0);
|
||||
} else {
|
||||
zzd(parcel, valueAt, 0);
|
||||
}
|
||||
}
|
||||
zzb(parcel, zza);
|
||||
}
|
||||
|
||||
private static int zza(Parcel parcel, int i) {
|
||||
parcel.writeInt(i | (-65536));
|
||||
parcel.writeInt(0);
|
||||
return parcel.dataPosition();
|
||||
}
|
||||
|
||||
private static void zzb(Parcel parcel, int i) {
|
||||
int dataPosition = parcel.dataPosition();
|
||||
parcel.setDataPosition(i - 4);
|
||||
parcel.writeInt(dataPosition - i);
|
||||
parcel.setDataPosition(dataPosition);
|
||||
}
|
||||
|
||||
private static void zzc(Parcel parcel, int i, int i4) {
|
||||
parcel.writeInt(i | (i4 << 16));
|
||||
}
|
||||
|
||||
private static void zzd(Parcel parcel, Parcelable parcelable, int i) {
|
||||
int dataPosition = parcel.dataPosition();
|
||||
parcel.writeInt(1);
|
||||
int dataPosition2 = parcel.dataPosition();
|
||||
parcelable.writeToParcel(parcel, i);
|
||||
int dataPosition3 = parcel.dataPosition();
|
||||
parcel.setDataPosition(dataPosition);
|
||||
parcel.writeInt(dataPosition3 - dataPosition2);
|
||||
parcel.setDataPosition(dataPosition3);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.google.android.gms.common.internal.safeparcel;
|
||||
|
||||
import android.os.Parcelable;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface SafeParcelable extends Parcelable {
|
||||
public static final String NULL = "SAFE_PARCELABLE_NULL_STRING";
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public @interface Class {
|
||||
String creator();
|
||||
|
||||
boolean doNotParcelTypeDefaultValues() default false;
|
||||
|
||||
boolean validate() default false;
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public @interface Constructor {
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public @interface Field {
|
||||
String defaultValue() default "SAFE_PARCELABLE_NULL_STRING";
|
||||
|
||||
String defaultValueUnchecked() default "SAFE_PARCELABLE_NULL_STRING";
|
||||
|
||||
String getter() default "SAFE_PARCELABLE_NULL_STRING";
|
||||
|
||||
int id();
|
||||
|
||||
String type() default "SAFE_PARCELABLE_NULL_STRING";
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public @interface Indicator {
|
||||
String getter() default "SAFE_PARCELABLE_NULL_STRING";
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public @interface Param {
|
||||
int id();
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public @interface RemovedParam {
|
||||
String defaultValue() default "SAFE_PARCELABLE_NULL_STRING";
|
||||
|
||||
String defaultValueUnchecked() default "SAFE_PARCELABLE_NULL_STRING";
|
||||
|
||||
int id();
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public @interface Reserved {
|
||||
int[] value();
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public @interface VersionField {
|
||||
String getter() default "SAFE_PARCELABLE_NULL_STRING";
|
||||
|
||||
int id();
|
||||
|
||||
String type() default "SAFE_PARCELABLE_NULL_STRING";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
package com.google.android.gms.common.internal.safeparcel;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.util.Base64Utils;
|
||||
import com.google.android.gms.common.util.VisibleForTesting;
|
||||
import com.google.android.gms.internal.common.zzag;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import kotlin.reflect.jvm.internal.impl.types.model.ArgumentList;
|
||||
|
||||
@VisibleForTesting
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public final class SafeParcelableSerializer {
|
||||
private SafeParcelableSerializer() {
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static <T extends SafeParcelable> T deserializeFromBytes(byte[] bArr, Parcelable.Creator<T> creator) {
|
||||
Preconditions.checkNotNull(creator);
|
||||
Parcel obtain = Parcel.obtain();
|
||||
obtain.unmarshall(bArr, 0, bArr.length);
|
||||
obtain.setDataPosition(0);
|
||||
T createFromParcel = creator.createFromParcel(obtain);
|
||||
obtain.recycle();
|
||||
return createFromParcel;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static <T extends SafeParcelable> T deserializeFromIntentExtra(Intent intent, String str, Parcelable.Creator<T> creator) {
|
||||
byte[] byteArrayExtra = intent.getByteArrayExtra(str);
|
||||
if (byteArrayExtra == null) {
|
||||
return null;
|
||||
}
|
||||
return (T) deserializeFromBytes(byteArrayExtra, creator);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static <T extends SafeParcelable> T deserializeFromString(String str, Parcelable.Creator<T> creator) {
|
||||
return (T) deserializeFromBytes(Base64Utils.decodeUrlSafe(str), creator);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static <T extends SafeParcelable> ArrayList<T> deserializeIterableFromBundle(Bundle bundle, String str, Parcelable.Creator<T> creator) {
|
||||
ArrayList arrayList = (ArrayList) bundle.getSerializable(str);
|
||||
if (arrayList == null) {
|
||||
return null;
|
||||
}
|
||||
ArgumentList argumentList = (ArrayList<T>) new ArrayList(arrayList.size());
|
||||
int size = arrayList.size();
|
||||
for (int i = 0; i < size; i++) {
|
||||
argumentList.add(deserializeFromBytes((byte[]) arrayList.get(i), creator));
|
||||
}
|
||||
return argumentList;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static <T extends SafeParcelable> ArrayList<T> deserializeIterableFromBundleSafe(Bundle bundle, String str, Parcelable.Creator<T> creator) {
|
||||
return deserializeIterableFromBytes(bundle.getByteArray(str), creator);
|
||||
}
|
||||
|
||||
public static <T extends SafeParcelable> ArrayList<T> deserializeIterableFromBytes(byte[] bArr, Parcelable.Creator<T> creator) {
|
||||
if (bArr == null) {
|
||||
return null;
|
||||
}
|
||||
int length = bArr.length;
|
||||
Parcel obtain = Parcel.obtain();
|
||||
obtain.unmarshall(bArr, 0, length);
|
||||
obtain.setDataPosition(0);
|
||||
try {
|
||||
ArrayList<T> arrayList = new ArrayList<>();
|
||||
obtain.readTypedList(arrayList, creator);
|
||||
return arrayList;
|
||||
} finally {
|
||||
obtain.recycle();
|
||||
}
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
@Deprecated
|
||||
public static <T extends SafeParcelable> ArrayList<T> deserializeIterableFromIntentExtra(Intent intent, String str, Parcelable.Creator<T> creator) {
|
||||
ArrayList arrayList = (ArrayList) intent.getSerializableExtra(str);
|
||||
if (arrayList == null) {
|
||||
return null;
|
||||
}
|
||||
ArgumentList argumentList = (ArrayList<T>) new ArrayList(arrayList.size());
|
||||
int size = arrayList.size();
|
||||
for (int i = 0; i < size; i++) {
|
||||
argumentList.add(deserializeFromBytes((byte[]) arrayList.get(i), creator));
|
||||
}
|
||||
return argumentList;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static <T extends SafeParcelable> ArrayList<T> deserializeIterableFromIntentExtraSafe(Intent intent, String str, Parcelable.Creator<T> creator) {
|
||||
return deserializeIterableFromBytes(intent.getByteArrayExtra(str), creator);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static <T extends SafeParcelable> void serializeIterableToBundle(Iterable<T> iterable, Bundle bundle, String str) {
|
||||
ArrayList arrayList = new ArrayList();
|
||||
Iterator<T> it = iterable.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(serializeToBytes(it.next()));
|
||||
}
|
||||
bundle.putSerializable(str, arrayList);
|
||||
}
|
||||
|
||||
public static <T extends SafeParcelable> void serializeIterableToBundleSafe(Iterable<T> iterable, Bundle bundle, String str) {
|
||||
bundle.putByteArray(str, zza(iterable));
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
@Deprecated
|
||||
public static <T extends SafeParcelable> void serializeIterableToIntentExtra(Iterable<T> iterable, Intent intent, String str) {
|
||||
ArrayList arrayList = new ArrayList();
|
||||
Iterator<T> it = iterable.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(serializeToBytes(it.next()));
|
||||
}
|
||||
intent.putExtra(str, arrayList);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static <T extends SafeParcelable> void serializeIterableToIntentExtraSafe(Iterable<T> iterable, Intent intent, String str) {
|
||||
intent.putExtra(str, zza(iterable));
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static <T extends SafeParcelable> byte[] serializeToBytes(T t2) {
|
||||
Parcel obtain = Parcel.obtain();
|
||||
t2.writeToParcel(obtain, 0);
|
||||
byte[] marshall = obtain.marshall();
|
||||
obtain.recycle();
|
||||
return marshall;
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static <T extends SafeParcelable> void serializeToIntentExtra(T t2, Intent intent, String str) {
|
||||
intent.putExtra(str, serializeToBytes(t2));
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
public static <T extends SafeParcelable> String serializeToString(T t2) {
|
||||
return Base64Utils.encodeUrlSafe(serializeToBytes(t2));
|
||||
}
|
||||
|
||||
private static byte[] zza(Iterable iterable) {
|
||||
Parcel obtain = Parcel.obtain();
|
||||
try {
|
||||
obtain.writeTypedList(zzag.zzj(iterable));
|
||||
return obtain.marshall();
|
||||
} finally {
|
||||
obtain.recycle();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.google.android.gms.common.internal.service;
|
||||
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class Common {
|
||||
|
||||
@KeepForSdk
|
||||
public static final Api<Api.ApiOptions.NoOptions> API;
|
||||
|
||||
@KeepForSdk
|
||||
public static final Api.ClientKey<zah> CLIENT_KEY;
|
||||
public static final zae zaa;
|
||||
private static final Api.AbstractClientBuilder zab;
|
||||
|
||||
static {
|
||||
Api.ClientKey<zah> clientKey = new Api.ClientKey<>();
|
||||
CLIENT_KEY = clientKey;
|
||||
zab zabVar = new zab();
|
||||
zab = zabVar;
|
||||
API = new Api<>("Common.API", zabVar, clientKey);
|
||||
zaa = new zae();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.google.android.gms.common.internal.service;
|
||||
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class zaa extends zaj {
|
||||
@Override // com.google.android.gms.common.internal.service.zak
|
||||
public void zab(int i) throws RemoteException {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.google.android.gms.common.internal.service;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Looper;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.internal.ClientSettings;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zab extends Api.AbstractClientBuilder {
|
||||
@Override // com.google.android.gms.common.api.Api.AbstractClientBuilder
|
||||
public final /* synthetic */ Api.Client buildClient(Context context, Looper looper, ClientSettings clientSettings, Object obj, GoogleApiClient.ConnectionCallbacks connectionCallbacks, GoogleApiClient.OnConnectionFailedListener onConnectionFailedListener) {
|
||||
return new zah(context, looper, clientSettings, connectionCallbacks, onConnectionFailedListener);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.google.android.gms.common.internal.service;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zac extends zaf {
|
||||
public zac(zae zaeVar, GoogleApiClient googleApiClient) {
|
||||
super(googleApiClient);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
public final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zal) ((zah) anyClient).getService()).zae(new zad(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.google.android.gms.common.internal.service;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.common.api.internal.BaseImplementation;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zad extends zaa {
|
||||
private final BaseImplementation.ResultHolder zaa;
|
||||
|
||||
public zad(BaseImplementation.ResultHolder resultHolder) {
|
||||
this.zaa = resultHolder;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.service.zaa, com.google.android.gms.common.internal.service.zak
|
||||
public final void zab(int i) throws RemoteException {
|
||||
this.zaa.setResult(new Status(i));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.google.android.gms.common.internal.service;
|
||||
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.api.PendingResult;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zae {
|
||||
public final PendingResult zaa(GoogleApiClient googleApiClient) {
|
||||
return googleApiClient.execute(new zac(this, googleApiClient));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.google.android.gms.common.internal.service;
|
||||
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.api.Result;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class zaf extends zag {
|
||||
public zaf(GoogleApiClient googleApiClient) {
|
||||
super(googleApiClient);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BasePendingResult
|
||||
public final /* bridge */ /* synthetic */ Result createFailedResult(Status status) {
|
||||
return status;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.google.android.gms.common.internal.service;
|
||||
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.api.internal.BaseImplementation;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
abstract class zag extends BaseImplementation.ApiMethodImpl {
|
||||
public zag(GoogleApiClient googleApiClient) {
|
||||
super(Common.API, googleApiClient);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.google.android.gms.common.internal.service;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Looper;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.internal.ClientSettings;
|
||||
import com.google.android.gms.common.internal.GmsClient;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zah extends GmsClient<zal> {
|
||||
public zah(Context context, Looper looper, ClientSettings clientSettings, GoogleApiClient.ConnectionCallbacks connectionCallbacks, GoogleApiClient.OnConnectionFailedListener onConnectionFailedListener) {
|
||||
super(context, looper, 39, clientSettings, connectionCallbacks, onConnectionFailedListener);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final /* synthetic */ IInterface createServiceInterface(IBinder iBinder) {
|
||||
if (iBinder == null) {
|
||||
return null;
|
||||
}
|
||||
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.common.internal.service.ICommonService");
|
||||
return queryLocalInterface instanceof zal ? (zal) queryLocalInterface : new zal(iBinder);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final String getServiceDescriptor() {
|
||||
return "com.google.android.gms.common.internal.service.ICommonService";
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final String getStartServiceAction() {
|
||||
return "com.google.android.gms.common.service.START";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.google.android.gms.common.internal.service;
|
||||
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.internal.TelemetryData;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zai extends com.google.android.gms.internal.base.zaa implements IInterface {
|
||||
public zai(IBinder iBinder) {
|
||||
super(iBinder, "com.google.android.gms.common.internal.service.IClientTelemetryService");
|
||||
}
|
||||
|
||||
public final void zae(TelemetryData telemetryData) throws RemoteException {
|
||||
Parcel zaa = zaa();
|
||||
com.google.android.gms.internal.base.zac.zad(zaa, telemetryData);
|
||||
zad(1, zaa);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.google.android.gms.common.internal.service;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class zaj extends com.google.android.gms.internal.base.zab implements zak {
|
||||
public zaj() {
|
||||
super("com.google.android.gms.common.internal.service.ICommonCallbacks");
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.base.zab
|
||||
public final boolean zaa(int i, Parcel parcel, Parcel parcel2, int i4) throws RemoteException {
|
||||
if (i != 1) {
|
||||
return false;
|
||||
}
|
||||
int readInt = parcel.readInt();
|
||||
com.google.android.gms.internal.base.zac.zab(parcel);
|
||||
zab(readInt);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.google.android.gms.common.internal.service;
|
||||
|
||||
import android.os.IInterface;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface zak extends IInterface {
|
||||
void zab(int i) throws RemoteException;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.google.android.gms.common.internal.service;
|
||||
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zal extends com.google.android.gms.internal.base.zaa implements IInterface {
|
||||
public zal(IBinder iBinder) {
|
||||
super(iBinder, "com.google.android.gms.common.internal.service.ICommonService");
|
||||
}
|
||||
|
||||
public final void zae(zak zakVar) throws RemoteException {
|
||||
Parcel zaa = zaa();
|
||||
com.google.android.gms.internal.base.zac.zae(zaa, zakVar);
|
||||
zad(1, zaa);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.common.internal.service;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Looper;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.internal.ConnectionCallbacks;
|
||||
import com.google.android.gms.common.api.internal.OnConnectionFailedListener;
|
||||
import com.google.android.gms.common.internal.ClientSettings;
|
||||
import com.google.android.gms.common.internal.TelemetryLoggingOptions;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zan extends Api.AbstractClientBuilder {
|
||||
@Override // com.google.android.gms.common.api.Api.AbstractClientBuilder
|
||||
public final /* synthetic */ Api.Client buildClient(Context context, Looper looper, ClientSettings clientSettings, Object obj, ConnectionCallbacks connectionCallbacks, OnConnectionFailedListener onConnectionFailedListener) {
|
||||
return new zap(context, looper, clientSettings, (TelemetryLoggingOptions) obj, connectionCallbacks, onConnectionFailedListener);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package com.google.android.gms.common.internal.service;
|
||||
|
||||
import android.content.Context;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApi;
|
||||
import com.google.android.gms.common.api.internal.RemoteCall;
|
||||
import com.google.android.gms.common.api.internal.TaskApiCall;
|
||||
import com.google.android.gms.common.internal.TelemetryData;
|
||||
import com.google.android.gms.common.internal.TelemetryLoggingClient;
|
||||
import com.google.android.gms.common.internal.TelemetryLoggingOptions;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zao extends GoogleApi implements TelemetryLoggingClient {
|
||||
public static final /* synthetic */ int zab = 0;
|
||||
private static final Api.ClientKey zac;
|
||||
private static final Api.AbstractClientBuilder zad;
|
||||
private static final Api zae;
|
||||
|
||||
static {
|
||||
Api.ClientKey clientKey = new Api.ClientKey();
|
||||
zac = clientKey;
|
||||
zan zanVar = new zan();
|
||||
zad = zanVar;
|
||||
zae = new Api("ClientTelemetry.API", zanVar, clientKey);
|
||||
}
|
||||
|
||||
public zao(Context context, TelemetryLoggingOptions telemetryLoggingOptions) {
|
||||
super(context, (Api<TelemetryLoggingOptions>) zae, telemetryLoggingOptions, GoogleApi.Settings.DEFAULT_SETTINGS);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.TelemetryLoggingClient
|
||||
public final Task<Void> log(final TelemetryData telemetryData) {
|
||||
TaskApiCall.Builder builder = TaskApiCall.builder();
|
||||
builder.setFeatures(com.google.android.gms.internal.base.zaf.zaa);
|
||||
builder.setAutoResolveMissingFeatures(false);
|
||||
builder.run(new RemoteCall() { // from class: com.google.android.gms.common.internal.service.zam
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
TelemetryData telemetryData2 = TelemetryData.this;
|
||||
int i = zao.zab;
|
||||
((zai) ((zap) obj).getService()).zae(telemetryData2);
|
||||
((TaskCompletionSource) obj2).setResult(null);
|
||||
}
|
||||
});
|
||||
return doBestEffortWrite(builder.build());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.google.android.gms.common.internal.service;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Looper;
|
||||
import com.google.android.gms.common.Feature;
|
||||
import com.google.android.gms.common.api.internal.ConnectionCallbacks;
|
||||
import com.google.android.gms.common.api.internal.OnConnectionFailedListener;
|
||||
import com.google.android.gms.common.internal.ClientSettings;
|
||||
import com.google.android.gms.common.internal.GmsClient;
|
||||
import com.google.android.gms.common.internal.TelemetryLoggingOptions;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zap extends GmsClient {
|
||||
private final TelemetryLoggingOptions zaa;
|
||||
|
||||
public zap(Context context, Looper looper, ClientSettings clientSettings, TelemetryLoggingOptions telemetryLoggingOptions, ConnectionCallbacks connectionCallbacks, OnConnectionFailedListener onConnectionFailedListener) {
|
||||
super(context, looper, 270, clientSettings, connectionCallbacks, onConnectionFailedListener);
|
||||
this.zaa = telemetryLoggingOptions;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final /* synthetic */ IInterface createServiceInterface(IBinder iBinder) {
|
||||
if (iBinder == null) {
|
||||
return null;
|
||||
}
|
||||
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.common.internal.service.IClientTelemetryService");
|
||||
return queryLocalInterface instanceof zai ? (zai) queryLocalInterface : new zai(iBinder);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final Feature[] getApiFeatures() {
|
||||
return com.google.android.gms.internal.base.zaf.zab;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final Bundle getGetServiceRequestExtraArgs() {
|
||||
return this.zaa.zaa();
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient, com.google.android.gms.common.api.Api.Client
|
||||
public final int getMinApkVersion() {
|
||||
return 203400000;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final String getServiceDescriptor() {
|
||||
return "com.google.android.gms.common.internal.service.IClientTelemetryService";
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final String getStartServiceAction() {
|
||||
return "com.google.android.gms.common.telemetry.service.START";
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final boolean getUseDynamicLookup() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zaa implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
int i = 0;
|
||||
String str = null;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId != 2) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
str = SafeParcelReader.createString(parcel, readHeader);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new ClientIdentity(i, str);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new ClientIdentity[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.R;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.Typeface;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.Button;
|
||||
import com.google.android.gms.common.util.DeviceProperties;
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zaaa extends Button {
|
||||
public zaaa(Context context, AttributeSet attributeSet) {
|
||||
super(context, null, R.attr.buttonStyle);
|
||||
}
|
||||
|
||||
private static final int zab(int i, int i4, int i5, int i6) {
|
||||
if (i == 0) {
|
||||
return i4;
|
||||
}
|
||||
if (i == 1) {
|
||||
return i5;
|
||||
}
|
||||
if (i == 2) {
|
||||
return i6;
|
||||
}
|
||||
throw new IllegalStateException(a.l(i, "Unknown color scheme: "));
|
||||
}
|
||||
|
||||
public final void zaa(Resources resources, int i, int i4) {
|
||||
setTypeface(Typeface.DEFAULT_BOLD);
|
||||
setTextSize(14.0f);
|
||||
int i5 = (int) ((resources.getDisplayMetrics().density * 48.0f) + 0.5f);
|
||||
setMinHeight(i5);
|
||||
setMinWidth(i5);
|
||||
int i6 = com.google.android.gms.base.R.drawable.common_google_signin_btn_icon_dark;
|
||||
int i7 = com.google.android.gms.base.R.drawable.common_google_signin_btn_icon_light;
|
||||
int zab = zab(i4, i6, i7, i7);
|
||||
int i8 = com.google.android.gms.base.R.drawable.common_google_signin_btn_text_dark;
|
||||
int i9 = com.google.android.gms.base.R.drawable.common_google_signin_btn_text_light;
|
||||
int zab2 = zab(i4, i8, i9, i9);
|
||||
if (i == 0 || i == 1) {
|
||||
zab = zab2;
|
||||
} else if (i != 2) {
|
||||
throw new IllegalStateException(a.l(i, "Unknown button size: "));
|
||||
}
|
||||
Drawable drawable = resources.getDrawable(zab);
|
||||
H.a.h(drawable, resources.getColorStateList(com.google.android.gms.base.R.color.common_google_signin_btn_tint));
|
||||
H.a.i(drawable, PorterDuff.Mode.SRC_ATOP);
|
||||
setBackgroundDrawable(drawable);
|
||||
int i10 = com.google.android.gms.base.R.color.common_google_signin_btn_text_dark;
|
||||
int i11 = com.google.android.gms.base.R.color.common_google_signin_btn_text_light;
|
||||
setTextColor((ColorStateList) Preconditions.checkNotNull(resources.getColorStateList(zab(i4, i10, i11, i11))));
|
||||
if (i == 0) {
|
||||
setText(resources.getString(com.google.android.gms.base.R.string.common_signin_button_text));
|
||||
} else if (i == 1) {
|
||||
setText(resources.getString(com.google.android.gms.base.R.string.common_signin_button_text_long));
|
||||
} else {
|
||||
if (i != 2) {
|
||||
throw new IllegalStateException(a.l(i, "Unknown button size: "));
|
||||
}
|
||||
setText((CharSequence) null);
|
||||
}
|
||||
setTransformationMethod(null);
|
||||
if (DeviceProperties.isWearable(getContext())) {
|
||||
setGravity(19);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zaab implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
int i = 0;
|
||||
ArrayList arrayList = null;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId != 2) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
arrayList = SafeParcelReader.createTypedList(parcel, readHeader, MethodInvocation.CREATOR);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new TelemetryData(i, arrayList);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new TelemetryData[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zab {
|
||||
public final Set zaa;
|
||||
|
||||
public zab(Set set) {
|
||||
Preconditions.checkNotNull(set);
|
||||
this.zaa = Collections.unmodifiableSet(set);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,179 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import K.f;
|
||||
import android.content.Context;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.content.res.Resources;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import com.google.android.gms.base.R;
|
||||
import com.google.android.gms.common.GooglePlayServicesUtil;
|
||||
import com.google.android.gms.common.util.DeviceProperties;
|
||||
import com.google.android.gms.common.wrappers.Wrappers;
|
||||
import java.util.Locale;
|
||||
import s.j;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zac {
|
||||
private static final j zaa = new j(0);
|
||||
private static Locale zab;
|
||||
|
||||
public static String zaa(Context context) {
|
||||
String packageName = context.getPackageName();
|
||||
try {
|
||||
return Wrappers.packageManager(context).getApplicationLabel(packageName).toString();
|
||||
} catch (PackageManager.NameNotFoundException | NullPointerException unused) {
|
||||
String str = context.getApplicationInfo().name;
|
||||
return TextUtils.isEmpty(str) ? packageName : str;
|
||||
}
|
||||
}
|
||||
|
||||
public static String zab(Context context) {
|
||||
return context.getResources().getString(R.string.common_google_play_services_notification_channel_name);
|
||||
}
|
||||
|
||||
public static String zac(Context context, int i) {
|
||||
Resources resources = context.getResources();
|
||||
return i != 1 ? i != 2 ? i != 3 ? resources.getString(android.R.string.ok) : resources.getString(R.string.common_google_play_services_enable_button) : resources.getString(R.string.common_google_play_services_update_button) : resources.getString(R.string.common_google_play_services_install_button);
|
||||
}
|
||||
|
||||
public static String zad(Context context, int i) {
|
||||
Resources resources = context.getResources();
|
||||
String zaa2 = zaa(context);
|
||||
if (i == 1) {
|
||||
return resources.getString(R.string.common_google_play_services_install_text, zaa2);
|
||||
}
|
||||
if (i == 2) {
|
||||
return DeviceProperties.isWearableWithoutPlayStore(context) ? resources.getString(R.string.common_google_play_services_wear_update_text) : resources.getString(R.string.common_google_play_services_update_text, zaa2);
|
||||
}
|
||||
if (i == 3) {
|
||||
return resources.getString(R.string.common_google_play_services_enable_text, zaa2);
|
||||
}
|
||||
if (i == 5) {
|
||||
return zah(context, "common_google_play_services_invalid_account_text", zaa2);
|
||||
}
|
||||
if (i == 7) {
|
||||
return zah(context, "common_google_play_services_network_error_text", zaa2);
|
||||
}
|
||||
if (i == 9) {
|
||||
return resources.getString(R.string.common_google_play_services_unsupported_text, zaa2);
|
||||
}
|
||||
if (i == 20) {
|
||||
return zah(context, "common_google_play_services_restricted_profile_text", zaa2);
|
||||
}
|
||||
switch (i) {
|
||||
case 16:
|
||||
return zah(context, "common_google_play_services_api_unavailable_text", zaa2);
|
||||
case 17:
|
||||
return zah(context, "common_google_play_services_sign_in_failed_text", zaa2);
|
||||
case 18:
|
||||
return resources.getString(R.string.common_google_play_services_updating_text, zaa2);
|
||||
default:
|
||||
return resources.getString(com.google.android.gms.common.R.string.common_google_play_services_unknown_issue, zaa2);
|
||||
}
|
||||
}
|
||||
|
||||
public static String zae(Context context, int i) {
|
||||
return (i == 6 || i == 19) ? zah(context, "common_google_play_services_resolution_required_text", zaa(context)) : zad(context, i);
|
||||
}
|
||||
|
||||
public static String zaf(Context context, int i) {
|
||||
String zai = i == 6 ? zai(context, "common_google_play_services_resolution_required_title") : zag(context, i);
|
||||
return zai == null ? context.getResources().getString(R.string.common_google_play_services_notification_ticker) : zai;
|
||||
}
|
||||
|
||||
public static String zag(Context context, int i) {
|
||||
Resources resources = context.getResources();
|
||||
switch (i) {
|
||||
case 1:
|
||||
return resources.getString(R.string.common_google_play_services_install_title);
|
||||
case 2:
|
||||
return resources.getString(R.string.common_google_play_services_update_title);
|
||||
case 3:
|
||||
return resources.getString(R.string.common_google_play_services_enable_title);
|
||||
case 4:
|
||||
case 6:
|
||||
case 18:
|
||||
return null;
|
||||
case 5:
|
||||
Log.e("GoogleApiAvailability", "An invalid account was specified when connecting. Please provide a valid account.");
|
||||
return zai(context, "common_google_play_services_invalid_account_title");
|
||||
case 7:
|
||||
Log.e("GoogleApiAvailability", "Network error occurred. Please retry request later.");
|
||||
return zai(context, "common_google_play_services_network_error_title");
|
||||
case 8:
|
||||
Log.e("GoogleApiAvailability", "Internal error occurred. Please see logs for detailed information");
|
||||
return null;
|
||||
case 9:
|
||||
Log.e("GoogleApiAvailability", "Google Play services is invalid. Cannot recover.");
|
||||
return null;
|
||||
case 10:
|
||||
Log.e("GoogleApiAvailability", "Developer error occurred. Please see logs for detailed information");
|
||||
return null;
|
||||
case 11:
|
||||
Log.e("GoogleApiAvailability", "The application is not licensed to the user.");
|
||||
return null;
|
||||
case 12:
|
||||
case 13:
|
||||
case 14:
|
||||
case 15:
|
||||
case 19:
|
||||
default:
|
||||
Log.e("GoogleApiAvailability", "Unexpected error code " + i);
|
||||
return null;
|
||||
case 16:
|
||||
Log.e("GoogleApiAvailability", "One of the API components you attempted to connect to is not available.");
|
||||
return null;
|
||||
case 17:
|
||||
Log.e("GoogleApiAvailability", "The specified account could not be signed in.");
|
||||
return zai(context, "common_google_play_services_sign_in_failed_title");
|
||||
case 20:
|
||||
Log.e("GoogleApiAvailability", "The current user profile is restricted and could not use authenticated features.");
|
||||
return zai(context, "common_google_play_services_restricted_profile_title");
|
||||
}
|
||||
}
|
||||
|
||||
private static String zah(Context context, String str, String str2) {
|
||||
Resources resources = context.getResources();
|
||||
String zai = zai(context, str);
|
||||
if (zai == null) {
|
||||
zai = resources.getString(com.google.android.gms.common.R.string.common_google_play_services_unknown_issue);
|
||||
}
|
||||
return String.format(resources.getConfiguration().locale, zai, str2);
|
||||
}
|
||||
|
||||
private static String zai(Context context, String str) {
|
||||
j jVar = zaa;
|
||||
synchronized (jVar) {
|
||||
try {
|
||||
Locale locale = f.a(context.getResources().getConfiguration()).get(0);
|
||||
if (!locale.equals(zab)) {
|
||||
jVar.clear();
|
||||
zab = locale;
|
||||
}
|
||||
String str2 = (String) jVar.get(str);
|
||||
if (str2 != null) {
|
||||
return str2;
|
||||
}
|
||||
Resources remoteResource = GooglePlayServicesUtil.getRemoteResource(context);
|
||||
if (remoteResource == null) {
|
||||
return null;
|
||||
}
|
||||
int identifier = remoteResource.getIdentifier(str, "string", "com.google.android.gms");
|
||||
if (identifier == 0) {
|
||||
Log.w("GoogleApiAvailability", "Missing resource: " + str);
|
||||
return null;
|
||||
}
|
||||
String string = remoteResource.getString(identifier);
|
||||
if (!TextUtils.isEmpty(string)) {
|
||||
jVar.put(str, string);
|
||||
return string;
|
||||
}
|
||||
Log.w("GoogleApiAvailability", "Got empty resource: " + str);
|
||||
return null;
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zad extends zag {
|
||||
final /* synthetic */ Intent zaa;
|
||||
final /* synthetic */ Activity zab;
|
||||
final /* synthetic */ int zac;
|
||||
|
||||
public zad(Intent intent, Activity activity, int i) {
|
||||
this.zaa = intent;
|
||||
this.zab = activity;
|
||||
this.zac = i;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.zag
|
||||
public final void zaa() {
|
||||
Intent intent = this.zaa;
|
||||
if (intent != null) {
|
||||
this.zab.startActivityForResult(intent, this.zac);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.content.Intent;
|
||||
import androidx.fragment.app.K;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zae extends zag {
|
||||
final /* synthetic */ Intent zaa;
|
||||
final /* synthetic */ K zab;
|
||||
final /* synthetic */ int zac;
|
||||
|
||||
public zae(Intent intent, K k4, int i) {
|
||||
this.zaa = intent;
|
||||
this.zab = k4;
|
||||
this.zac = i;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.zag
|
||||
public final void zaa() {
|
||||
Intent intent = this.zaa;
|
||||
if (intent != null) {
|
||||
this.zab.startActivityForResult(intent, this.zac);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.content.Intent;
|
||||
import com.google.android.gms.common.api.internal.LifecycleFragment;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zaf extends zag {
|
||||
final /* synthetic */ Intent zaa;
|
||||
final /* synthetic */ LifecycleFragment zab;
|
||||
|
||||
public zaf(Intent intent, LifecycleFragment lifecycleFragment, int i) {
|
||||
this.zaa = intent;
|
||||
this.zab = lifecycleFragment;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.zag
|
||||
public final void zaa() {
|
||||
Intent intent = this.zaa;
|
||||
if (intent != null) {
|
||||
this.zab.startActivityForResult(intent, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.ActivityNotFoundException;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.os.Build;
|
||||
import android.util.Log;
|
||||
import androidx.fragment.app.K;
|
||||
import com.google.android.gms.common.api.internal.LifecycleFragment;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class zag implements DialogInterface.OnClickListener {
|
||||
public static zag zab(Activity activity, Intent intent, int i) {
|
||||
return new zad(intent, activity, i);
|
||||
}
|
||||
|
||||
public static zag zac(K k4, Intent intent, int i) {
|
||||
return new zae(intent, k4, i);
|
||||
}
|
||||
|
||||
public static zag zad(LifecycleFragment lifecycleFragment, Intent intent, int i) {
|
||||
return new zaf(intent, lifecycleFragment, 2);
|
||||
}
|
||||
|
||||
@Override // android.content.DialogInterface.OnClickListener
|
||||
public final void onClick(DialogInterface dialogInterface, int i) {
|
||||
try {
|
||||
zaa();
|
||||
} catch (ActivityNotFoundException e4) {
|
||||
Log.e("DialogRedirect", true == Build.FINGERPRINT.contains("generic") ? "Failed to start resolution intent. This may occur when resolving Google Play services connection issues on emulators with Google APIs but not Google Play Store." : "Failed to start resolution intent.", e4);
|
||||
} finally {
|
||||
dialogInterface.dismiss();
|
||||
}
|
||||
}
|
||||
|
||||
public abstract void zaa();
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Bundle;
|
||||
import com.google.android.gms.common.api.internal.ConnectionCallbacks;
|
||||
import com.google.android.gms.common.internal.BaseGmsClient;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zah implements BaseGmsClient.BaseConnectionCallbacks {
|
||||
final /* synthetic */ ConnectionCallbacks zaa;
|
||||
|
||||
public zah(ConnectionCallbacks connectionCallbacks) {
|
||||
this.zaa = connectionCallbacks;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient.BaseConnectionCallbacks
|
||||
public final void onConnected(Bundle bundle) {
|
||||
this.zaa.onConnected(bundle);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient.BaseConnectionCallbacks
|
||||
public final void onConnectionSuspended(int i) {
|
||||
this.zaa.onConnectionSuspended(i);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import com.google.android.gms.common.ConnectionResult;
|
||||
import com.google.android.gms.common.api.internal.OnConnectionFailedListener;
|
||||
import com.google.android.gms.common.internal.BaseGmsClient;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zai implements BaseGmsClient.BaseOnConnectionFailedListener {
|
||||
final /* synthetic */ OnConnectionFailedListener zaa;
|
||||
|
||||
public zai(OnConnectionFailedListener onConnectionFailedListener) {
|
||||
this.zaa = onConnectionFailedListener;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient.BaseOnConnectionFailedListener
|
||||
public final void onConnectionFailed(ConnectionResult connectionResult) {
|
||||
this.zaa.onConnectionFailed(connectionResult);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import com.google.android.gms.common.util.VisibleForTesting;
|
||||
|
||||
@VisibleForTesting
|
||||
/* loaded from: classes3.dex */
|
||||
public interface zaj {
|
||||
boolean isConnected();
|
||||
}
|
||||
@@ -0,0 +1,222 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.os.Message;
|
||||
import android.util.Log;
|
||||
import com.google.android.gms.common.ConnectionResult;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.util.VisibleForTesting;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import org.checkerframework.checker.initialization.qual.NotOnlyInitialized;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zak implements Handler.Callback {
|
||||
|
||||
@NotOnlyInitialized
|
||||
private final zaj zab;
|
||||
private final Handler zah;
|
||||
private final ArrayList zac = new ArrayList();
|
||||
|
||||
@VisibleForTesting
|
||||
final ArrayList zaa = new ArrayList();
|
||||
private final ArrayList zad = new ArrayList();
|
||||
private volatile boolean zae = false;
|
||||
private final AtomicInteger zaf = new AtomicInteger(0);
|
||||
private boolean zag = false;
|
||||
private final Object zai = new Object();
|
||||
|
||||
public zak(Looper looper, zaj zajVar) {
|
||||
this.zab = zajVar;
|
||||
this.zah = new com.google.android.gms.internal.base.zau(looper, this);
|
||||
}
|
||||
|
||||
@Override // android.os.Handler.Callback
|
||||
public final boolean handleMessage(Message message) {
|
||||
int i = message.what;
|
||||
if (i != 1) {
|
||||
Log.wtf("GmsClientEvents", "Don't know how to handle message: " + i, new Exception());
|
||||
return false;
|
||||
}
|
||||
GoogleApiClient.ConnectionCallbacks connectionCallbacks = (GoogleApiClient.ConnectionCallbacks) message.obj;
|
||||
synchronized (this.zai) {
|
||||
try {
|
||||
if (this.zae && this.zab.isConnected() && this.zac.contains(connectionCallbacks)) {
|
||||
connectionCallbacks.onConnected(null);
|
||||
}
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public final void zaa() {
|
||||
this.zae = false;
|
||||
this.zaf.incrementAndGet();
|
||||
}
|
||||
|
||||
public final void zab() {
|
||||
this.zae = true;
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
public final void zac(ConnectionResult connectionResult) {
|
||||
Preconditions.checkHandlerThread(this.zah, "onConnectionFailure must only be called on the Handler thread");
|
||||
this.zah.removeMessages(1);
|
||||
synchronized (this.zai) {
|
||||
try {
|
||||
ArrayList arrayList = new ArrayList(this.zad);
|
||||
int i = this.zaf.get();
|
||||
Iterator it = arrayList.iterator();
|
||||
while (it.hasNext()) {
|
||||
GoogleApiClient.OnConnectionFailedListener onConnectionFailedListener = (GoogleApiClient.OnConnectionFailedListener) it.next();
|
||||
if (this.zae && this.zaf.get() == i) {
|
||||
if (this.zad.contains(onConnectionFailedListener)) {
|
||||
onConnectionFailedListener.onConnectionFailed(connectionResult);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
} finally {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
public final void zad(Bundle bundle) {
|
||||
Preconditions.checkHandlerThread(this.zah, "onConnectionSuccess must only be called on the Handler thread");
|
||||
synchronized (this.zai) {
|
||||
try {
|
||||
Preconditions.checkState(!this.zag);
|
||||
this.zah.removeMessages(1);
|
||||
this.zag = true;
|
||||
Preconditions.checkState(this.zaa.isEmpty());
|
||||
ArrayList arrayList = new ArrayList(this.zac);
|
||||
int i = this.zaf.get();
|
||||
Iterator it = arrayList.iterator();
|
||||
while (it.hasNext()) {
|
||||
GoogleApiClient.ConnectionCallbacks connectionCallbacks = (GoogleApiClient.ConnectionCallbacks) it.next();
|
||||
if (!this.zae || !this.zab.isConnected() || this.zaf.get() != i) {
|
||||
break;
|
||||
} else if (!this.zaa.contains(connectionCallbacks)) {
|
||||
connectionCallbacks.onConnected(bundle);
|
||||
}
|
||||
}
|
||||
this.zaa.clear();
|
||||
this.zag = false;
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
public final void zae(int i) {
|
||||
Preconditions.checkHandlerThread(this.zah, "onUnintentionalDisconnection must only be called on the Handler thread");
|
||||
this.zah.removeMessages(1);
|
||||
synchronized (this.zai) {
|
||||
try {
|
||||
this.zag = true;
|
||||
ArrayList arrayList = new ArrayList(this.zac);
|
||||
int i4 = this.zaf.get();
|
||||
Iterator it = arrayList.iterator();
|
||||
while (it.hasNext()) {
|
||||
GoogleApiClient.ConnectionCallbacks connectionCallbacks = (GoogleApiClient.ConnectionCallbacks) it.next();
|
||||
if (!this.zae || this.zaf.get() != i4) {
|
||||
break;
|
||||
} else if (this.zac.contains(connectionCallbacks)) {
|
||||
connectionCallbacks.onConnectionSuspended(i);
|
||||
}
|
||||
}
|
||||
this.zaa.clear();
|
||||
this.zag = false;
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public final void zaf(GoogleApiClient.ConnectionCallbacks connectionCallbacks) {
|
||||
Preconditions.checkNotNull(connectionCallbacks);
|
||||
synchronized (this.zai) {
|
||||
try {
|
||||
if (this.zac.contains(connectionCallbacks)) {
|
||||
Log.w("GmsClientEvents", "registerConnectionCallbacks(): listener " + String.valueOf(connectionCallbacks) + " is already registered");
|
||||
} else {
|
||||
this.zac.add(connectionCallbacks);
|
||||
}
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
if (this.zab.isConnected()) {
|
||||
Handler handler = this.zah;
|
||||
handler.sendMessage(handler.obtainMessage(1, connectionCallbacks));
|
||||
}
|
||||
}
|
||||
|
||||
public final void zag(GoogleApiClient.OnConnectionFailedListener onConnectionFailedListener) {
|
||||
Preconditions.checkNotNull(onConnectionFailedListener);
|
||||
synchronized (this.zai) {
|
||||
try {
|
||||
if (this.zad.contains(onConnectionFailedListener)) {
|
||||
Log.w("GmsClientEvents", "registerConnectionFailedListener(): listener " + String.valueOf(onConnectionFailedListener) + " is already registered");
|
||||
} else {
|
||||
this.zad.add(onConnectionFailedListener);
|
||||
}
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public final void zah(GoogleApiClient.ConnectionCallbacks connectionCallbacks) {
|
||||
Preconditions.checkNotNull(connectionCallbacks);
|
||||
synchronized (this.zai) {
|
||||
try {
|
||||
if (!this.zac.remove(connectionCallbacks)) {
|
||||
Log.w("GmsClientEvents", "unregisterConnectionCallbacks(): listener " + String.valueOf(connectionCallbacks) + " not found");
|
||||
} else if (this.zag) {
|
||||
this.zaa.add(connectionCallbacks);
|
||||
}
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public final void zai(GoogleApiClient.OnConnectionFailedListener onConnectionFailedListener) {
|
||||
Preconditions.checkNotNull(onConnectionFailedListener);
|
||||
synchronized (this.zai) {
|
||||
try {
|
||||
if (!this.zad.remove(onConnectionFailedListener)) {
|
||||
Log.w("GmsClientEvents", "unregisterConnectionFailedListener(): listener " + String.valueOf(onConnectionFailedListener) + " not found");
|
||||
}
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public final boolean zaj(GoogleApiClient.ConnectionCallbacks connectionCallbacks) {
|
||||
boolean contains;
|
||||
Preconditions.checkNotNull(connectionCallbacks);
|
||||
synchronized (this.zai) {
|
||||
contains = this.zac.contains(connectionCallbacks);
|
||||
}
|
||||
return contains;
|
||||
}
|
||||
|
||||
public final boolean zak(GoogleApiClient.OnConnectionFailedListener onConnectionFailedListener) {
|
||||
boolean contains;
|
||||
Preconditions.checkNotNull(onConnectionFailedListener);
|
||||
synchronized (this.zai) {
|
||||
contains = this.zad.contains(onConnectionFailedListener);
|
||||
}
|
||||
return contains;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.SparseIntArray;
|
||||
import com.google.android.gms.common.GoogleApiAvailability;
|
||||
import com.google.android.gms.common.GoogleApiAvailabilityLight;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zal {
|
||||
private final SparseIntArray zaa;
|
||||
private GoogleApiAvailabilityLight zab;
|
||||
|
||||
public zal() {
|
||||
this(GoogleApiAvailability.getInstance());
|
||||
}
|
||||
|
||||
public final int zaa(Context context, int i) {
|
||||
return this.zaa.get(i, -1);
|
||||
}
|
||||
|
||||
public final int zab(Context context, Api.Client client) {
|
||||
Preconditions.checkNotNull(context);
|
||||
Preconditions.checkNotNull(client);
|
||||
int i = 0;
|
||||
if (!client.requiresGooglePlayServices()) {
|
||||
return 0;
|
||||
}
|
||||
int minApkVersion = client.getMinApkVersion();
|
||||
int zaa = zaa(context, minApkVersion);
|
||||
if (zaa != -1) {
|
||||
return zaa;
|
||||
}
|
||||
int i4 = 0;
|
||||
while (true) {
|
||||
if (i4 >= this.zaa.size()) {
|
||||
i = -1;
|
||||
break;
|
||||
}
|
||||
int keyAt = this.zaa.keyAt(i4);
|
||||
if (keyAt > minApkVersion && this.zaa.get(keyAt) == 0) {
|
||||
break;
|
||||
}
|
||||
i4++;
|
||||
}
|
||||
if (i == -1) {
|
||||
i = this.zab.isGooglePlayServicesAvailable(context, minApkVersion);
|
||||
}
|
||||
this.zaa.put(minApkVersion, i);
|
||||
return i;
|
||||
}
|
||||
|
||||
public final void zac() {
|
||||
this.zaa.clear();
|
||||
}
|
||||
|
||||
public zal(GoogleApiAvailabilityLight googleApiAvailabilityLight) {
|
||||
this.zaa = new SparseIntArray();
|
||||
Preconditions.checkNotNull(googleApiAvailabilityLight);
|
||||
this.zab = googleApiAvailabilityLight;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import C.w;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zam extends com.google.android.gms.internal.base.zaa implements IInterface {
|
||||
public zam(IBinder iBinder) {
|
||||
super(iBinder, "com.google.android.gms.common.internal.ISignInButtonCreator");
|
||||
}
|
||||
|
||||
public final IObjectWrapper zae(IObjectWrapper iObjectWrapper, zax zaxVar) throws RemoteException {
|
||||
Parcel zaa = zaa();
|
||||
com.google.android.gms.internal.base.zac.zae(zaa, iObjectWrapper);
|
||||
com.google.android.gms.internal.base.zac.zad(zaa, zaxVar);
|
||||
return w.d(zab(2, zaa));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zan implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
int i = 0;
|
||||
int i4 = 0;
|
||||
int i5 = 0;
|
||||
int i6 = 0;
|
||||
long j4 = 0;
|
||||
long j5 = 0;
|
||||
String str = null;
|
||||
String str2 = null;
|
||||
int i7 = -1;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
switch (SafeParcelReader.getFieldId(readHeader)) {
|
||||
case 1:
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 2:
|
||||
i4 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 3:
|
||||
i5 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 4:
|
||||
j4 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
break;
|
||||
case 5:
|
||||
j5 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
break;
|
||||
case 6:
|
||||
str = SafeParcelReader.createString(parcel, readHeader);
|
||||
break;
|
||||
case 7:
|
||||
str2 = SafeParcelReader.createString(parcel, readHeader);
|
||||
break;
|
||||
case 8:
|
||||
i6 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 9:
|
||||
i7 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
default:
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
break;
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new MethodInvocation(i, i4, i5, j4, j5, str, str2, i6, i7);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new MethodInvocation[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zao implements zas {
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import com.google.android.gms.common.api.PendingResult;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.common.internal.PendingResultUtil;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zap implements PendingResult.StatusListener {
|
||||
final /* synthetic */ PendingResult zaa;
|
||||
final /* synthetic */ TaskCompletionSource zab;
|
||||
final /* synthetic */ PendingResultUtil.ResultConverter zac;
|
||||
final /* synthetic */ zas zad;
|
||||
|
||||
public zap(PendingResult pendingResult, TaskCompletionSource taskCompletionSource, PendingResultUtil.ResultConverter resultConverter, zas zasVar) {
|
||||
this.zaa = pendingResult;
|
||||
this.zab = taskCompletionSource;
|
||||
this.zac = resultConverter;
|
||||
this.zad = zasVar;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.PendingResult.StatusListener
|
||||
public final void onComplete(Status status) {
|
||||
if (!status.isSuccess()) {
|
||||
this.zab.setException(ApiExceptionUtil.fromStatus(status));
|
||||
} else {
|
||||
this.zab.setResult(this.zac.convert(this.zaa.await(0L, TimeUnit.MILLISECONDS)));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import com.google.android.gms.common.api.Response;
|
||||
import com.google.android.gms.common.api.Result;
|
||||
import com.google.android.gms.common.internal.PendingResultUtil;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zaq implements PendingResultUtil.ResultConverter {
|
||||
final /* synthetic */ Response zaa;
|
||||
|
||||
public zaq(Response response) {
|
||||
this.zaa = response;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.PendingResultUtil.ResultConverter
|
||||
public final /* bridge */ /* synthetic */ Object convert(Result result) {
|
||||
this.zaa.setResult(result);
|
||||
return this.zaa;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import com.google.android.gms.common.api.Result;
|
||||
import com.google.android.gms.common.internal.PendingResultUtil;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zar implements PendingResultUtil.ResultConverter {
|
||||
@Override // com.google.android.gms.common.internal.PendingResultUtil.ResultConverter
|
||||
public final /* bridge */ /* synthetic */ Object convert(Result result) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface zas {
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.accounts.Account;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.auth.api.signin.GoogleSignInAccount;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
|
||||
|
||||
@SafeParcelable.Class(creator = "ResolveAccountRequestCreator")
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zat extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<zat> CREATOR = new zau();
|
||||
|
||||
@SafeParcelable.VersionField(id = 1)
|
||||
final int zaa;
|
||||
|
||||
@SafeParcelable.Field(getter = "getAccount", id = 2)
|
||||
private final Account zab;
|
||||
|
||||
@SafeParcelable.Field(getter = "getSessionId", id = 3)
|
||||
private final int zac;
|
||||
|
||||
@SafeParcelable.Field(getter = "getSignInAccountHint", id = 4)
|
||||
private final GoogleSignInAccount zad;
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public zat(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) Account account, @SafeParcelable.Param(id = 3) int i4, @SafeParcelable.Param(id = 4) GoogleSignInAccount googleSignInAccount) {
|
||||
this.zaa = i;
|
||||
this.zab = account;
|
||||
this.zac = i4;
|
||||
this.zad = googleSignInAccount;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, this.zaa);
|
||||
SafeParcelWriter.writeParcelable(parcel, 2, this.zab, i, false);
|
||||
SafeParcelWriter.writeInt(parcel, 3, this.zac);
|
||||
SafeParcelWriter.writeParcelable(parcel, 4, this.zad, i, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
|
||||
public zat(Account account, int i, GoogleSignInAccount googleSignInAccount) {
|
||||
this(2, account, i, googleSignInAccount);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.accounts.Account;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.auth.api.signin.GoogleSignInAccount;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zau implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
int i = 0;
|
||||
Account account = null;
|
||||
GoogleSignInAccount googleSignInAccount = null;
|
||||
int i4 = 0;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId == 2) {
|
||||
account = (Account) SafeParcelReader.createParcelable(parcel, readHeader, Account.CREATOR);
|
||||
} else if (fieldId == 3) {
|
||||
i4 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId != 4) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
googleSignInAccount = (GoogleSignInAccount) SafeParcelReader.createParcelable(parcel, readHeader, GoogleSignInAccount.CREATOR);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new zat(i, account, i4, googleSignInAccount);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new zat[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.IBinder;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.ConnectionResult;
|
||||
import com.google.android.gms.common.internal.IAccountAccessor;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
|
||||
|
||||
@SafeParcelable.Class(creator = "ResolveAccountResponseCreator")
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zav extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<zav> CREATOR = new zaw();
|
||||
|
||||
@SafeParcelable.VersionField(id = 1)
|
||||
final int zaa;
|
||||
|
||||
@SafeParcelable.Field(id = 2)
|
||||
final IBinder zab;
|
||||
|
||||
@SafeParcelable.Field(getter = "getConnectionResult", id = 3)
|
||||
private final ConnectionResult zac;
|
||||
|
||||
@SafeParcelable.Field(getter = "getSaveDefaultAccount", id = 4)
|
||||
private final boolean zad;
|
||||
|
||||
@SafeParcelable.Field(getter = "isFromCrossClientAuth", id = 5)
|
||||
private final boolean zae;
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public zav(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) IBinder iBinder, @SafeParcelable.Param(id = 3) ConnectionResult connectionResult, @SafeParcelable.Param(id = 4) boolean z3, @SafeParcelable.Param(id = 5) boolean z4) {
|
||||
this.zaa = i;
|
||||
this.zab = iBinder;
|
||||
this.zac = connectionResult;
|
||||
this.zad = z3;
|
||||
this.zae = z4;
|
||||
}
|
||||
|
||||
public final boolean equals(Object obj) {
|
||||
if (obj == null) {
|
||||
return false;
|
||||
}
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof zav)) {
|
||||
return false;
|
||||
}
|
||||
zav zavVar = (zav) obj;
|
||||
return this.zac.equals(zavVar.zac) && Objects.equal(zab(), zavVar.zab());
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, this.zaa);
|
||||
SafeParcelWriter.writeIBinder(parcel, 2, this.zab, false);
|
||||
SafeParcelWriter.writeParcelable(parcel, 3, this.zac, i, false);
|
||||
SafeParcelWriter.writeBoolean(parcel, 4, this.zad);
|
||||
SafeParcelWriter.writeBoolean(parcel, 5, this.zae);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
|
||||
public final ConnectionResult zaa() {
|
||||
return this.zac;
|
||||
}
|
||||
|
||||
public final IAccountAccessor zab() {
|
||||
IBinder iBinder = this.zab;
|
||||
if (iBinder == null) {
|
||||
return null;
|
||||
}
|
||||
return IAccountAccessor.Stub.asInterface(iBinder);
|
||||
}
|
||||
|
||||
public final boolean zac() {
|
||||
return this.zad;
|
||||
}
|
||||
|
||||
public final boolean zad() {
|
||||
return this.zae;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.IBinder;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.ConnectionResult;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zaw implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
int i = 0;
|
||||
boolean z3 = false;
|
||||
boolean z4 = false;
|
||||
IBinder iBinder = null;
|
||||
ConnectionResult connectionResult = null;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId == 2) {
|
||||
iBinder = SafeParcelReader.readIBinder(parcel, readHeader);
|
||||
} else if (fieldId == 3) {
|
||||
connectionResult = (ConnectionResult) SafeParcelReader.createParcelable(parcel, readHeader, ConnectionResult.CREATOR);
|
||||
} else if (fieldId == 4) {
|
||||
z3 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
} else if (fieldId != 5) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
z4 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new zav(i, iBinder, connectionResult, z3, z4);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new zav[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.api.Scope;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
|
||||
|
||||
@SafeParcelable.Class(creator = "SignInButtonConfigCreator")
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zax extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<zax> CREATOR = new zay();
|
||||
|
||||
@SafeParcelable.VersionField(id = 1)
|
||||
final int zaa;
|
||||
|
||||
@SafeParcelable.Field(getter = "getButtonSize", id = 2)
|
||||
private final int zab;
|
||||
|
||||
@SafeParcelable.Field(getter = "getColorScheme", id = 3)
|
||||
private final int zac;
|
||||
|
||||
@SafeParcelable.Field(getter = "getScopes", id = 4)
|
||||
@Deprecated
|
||||
private final Scope[] zad;
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public zax(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) int i4, @SafeParcelable.Param(id = 3) int i5, @SafeParcelable.Param(id = 4) Scope[] scopeArr) {
|
||||
this.zaa = i;
|
||||
this.zab = i4;
|
||||
this.zac = i5;
|
||||
this.zad = scopeArr;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, this.zaa);
|
||||
SafeParcelWriter.writeInt(parcel, 2, this.zab);
|
||||
SafeParcelWriter.writeInt(parcel, 3, this.zac);
|
||||
SafeParcelWriter.writeTypedArray(parcel, 4, this.zad, i, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.api.Scope;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zay implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
int i = 0;
|
||||
int i4 = 0;
|
||||
Scope[] scopeArr = null;
|
||||
int i5 = 0;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId == 2) {
|
||||
i5 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId == 3) {
|
||||
i4 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId != 4) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
scopeArr = (Scope[]) SafeParcelReader.createTypedArray(parcel, readHeader, Scope.CREATOR);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new zax(i, i5, i4, scopeArr);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new zax[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import C.w;
|
||||
import android.content.Context;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.view.View;
|
||||
import com.google.android.gms.dynamic.ObjectWrapper;
|
||||
import com.google.android.gms.dynamic.RemoteCreator;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zaz extends RemoteCreator {
|
||||
private static final zaz zaa = new zaz();
|
||||
|
||||
private zaz() {
|
||||
super("com.google.android.gms.common.ui.SignInButtonCreatorImpl");
|
||||
}
|
||||
|
||||
public static View zaa(Context context, int i, int i4) throws RemoteCreator.RemoteCreatorException {
|
||||
zaz zazVar = zaa;
|
||||
try {
|
||||
zax zaxVar = new zax(1, i, i4, null);
|
||||
return (View) ObjectWrapper.unwrap(((zam) zazVar.getRemoteCreatorInstance(context)).zae(ObjectWrapper.wrap(context), zaxVar));
|
||||
} catch (Exception e4) {
|
||||
throw new RemoteCreator.RemoteCreatorException(w.k("Could not get button with size ", i, i4, " and color "), e4);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.dynamic.RemoteCreator
|
||||
public final /* synthetic */ Object getRemoteCreator(IBinder iBinder) {
|
||||
if (iBinder == null) {
|
||||
return null;
|
||||
}
|
||||
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.common.internal.ISignInButtonCreator");
|
||||
return queryLocalInterface instanceof zam ? (zam) queryLocalInterface : new zam(iBinder);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.os.Bundle;
|
||||
import com.google.android.gms.common.ConnectionResult;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
abstract class zza extends zzc {
|
||||
public final int zza;
|
||||
public final Bundle zzb;
|
||||
final /* synthetic */ BaseGmsClient zzc;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public zza(BaseGmsClient baseGmsClient, int i, Bundle bundle) {
|
||||
super(baseGmsClient, Boolean.TRUE);
|
||||
this.zzc = baseGmsClient;
|
||||
this.zza = i;
|
||||
this.zzb = bundle;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.zzc
|
||||
public final /* bridge */ /* synthetic */ void zza(Object obj) {
|
||||
if (this.zza != 0) {
|
||||
this.zzc.zzp(1, null);
|
||||
Bundle bundle = this.zzb;
|
||||
zzb(new ConnectionResult(this.zza, bundle != null ? (PendingIntent) bundle.getParcelable(BaseGmsClient.KEY_PENDING_INTENT) : null));
|
||||
} else {
|
||||
if (zzd()) {
|
||||
return;
|
||||
}
|
||||
this.zzc.zzp(1, null);
|
||||
zzb(new ConnectionResult(8, null));
|
||||
}
|
||||
}
|
||||
|
||||
public abstract void zzb(ConnectionResult connectionResult);
|
||||
|
||||
@Override // com.google.android.gms.common.internal.zzc
|
||||
public final void zzc() {
|
||||
}
|
||||
|
||||
public abstract boolean zzd();
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.os.IBinder;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzaa extends com.google.android.gms.internal.common.zza implements IGmsCallbacks {
|
||||
public zzaa(IBinder iBinder) {
|
||||
super(iBinder, "com.google.android.gms.common.internal.IGmsCallbacks");
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.IGmsCallbacks
|
||||
public final void onPostInitComplete(int i, IBinder iBinder, Bundle bundle) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zza.writeInt(i);
|
||||
zza.writeStrongBinder(iBinder);
|
||||
com.google.android.gms.internal.common.zzc.zzd(zza, bundle);
|
||||
zzC(1, zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.IGmsCallbacks
|
||||
public final void zzb(int i, Bundle bundle) throws RemoteException {
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.IGmsCallbacks
|
||||
public final void zzc(int i, IBinder iBinder, zzj zzjVar) throws RemoteException {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.os.IBinder;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class zzab extends com.google.android.gms.internal.common.zzb implements IGmsCallbacks {
|
||||
public zzab() {
|
||||
super("com.google.android.gms.common.internal.IGmsCallbacks");
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.common.zzb
|
||||
public final boolean zza(int i, Parcel parcel, Parcel parcel2, int i4) throws RemoteException {
|
||||
if (i == 1) {
|
||||
int readInt = parcel.readInt();
|
||||
IBinder readStrongBinder = parcel.readStrongBinder();
|
||||
Bundle bundle = (Bundle) com.google.android.gms.internal.common.zzc.zza(parcel, Bundle.CREATOR);
|
||||
com.google.android.gms.internal.common.zzc.zzb(parcel);
|
||||
onPostInitComplete(readInt, readStrongBinder, bundle);
|
||||
} else if (i == 2) {
|
||||
int readInt2 = parcel.readInt();
|
||||
Bundle bundle2 = (Bundle) com.google.android.gms.internal.common.zzc.zza(parcel, Bundle.CREATOR);
|
||||
com.google.android.gms.internal.common.zzc.zzb(parcel);
|
||||
zzb(readInt2, bundle2);
|
||||
} else {
|
||||
if (i != 3) {
|
||||
return false;
|
||||
}
|
||||
int readInt3 = parcel.readInt();
|
||||
IBinder readStrongBinder2 = parcel.readStrongBinder();
|
||||
zzj zzjVar = (zzj) com.google.android.gms.internal.common.zzc.zza(parcel, zzj.CREATOR);
|
||||
com.google.android.gms.internal.common.zzc.zzb(parcel);
|
||||
zzc(readInt3, readStrongBinder2, zzjVar);
|
||||
}
|
||||
parcel2.writeNoException();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.IBinder;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzac implements IGmsServiceBroker {
|
||||
private final IBinder zza;
|
||||
|
||||
public zzac(IBinder iBinder) {
|
||||
this.zza = iBinder;
|
||||
}
|
||||
|
||||
@Override // android.os.IInterface
|
||||
public final IBinder asBinder() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.IGmsServiceBroker
|
||||
public final void getService(IGmsCallbacks iGmsCallbacks, GetServiceRequest getServiceRequest) throws RemoteException {
|
||||
Parcel obtain = Parcel.obtain();
|
||||
Parcel obtain2 = Parcel.obtain();
|
||||
try {
|
||||
obtain.writeInterfaceToken("com.google.android.gms.common.internal.IGmsServiceBroker");
|
||||
obtain.writeStrongBinder(iGmsCallbacks != null ? iGmsCallbacks.asBinder() : null);
|
||||
if (getServiceRequest != null) {
|
||||
obtain.writeInt(1);
|
||||
zzm.zza(getServiceRequest, obtain, 0);
|
||||
} else {
|
||||
obtain.writeInt(0);
|
||||
}
|
||||
this.zza.transact(46, obtain, obtain2, 0);
|
||||
obtain2.readException();
|
||||
obtain2.recycle();
|
||||
obtain.recycle();
|
||||
} catch (Throwable th) {
|
||||
obtain2.recycle();
|
||||
obtain.recycle();
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.IBinder;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzad extends com.google.android.gms.internal.common.zza implements zzaf {
|
||||
public zzad(IBinder iBinder) {
|
||||
super(iBinder, "com.google.android.gms.common.internal.IGoogleCertificatesApi");
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.zzaf
|
||||
public final com.google.android.gms.common.zzq zze(com.google.android.gms.common.zzo zzoVar) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
com.google.android.gms.internal.common.zzc.zzd(zza, zzoVar);
|
||||
Parcel zzB = zzB(6, zza);
|
||||
com.google.android.gms.common.zzq zzqVar = (com.google.android.gms.common.zzq) com.google.android.gms.internal.common.zzc.zza(zzB, com.google.android.gms.common.zzq.CREATOR);
|
||||
zzB.recycle();
|
||||
return zzqVar;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.zzaf
|
||||
public final com.google.android.gms.common.zzq zzf(com.google.android.gms.common.zzo zzoVar) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
com.google.android.gms.internal.common.zzc.zzd(zza, zzoVar);
|
||||
Parcel zzB = zzB(8, zza);
|
||||
com.google.android.gms.common.zzq zzqVar = (com.google.android.gms.common.zzq) com.google.android.gms.internal.common.zzc.zza(zzB, com.google.android.gms.common.zzq.CREATOR);
|
||||
zzB.recycle();
|
||||
return zzqVar;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.zzaf
|
||||
public final boolean zzg() throws RemoteException {
|
||||
Parcel zzB = zzB(9, zza());
|
||||
boolean zzg = com.google.android.gms.internal.common.zzc.zzg(zzB);
|
||||
zzB.recycle();
|
||||
return zzg;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.zzaf
|
||||
public final boolean zzh(com.google.android.gms.common.zzs zzsVar, IObjectWrapper iObjectWrapper) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
com.google.android.gms.internal.common.zzc.zzd(zza, zzsVar);
|
||||
com.google.android.gms.internal.common.zzc.zzf(zza, iObjectWrapper);
|
||||
Parcel zzB = zzB(5, zza);
|
||||
boolean zzg = com.google.android.gms.internal.common.zzc.zzg(zzB);
|
||||
zzB.recycle();
|
||||
return zzg;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.zzaf
|
||||
public final boolean zzi() throws RemoteException {
|
||||
Parcel zzB = zzB(7, zza());
|
||||
boolean zzg = com.google.android.gms.internal.common.zzc.zzg(zzB);
|
||||
zzB.recycle();
|
||||
return zzg;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class zzae extends com.google.android.gms.internal.common.zzb implements zzaf {
|
||||
public static zzaf zzb(IBinder iBinder) {
|
||||
if (iBinder == null) {
|
||||
return null;
|
||||
}
|
||||
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.common.internal.IGoogleCertificatesApi");
|
||||
return queryLocalInterface instanceof zzaf ? (zzaf) queryLocalInterface : new zzad(iBinder);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.IInterface;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface zzaf extends IInterface {
|
||||
com.google.android.gms.common.zzq zze(com.google.android.gms.common.zzo zzoVar) throws RemoteException;
|
||||
|
||||
com.google.android.gms.common.zzq zzf(com.google.android.gms.common.zzo zzoVar) throws RemoteException;
|
||||
|
||||
boolean zzg() throws RemoteException;
|
||||
|
||||
boolean zzh(com.google.android.gms.common.zzs zzsVar, IObjectWrapper iObjectWrapper) throws RemoteException;
|
||||
|
||||
boolean zzi() throws RemoteException;
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import com.google.android.gms.common.wrappers.Wrappers;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzag {
|
||||
private static final Object zza = new Object();
|
||||
private static boolean zzb;
|
||||
private static String zzc;
|
||||
private static int zzd;
|
||||
|
||||
public static int zza(Context context) {
|
||||
zzc(context);
|
||||
return zzd;
|
||||
}
|
||||
|
||||
public static String zzb(Context context) {
|
||||
zzc(context);
|
||||
return zzc;
|
||||
}
|
||||
|
||||
private static void zzc(Context context) {
|
||||
Bundle bundle;
|
||||
synchronized (zza) {
|
||||
try {
|
||||
if (zzb) {
|
||||
return;
|
||||
}
|
||||
zzb = true;
|
||||
try {
|
||||
bundle = Wrappers.packageManager(context).getApplicationInfo(context.getPackageName(), 128).metaData;
|
||||
} catch (PackageManager.NameNotFoundException e4) {
|
||||
Log.wtf("MetadataValueReader", "This should never happen.", e4);
|
||||
}
|
||||
if (bundle == null) {
|
||||
return;
|
||||
}
|
||||
zzc = bundle.getString("com.google.app.id");
|
||||
zzd = bundle.getInt("com.google.android.gms.version");
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzai implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
int i = 0;
|
||||
boolean z3 = false;
|
||||
boolean z4 = false;
|
||||
int i4 = 0;
|
||||
int i5 = 0;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId == 2) {
|
||||
z3 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
} else if (fieldId == 3) {
|
||||
z4 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
} else if (fieldId == 4) {
|
||||
i4 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId != 5) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
i5 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new RootTelemetryConfiguration(i, z3, z4, i4, i5);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new RootTelemetryConfiguration[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
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.internal.safeparcel.SafeParcelable;
|
||||
|
||||
@SafeParcelable.Class(creator = "ValidateAccountRequestCreator")
|
||||
@Deprecated
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzaj extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<zzaj> CREATOR = new zzak();
|
||||
|
||||
@SafeParcelable.VersionField(id = 1)
|
||||
final int zza;
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public zzaj(@SafeParcelable.Param(id = 1) int i) {
|
||||
this.zza = i;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, this.zza);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.google.android.gms.common.internal;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzak implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
int i = 0;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
if (SafeParcelReader.getFieldId(readHeader) != 1) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new zzaj(i);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new zzaj[i];
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user