Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class zza implements IInterface {
|
||||
private final IBinder zza;
|
||||
private final String zzb;
|
||||
|
||||
public zza(IBinder iBinder, String str) {
|
||||
this.zza = iBinder;
|
||||
this.zzb = str;
|
||||
}
|
||||
|
||||
@Override // android.os.IInterface
|
||||
public final IBinder asBinder() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
public final Parcel zza() {
|
||||
Parcel obtain = Parcel.obtain();
|
||||
obtain.writeInterfaceToken(this.zzb);
|
||||
return obtain;
|
||||
}
|
||||
|
||||
public final Parcel zzb(int i, Parcel parcel) throws RemoteException {
|
||||
Parcel obtain = Parcel.obtain();
|
||||
try {
|
||||
try {
|
||||
this.zza.transact(i, parcel, obtain, 0);
|
||||
obtain.readException();
|
||||
return obtain;
|
||||
} catch (RuntimeException e4) {
|
||||
obtain.recycle();
|
||||
throw e4;
|
||||
}
|
||||
} finally {
|
||||
parcel.recycle();
|
||||
}
|
||||
}
|
||||
|
||||
public final void zzc(int i, Parcel parcel) throws RemoteException {
|
||||
Parcel obtain = Parcel.obtain();
|
||||
try {
|
||||
this.zza.transact(i, parcel, obtain, 0);
|
||||
obtain.readException();
|
||||
} finally {
|
||||
parcel.recycle();
|
||||
obtain.recycle();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
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;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzad 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 zzf(context, looper, clientSettings, connectionCallbacks, onConnectionFailedListener);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.common.api.internal.IStatusCallback;
|
||||
import com.google.android.gms.common.api.internal.TaskUtil;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzae extends IStatusCallback.Stub {
|
||||
final /* synthetic */ TaskCompletionSource zza;
|
||||
|
||||
public zzae(zzag zzagVar, TaskCompletionSource taskCompletionSource) {
|
||||
this.zza = taskCompletionSource;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.IStatusCallback
|
||||
public final void onResult(Status status) {
|
||||
TaskUtil.setResultOrApiException(status, this.zza);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.android.gms.common.api.ApiException;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.common.api.internal.BaseImplementation;
|
||||
import com.google.android.gms.common.api.internal.TaskUtil;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzaf implements BaseImplementation.ResultHolder {
|
||||
private final TaskCompletionSource zza;
|
||||
|
||||
public zzaf(TaskCompletionSource taskCompletionSource) {
|
||||
Preconditions.checkNotNull(taskCompletionSource);
|
||||
this.zza = taskCompletionSource;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ResultHolder
|
||||
public final void setFailedResult(Status status) {
|
||||
if (status == null) {
|
||||
return;
|
||||
}
|
||||
this.zza.setException(new ApiException(status));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ResultHolder
|
||||
public final /* synthetic */ void setResult(Object obj) {
|
||||
TaskUtil.setResultOrApiException((Status) obj, null, this.zza);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.PendingIntent;
|
||||
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.StatusCallback;
|
||||
import com.google.android.gms.common.api.internal.TaskApiCall;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.location.ActivityRecognitionClient;
|
||||
import com.google.android.gms.location.ActivityTransitionRequest;
|
||||
import com.google.android.gms.location.SleepSegmentRequest;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzag extends GoogleApi implements ActivityRecognitionClient {
|
||||
static final Api.ClientKey zza;
|
||||
public static final Api zzb;
|
||||
|
||||
static {
|
||||
Api.ClientKey clientKey = new Api.ClientKey();
|
||||
zza = clientKey;
|
||||
zzb = new Api("ActivityRecognition.API", new zzad(), clientKey);
|
||||
}
|
||||
|
||||
public zzag(Activity activity) {
|
||||
super(activity, (Api<Api.ApiOptions.NoOptions>) zzb, Api.ApiOptions.NO_OPTIONS, GoogleApi.Settings.DEFAULT_SETTINGS);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.ActivityRecognitionClient
|
||||
public final Task<Void> removeActivityTransitionUpdates(final PendingIntent pendingIntent) {
|
||||
return doWrite(TaskApiCall.builder().run(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzx
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
PendingIntent pendingIntent2 = pendingIntent;
|
||||
Api api = zzag.zzb;
|
||||
zzaf zzafVar = new zzaf((TaskCompletionSource) obj2);
|
||||
Preconditions.checkNotNull(zzafVar, "ResultHolder not provided.");
|
||||
((zzo) ((zzf) obj).getService()).zzl(pendingIntent2, new StatusCallback(zzafVar));
|
||||
}
|
||||
}).setMethodKey(2406).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.ActivityRecognitionClient
|
||||
public final Task<Void> removeActivityUpdates(final PendingIntent pendingIntent) {
|
||||
return doWrite(TaskApiCall.builder().run(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzy
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
PendingIntent pendingIntent2 = pendingIntent;
|
||||
Api api = zzag.zzb;
|
||||
((zzf) obj).zzp(pendingIntent2);
|
||||
((TaskCompletionSource) obj2).setResult(null);
|
||||
}
|
||||
}).setMethodKey(2402).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.ActivityRecognitionClient
|
||||
public final Task<Void> removeSleepSegmentUpdates(final PendingIntent pendingIntent) {
|
||||
return doWrite(TaskApiCall.builder().run(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzab
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
PendingIntent pendingIntent2 = pendingIntent;
|
||||
Api api = zzag.zzb;
|
||||
zzaf zzafVar = new zzaf((TaskCompletionSource) obj2);
|
||||
Preconditions.checkNotNull(pendingIntent2, "PendingIntent must be specified.");
|
||||
Preconditions.checkNotNull(zzafVar, "ResultHolder not provided.");
|
||||
((zzo) ((zzf) obj).getService()).zzp(pendingIntent2, new StatusCallback(zzafVar));
|
||||
}
|
||||
}).setMethodKey(2411).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.ActivityRecognitionClient
|
||||
public final Task<Void> requestActivityTransitionUpdates(final ActivityTransitionRequest activityTransitionRequest, final PendingIntent pendingIntent) {
|
||||
activityTransitionRequest.zza(getContextAttributionTag());
|
||||
return doWrite(TaskApiCall.builder().run(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzaa
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
ActivityTransitionRequest activityTransitionRequest2 = ActivityTransitionRequest.this;
|
||||
PendingIntent pendingIntent2 = pendingIntent;
|
||||
Api api = zzag.zzb;
|
||||
zzaf zzafVar = new zzaf((TaskCompletionSource) obj2);
|
||||
Preconditions.checkNotNull(activityTransitionRequest2, "activityTransitionRequest must be specified.");
|
||||
Preconditions.checkNotNull(pendingIntent2, "PendingIntent must be specified.");
|
||||
Preconditions.checkNotNull(zzafVar, "ResultHolder not provided.");
|
||||
((zzo) ((zzf) obj).getService()).zzq(activityTransitionRequest2, pendingIntent2, new StatusCallback(zzafVar));
|
||||
}
|
||||
}).setMethodKey(2405).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.ActivityRecognitionClient
|
||||
public final Task<Void> requestActivityUpdates(long j4, final PendingIntent pendingIntent) {
|
||||
com.google.android.gms.location.zza zzaVar = new com.google.android.gms.location.zza();
|
||||
zzaVar.zza(j4);
|
||||
final com.google.android.gms.location.zzb zzb2 = zzaVar.zzb();
|
||||
zzb2.zza(getContextAttributionTag());
|
||||
return doWrite(TaskApiCall.builder().run(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzz
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
com.google.android.gms.location.zzb zzbVar = com.google.android.gms.location.zzb.this;
|
||||
PendingIntent pendingIntent2 = pendingIntent;
|
||||
Api api = zzag.zzb;
|
||||
zzaf zzafVar = new zzaf((TaskCompletionSource) obj2);
|
||||
Preconditions.checkNotNull(zzbVar, "ActivityRecognitionRequest can't be null.");
|
||||
Preconditions.checkNotNull(pendingIntent2, "PendingIntent must be specified.");
|
||||
Preconditions.checkNotNull(zzafVar, "ResultHolder not provided.");
|
||||
((zzo) ((zzf) obj).getService()).zzs(zzbVar, pendingIntent2, new StatusCallback(zzafVar));
|
||||
}
|
||||
}).setMethodKey(2401).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.ActivityRecognitionClient
|
||||
public final Task<Void> requestSleepSegmentUpdates(final PendingIntent pendingIntent, final SleepSegmentRequest sleepSegmentRequest) {
|
||||
Preconditions.checkNotNull(pendingIntent, "PendingIntent must be specified.");
|
||||
return doRead(TaskApiCall.builder().run(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzac
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
zzag zzagVar = zzag.this;
|
||||
((zzo) ((zzf) obj).getService()).zzt(pendingIntent, sleepSegmentRequest, new zzae(zzagVar, (TaskCompletionSource) obj2));
|
||||
}
|
||||
}).setFeatures(com.google.android.gms.location.zzm.zzb).setMethodKey(2410).build());
|
||||
}
|
||||
|
||||
public zzag(Context context) {
|
||||
super(context, (Api<Api.ApiOptions.NoOptions>) zzb, Api.ApiOptions.NO_OPTIONS, GoogleApi.Settings.DEFAULT_SETTINGS);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzaj extends zzat {
|
||||
public zzaj(zzau zzauVar, GoogleApiClient googleApiClient) {
|
||||
super(googleApiClient);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
public final /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzda) anyClient).zzr(zzau.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
import com.google.android.gms.location.LocationRequest;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzak extends zzat {
|
||||
final /* synthetic */ ListenerHolder zza;
|
||||
final /* synthetic */ LocationRequest zzb;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public zzak(zzau zzauVar, GoogleApiClient googleApiClient, ListenerHolder listenerHolder, LocationRequest locationRequest) {
|
||||
super(googleApiClient);
|
||||
this.zza = listenerHolder;
|
||||
this.zzb = locationRequest;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
public final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzda) anyClient).zzv(new zzas(this.zza), this.zzb, zzau.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
import com.google.android.gms.location.LocationRequest;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzal extends zzat {
|
||||
final /* synthetic */ ListenerHolder zza;
|
||||
final /* synthetic */ LocationRequest zzb;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public zzal(zzau zzauVar, GoogleApiClient googleApiClient, ListenerHolder listenerHolder, LocationRequest locationRequest) {
|
||||
super(googleApiClient);
|
||||
this.zza = listenerHolder;
|
||||
this.zzb = locationRequest;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
public final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzda) anyClient).zzu(new zzas(this.zza), this.zzb, zzau.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.location.LocationRequest;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzam extends zzat {
|
||||
final /* synthetic */ PendingIntent zza;
|
||||
final /* synthetic */ LocationRequest zzb;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public zzam(zzau zzauVar, GoogleApiClient googleApiClient, PendingIntent pendingIntent, LocationRequest locationRequest) {
|
||||
super(googleApiClient);
|
||||
this.zza = pendingIntent;
|
||||
this.zzb = locationRequest;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
public final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzda) anyClient).zzw(this.zza, this.zzb, zzau.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.api.internal.ListenerHolders;
|
||||
import com.google.android.gms.location.LocationListener;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzan extends zzat {
|
||||
final /* synthetic */ LocationListener zza;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public zzan(zzau zzauVar, GoogleApiClient googleApiClient, LocationListener locationListener) {
|
||||
super(googleApiClient);
|
||||
this.zza = locationListener;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
public final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzda) anyClient).zzC(ListenerHolders.createListenerKey(this.zza, "LocationListener"), true, zzau.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzao extends zzat {
|
||||
final /* synthetic */ PendingIntent zza;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public zzao(zzau zzauVar, GoogleApiClient googleApiClient, PendingIntent pendingIntent) {
|
||||
super(googleApiClient);
|
||||
this.zza = pendingIntent;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
public final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzda) anyClient).zzD(this.zza, zzau.zza(this), null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.api.internal.ListenerHolders;
|
||||
import com.google.android.gms.location.LocationCallback;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzap extends zzat {
|
||||
final /* synthetic */ LocationCallback zza;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public zzap(zzau zzauVar, GoogleApiClient googleApiClient, LocationCallback locationCallback) {
|
||||
super(googleApiClient);
|
||||
this.zza = locationCallback;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
public final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzda) anyClient).zzB(ListenerHolders.createListenerKey(this.zza, "LocationCallback"), true, zzau.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzaq extends zzat {
|
||||
final /* synthetic */ boolean zza;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public zzaq(zzau zzauVar, GoogleApiClient googleApiClient, boolean z3) {
|
||||
super(googleApiClient);
|
||||
this.zza = z3;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
public final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzda) anyClient).zzA(this.zza, zzau.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.location.Location;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzar extends zzat {
|
||||
final /* synthetic */ Location zza;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public zzar(zzau zzauVar, GoogleApiClient googleApiClient, Location location) {
|
||||
super(googleApiClient);
|
||||
this.zza = location;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
public final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzda) anyClient).zzz(this.zza, zzau.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzas implements zzcs {
|
||||
private ListenerHolder zza;
|
||||
|
||||
public zzas(ListenerHolder listenerHolder) {
|
||||
this.zza = listenerHolder;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzcs
|
||||
public final synchronized ListenerHolder zza() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzcs
|
||||
public final void zzb() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzcs
|
||||
public final synchronized void zzc(ListenerHolder listenerHolder) {
|
||||
ListenerHolder listenerHolder2 = this.zza;
|
||||
if (listenerHolder2 != listenerHolder) {
|
||||
listenerHolder2.clear();
|
||||
this.zza = listenerHolder;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
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.Result;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.common.api.internal.BaseImplementation;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
abstract class zzat extends BaseImplementation.ApiMethodImpl {
|
||||
public zzat(GoogleApiClient googleApiClient) {
|
||||
super((Api<?>) zzbp.zzb, googleApiClient);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BasePendingResult
|
||||
public final /* bridge */ /* synthetic */ Result createFailedResult(Status status) {
|
||||
return status;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl, com.google.android.gms.common.api.internal.BaseImplementation.ResultHolder
|
||||
@KeepForSdk
|
||||
public final /* bridge */ /* synthetic */ void setResult(Object obj) {
|
||||
setResult((zzat) obj);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,181 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.location.Location;
|
||||
import android.os.Looper;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.ApiException;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.api.PendingResult;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.common.api.internal.BaseImplementation;
|
||||
import com.google.android.gms.common.api.internal.ListenerHolders;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.location.FusedLocationProviderApi;
|
||||
import com.google.android.gms.location.LastLocationRequest;
|
||||
import com.google.android.gms.location.LocationAvailability;
|
||||
import com.google.android.gms.location.LocationCallback;
|
||||
import com.google.android.gms.location.LocationListener;
|
||||
import com.google.android.gms.location.LocationRequest;
|
||||
import com.google.android.gms.tasks.OnCompleteListener;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzau implements FusedLocationProviderApi {
|
||||
public static /* bridge */ /* synthetic */ TaskCompletionSource zza(final BaseImplementation.ResultHolder resultHolder) {
|
||||
TaskCompletionSource taskCompletionSource = new TaskCompletionSource();
|
||||
taskCompletionSource.getTask().addOnCompleteListener(new OnCompleteListener() { // from class: com.google.android.gms.internal.location.zzah
|
||||
@Override // com.google.android.gms.tasks.OnCompleteListener
|
||||
public final void onComplete(Task task) {
|
||||
BaseImplementation.ResultHolder resultHolder2 = BaseImplementation.ResultHolder.this;
|
||||
if (task.isSuccessful()) {
|
||||
resultHolder2.setResult(Status.RESULT_SUCCESS);
|
||||
return;
|
||||
}
|
||||
if (task.isCanceled()) {
|
||||
resultHolder2.setFailedResult(Status.RESULT_CANCELED);
|
||||
return;
|
||||
}
|
||||
Exception exception = task.getException();
|
||||
if (exception instanceof ApiException) {
|
||||
resultHolder2.setFailedResult(((ApiException) exception).getStatus());
|
||||
} else {
|
||||
resultHolder2.setFailedResult(Status.RESULT_INTERNAL_ERROR);
|
||||
}
|
||||
}
|
||||
});
|
||||
return taskCompletionSource;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderApi
|
||||
public final PendingResult<Status> flushLocations(GoogleApiClient googleApiClient) {
|
||||
return googleApiClient.execute(new zzaj(this, googleApiClient));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderApi
|
||||
public final Location getLastLocation(GoogleApiClient googleApiClient) {
|
||||
boolean await;
|
||||
boolean z3 = false;
|
||||
Preconditions.checkArgument(googleApiClient != null, "GoogleApiClient parameter is required.");
|
||||
zzda zzdaVar = (zzda) googleApiClient.getClient(zzbp.zza);
|
||||
final AtomicReference atomicReference = new AtomicReference();
|
||||
final CountDownLatch countDownLatch = new CountDownLatch(1);
|
||||
TaskCompletionSource taskCompletionSource = new TaskCompletionSource();
|
||||
try {
|
||||
zzdaVar.zzt(new LastLocationRequest.Builder().build(), taskCompletionSource);
|
||||
taskCompletionSource.getTask().addOnCompleteListener(new OnCompleteListener() { // from class: com.google.android.gms.internal.location.zzai
|
||||
@Override // com.google.android.gms.tasks.OnCompleteListener
|
||||
public final void onComplete(Task task) {
|
||||
AtomicReference atomicReference2 = atomicReference;
|
||||
CountDownLatch countDownLatch2 = countDownLatch;
|
||||
if (task.isSuccessful()) {
|
||||
atomicReference2.set((Location) task.getResult());
|
||||
}
|
||||
countDownLatch2.countDown();
|
||||
}
|
||||
});
|
||||
try {
|
||||
long nanos = TimeUnit.SECONDS.toNanos(30L);
|
||||
long nanoTime = System.nanoTime() + nanos;
|
||||
while (true) {
|
||||
try {
|
||||
try {
|
||||
await = countDownLatch.await(nanos, TimeUnit.NANOSECONDS);
|
||||
break;
|
||||
} catch (InterruptedException unused) {
|
||||
nanos = nanoTime - System.nanoTime();
|
||||
z3 = true;
|
||||
}
|
||||
} catch (Throwable th) {
|
||||
th = th;
|
||||
z3 = true;
|
||||
if (z3) {
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
if (z3) {
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
if (await) {
|
||||
return (Location) atomicReference.get();
|
||||
}
|
||||
return null;
|
||||
} catch (Throwable th2) {
|
||||
th = th2;
|
||||
}
|
||||
} catch (Exception unused2) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderApi
|
||||
public final LocationAvailability getLocationAvailability(GoogleApiClient googleApiClient) {
|
||||
Preconditions.checkArgument(googleApiClient != null, "GoogleApiClient parameter is required.");
|
||||
try {
|
||||
return ((zzda) googleApiClient.getClient(zzbp.zza)).zzp();
|
||||
} catch (RemoteException unused) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderApi
|
||||
public final PendingResult<Status> removeLocationUpdates(GoogleApiClient googleApiClient, PendingIntent pendingIntent) {
|
||||
return googleApiClient.execute(new zzao(this, googleApiClient, pendingIntent));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderApi
|
||||
public final PendingResult<Status> requestLocationUpdates(GoogleApiClient googleApiClient, LocationRequest locationRequest, PendingIntent pendingIntent) {
|
||||
return googleApiClient.execute(new zzam(this, googleApiClient, pendingIntent, locationRequest));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderApi
|
||||
public final PendingResult<Status> setMockLocation(GoogleApiClient googleApiClient, Location location) {
|
||||
return googleApiClient.execute(new zzar(this, googleApiClient, location));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderApi
|
||||
public final PendingResult<Status> setMockMode(GoogleApiClient googleApiClient, boolean z3) {
|
||||
return googleApiClient.execute(new zzaq(this, googleApiClient, z3));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderApi
|
||||
public final PendingResult<Status> removeLocationUpdates(GoogleApiClient googleApiClient, LocationCallback locationCallback) {
|
||||
return googleApiClient.execute(new zzap(this, googleApiClient, locationCallback));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderApi
|
||||
public final PendingResult<Status> requestLocationUpdates(GoogleApiClient googleApiClient, LocationRequest locationRequest, LocationCallback locationCallback, Looper looper) {
|
||||
if (looper == null) {
|
||||
looper = Looper.myLooper();
|
||||
Preconditions.checkNotNull(looper, "invalid null looper");
|
||||
}
|
||||
return googleApiClient.execute(new zzal(this, googleApiClient, ListenerHolders.createListenerHolder(locationCallback, looper, "LocationCallback"), locationRequest));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderApi
|
||||
public final PendingResult<Status> removeLocationUpdates(GoogleApiClient googleApiClient, LocationListener locationListener) {
|
||||
return googleApiClient.execute(new zzan(this, googleApiClient, locationListener));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderApi
|
||||
public final PendingResult<Status> requestLocationUpdates(GoogleApiClient googleApiClient, LocationRequest locationRequest, LocationListener locationListener) {
|
||||
Looper myLooper = Looper.myLooper();
|
||||
Preconditions.checkNotNull(myLooper, "invalid null looper");
|
||||
return googleApiClient.execute(new zzak(this, googleApiClient, ListenerHolders.createListenerHolder(locationListener, myLooper, "LocationListener"), locationRequest));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderApi
|
||||
public final PendingResult<Status> requestLocationUpdates(GoogleApiClient googleApiClient, LocationRequest locationRequest, LocationListener locationListener, Looper looper) {
|
||||
if (looper == null) {
|
||||
looper = Looper.myLooper();
|
||||
Preconditions.checkNotNull(looper, "invalid null looper");
|
||||
}
|
||||
return googleApiClient.execute(new zzak(this, googleApiClient, ListenerHolders.createListenerHolder(locationListener, looper, "LocationListener"), locationRequest));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.Binder;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class zzb extends Binder implements IInterface {
|
||||
public zzb(String str) {
|
||||
attachInterface(this, str);
|
||||
}
|
||||
|
||||
@Override // android.os.IInterface
|
||||
public final IBinder asBinder() {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override // android.os.Binder
|
||||
public final boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i4) throws RemoteException {
|
||||
if (i <= 16777215) {
|
||||
parcel.enforceInterface(getInterfaceDescriptor());
|
||||
} else if (super.onTransact(i, parcel, parcel2, i4)) {
|
||||
return true;
|
||||
}
|
||||
return zza(i, parcel, parcel2, i4);
|
||||
}
|
||||
|
||||
public boolean zza(int i, Parcel parcel, Parcel parcel2, int i4) throws RemoteException {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.internal.RemoteCall;
|
||||
import com.google.android.gms.location.CurrentLocationRequest;
|
||||
import com.google.android.gms.tasks.CancellationToken;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final /* synthetic */ class zzbh implements RemoteCall {
|
||||
public final /* synthetic */ CurrentLocationRequest zza;
|
||||
public final /* synthetic */ CancellationToken zzb;
|
||||
|
||||
public /* synthetic */ zzbh(CurrentLocationRequest currentLocationRequest, CancellationToken cancellationToken) {
|
||||
this.zza = currentLocationRequest;
|
||||
this.zzb = cancellationToken;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
Api api = zzbp.zzb;
|
||||
((zzda) obj).zzs(this.zza, this.zzb, (TaskCompletionSource) obj2);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.location.Location;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.tasks.Continuation;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final /* synthetic */ class zzbi implements Continuation {
|
||||
public final /* synthetic */ TaskCompletionSource zza;
|
||||
|
||||
@Override // com.google.android.gms.tasks.Continuation
|
||||
public final Object then(Task task) {
|
||||
TaskCompletionSource taskCompletionSource = this.zza;
|
||||
Api api = zzbp.zzb;
|
||||
if (task.isSuccessful()) {
|
||||
taskCompletionSource.trySetResult((Location) task.getResult());
|
||||
return null;
|
||||
}
|
||||
Exception exception = task.getException();
|
||||
exception.getClass();
|
||||
taskCompletionSource.trySetException(exception);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final /* synthetic */ class zzbk implements Executor {
|
||||
public static final /* synthetic */ zzbk zza = new zzbk();
|
||||
|
||||
private /* synthetic */ zzbk() {
|
||||
}
|
||||
|
||||
@Override // java.util.concurrent.Executor
|
||||
public final void execute(Runnable runnable) {
|
||||
runnable.run();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
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;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzbm 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 zzda(context, looper, clientSettings, connectionCallbacks, onConnectionFailedListener);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
interface zzbn {
|
||||
void zza(zzda zzdaVar, ListenerHolder.ListenerKey listenerKey, boolean z3, TaskCompletionSource taskCompletionSource) throws RemoteException;
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
import com.google.android.gms.common.api.internal.RemoteCall;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzbo implements RemoteCall, zzcs {
|
||||
final /* synthetic */ zzbp zza;
|
||||
private final zzbn zzb;
|
||||
private ListenerHolder zzc;
|
||||
private boolean zzd = true;
|
||||
|
||||
public zzbo(zzbp zzbpVar, ListenerHolder listenerHolder, zzbn zzbnVar) {
|
||||
this.zza = zzbpVar;
|
||||
this.zzc = listenerHolder;
|
||||
this.zzb = zzbnVar;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* bridge */ /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
ListenerHolder.ListenerKey listenerKey;
|
||||
boolean z3;
|
||||
zzda zzdaVar = (zzda) obj;
|
||||
TaskCompletionSource taskCompletionSource = (TaskCompletionSource) obj2;
|
||||
synchronized (this) {
|
||||
listenerKey = this.zzc.getListenerKey();
|
||||
z3 = this.zzd;
|
||||
this.zzc.clear();
|
||||
}
|
||||
if (listenerKey == null) {
|
||||
taskCompletionSource.setResult(Boolean.FALSE);
|
||||
} else {
|
||||
this.zzb.zza(zzdaVar, listenerKey, z3, taskCompletionSource);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzcs
|
||||
public final synchronized ListenerHolder zza() {
|
||||
return this.zzc;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzcs
|
||||
public final void zzb() {
|
||||
ListenerHolder.ListenerKey<?> listenerKey;
|
||||
synchronized (this) {
|
||||
this.zzd = false;
|
||||
listenerKey = this.zzc.getListenerKey();
|
||||
}
|
||||
if (listenerKey != null) {
|
||||
this.zza.doUnregisterEventListener(listenerKey, 2441);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzcs
|
||||
public final synchronized void zzc(ListenerHolder listenerHolder) {
|
||||
ListenerHolder listenerHolder2 = this.zzc;
|
||||
if (listenerHolder2 != listenerHolder) {
|
||||
listenerHolder2.clear();
|
||||
this.zzc = listenerHolder;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,247 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.PendingIntent;
|
||||
import android.content.Context;
|
||||
import android.location.Location;
|
||||
import android.os.Looper;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApi;
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
import com.google.android.gms.common.api.internal.ListenerHolders;
|
||||
import com.google.android.gms.common.api.internal.RegistrationMethods;
|
||||
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.Preconditions;
|
||||
import com.google.android.gms.location.CurrentLocationRequest;
|
||||
import com.google.android.gms.location.FusedLocationProviderClient;
|
||||
import com.google.android.gms.location.LastLocationRequest;
|
||||
import com.google.android.gms.location.LocationAvailability;
|
||||
import com.google.android.gms.location.LocationCallback;
|
||||
import com.google.android.gms.location.LocationListener;
|
||||
import com.google.android.gms.location.LocationRequest;
|
||||
import com.google.android.gms.tasks.CancellationToken;
|
||||
import com.google.android.gms.tasks.Continuation;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzbp extends GoogleApi implements FusedLocationProviderClient {
|
||||
static final Api.ClientKey zza;
|
||||
public static final Api zzb;
|
||||
|
||||
static {
|
||||
Api.ClientKey clientKey = new Api.ClientKey();
|
||||
zza = clientKey;
|
||||
zzb = new Api("LocationServices.API", new zzbm(), clientKey);
|
||||
}
|
||||
|
||||
public zzbp(Activity activity) {
|
||||
super(activity, (Api<Api.ApiOptions.NoOptions>) zzb, Api.ApiOptions.NO_OPTIONS, GoogleApi.Settings.DEFAULT_SETTINGS);
|
||||
}
|
||||
|
||||
private final Task zza(final LocationRequest locationRequest, ListenerHolder listenerHolder) {
|
||||
final zzbo zzboVar = new zzbo(this, listenerHolder, new zzbn() { // from class: com.google.android.gms.internal.location.zzax
|
||||
@Override // com.google.android.gms.internal.location.zzbn
|
||||
public final void zza(zzda zzdaVar, ListenerHolder.ListenerKey listenerKey, boolean z3, TaskCompletionSource taskCompletionSource) {
|
||||
zzdaVar.zzB(listenerKey, z3, taskCompletionSource);
|
||||
}
|
||||
});
|
||||
return doRegisterEventListener(RegistrationMethods.builder().register(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzay
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
Api api = zzbp.zzb;
|
||||
((zzda) obj).zzu(zzbo.this, locationRequest, (TaskCompletionSource) obj2);
|
||||
}
|
||||
}).unregister(zzboVar).withHolder(listenerHolder).setMethodKey(2436).build());
|
||||
}
|
||||
|
||||
private final Task zzb(final LocationRequest locationRequest, ListenerHolder listenerHolder) {
|
||||
final zzbo zzboVar = new zzbo(this, listenerHolder, new zzbn() { // from class: com.google.android.gms.internal.location.zzbd
|
||||
@Override // com.google.android.gms.internal.location.zzbn
|
||||
public final void zza(zzda zzdaVar, ListenerHolder.ListenerKey listenerKey, boolean z3, TaskCompletionSource taskCompletionSource) {
|
||||
zzdaVar.zzC(listenerKey, z3, taskCompletionSource);
|
||||
}
|
||||
});
|
||||
return doRegisterEventListener(RegistrationMethods.builder().register(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzbf
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
Api api = zzbp.zzb;
|
||||
((zzda) obj).zzv(zzbo.this, locationRequest, (TaskCompletionSource) obj2);
|
||||
}
|
||||
}).unregister(zzboVar).withHolder(listenerHolder).setMethodKey(2435).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Void> flushLocations() {
|
||||
return doWrite(TaskApiCall.builder().run(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzav
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
((zzda) obj).zzr((TaskCompletionSource) obj2);
|
||||
}
|
||||
}).setMethodKey(2422).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Location> getCurrentLocation(int i, CancellationToken cancellationToken) {
|
||||
CurrentLocationRequest.Builder builder = new CurrentLocationRequest.Builder();
|
||||
builder.setPriority(i);
|
||||
CurrentLocationRequest build = builder.build();
|
||||
if (cancellationToken != null) {
|
||||
Preconditions.checkArgument(!cancellationToken.isCancellationRequested(), "cancellationToken may not be already canceled");
|
||||
}
|
||||
Task<Location> doRead = doRead(TaskApiCall.builder().run(new zzbh(build, cancellationToken)).setMethodKey(2415).build());
|
||||
if (cancellationToken == null) {
|
||||
return doRead;
|
||||
}
|
||||
TaskCompletionSource taskCompletionSource = new TaskCompletionSource(cancellationToken);
|
||||
doRead.continueWith(new zzbi(taskCompletionSource));
|
||||
return taskCompletionSource.getTask();
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Location> getLastLocation() {
|
||||
return doRead(TaskApiCall.builder().run(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzbe
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
((zzda) obj).zzt(new LastLocationRequest.Builder().build(), (TaskCompletionSource) obj2);
|
||||
}
|
||||
}).setMethodKey(2414).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<LocationAvailability> getLocationAvailability() {
|
||||
return doRead(TaskApiCall.builder().run(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzba
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
Api api = zzbp.zzb;
|
||||
((TaskCompletionSource) obj2).setResult(((zzda) obj).zzp());
|
||||
}
|
||||
}).setMethodKey(2416).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Void> removeLocationUpdates(final PendingIntent pendingIntent) {
|
||||
return doWrite(TaskApiCall.builder().run(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzbg
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
Api api = zzbp.zzb;
|
||||
((zzda) obj).zzD(pendingIntent, (TaskCompletionSource) obj2, null);
|
||||
}
|
||||
}).setMethodKey(2418).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Void> requestLocationUpdates(final LocationRequest locationRequest, final PendingIntent pendingIntent) {
|
||||
return doWrite(TaskApiCall.builder().run(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzaz
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
Api api = zzbp.zzb;
|
||||
((zzda) obj).zzw(pendingIntent, locationRequest, (TaskCompletionSource) obj2);
|
||||
}
|
||||
}).setMethodKey(2417).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Void> setMockLocation(final Location location) {
|
||||
Preconditions.checkArgument(location != null);
|
||||
return doWrite(TaskApiCall.builder().run(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzaw
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
Api api = zzbp.zzb;
|
||||
((zzda) obj).zzz(location, (TaskCompletionSource) obj2);
|
||||
}
|
||||
}).setMethodKey(2421).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Void> setMockMode(final boolean z3) {
|
||||
return doWrite(TaskApiCall.builder().run(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzbb
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
Api api = zzbp.zzb;
|
||||
((zzda) obj).zzA(z3, (TaskCompletionSource) obj2);
|
||||
}
|
||||
}).setMethodKey(2420).build());
|
||||
}
|
||||
|
||||
public zzbp(Context context) {
|
||||
super(context, (Api<Api.ApiOptions.NoOptions>) zzb, Api.ApiOptions.NO_OPTIONS, GoogleApi.Settings.DEFAULT_SETTINGS);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Location> getLastLocation(final LastLocationRequest lastLocationRequest) {
|
||||
return doRead(TaskApiCall.builder().run(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzbj
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
Api api = zzbp.zzb;
|
||||
((zzda) obj).zzt(LastLocationRequest.this, (TaskCompletionSource) obj2);
|
||||
}
|
||||
}).setMethodKey(2414).setFeatures(com.google.android.gms.location.zzm.zzf).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Void> removeLocationUpdates(LocationCallback locationCallback) {
|
||||
return doUnregisterEventListener(ListenerHolders.createListenerKey(locationCallback, "LocationCallback"), 2418).continueWith(zzbk.zza, new Continuation() { // from class: com.google.android.gms.internal.location.zzbc
|
||||
@Override // com.google.android.gms.tasks.Continuation
|
||||
public final Object then(Task task) {
|
||||
Api api = zzbp.zzb;
|
||||
return null;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Void> requestLocationUpdates(LocationRequest locationRequest, LocationCallback locationCallback, Looper looper) {
|
||||
if (looper == null) {
|
||||
looper = Looper.myLooper();
|
||||
Preconditions.checkNotNull(looper, "invalid null looper");
|
||||
}
|
||||
return zza(locationRequest, ListenerHolders.createListenerHolder(locationCallback, looper, "LocationCallback"));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Void> removeLocationUpdates(LocationListener locationListener) {
|
||||
return doUnregisterEventListener(ListenerHolders.createListenerKey(locationListener, "LocationListener"), 2418).continueWith(zzbk.zza, new Continuation() { // from class: com.google.android.gms.internal.location.zzbl
|
||||
@Override // com.google.android.gms.tasks.Continuation
|
||||
public final Object then(Task task) {
|
||||
Api api = zzbp.zzb;
|
||||
return null;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Void> requestLocationUpdates(LocationRequest locationRequest, LocationListener locationListener, Looper looper) {
|
||||
if (looper == null) {
|
||||
looper = Looper.myLooper();
|
||||
Preconditions.checkNotNull(looper, "invalid null looper");
|
||||
}
|
||||
return zzb(locationRequest, ListenerHolders.createListenerHolder(locationListener, looper, "LocationListener"));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Location> getCurrentLocation(CurrentLocationRequest currentLocationRequest, CancellationToken cancellationToken) {
|
||||
if (cancellationToken != null) {
|
||||
Preconditions.checkArgument(!cancellationToken.isCancellationRequested(), "cancellationToken may not be already canceled");
|
||||
}
|
||||
Task<Location> doRead = doRead(TaskApiCall.builder().run(new zzbh(currentLocationRequest, cancellationToken)).setMethodKey(2415).build());
|
||||
if (cancellationToken == null) {
|
||||
return doRead;
|
||||
}
|
||||
TaskCompletionSource taskCompletionSource = new TaskCompletionSource(cancellationToken);
|
||||
doRead.continueWith(new zzbi(taskCompletionSource));
|
||||
return taskCompletionSource.getTask();
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Void> requestLocationUpdates(LocationRequest locationRequest, Executor executor, LocationCallback locationCallback) {
|
||||
return zza(locationRequest, ListenerHolders.createListenerHolder(locationCallback, executor, "LocationCallback"));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Void> requestLocationUpdates(LocationRequest locationRequest, Executor executor, LocationListener locationListener) {
|
||||
return zzb(locationRequest, ListenerHolders.createListenerHolder(locationListener, executor, "LocationListener"));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.location.GeofencingRequest;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzbr extends zzbu {
|
||||
final /* synthetic */ GeofencingRequest zza;
|
||||
final /* synthetic */ PendingIntent zzb;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public zzbr(zzbv zzbvVar, GoogleApiClient googleApiClient, GeofencingRequest geofencingRequest, PendingIntent pendingIntent) {
|
||||
super(googleApiClient);
|
||||
this.zza = geofencingRequest;
|
||||
this.zzb = pendingIntent;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
public final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzda) anyClient).zzq(this.zza, this.zzb, zzbv.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzbs extends zzbu {
|
||||
final /* synthetic */ PendingIntent zza;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public zzbs(zzbv zzbvVar, GoogleApiClient googleApiClient, PendingIntent pendingIntent) {
|
||||
super(googleApiClient);
|
||||
this.zza = pendingIntent;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
public final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzda) anyClient).zzx(this.zza, zzbv.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzbt extends zzbu {
|
||||
final /* synthetic */ List zza;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public zzbt(zzbv zzbvVar, GoogleApiClient googleApiClient, List list) {
|
||||
super(googleApiClient);
|
||||
this.zza = list;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
public final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzda) anyClient).zzy(this.zza, zzbv.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
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.Result;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.common.api.internal.BaseImplementation;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
abstract class zzbu extends BaseImplementation.ApiMethodImpl {
|
||||
public zzbu(GoogleApiClient googleApiClient) {
|
||||
super((Api<?>) zzbp.zzb, googleApiClient);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BasePendingResult
|
||||
public final /* bridge */ /* synthetic */ Result createFailedResult(Status status) {
|
||||
return status;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl, com.google.android.gms.common.api.internal.BaseImplementation.ResultHolder
|
||||
@KeepForSdk
|
||||
public final /* bridge */ /* synthetic */ void setResult(Object obj) {
|
||||
setResult((zzbu) obj);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import com.google.android.gms.common.api.ApiException;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.api.PendingResult;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.common.api.internal.BaseImplementation;
|
||||
import com.google.android.gms.location.Geofence;
|
||||
import com.google.android.gms.location.GeofencingApi;
|
||||
import com.google.android.gms.location.GeofencingRequest;
|
||||
import com.google.android.gms.tasks.OnCompleteListener;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzbv implements GeofencingApi {
|
||||
public static /* bridge */ /* synthetic */ TaskCompletionSource zza(final BaseImplementation.ResultHolder resultHolder) {
|
||||
TaskCompletionSource taskCompletionSource = new TaskCompletionSource();
|
||||
taskCompletionSource.getTask().addOnCompleteListener(new OnCompleteListener() { // from class: com.google.android.gms.internal.location.zzbq
|
||||
@Override // com.google.android.gms.tasks.OnCompleteListener
|
||||
public final void onComplete(Task task) {
|
||||
BaseImplementation.ResultHolder resultHolder2 = BaseImplementation.ResultHolder.this;
|
||||
if (task.isSuccessful()) {
|
||||
resultHolder2.setResult(Status.RESULT_SUCCESS);
|
||||
return;
|
||||
}
|
||||
if (task.isCanceled()) {
|
||||
resultHolder2.setFailedResult(Status.RESULT_CANCELED);
|
||||
return;
|
||||
}
|
||||
Exception exception = task.getException();
|
||||
if (exception instanceof ApiException) {
|
||||
resultHolder2.setFailedResult(((ApiException) exception).getStatus());
|
||||
} else {
|
||||
resultHolder2.setFailedResult(Status.RESULT_INTERNAL_ERROR);
|
||||
}
|
||||
}
|
||||
});
|
||||
return taskCompletionSource;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.GeofencingApi
|
||||
public final PendingResult<Status> addGeofences(GoogleApiClient googleApiClient, GeofencingRequest geofencingRequest, PendingIntent pendingIntent) {
|
||||
return googleApiClient.execute(new zzbr(this, googleApiClient, geofencingRequest, pendingIntent));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.GeofencingApi
|
||||
public final PendingResult<Status> removeGeofences(GoogleApiClient googleApiClient, PendingIntent pendingIntent) {
|
||||
return googleApiClient.execute(new zzbs(this, googleApiClient, pendingIntent));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.GeofencingApi
|
||||
@Deprecated
|
||||
public final PendingResult<Status> addGeofences(GoogleApiClient googleApiClient, List<Geofence> list, PendingIntent pendingIntent) {
|
||||
GeofencingRequest.Builder builder = new GeofencingRequest.Builder();
|
||||
builder.addGeofences(list);
|
||||
builder.setInitialTrigger(5);
|
||||
return googleApiClient.execute(new zzbr(this, googleApiClient, builder.build(), pendingIntent));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.GeofencingApi
|
||||
public final PendingResult<Status> removeGeofences(GoogleApiClient googleApiClient, List<String> list) {
|
||||
return googleApiClient.execute(new zzbt(this, googleApiClient, list));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.PendingIntent;
|
||||
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.location.GeofencingClient;
|
||||
import com.google.android.gms.location.GeofencingRequest;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzbz extends GoogleApi implements GeofencingClient {
|
||||
public static final /* synthetic */ int zza = 0;
|
||||
|
||||
public zzbz(Activity activity) {
|
||||
super(activity, (Api<Api.ApiOptions.NoOptions>) zzbp.zzb, Api.ApiOptions.NO_OPTIONS, GoogleApi.Settings.DEFAULT_SETTINGS);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.GeofencingClient
|
||||
public final Task<Void> addGeofences(GeofencingRequest geofencingRequest, final PendingIntent pendingIntent) {
|
||||
final GeofencingRequest zza2 = geofencingRequest.zza(getContextAttributionTag());
|
||||
return doWrite(TaskApiCall.builder().run(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzbw
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
((zzda) obj).zzq(GeofencingRequest.this, pendingIntent, (TaskCompletionSource) obj2);
|
||||
}
|
||||
}).setMethodKey(2424).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.GeofencingClient
|
||||
public final Task<Void> removeGeofences(final PendingIntent pendingIntent) {
|
||||
return doWrite(TaskApiCall.builder().run(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzby
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
((zzda) obj).zzx(pendingIntent, (TaskCompletionSource) obj2);
|
||||
}
|
||||
}).setMethodKey(2425).build());
|
||||
}
|
||||
|
||||
public zzbz(Context context) {
|
||||
super(context, (Api<Api.ApiOptions.NoOptions>) zzbp.zzb, Api.ApiOptions.NO_OPTIONS, GoogleApi.Settings.DEFAULT_SETTINGS);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.GeofencingClient
|
||||
public final Task<Void> removeGeofences(final List<String> list) {
|
||||
return doWrite(TaskApiCall.builder().run(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzbx
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
((zzda) obj).zzy(list, (TaskCompletionSource) obj2);
|
||||
}
|
||||
}).setMethodKey(2425).build());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.BadParcelableException;
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzc {
|
||||
private static final ClassLoader zza = zzc.class.getClassLoader();
|
||||
|
||||
private zzc() {
|
||||
}
|
||||
|
||||
public static Parcelable zza(Parcel parcel, Parcelable.Creator creator) {
|
||||
if (parcel.readInt() == 0) {
|
||||
return null;
|
||||
}
|
||||
return (Parcelable) creator.createFromParcel(parcel);
|
||||
}
|
||||
|
||||
public static void zzb(Parcel parcel) {
|
||||
int dataAvail = parcel.dataAvail();
|
||||
if (dataAvail > 0) {
|
||||
throw new BadParcelableException(a.l(dataAvail, "Parcel data not fully consumed, unread size: "));
|
||||
}
|
||||
}
|
||||
|
||||
public static void zzc(Parcel parcel, boolean z3) {
|
||||
parcel.writeInt(z3 ? 1 : 0);
|
||||
}
|
||||
|
||||
public static void zzd(Parcel parcel, Parcelable parcelable) {
|
||||
if (parcelable == null) {
|
||||
parcel.writeInt(0);
|
||||
} else {
|
||||
parcel.writeInt(1);
|
||||
parcelable.writeToParcel(parcel, 0);
|
||||
}
|
||||
}
|
||||
|
||||
public static void zze(Parcel parcel, IInterface iInterface) {
|
||||
if (iInterface == null) {
|
||||
parcel.writeStrongBinder(null);
|
||||
} else {
|
||||
parcel.writeStrongBinder(iInterface.asBinder());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.location.LocationSettingsRequest;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzca extends zzcb {
|
||||
final /* synthetic */ LocationSettingsRequest zza;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public zzca(zzcc zzccVar, GoogleApiClient googleApiClient, LocationSettingsRequest locationSettingsRequest, String str) {
|
||||
super(googleApiClient);
|
||||
this.zza = locationSettingsRequest;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
public final /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
zzda zzdaVar = (zzda) anyClient;
|
||||
LocationSettingsRequest locationSettingsRequest = this.zza;
|
||||
Preconditions.checkArgument(locationSettingsRequest != null, "locationSettingsRequest can't be null");
|
||||
((zzo) zzdaVar.getService()).zzh(locationSettingsRequest, new zzcr(this), null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
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.Result;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.common.api.internal.BaseImplementation;
|
||||
import com.google.android.gms.location.LocationSettingsResult;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
abstract class zzcb extends BaseImplementation.ApiMethodImpl {
|
||||
public zzcb(GoogleApiClient googleApiClient) {
|
||||
super((Api<?>) zzbp.zzb, googleApiClient);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BasePendingResult
|
||||
public final /* synthetic */ Result createFailedResult(Status status) {
|
||||
return new LocationSettingsResult(status, null);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl, com.google.android.gms.common.api.internal.BaseImplementation.ResultHolder
|
||||
@KeepForSdk
|
||||
public final /* bridge */ /* synthetic */ void setResult(Object obj) {
|
||||
setResult((zzcb) obj);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.api.PendingResult;
|
||||
import com.google.android.gms.location.LocationSettingsRequest;
|
||||
import com.google.android.gms.location.LocationSettingsResult;
|
||||
import com.google.android.gms.location.SettingsApi;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzcc implements SettingsApi {
|
||||
@Override // com.google.android.gms.location.SettingsApi
|
||||
public final PendingResult<LocationSettingsResult> checkLocationSettings(GoogleApiClient googleApiClient, LocationSettingsRequest locationSettingsRequest) {
|
||||
return googleApiClient.enqueue(new zzca(this, googleApiClient, locationSettingsRequest, null));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.Activity;
|
||||
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.Preconditions;
|
||||
import com.google.android.gms.location.LocationSettingsRequest;
|
||||
import com.google.android.gms.location.LocationSettingsResponse;
|
||||
import com.google.android.gms.location.SettingsClient;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzce extends GoogleApi implements SettingsClient {
|
||||
public static final /* synthetic */ int zza = 0;
|
||||
|
||||
public zzce(Activity activity) {
|
||||
super(activity, (Api<Api.ApiOptions.NoOptions>) zzbp.zzb, Api.ApiOptions.NO_OPTIONS, GoogleApi.Settings.DEFAULT_SETTINGS);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.SettingsClient
|
||||
public final Task<LocationSettingsResponse> checkLocationSettings(final LocationSettingsRequest locationSettingsRequest) {
|
||||
return doRead(TaskApiCall.builder().run(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzcd
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final void accept(Object obj, Object obj2) {
|
||||
LocationSettingsRequest locationSettingsRequest2 = LocationSettingsRequest.this;
|
||||
zzda zzdaVar = (zzda) obj;
|
||||
TaskCompletionSource taskCompletionSource = (TaskCompletionSource) obj2;
|
||||
Preconditions.checkArgument(locationSettingsRequest2 != null, "locationSettingsRequest can't be null");
|
||||
((zzo) zzdaVar.getService()).zzh(locationSettingsRequest2, new zzcq(taskCompletionSource), null);
|
||||
}
|
||||
}).setMethodKey(2426).build());
|
||||
}
|
||||
|
||||
public zzce(Context context) {
|
||||
super(context, (Api<Api.ApiOptions.NoOptions>) zzbp.zzb, Api.ApiOptions.NO_OPTIONS, GoogleApi.Settings.DEFAULT_SETTINGS);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.common.api.internal.TaskUtil;
|
||||
import com.google.android.gms.location.GeofenceStatusCodes;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzci extends zzl {
|
||||
final /* synthetic */ TaskCompletionSource zza;
|
||||
|
||||
public zzci(TaskCompletionSource taskCompletionSource) {
|
||||
this.zza = taskCompletionSource;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzm
|
||||
public final void zzb(int i, String[] strArr) {
|
||||
TaskUtil.setResultOrApiException(new Status(GeofenceStatusCodes.zza(i)), this.zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzm
|
||||
public final void zzc(int i, PendingIntent pendingIntent) {
|
||||
TaskUtil.setResultOrApiException(new Status(GeofenceStatusCodes.zza(i)), this.zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzm
|
||||
public final void zzd(int i, String[] strArr) {
|
||||
TaskUtil.setResultOrApiException(new Status(GeofenceStatusCodes.zza(i)), this.zza);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.internal.ListenerHolders;
|
||||
import com.google.android.gms.location.LocationCallback;
|
||||
import com.google.android.gms.location.LocationResult;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzcj extends LocationCallback {
|
||||
final /* synthetic */ TaskCompletionSource zza;
|
||||
final /* synthetic */ zzda zzb;
|
||||
|
||||
public zzcj(zzda zzdaVar, TaskCompletionSource taskCompletionSource) {
|
||||
this.zzb = zzdaVar;
|
||||
this.zza = taskCompletionSource;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.LocationCallback
|
||||
public final void onLocationResult(LocationResult locationResult) {
|
||||
this.zza.trySetResult(locationResult.getLastLocation());
|
||||
try {
|
||||
this.zzb.zzB(ListenerHolders.createListenerKey(this, "GetCurrentLocation"), false, new TaskCompletionSource());
|
||||
} catch (RemoteException unused) {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzck implements zzcs {
|
||||
final /* synthetic */ ListenerHolder zza;
|
||||
final /* synthetic */ TaskCompletionSource zzb;
|
||||
|
||||
public zzck(zzda zzdaVar, ListenerHolder listenerHolder, TaskCompletionSource taskCompletionSource) {
|
||||
this.zza = listenerHolder;
|
||||
this.zzb = taskCompletionSource;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzcs
|
||||
public final ListenerHolder zza() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzcs
|
||||
public final void zzb() {
|
||||
this.zzb.trySetResult(null);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzcs
|
||||
public final void zzc(ListenerHolder listenerHolder) {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.common.api.internal.IStatusCallback;
|
||||
import com.google.android.gms.common.api.internal.TaskUtil;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzcl extends IStatusCallback.Stub {
|
||||
final /* synthetic */ Object zza;
|
||||
final /* synthetic */ TaskCompletionSource zzb;
|
||||
|
||||
public zzcl(zzda zzdaVar, Object obj, TaskCompletionSource taskCompletionSource) {
|
||||
this.zza = obj;
|
||||
this.zzb = taskCompletionSource;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.IStatusCallback
|
||||
public final void onResult(Status status) {
|
||||
TaskUtil.setResultOrApiException(status, this.zza, this.zzb);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.location.Location;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.common.api.internal.TaskUtil;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzcm extends zzp {
|
||||
final /* synthetic */ TaskCompletionSource zza;
|
||||
|
||||
public zzcm(zzda zzdaVar, TaskCompletionSource taskCompletionSource) {
|
||||
this.zza = taskCompletionSource;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzq
|
||||
public final void zzb(Status status, Location location) {
|
||||
TaskUtil.setResultOrApiException(status, location, this.zza);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.android.gms.common.api.internal.TaskUtil;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzcn extends zzj {
|
||||
final /* synthetic */ Object zza;
|
||||
final /* synthetic */ TaskCompletionSource zzb;
|
||||
|
||||
public zzcn(Object obj, TaskCompletionSource taskCompletionSource) {
|
||||
this.zza = obj;
|
||||
this.zzb = taskCompletionSource;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzk
|
||||
public final void zzd(zzg zzgVar) {
|
||||
TaskUtil.setResultOrApiException(zzgVar.getStatus(), this.zza, this.zzb);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzk
|
||||
public final void zze() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.internal.TaskUtil;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzco extends zzj {
|
||||
final /* synthetic */ TaskCompletionSource zza;
|
||||
final /* synthetic */ com.google.android.gms.location.zzu zzb;
|
||||
|
||||
public zzco(TaskCompletionSource taskCompletionSource, com.google.android.gms.location.zzu zzuVar) {
|
||||
this.zza = taskCompletionSource;
|
||||
this.zzb = zzuVar;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzk
|
||||
public final void zzd(zzg zzgVar) {
|
||||
TaskUtil.setResultOrApiException(zzgVar.getStatus(), this.zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzk
|
||||
public final void zze() throws RemoteException {
|
||||
this.zzb.zze();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.internal.TaskUtil;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzcp extends zzj {
|
||||
final /* synthetic */ TaskCompletionSource zza;
|
||||
final /* synthetic */ com.google.android.gms.location.zzr zzb;
|
||||
|
||||
public zzcp(TaskCompletionSource taskCompletionSource, com.google.android.gms.location.zzr zzrVar) {
|
||||
this.zza = taskCompletionSource;
|
||||
this.zzb = zzrVar;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzk
|
||||
public final void zzd(zzg zzgVar) {
|
||||
TaskUtil.setResultOrApiException(zzgVar.getStatus(), this.zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzk
|
||||
public final void zze() throws RemoteException {
|
||||
this.zzb.zzf();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.android.gms.common.api.internal.TaskUtil;
|
||||
import com.google.android.gms.location.LocationSettingsResponse;
|
||||
import com.google.android.gms.location.LocationSettingsResult;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzcq extends zzr {
|
||||
final /* synthetic */ TaskCompletionSource zza;
|
||||
|
||||
public zzcq(TaskCompletionSource taskCompletionSource) {
|
||||
this.zza = taskCompletionSource;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzs
|
||||
public final void zzb(LocationSettingsResult locationSettingsResult) {
|
||||
TaskUtil.setResultOrApiException(locationSettingsResult.getStatus(), new LocationSettingsResponse(locationSettingsResult), this.zza);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.android.gms.common.api.internal.BaseImplementation;
|
||||
import com.google.android.gms.location.LocationSettingsResult;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzcr extends zzr {
|
||||
final /* synthetic */ BaseImplementation.ResultHolder zza;
|
||||
|
||||
public zzcr(BaseImplementation.ResultHolder resultHolder) {
|
||||
this.zza = resultHolder;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzs
|
||||
public final void zzb(LocationSettingsResult locationSettingsResult) {
|
||||
this.zza.setResult(locationSettingsResult);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface zzcs {
|
||||
ListenerHolder zza();
|
||||
|
||||
void zzb();
|
||||
|
||||
void zzc(ListenerHolder listenerHolder);
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
import com.google.android.gms.location.LocationCallback;
|
||||
import com.google.android.gms.location.LocationResult;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzct implements ListenerHolder.Notifier {
|
||||
final /* synthetic */ LocationResult zza;
|
||||
|
||||
public zzct(zzcw zzcwVar, LocationResult locationResult) {
|
||||
this.zza = locationResult;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.ListenerHolder.Notifier
|
||||
public final /* synthetic */ void notifyListener(Object obj) {
|
||||
((LocationCallback) obj).onLocationResult(this.zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.ListenerHolder.Notifier
|
||||
public final void onNotifyListenerFailed() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
import com.google.android.gms.location.LocationAvailability;
|
||||
import com.google.android.gms.location.LocationCallback;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzcu implements ListenerHolder.Notifier {
|
||||
final /* synthetic */ LocationAvailability zza;
|
||||
|
||||
public zzcu(zzcw zzcwVar, LocationAvailability locationAvailability) {
|
||||
this.zza = locationAvailability;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.ListenerHolder.Notifier
|
||||
public final /* synthetic */ void notifyListener(Object obj) {
|
||||
((LocationCallback) obj).onLocationAvailability(this.zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.ListenerHolder.Notifier
|
||||
public final void onNotifyListenerFailed() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzcv implements ListenerHolder.Notifier {
|
||||
final /* synthetic */ zzcw zza;
|
||||
|
||||
public zzcv(zzcw zzcwVar) {
|
||||
this.zza = zzcwVar;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.ListenerHolder.Notifier
|
||||
public final /* bridge */ /* synthetic */ void notifyListener(Object obj) {
|
||||
zzcs zzcsVar;
|
||||
zzcsVar = this.zza.zza;
|
||||
zzcsVar.zzb();
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.ListenerHolder.Notifier
|
||||
public final void onNotifyListenerFailed() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
import com.google.android.gms.location.LocationAvailability;
|
||||
import com.google.android.gms.location.LocationResult;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzcw extends com.google.android.gms.location.zzq {
|
||||
private final zzcs zza;
|
||||
|
||||
public zzcw(zzcs zzcsVar) {
|
||||
this.zza = zzcsVar;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.zzr
|
||||
public final void zzd(LocationAvailability locationAvailability) throws RemoteException {
|
||||
this.zza.zza().notifyListener(new zzcu(this, locationAvailability));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.zzr
|
||||
public final void zze(LocationResult locationResult) throws RemoteException {
|
||||
this.zza.zza().notifyListener(new zzct(this, locationResult));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.zzr
|
||||
public final void zzf() {
|
||||
this.zza.zza().notifyListener(new zzcv(this));
|
||||
}
|
||||
|
||||
public final zzcw zzg(ListenerHolder listenerHolder) {
|
||||
this.zza.zzc(listenerHolder);
|
||||
return this;
|
||||
}
|
||||
|
||||
public final void zzh() {
|
||||
this.zza.zza().clear();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.location.Location;
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
import com.google.android.gms.location.LocationListener;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzcx implements ListenerHolder.Notifier {
|
||||
final /* synthetic */ Location zza;
|
||||
|
||||
public zzcx(zzcz zzczVar, Location location) {
|
||||
this.zza = location;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.ListenerHolder.Notifier
|
||||
public final /* bridge */ /* synthetic */ void notifyListener(Object obj) {
|
||||
((LocationListener) obj).onLocationChanged(this.zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.ListenerHolder.Notifier
|
||||
public final void onNotifyListenerFailed() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzcy implements ListenerHolder.Notifier {
|
||||
final /* synthetic */ zzcz zza;
|
||||
|
||||
public zzcy(zzcz zzczVar) {
|
||||
this.zza = zzczVar;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.ListenerHolder.Notifier
|
||||
public final /* bridge */ /* synthetic */ void notifyListener(Object obj) {
|
||||
zzcs zzcsVar;
|
||||
zzcsVar = this.zza.zza;
|
||||
zzcsVar.zzb();
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.ListenerHolder.Notifier
|
||||
public final void onNotifyListenerFailed() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.location.Location;
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzcz extends com.google.android.gms.location.zzt {
|
||||
private final zzcs zza;
|
||||
|
||||
public zzcz(zzcs zzcsVar) {
|
||||
this.zza = zzcsVar;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.zzu
|
||||
public final void zzd(Location location) {
|
||||
this.zza.zza().notifyListener(new zzcx(this, location));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.zzu
|
||||
public final void zze() {
|
||||
this.zza.zza().notifyListener(new zzcy(this));
|
||||
}
|
||||
|
||||
public final zzcz zzf(ListenerHolder listenerHolder) {
|
||||
this.zza.zzc(listenerHolder);
|
||||
return this;
|
||||
}
|
||||
|
||||
public final void zzg() {
|
||||
this.zza.zza().clear();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.os.Process;
|
||||
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 com.google.firebase.sessions.settings.RemoteSettings;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
@SafeParcelable.Class(creator = "ClientIdentityCreator")
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzd extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<zzd> CREATOR = new zze();
|
||||
|
||||
@SafeParcelable.Field(getter = "getUid", id = 1)
|
||||
private final int zza;
|
||||
|
||||
@SafeParcelable.Field(getter = "getPid", id = 2)
|
||||
private final int zzb;
|
||||
|
||||
@SafeParcelable.Field(getter = "getPackageName", id = 3)
|
||||
private final String zzc;
|
||||
|
||||
@SafeParcelable.Field(getter = "getAttributionTag", id = 4)
|
||||
private final String zzd;
|
||||
|
||||
@SafeParcelable.Field(getter = "getClientSdkVersion", id = 5)
|
||||
private final int zze;
|
||||
|
||||
@SafeParcelable.Field(getter = "getListenerId", id = 6)
|
||||
private final String zzf;
|
||||
|
||||
@SafeParcelable.Field(getter = "getImpersonator", id = 7)
|
||||
private final zzd zzg;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "com.google.common.collect.ImmutableList.of()", getter = "getClientFeatures", id = 8)
|
||||
private final List zzh;
|
||||
|
||||
static {
|
||||
Process.myUid();
|
||||
Process.myPid();
|
||||
}
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public zzd(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) int i4, @SafeParcelable.Param(id = 3) String str, @SafeParcelable.Param(id = 4) String str2, @SafeParcelable.Param(id = 6) String str3, @SafeParcelable.Param(id = 5) int i5, @SafeParcelable.Param(id = 8) List list, @SafeParcelable.Param(id = 7) zzd zzdVar) {
|
||||
this.zza = i;
|
||||
this.zzb = i4;
|
||||
this.zzc = str;
|
||||
this.zzd = str2;
|
||||
this.zzf = str3;
|
||||
this.zze = i5;
|
||||
this.zzh = zzds.zzj(list);
|
||||
this.zzg = zzdVar;
|
||||
}
|
||||
|
||||
public final boolean equals(Object obj) {
|
||||
if (obj instanceof zzd) {
|
||||
zzd zzdVar = (zzd) obj;
|
||||
if (this.zza == zzdVar.zza && this.zzb == zzdVar.zzb && this.zze == zzdVar.zze && this.zzc.equals(zzdVar.zzc) && zzdl.zza(this.zzd, zzdVar.zzd) && zzdl.zza(this.zzf, zzdVar.zzf) && zzdl.zza(this.zzg, zzdVar.zzg) && this.zzh.equals(zzdVar.zzh)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public final int hashCode() {
|
||||
return Arrays.hashCode(new Object[]{Integer.valueOf(this.zza), this.zzc, this.zzd, this.zzf});
|
||||
}
|
||||
|
||||
public final String toString() {
|
||||
int length = this.zzc.length() + 18;
|
||||
String str = this.zzd;
|
||||
if (str != null) {
|
||||
length += str.length();
|
||||
}
|
||||
StringBuilder sb = new StringBuilder(length);
|
||||
sb.append(this.zza);
|
||||
sb.append(RemoteSettings.FORWARD_SLASH_STRING);
|
||||
sb.append(this.zzc);
|
||||
if (this.zzd != null) {
|
||||
sb.append("[");
|
||||
if (this.zzd.startsWith(this.zzc)) {
|
||||
sb.append((CharSequence) this.zzd, this.zzc.length(), this.zzd.length());
|
||||
} else {
|
||||
sb.append(this.zzd);
|
||||
}
|
||||
sb.append("]");
|
||||
}
|
||||
if (this.zzf != null) {
|
||||
sb.append(RemoteSettings.FORWARD_SLASH_STRING);
|
||||
sb.append(Integer.toHexString(this.zzf.hashCode()));
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, this.zza);
|
||||
SafeParcelWriter.writeInt(parcel, 2, this.zzb);
|
||||
SafeParcelWriter.writeString(parcel, 3, this.zzc, false);
|
||||
SafeParcelWriter.writeString(parcel, 4, this.zzd, false);
|
||||
SafeParcelWriter.writeInt(parcel, 5, this.zze);
|
||||
SafeParcelWriter.writeString(parcel, 6, this.zzf, false);
|
||||
SafeParcelWriter.writeParcelable(parcel, 7, this.zzg, i, false);
|
||||
SafeParcelWriter.writeTypedList(parcel, 8, this.zzh, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,448 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.content.Context;
|
||||
import android.location.Location;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Looper;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.Feature;
|
||||
import com.google.android.gms.common.api.internal.ConnectionCallbacks;
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
import com.google.android.gms.common.api.internal.ListenerHolders;
|
||||
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.ICancelToken;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.location.CurrentLocationRequest;
|
||||
import com.google.android.gms.location.GeofencingRequest;
|
||||
import com.google.android.gms.location.LastLocationRequest;
|
||||
import com.google.android.gms.location.LocationAvailability;
|
||||
import com.google.android.gms.location.LocationRequest;
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import com.google.android.gms.tasks.CancellationToken;
|
||||
import com.google.android.gms.tasks.OnCompleteListener;
|
||||
import com.google.android.gms.tasks.OnTokenCanceledListener;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
import java.util.List;
|
||||
import s.j;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzda extends GmsClient {
|
||||
public static final /* synthetic */ int zze = 0;
|
||||
private final j zzf;
|
||||
private final j zzg;
|
||||
private final j zzh;
|
||||
|
||||
public zzda(Context context, Looper looper, ClientSettings clientSettings, ConnectionCallbacks connectionCallbacks, OnConnectionFailedListener onConnectionFailedListener) {
|
||||
super(context, looper, 23, clientSettings, connectionCallbacks, onConnectionFailedListener);
|
||||
this.zzf = new j(0);
|
||||
this.zzg = new j(0);
|
||||
this.zzh = new j(0);
|
||||
}
|
||||
|
||||
private final boolean zzE(Feature feature) {
|
||||
Feature feature2;
|
||||
Feature[] availableFeatures = getAvailableFeatures();
|
||||
if (availableFeatures == null) {
|
||||
return false;
|
||||
}
|
||||
int length = availableFeatures.length;
|
||||
int i = 0;
|
||||
while (true) {
|
||||
if (i >= length) {
|
||||
feature2 = null;
|
||||
break;
|
||||
}
|
||||
feature2 = availableFeatures[i];
|
||||
if (feature.getName().equals(feature2.getName())) {
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
return feature2 != null && feature2.getVersion() >= feature.getVersion();
|
||||
}
|
||||
|
||||
@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.location.internal.IGoogleLocationManagerService");
|
||||
return queryLocalInterface instanceof zzo ? (zzo) queryLocalInterface : new zzn(iBinder);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final Feature[] getApiFeatures() {
|
||||
return com.google.android.gms.location.zzm.zzl;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient, com.google.android.gms.common.api.Api.Client
|
||||
public final int getMinApkVersion() {
|
||||
return 11717000;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final String getServiceDescriptor() {
|
||||
return "com.google.android.gms.location.internal.IGoogleLocationManagerService";
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final String getStartServiceAction() {
|
||||
return "com.google.android.location.internal.GoogleLocationManagerService.START";
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final void onConnectionSuspended(int i) {
|
||||
super.onConnectionSuspended(i);
|
||||
synchronized (this.zzf) {
|
||||
this.zzf.clear();
|
||||
}
|
||||
synchronized (this.zzg) {
|
||||
this.zzg.clear();
|
||||
}
|
||||
synchronized (this.zzh) {
|
||||
this.zzh.clear();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final boolean usesClientTelemetry() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public final void zzA(boolean z3, TaskCompletionSource taskCompletionSource) throws RemoteException {
|
||||
if (zzE(com.google.android.gms.location.zzm.zzg)) {
|
||||
((zzo) getService()).zzx(z3, new zzcl(this, null, taskCompletionSource));
|
||||
} else {
|
||||
((zzo) getService()).zzw(z3);
|
||||
taskCompletionSource.setResult(null);
|
||||
}
|
||||
}
|
||||
|
||||
public final void zzB(ListenerHolder.ListenerKey listenerKey, boolean z3, TaskCompletionSource taskCompletionSource) throws RemoteException {
|
||||
synchronized (this.zzg) {
|
||||
try {
|
||||
zzcw zzcwVar = (zzcw) this.zzg.remove(listenerKey);
|
||||
if (zzcwVar == null) {
|
||||
taskCompletionSource.setResult(Boolean.FALSE);
|
||||
return;
|
||||
}
|
||||
zzcwVar.zzh();
|
||||
if (!z3) {
|
||||
taskCompletionSource.setResult(Boolean.TRUE);
|
||||
} else if (zzE(com.google.android.gms.location.zzm.zzj)) {
|
||||
((zzo) getService()).zzy(zzdb.zzb(null, zzcwVar, null, null), new zzcl(this, Boolean.TRUE, taskCompletionSource));
|
||||
} else {
|
||||
((zzo) getService()).zzz(new zzdf(2, null, null, zzcwVar, null, new zzcn(Boolean.TRUE, taskCompletionSource), null));
|
||||
}
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public final void zzC(ListenerHolder.ListenerKey listenerKey, boolean z3, TaskCompletionSource taskCompletionSource) throws RemoteException {
|
||||
synchronized (this.zzf) {
|
||||
try {
|
||||
zzcz zzczVar = (zzcz) this.zzf.remove(listenerKey);
|
||||
if (zzczVar == null) {
|
||||
taskCompletionSource.setResult(Boolean.FALSE);
|
||||
return;
|
||||
}
|
||||
zzczVar.zzg();
|
||||
if (!z3) {
|
||||
taskCompletionSource.setResult(Boolean.TRUE);
|
||||
} else if (zzE(com.google.android.gms.location.zzm.zzj)) {
|
||||
((zzo) getService()).zzy(zzdb.zzc(null, zzczVar, null, null), new zzcl(this, Boolean.TRUE, taskCompletionSource));
|
||||
} else {
|
||||
((zzo) getService()).zzz(new zzdf(2, null, zzczVar, null, null, new zzcn(Boolean.TRUE, taskCompletionSource), null));
|
||||
}
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public final void zzD(PendingIntent pendingIntent, TaskCompletionSource taskCompletionSource, Object obj) throws RemoteException {
|
||||
if (zzE(com.google.android.gms.location.zzm.zzj)) {
|
||||
((zzo) getService()).zzy(zzdb.zza(pendingIntent, null, null), new zzcl(this, null, taskCompletionSource));
|
||||
} else {
|
||||
((zzo) getService()).zzz(new zzdf(2, null, null, null, pendingIntent, new zzcn(null, taskCompletionSource), null));
|
||||
}
|
||||
}
|
||||
|
||||
public final LocationAvailability zzp() throws RemoteException {
|
||||
return ((zzo) getService()).zzf(getContext().getPackageName());
|
||||
}
|
||||
|
||||
public final void zzq(GeofencingRequest geofencingRequest, PendingIntent pendingIntent, TaskCompletionSource taskCompletionSource) throws RemoteException {
|
||||
Preconditions.checkNotNull(geofencingRequest, "geofencingRequest can't be null.");
|
||||
Preconditions.checkNotNull(pendingIntent, "PendingIntent must be specified.");
|
||||
((zzo) getService()).zzg(geofencingRequest, pendingIntent, new zzci(taskCompletionSource));
|
||||
}
|
||||
|
||||
public final void zzr(TaskCompletionSource taskCompletionSource) throws RemoteException {
|
||||
((zzo) getService()).zzi(new zzcn(null, taskCompletionSource));
|
||||
}
|
||||
|
||||
public final void zzs(CurrentLocationRequest currentLocationRequest, CancellationToken cancellationToken, final TaskCompletionSource taskCompletionSource) throws RemoteException {
|
||||
getContext();
|
||||
if (zzE(com.google.android.gms.location.zzm.zze)) {
|
||||
final ICancelToken zze2 = ((zzo) getService()).zze(currentLocationRequest, new zzcm(this, taskCompletionSource));
|
||||
if (cancellationToken != null) {
|
||||
cancellationToken.onCanceledRequested(new OnTokenCanceledListener() { // from class: com.google.android.gms.internal.location.zzcf
|
||||
@Override // com.google.android.gms.tasks.OnTokenCanceledListener
|
||||
public final void onCanceled() {
|
||||
try {
|
||||
ICancelToken.this.cancel();
|
||||
} catch (RemoteException unused) {
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
ListenerHolder createListenerHolder = ListenerHolders.createListenerHolder(new zzcj(this, taskCompletionSource), zzdx.zza(), "GetCurrentLocation");
|
||||
final ListenerHolder.ListenerKey listenerKey = createListenerHolder.getListenerKey();
|
||||
listenerKey.getClass();
|
||||
zzck zzckVar = new zzck(this, createListenerHolder, taskCompletionSource);
|
||||
TaskCompletionSource taskCompletionSource2 = new TaskCompletionSource();
|
||||
LocationRequest.Builder builder = new LocationRequest.Builder(currentLocationRequest.getPriority(), 0L);
|
||||
builder.setMinUpdateIntervalMillis(0L);
|
||||
builder.setDurationMillis(currentLocationRequest.getDurationMillis());
|
||||
builder.setGranularity(currentLocationRequest.getGranularity());
|
||||
builder.setMaxUpdateAgeMillis(currentLocationRequest.getMaxUpdateAgeMillis());
|
||||
builder.zza(currentLocationRequest.zze());
|
||||
builder.zzc(currentLocationRequest.zza());
|
||||
builder.setWaitForAccurateLocation(true);
|
||||
builder.zzb(currentLocationRequest.zzd());
|
||||
builder.zzd(currentLocationRequest.zzb());
|
||||
zzu(zzckVar, builder.build(), taskCompletionSource2);
|
||||
taskCompletionSource2.getTask().addOnCompleteListener(new OnCompleteListener() { // from class: com.google.android.gms.internal.location.zzcg
|
||||
@Override // com.google.android.gms.tasks.OnCompleteListener
|
||||
public final void onComplete(Task task) {
|
||||
TaskCompletionSource taskCompletionSource3 = TaskCompletionSource.this;
|
||||
if (task.isSuccessful()) {
|
||||
return;
|
||||
}
|
||||
Exception exception = task.getException();
|
||||
exception.getClass();
|
||||
taskCompletionSource3.trySetException(exception);
|
||||
}
|
||||
});
|
||||
if (cancellationToken != null) {
|
||||
cancellationToken.onCanceledRequested(new OnTokenCanceledListener() { // from class: com.google.android.gms.internal.location.zzch
|
||||
@Override // com.google.android.gms.tasks.OnTokenCanceledListener
|
||||
public final void onCanceled() {
|
||||
try {
|
||||
zzda.this.zzB(listenerKey, true, new TaskCompletionSource());
|
||||
} catch (RemoteException unused) {
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public final void zzt(LastLocationRequest lastLocationRequest, TaskCompletionSource taskCompletionSource) throws RemoteException {
|
||||
getContext();
|
||||
if (zzE(com.google.android.gms.location.zzm.zzf)) {
|
||||
((zzo) getService()).zzj(lastLocationRequest, new zzcm(this, taskCompletionSource));
|
||||
} else {
|
||||
taskCompletionSource.setResult(((zzo) getService()).zzd());
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:11:0x0046 A[Catch: all -> 0x002e, TryCatch #0 {all -> 0x002e, blocks: (B:4:0x001a, B:8:0x0028, B:9:0x003d, B:11:0x0046, B:12:0x0081, B:16:0x0059, B:17:0x0030), top: B:3:0x001a }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:16:0x0059 A[Catch: all -> 0x002e, TryCatch #0 {all -> 0x002e, blocks: (B:4:0x001a, B:8:0x0028, B:9:0x003d, B:11:0x0046, B:12:0x0081, B:16:0x0059, B:17:0x0030), top: B:3:0x001a }] */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final void zzu(com.google.android.gms.internal.location.zzcs r18, com.google.android.gms.location.LocationRequest r19, com.google.android.gms.tasks.TaskCompletionSource r20) throws android.os.RemoteException {
|
||||
/*
|
||||
r17 = this;
|
||||
r0 = r17
|
||||
r1 = r19
|
||||
r2 = r20
|
||||
com.google.android.gms.common.api.internal.ListenerHolder r3 = r18.zza()
|
||||
com.google.android.gms.common.api.internal.ListenerHolder$ListenerKey r4 = r3.getListenerKey()
|
||||
r4.getClass()
|
||||
com.google.android.gms.common.Feature r5 = com.google.android.gms.location.zzm.zzj
|
||||
boolean r5 = r0.zzE(r5)
|
||||
s.j r6 = r0.zzg
|
||||
monitor-enter(r6)
|
||||
s.j r7 = r0.zzg // Catch: java.lang.Throwable -> L2e
|
||||
java.lang.Object r7 = r7.get(r4) // Catch: java.lang.Throwable -> L2e
|
||||
com.google.android.gms.internal.location.zzcw r7 = (com.google.android.gms.internal.location.zzcw) r7 // Catch: java.lang.Throwable -> L2e
|
||||
r8 = 0
|
||||
if (r7 == 0) goto L30
|
||||
if (r5 == 0) goto L28
|
||||
goto L30
|
||||
L28:
|
||||
r7.zzg(r3) // Catch: java.lang.Throwable -> L2e
|
||||
r13 = r7
|
||||
r7 = r8
|
||||
goto L3d
|
||||
L2e:
|
||||
r0 = move-exception
|
||||
goto L83
|
||||
L30:
|
||||
com.google.android.gms.internal.location.zzcw r3 = new com.google.android.gms.internal.location.zzcw // Catch: java.lang.Throwable -> L2e
|
||||
r9 = r18
|
||||
r3.<init>(r9) // Catch: java.lang.Throwable -> L2e
|
||||
s.j r9 = r0.zzg // Catch: java.lang.Throwable -> L2e
|
||||
r9.put(r4, r3) // Catch: java.lang.Throwable -> L2e
|
||||
r13 = r3
|
||||
L3d:
|
||||
r0.getContext() // Catch: java.lang.Throwable -> L2e
|
||||
java.lang.String r3 = r4.toIdString() // Catch: java.lang.Throwable -> L2e
|
||||
if (r5 == 0) goto L59
|
||||
android.os.IInterface r4 = r0.getService() // Catch: java.lang.Throwable -> L2e
|
||||
com.google.android.gms.internal.location.zzo r4 = (com.google.android.gms.internal.location.zzo) r4 // Catch: java.lang.Throwable -> L2e
|
||||
com.google.android.gms.internal.location.zzdb r3 = com.google.android.gms.internal.location.zzdb.zzb(r7, r13, r8, r3) // Catch: java.lang.Throwable -> L2e
|
||||
com.google.android.gms.internal.location.zzcl r5 = new com.google.android.gms.internal.location.zzcl // Catch: java.lang.Throwable -> L2e
|
||||
r5.<init>(r0, r8, r2) // Catch: java.lang.Throwable -> L2e
|
||||
r4.zzk(r3, r1, r5) // Catch: java.lang.Throwable -> L2e
|
||||
goto L81
|
||||
L59:
|
||||
android.os.IInterface r0 = r0.getService() // Catch: java.lang.Throwable -> L2e
|
||||
com.google.android.gms.internal.location.zzo r0 = (com.google.android.gms.internal.location.zzo) r0 // Catch: java.lang.Throwable -> L2e
|
||||
com.google.android.gms.location.LocationRequest$Builder r4 = new com.google.android.gms.location.LocationRequest$Builder // Catch: java.lang.Throwable -> L2e
|
||||
r4.<init>(r1) // Catch: java.lang.Throwable -> L2e
|
||||
r4.zzb(r8) // Catch: java.lang.Throwable -> L2e
|
||||
com.google.android.gms.location.LocationRequest r1 = r4.build() // Catch: java.lang.Throwable -> L2e
|
||||
com.google.android.gms.internal.location.zzdd r11 = com.google.android.gms.internal.location.zzdd.zza(r8, r1) // Catch: java.lang.Throwable -> L2e
|
||||
com.google.android.gms.internal.location.zzcp r15 = new com.google.android.gms.internal.location.zzcp // Catch: java.lang.Throwable -> L2e
|
||||
r15.<init>(r2, r13) // Catch: java.lang.Throwable -> L2e
|
||||
com.google.android.gms.internal.location.zzdf r9 = new com.google.android.gms.internal.location.zzdf // Catch: java.lang.Throwable -> L2e
|
||||
r12 = 0
|
||||
r14 = 0
|
||||
r10 = 1
|
||||
r16 = r3
|
||||
r9.<init>(r10, r11, r12, r13, r14, r15, r16) // Catch: java.lang.Throwable -> L2e
|
||||
r0.zzz(r9) // Catch: java.lang.Throwable -> L2e
|
||||
L81:
|
||||
monitor-exit(r6) // Catch: java.lang.Throwable -> L2e
|
||||
return
|
||||
L83:
|
||||
monitor-exit(r6) // Catch: java.lang.Throwable -> L2e
|
||||
throw r0
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.location.zzda.zzu(com.google.android.gms.internal.location.zzcs, com.google.android.gms.location.LocationRequest, com.google.android.gms.tasks.TaskCompletionSource):void");
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:11:0x0046 A[Catch: all -> 0x002e, TryCatch #0 {all -> 0x002e, blocks: (B:4:0x001a, B:8:0x0028, B:9:0x003d, B:11:0x0046, B:12:0x0081, B:16:0x0059, B:17:0x0030), top: B:3:0x001a }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:16:0x0059 A[Catch: all -> 0x002e, TryCatch #0 {all -> 0x002e, blocks: (B:4:0x001a, B:8:0x0028, B:9:0x003d, B:11:0x0046, B:12:0x0081, B:16:0x0059, B:17:0x0030), top: B:3:0x001a }] */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final void zzv(com.google.android.gms.internal.location.zzcs r18, com.google.android.gms.location.LocationRequest r19, com.google.android.gms.tasks.TaskCompletionSource r20) throws android.os.RemoteException {
|
||||
/*
|
||||
r17 = this;
|
||||
r0 = r17
|
||||
r1 = r19
|
||||
r2 = r20
|
||||
com.google.android.gms.common.api.internal.ListenerHolder r3 = r18.zza()
|
||||
com.google.android.gms.common.api.internal.ListenerHolder$ListenerKey r4 = r3.getListenerKey()
|
||||
r4.getClass()
|
||||
com.google.android.gms.common.Feature r5 = com.google.android.gms.location.zzm.zzj
|
||||
boolean r5 = r0.zzE(r5)
|
||||
s.j r6 = r0.zzf
|
||||
monitor-enter(r6)
|
||||
s.j r7 = r0.zzf // Catch: java.lang.Throwable -> L2e
|
||||
java.lang.Object r7 = r7.get(r4) // Catch: java.lang.Throwable -> L2e
|
||||
com.google.android.gms.internal.location.zzcz r7 = (com.google.android.gms.internal.location.zzcz) r7 // Catch: java.lang.Throwable -> L2e
|
||||
r8 = 0
|
||||
if (r7 == 0) goto L30
|
||||
if (r5 == 0) goto L28
|
||||
goto L30
|
||||
L28:
|
||||
r7.zzf(r3) // Catch: java.lang.Throwable -> L2e
|
||||
r12 = r7
|
||||
r7 = r8
|
||||
goto L3d
|
||||
L2e:
|
||||
r0 = move-exception
|
||||
goto L83
|
||||
L30:
|
||||
com.google.android.gms.internal.location.zzcz r3 = new com.google.android.gms.internal.location.zzcz // Catch: java.lang.Throwable -> L2e
|
||||
r9 = r18
|
||||
r3.<init>(r9) // Catch: java.lang.Throwable -> L2e
|
||||
s.j r9 = r0.zzf // Catch: java.lang.Throwable -> L2e
|
||||
r9.put(r4, r3) // Catch: java.lang.Throwable -> L2e
|
||||
r12 = r3
|
||||
L3d:
|
||||
r0.getContext() // Catch: java.lang.Throwable -> L2e
|
||||
java.lang.String r3 = r4.toIdString() // Catch: java.lang.Throwable -> L2e
|
||||
if (r5 == 0) goto L59
|
||||
android.os.IInterface r4 = r0.getService() // Catch: java.lang.Throwable -> L2e
|
||||
com.google.android.gms.internal.location.zzo r4 = (com.google.android.gms.internal.location.zzo) r4 // Catch: java.lang.Throwable -> L2e
|
||||
com.google.android.gms.internal.location.zzdb r3 = com.google.android.gms.internal.location.zzdb.zzc(r7, r12, r8, r3) // Catch: java.lang.Throwable -> L2e
|
||||
com.google.android.gms.internal.location.zzcl r5 = new com.google.android.gms.internal.location.zzcl // Catch: java.lang.Throwable -> L2e
|
||||
r5.<init>(r0, r8, r2) // Catch: java.lang.Throwable -> L2e
|
||||
r4.zzk(r3, r1, r5) // Catch: java.lang.Throwable -> L2e
|
||||
goto L81
|
||||
L59:
|
||||
android.os.IInterface r0 = r0.getService() // Catch: java.lang.Throwable -> L2e
|
||||
com.google.android.gms.internal.location.zzo r0 = (com.google.android.gms.internal.location.zzo) r0 // Catch: java.lang.Throwable -> L2e
|
||||
com.google.android.gms.location.LocationRequest$Builder r4 = new com.google.android.gms.location.LocationRequest$Builder // Catch: java.lang.Throwable -> L2e
|
||||
r4.<init>(r1) // Catch: java.lang.Throwable -> L2e
|
||||
r4.zzb(r8) // Catch: java.lang.Throwable -> L2e
|
||||
com.google.android.gms.location.LocationRequest r1 = r4.build() // Catch: java.lang.Throwable -> L2e
|
||||
com.google.android.gms.internal.location.zzdd r11 = com.google.android.gms.internal.location.zzdd.zza(r8, r1) // Catch: java.lang.Throwable -> L2e
|
||||
com.google.android.gms.internal.location.zzco r15 = new com.google.android.gms.internal.location.zzco // Catch: java.lang.Throwable -> L2e
|
||||
r15.<init>(r2, r12) // Catch: java.lang.Throwable -> L2e
|
||||
com.google.android.gms.internal.location.zzdf r9 = new com.google.android.gms.internal.location.zzdf // Catch: java.lang.Throwable -> L2e
|
||||
r13 = 0
|
||||
r14 = 0
|
||||
r10 = 1
|
||||
r16 = r3
|
||||
r9.<init>(r10, r11, r12, r13, r14, r15, r16) // Catch: java.lang.Throwable -> L2e
|
||||
r0.zzz(r9) // Catch: java.lang.Throwable -> L2e
|
||||
L81:
|
||||
monitor-exit(r6) // Catch: java.lang.Throwable -> L2e
|
||||
return
|
||||
L83:
|
||||
monitor-exit(r6) // Catch: java.lang.Throwable -> L2e
|
||||
throw r0
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.location.zzda.zzv(com.google.android.gms.internal.location.zzcs, com.google.android.gms.location.LocationRequest, com.google.android.gms.tasks.TaskCompletionSource):void");
|
||||
}
|
||||
|
||||
public final void zzw(PendingIntent pendingIntent, LocationRequest locationRequest, TaskCompletionSource taskCompletionSource) throws RemoteException {
|
||||
getContext();
|
||||
if (zzE(com.google.android.gms.location.zzm.zzj)) {
|
||||
((zzo) getService()).zzk(zzdb.zza(pendingIntent, null, null), locationRequest, new zzcl(this, null, taskCompletionSource));
|
||||
return;
|
||||
}
|
||||
zzo zzoVar = (zzo) getService();
|
||||
LocationRequest.Builder builder = new LocationRequest.Builder(locationRequest);
|
||||
builder.zzb(null);
|
||||
zzoVar.zzz(new zzdf(1, zzdd.zza(null, builder.build()), null, null, pendingIntent, new zzcn(null, taskCompletionSource), a.l(pendingIntent.hashCode(), "PendingIntent@")));
|
||||
}
|
||||
|
||||
public final void zzx(PendingIntent pendingIntent, TaskCompletionSource taskCompletionSource) throws RemoteException {
|
||||
Preconditions.checkNotNull(pendingIntent, "PendingIntent must be specified.");
|
||||
((zzo) getService()).zzn(pendingIntent, new zzci(taskCompletionSource), getContext().getPackageName());
|
||||
}
|
||||
|
||||
public final void zzy(List list, TaskCompletionSource taskCompletionSource) throws RemoteException {
|
||||
Preconditions.checkArgument((list == null || list.isEmpty()) ? false : true, "geofenceRequestIds can't be null nor empty.");
|
||||
((zzo) getService()).zzo((String[]) list.toArray(new String[0]), new zzci(taskCompletionSource), getContext().getPackageName());
|
||||
}
|
||||
|
||||
public final void zzz(Location location, TaskCompletionSource taskCompletionSource) throws RemoteException {
|
||||
if (zzE(com.google.android.gms.location.zzm.zzh)) {
|
||||
((zzo) getService()).zzv(location, new zzcl(this, null, taskCompletionSource));
|
||||
} else {
|
||||
((zzo) getService()).zzu(location);
|
||||
taskCompletionSource.setResult(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.os.Build;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
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 = "LocationReceiverCreator")
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzdb extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<zzdb> CREATOR = new zzdc();
|
||||
|
||||
@SafeParcelable.Field(getter = "getType", id = 1)
|
||||
private final int zza;
|
||||
|
||||
@SafeParcelable.Field(getter = "getOldBinderReceiver", id = 2)
|
||||
private final IBinder zzb;
|
||||
|
||||
@SafeParcelable.Field(getter = "getBinderReceiver", id = 3)
|
||||
private final IBinder zzc;
|
||||
|
||||
@SafeParcelable.Field(getter = "getPendingIntentReceiver", id = 4)
|
||||
private final PendingIntent zzd;
|
||||
|
||||
@SafeParcelable.Field(getter = "getModuleId", id = 5)
|
||||
private final String zze;
|
||||
|
||||
@SafeParcelable.Field(getter = "getListenerId", id = 6)
|
||||
private final String zzf;
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public zzdb(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) IBinder iBinder, @SafeParcelable.Param(id = 3) IBinder iBinder2, @SafeParcelable.Param(id = 4) PendingIntent pendingIntent, @SafeParcelable.Param(id = 5) String str, @SafeParcelable.Param(id = 6) String str2) {
|
||||
this.zza = i;
|
||||
this.zzb = iBinder;
|
||||
this.zzc = iBinder2;
|
||||
this.zzd = pendingIntent;
|
||||
this.zze = Build.VERSION.SDK_INT >= 30 ? null : str;
|
||||
this.zzf = str2;
|
||||
}
|
||||
|
||||
public static zzdb zza(PendingIntent pendingIntent, String str, String str2) {
|
||||
return new zzdb(3, null, null, pendingIntent, null, null);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Type inference failed for: r2v0, types: [android.os.IBinder] */
|
||||
/* JADX WARN: Type inference failed for: r8v0, types: [com.google.android.gms.location.zzr, android.os.IBinder] */
|
||||
public static zzdb zzb(IInterface iInterface, com.google.android.gms.location.zzr zzrVar, String str, String str2) {
|
||||
if (iInterface == null) {
|
||||
iInterface = null;
|
||||
}
|
||||
return new zzdb(2, iInterface, zzrVar, null, null, str2);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Type inference failed for: r2v0, types: [android.os.IBinder] */
|
||||
/* JADX WARN: Type inference failed for: r8v0, types: [com.google.android.gms.location.zzu, android.os.IBinder] */
|
||||
public static zzdb zzc(IInterface iInterface, com.google.android.gms.location.zzu zzuVar, String str, String str2) {
|
||||
if (iInterface == null) {
|
||||
iInterface = null;
|
||||
}
|
||||
return new zzdb(1, iInterface, zzuVar, null, null, str2);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, this.zza);
|
||||
SafeParcelWriter.writeIBinder(parcel, 2, this.zzb, false);
|
||||
SafeParcelWriter.writeIBinder(parcel, 3, this.zzc, false);
|
||||
SafeParcelWriter.writeParcelable(parcel, 4, this.zzd, i, false);
|
||||
SafeParcelWriter.writeString(parcel, 5, this.zze, false);
|
||||
SafeParcelWriter.writeString(parcel, 6, this.zzf, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.os.IBinder;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzdc implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
int i = 0;
|
||||
IBinder iBinder = null;
|
||||
IBinder iBinder2 = null;
|
||||
PendingIntent pendingIntent = null;
|
||||
String str = null;
|
||||
String str2 = null;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
switch (SafeParcelReader.getFieldId(readHeader)) {
|
||||
case 1:
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 2:
|
||||
iBinder = SafeParcelReader.readIBinder(parcel, readHeader);
|
||||
break;
|
||||
case 3:
|
||||
iBinder2 = SafeParcelReader.readIBinder(parcel, readHeader);
|
||||
break;
|
||||
case 4:
|
||||
pendingIntent = (PendingIntent) SafeParcelReader.createParcelable(parcel, readHeader, PendingIntent.CREATOR);
|
||||
break;
|
||||
case 5:
|
||||
str = SafeParcelReader.createString(parcel, readHeader);
|
||||
break;
|
||||
case 6:
|
||||
str2 = SafeParcelReader.createString(parcel, readHeader);
|
||||
break;
|
||||
default:
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
break;
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new zzdb(i, iBinder, iBinder2, pendingIntent, str, str2);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new zzdb[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.os.WorkSource;
|
||||
import com.google.android.gms.common.internal.ClientIdentity;
|
||||
import com.google.android.gms.common.internal.Objects;
|
||||
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 com.google.android.gms.common.util.WorkSourceUtil;
|
||||
import com.google.android.gms.location.LocationRequest;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.jvm.internal.LongCompanionObject;
|
||||
|
||||
@SafeParcelable.Class(creator = "LocationRequestInternalCreator")
|
||||
@SafeParcelable.Reserved({2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 1000})
|
||||
@Deprecated
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzdd extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<zzdd> CREATOR = new zzde();
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "null", id = 1)
|
||||
LocationRequest zza;
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public zzdd(@SafeParcelable.Param(id = 1) LocationRequest locationRequest, @SafeParcelable.RemovedParam(defaultValueUnchecked = "null", id = 5) List list, @SafeParcelable.RemovedParam(defaultValue = "false", id = 8) boolean z3, @SafeParcelable.RemovedParam(defaultValue = "false", id = 9) boolean z4, @SafeParcelable.RemovedParam(defaultValueUnchecked = "null", id = 10) String str, @SafeParcelable.RemovedParam(defaultValue = "false", id = 11) boolean z5, @SafeParcelable.RemovedParam(defaultValue = "false", id = 12) boolean z6, @SafeParcelable.RemovedParam(defaultValueUnchecked = "null", id = 13) String str2, @SafeParcelable.RemovedParam(defaultValueUnchecked = "Long.MAX_VALUE", id = 14) long j4) {
|
||||
WorkSource workSource;
|
||||
LocationRequest.Builder builder = new LocationRequest.Builder(locationRequest);
|
||||
if (list != null) {
|
||||
if (list.isEmpty()) {
|
||||
workSource = null;
|
||||
} else {
|
||||
workSource = new WorkSource();
|
||||
Iterator it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
ClientIdentity clientIdentity = (ClientIdentity) it.next();
|
||||
WorkSourceUtil.add(workSource, clientIdentity.uid, clientIdentity.packageName);
|
||||
}
|
||||
}
|
||||
builder.zzd(workSource);
|
||||
}
|
||||
if (z3) {
|
||||
builder.setGranularity(1);
|
||||
}
|
||||
if (z4) {
|
||||
builder.zzc(2);
|
||||
}
|
||||
if (str != null) {
|
||||
builder.zzb(str);
|
||||
} else if (str2 != null) {
|
||||
builder.zzb(str2);
|
||||
}
|
||||
if (z5) {
|
||||
builder.zza(true);
|
||||
}
|
||||
if (z6) {
|
||||
builder.setWaitForAccurateLocation(true);
|
||||
}
|
||||
if (j4 != LongCompanionObject.MAX_VALUE) {
|
||||
builder.setMaxUpdateAgeMillis(j4);
|
||||
}
|
||||
this.zza = builder.build();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static zzdd zza(String str, LocationRequest locationRequest) {
|
||||
return new zzdd(locationRequest, null, false, false, null, false, false, null, LongCompanionObject.MAX_VALUE);
|
||||
}
|
||||
|
||||
public final boolean equals(Object obj) {
|
||||
if (obj instanceof zzdd) {
|
||||
return Objects.equal(this.zza, ((zzdd) obj).zza);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public final int hashCode() {
|
||||
return this.zza.hashCode();
|
||||
}
|
||||
|
||||
public final String toString() {
|
||||
return this.zza.toString();
|
||||
}
|
||||
|
||||
@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.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.ClientIdentity;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
import com.google.android.gms.location.LocationRequest;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzde implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
LocationRequest locationRequest = null;
|
||||
ArrayList arrayList = null;
|
||||
String str = null;
|
||||
String str2 = null;
|
||||
boolean z3 = false;
|
||||
boolean z4 = false;
|
||||
boolean z5 = false;
|
||||
boolean z6 = false;
|
||||
long j4 = Long.MAX_VALUE;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
locationRequest = (LocationRequest) SafeParcelReader.createParcelable(parcel, readHeader, LocationRequest.CREATOR);
|
||||
} else if (fieldId != 5) {
|
||||
switch (fieldId) {
|
||||
case 8:
|
||||
z3 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
break;
|
||||
case 9:
|
||||
z4 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
break;
|
||||
case 10:
|
||||
str = SafeParcelReader.createString(parcel, readHeader);
|
||||
break;
|
||||
case 11:
|
||||
z5 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
break;
|
||||
case 12:
|
||||
z6 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
break;
|
||||
case 13:
|
||||
str2 = SafeParcelReader.createString(parcel, readHeader);
|
||||
break;
|
||||
case 14:
|
||||
j4 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
break;
|
||||
default:
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
arrayList = SafeParcelReader.createTypedList(parcel, readHeader, ClientIdentity.CREATOR);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new zzdd(locationRequest, arrayList, z3, z4, str, z5, z6, str2, j4);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new zzdd[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
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 = "LocationRequestUpdateDataCreator")
|
||||
@SafeParcelable.Reserved({1000})
|
||||
@Deprecated
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzdf extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<zzdf> CREATOR = new zzdg();
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "LocationRequestUpdateData.OPERATION_ADD", getter = "getOperation", id = 1)
|
||||
private final int zza;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "null", getter = "getLocationRequest", id = 2)
|
||||
private final zzdd zzb;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "null", getter = "getLocationListenerAsBinder", id = 3, type = "android.os.IBinder")
|
||||
private final com.google.android.gms.location.zzu zzc;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "null", getter = "getLocationCallbackAsBinder", id = 5, type = "android.os.IBinder")
|
||||
private final com.google.android.gms.location.zzr zzd;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "null", getter = "getPendingIntent", id = 4)
|
||||
private final PendingIntent zze;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "null", getter = "getFusedLocationProviderCallbackAsBinder", id = 6, type = "android.os.IBinder")
|
||||
private final zzk zzf;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "null", getter = "getListenerId", id = 8)
|
||||
private final String zzg;
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public zzdf(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) zzdd zzddVar, @SafeParcelable.Param(id = 3) IBinder iBinder, @SafeParcelable.Param(id = 5) IBinder iBinder2, @SafeParcelable.Param(id = 4) PendingIntent pendingIntent, @SafeParcelable.Param(id = 6) IBinder iBinder3, @SafeParcelable.Param(id = 8) String str) {
|
||||
this.zza = i;
|
||||
this.zzb = zzddVar;
|
||||
zzk zzkVar = null;
|
||||
this.zzc = iBinder != null ? com.google.android.gms.location.zzt.zzb(iBinder) : null;
|
||||
this.zze = pendingIntent;
|
||||
this.zzd = iBinder2 != null ? com.google.android.gms.location.zzq.zzb(iBinder2) : null;
|
||||
if (iBinder3 != null) {
|
||||
IInterface queryLocalInterface = iBinder3.queryLocalInterface("com.google.android.gms.location.internal.IFusedLocationProviderCallback");
|
||||
zzkVar = queryLocalInterface instanceof zzk ? (zzk) queryLocalInterface : new zzi(iBinder3);
|
||||
}
|
||||
this.zzf = zzkVar;
|
||||
this.zzg = str;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, this.zza);
|
||||
SafeParcelWriter.writeParcelable(parcel, 2, this.zzb, i, false);
|
||||
com.google.android.gms.location.zzu zzuVar = this.zzc;
|
||||
SafeParcelWriter.writeIBinder(parcel, 3, zzuVar == null ? null : zzuVar.asBinder(), false);
|
||||
SafeParcelWriter.writeParcelable(parcel, 4, this.zze, i, false);
|
||||
com.google.android.gms.location.zzr zzrVar = this.zzd;
|
||||
SafeParcelWriter.writeIBinder(parcel, 5, zzrVar == null ? null : zzrVar.asBinder(), false);
|
||||
zzk zzkVar = this.zzf;
|
||||
SafeParcelWriter.writeIBinder(parcel, 6, zzkVar != null ? zzkVar.asBinder() : null, false);
|
||||
SafeParcelWriter.writeString(parcel, 8, this.zzg, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.os.IBinder;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzdg implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
int i = 1;
|
||||
zzdd zzddVar = null;
|
||||
IBinder iBinder = null;
|
||||
IBinder iBinder2 = null;
|
||||
PendingIntent pendingIntent = null;
|
||||
IBinder iBinder3 = null;
|
||||
String str = null;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
switch (SafeParcelReader.getFieldId(readHeader)) {
|
||||
case 1:
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 2:
|
||||
zzddVar = (zzdd) SafeParcelReader.createParcelable(parcel, readHeader, zzdd.CREATOR);
|
||||
break;
|
||||
case 3:
|
||||
iBinder = SafeParcelReader.readIBinder(parcel, readHeader);
|
||||
break;
|
||||
case 4:
|
||||
pendingIntent = (PendingIntent) SafeParcelReader.createParcelable(parcel, readHeader, PendingIntent.CREATOR);
|
||||
break;
|
||||
case 5:
|
||||
iBinder2 = SafeParcelReader.readIBinder(parcel, readHeader);
|
||||
break;
|
||||
case 6:
|
||||
iBinder3 = SafeParcelReader.readIBinder(parcel, readHeader);
|
||||
break;
|
||||
case 7:
|
||||
default:
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
break;
|
||||
case 8:
|
||||
str = SafeParcelReader.createString(parcel, readHeader);
|
||||
break;
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new zzdf(i, zzddVar, iBinder, iBinder2, pendingIntent, iBinder3, str);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new zzdf[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,156 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
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;
|
||||
import com.google.android.gms.common.util.VisibleForTesting;
|
||||
import com.google.android.gms.location.Geofence;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import java.util.Locale;
|
||||
|
||||
@VisibleForTesting
|
||||
@SafeParcelable.Class(creator = "ParcelableGeofenceCreator")
|
||||
@SafeParcelable.Reserved({1000})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzdh extends AbstractSafeParcelable implements Geofence {
|
||||
public static final Parcelable.Creator<zzdh> CREATOR = new zzdi();
|
||||
|
||||
@SafeParcelable.Field(getter = "getRequestId", id = 1)
|
||||
private final String zza;
|
||||
|
||||
@SafeParcelable.Field(getter = "getExpirationTime", id = 2)
|
||||
private final long zzb;
|
||||
|
||||
@SafeParcelable.Field(getter = "getType", id = 3)
|
||||
private final short zzc;
|
||||
|
||||
@SafeParcelable.Field(getter = "getLatitude", id = 4)
|
||||
private final double zzd;
|
||||
|
||||
@SafeParcelable.Field(getter = "getLongitude", id = 5)
|
||||
private final double zze;
|
||||
|
||||
@SafeParcelable.Field(getter = "getRadius", id = 6)
|
||||
private final float zzf;
|
||||
|
||||
@SafeParcelable.Field(getter = "getTransitionTypes", id = 7)
|
||||
private final int zzg;
|
||||
|
||||
@SafeParcelable.Field(defaultValue = "0", getter = "getNotificationResponsiveness", id = 8)
|
||||
private final int zzh;
|
||||
|
||||
@SafeParcelable.Field(defaultValue = "-1", getter = "getLoiteringDelay", id = 9)
|
||||
private final int zzi;
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public zzdh(@SafeParcelable.Param(id = 1) String str, @SafeParcelable.Param(id = 7) int i, @SafeParcelable.Param(id = 3) short s4, @SafeParcelable.Param(id = 4) double d4, @SafeParcelable.Param(id = 5) double d5, @SafeParcelable.Param(id = 6) float f2, @SafeParcelable.Param(id = 2) long j4, @SafeParcelable.Param(id = 8) int i4, @SafeParcelable.Param(id = 9) int i5) {
|
||||
if (str == null || str.length() > 100) {
|
||||
throw new IllegalArgumentException("requestId is null or too long: ".concat(String.valueOf(str)));
|
||||
}
|
||||
if (f2 <= BitmapDescriptorFactory.HUE_RED) {
|
||||
throw new IllegalArgumentException("invalid radius: " + f2);
|
||||
}
|
||||
if (d4 > 90.0d || d4 < -90.0d) {
|
||||
throw new IllegalArgumentException("invalid latitude: " + d4);
|
||||
}
|
||||
if (d5 > 180.0d || d5 < -180.0d) {
|
||||
throw new IllegalArgumentException("invalid longitude: " + d5);
|
||||
}
|
||||
int i6 = i & 7;
|
||||
if (i6 == 0) {
|
||||
throw new IllegalArgumentException(a.l(i, "No supported transition specified: "));
|
||||
}
|
||||
this.zzc = s4;
|
||||
this.zza = str;
|
||||
this.zzd = d4;
|
||||
this.zze = d5;
|
||||
this.zzf = f2;
|
||||
this.zzb = j4;
|
||||
this.zzg = i6;
|
||||
this.zzh = i4;
|
||||
this.zzi = i5;
|
||||
}
|
||||
|
||||
public final boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj instanceof zzdh) {
|
||||
zzdh zzdhVar = (zzdh) obj;
|
||||
if (this.zzf == zzdhVar.zzf && this.zzd == zzdhVar.zzd && this.zze == zzdhVar.zze && this.zzc == zzdhVar.zzc) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.Geofence
|
||||
public final long getExpirationTime() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.Geofence
|
||||
public final double getLatitude() {
|
||||
return this.zzd;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.Geofence
|
||||
public final int getLoiteringDelay() {
|
||||
return this.zzi;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.Geofence
|
||||
public final double getLongitude() {
|
||||
return this.zze;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.Geofence
|
||||
public final int getNotificationResponsiveness() {
|
||||
return this.zzh;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.Geofence
|
||||
public final float getRadius() {
|
||||
return this.zzf;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.Geofence
|
||||
public final String getRequestId() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.Geofence
|
||||
public final int getTransitionTypes() {
|
||||
return this.zzg;
|
||||
}
|
||||
|
||||
public final int hashCode() {
|
||||
long doubleToLongBits = Double.doubleToLongBits(this.zzd);
|
||||
long doubleToLongBits2 = Double.doubleToLongBits(this.zze);
|
||||
return ((((Float.floatToIntBits(this.zzf) + ((((((int) (doubleToLongBits ^ (doubleToLongBits >>> 32))) + 31) * 31) + ((int) (doubleToLongBits2 ^ (doubleToLongBits2 >>> 32)))) * 31)) * 31) + this.zzc) * 31) + this.zzg;
|
||||
}
|
||||
|
||||
public final String toString() {
|
||||
Locale locale = Locale.US;
|
||||
short s4 = this.zzc;
|
||||
return String.format(locale, "Geofence[%s id:%s transitions:%d %.6f, %.6f %.0fm, resp=%ds, dwell=%dms, @%d]", s4 != -1 ? s4 != 1 ? "UNKNOWN" : "CIRCLE" : "INVALID", this.zza.replaceAll("\\p{C}", "?"), Integer.valueOf(this.zzg), Double.valueOf(this.zzd), Double.valueOf(this.zze), Float.valueOf(this.zzf), Integer.valueOf(this.zzh / 1000), Integer.valueOf(this.zzi), Long.valueOf(this.zzb));
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeString(parcel, 1, this.zza, false);
|
||||
SafeParcelWriter.writeLong(parcel, 2, this.zzb);
|
||||
SafeParcelWriter.writeShort(parcel, 3, this.zzc);
|
||||
SafeParcelWriter.writeDouble(parcel, 4, this.zzd);
|
||||
SafeParcelWriter.writeDouble(parcel, 5, this.zze);
|
||||
SafeParcelWriter.writeFloat(parcel, 6, this.zzf);
|
||||
SafeParcelWriter.writeInt(parcel, 7, this.zzg);
|
||||
SafeParcelWriter.writeInt(parcel, 8, this.zzh);
|
||||
SafeParcelWriter.writeInt(parcel, 9, this.zzi);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzdi implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
String str = null;
|
||||
int i = 0;
|
||||
short s4 = 0;
|
||||
int i4 = 0;
|
||||
double d4 = 0.0d;
|
||||
double d5 = 0.0d;
|
||||
float f2 = 0.0f;
|
||||
long j4 = 0;
|
||||
int i5 = -1;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
switch (SafeParcelReader.getFieldId(readHeader)) {
|
||||
case 1:
|
||||
str = SafeParcelReader.createString(parcel, readHeader);
|
||||
break;
|
||||
case 2:
|
||||
j4 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
break;
|
||||
case 3:
|
||||
s4 = SafeParcelReader.readShort(parcel, readHeader);
|
||||
break;
|
||||
case 4:
|
||||
d4 = SafeParcelReader.readDouble(parcel, readHeader);
|
||||
break;
|
||||
case 5:
|
||||
d5 = SafeParcelReader.readDouble(parcel, readHeader);
|
||||
break;
|
||||
case 6:
|
||||
f2 = SafeParcelReader.readFloat(parcel, readHeader);
|
||||
break;
|
||||
case 7:
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 8:
|
||||
i4 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 9:
|
||||
i5 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
default:
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
break;
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new zzdh(str, i, s4, d4, d5, f2, j4, i4, i5);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new zzdh[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Locale;
|
||||
import kotlin.jvm.internal.LongCompanionObject;
|
||||
import kotlinx.coroutines.test.TestBuildersKt;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzdj {
|
||||
private static final SimpleDateFormat zza;
|
||||
private static final SimpleDateFormat zzb;
|
||||
private static final StringBuilder zzc;
|
||||
|
||||
static {
|
||||
Locale locale = Locale.ROOT;
|
||||
zza = new SimpleDateFormat("MM-dd HH:mm:ss.SSS", locale);
|
||||
zzb = new SimpleDateFormat("MM-dd HH:mm:ss", locale);
|
||||
zzc = new StringBuilder(33);
|
||||
}
|
||||
|
||||
public static String zza(long j4) {
|
||||
String sb;
|
||||
StringBuilder sb2 = zzc;
|
||||
synchronized (sb2) {
|
||||
sb2.setLength(0);
|
||||
zzb(j4, sb2);
|
||||
sb = sb2.toString();
|
||||
}
|
||||
return sb;
|
||||
}
|
||||
|
||||
public static void zzb(long j4, StringBuilder sb) {
|
||||
if (j4 == 0) {
|
||||
sb.append("0s");
|
||||
return;
|
||||
}
|
||||
sb.ensureCapacity(sb.length() + 27);
|
||||
boolean z3 = false;
|
||||
if (j4 < 0) {
|
||||
sb.append("-");
|
||||
if (j4 != Long.MIN_VALUE) {
|
||||
j4 = -j4;
|
||||
} else {
|
||||
j4 = LongCompanionObject.MAX_VALUE;
|
||||
z3 = true;
|
||||
}
|
||||
}
|
||||
if (j4 >= 86400000) {
|
||||
sb.append(j4 / 86400000);
|
||||
sb.append("d");
|
||||
j4 %= 86400000;
|
||||
}
|
||||
if (true == z3) {
|
||||
j4 = 25975808;
|
||||
}
|
||||
if (j4 >= 3600000) {
|
||||
sb.append(j4 / 3600000);
|
||||
sb.append("h");
|
||||
j4 %= 3600000;
|
||||
}
|
||||
if (j4 >= TestBuildersKt.DEFAULT_DISPATCH_TIMEOUT_MS) {
|
||||
sb.append(j4 / TestBuildersKt.DEFAULT_DISPATCH_TIMEOUT_MS);
|
||||
sb.append("m");
|
||||
j4 %= TestBuildersKt.DEFAULT_DISPATCH_TIMEOUT_MS;
|
||||
}
|
||||
if (j4 >= 1000) {
|
||||
sb.append(j4 / 1000);
|
||||
sb.append("s");
|
||||
j4 %= 1000;
|
||||
}
|
||||
if (j4 > 0) {
|
||||
sb.append(j4);
|
||||
sb.append("ms");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
class zzdk {
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzdl extends zzdk {
|
||||
public static boolean zza(Object obj, Object obj2) {
|
||||
if (obj != obj2) {
|
||||
return obj != null && obj.equals(obj2);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzdm {
|
||||
public static int zza(int i, int i4, String str) {
|
||||
String zza;
|
||||
if (i >= 0 && i < i4) {
|
||||
return i;
|
||||
}
|
||||
if (i < 0) {
|
||||
zza = zzdn.zza("%s (%s) must not be negative", FirebaseAnalytics.Param.INDEX, Integer.valueOf(i));
|
||||
} else {
|
||||
if (i4 < 0) {
|
||||
throw new IllegalArgumentException(a.l(i4, "negative size: "));
|
||||
}
|
||||
zza = zzdn.zza("%s (%s) must be less than size (%s)", FirebaseAnalytics.Param.INDEX, Integer.valueOf(i), Integer.valueOf(i4));
|
||||
}
|
||||
throw new IndexOutOfBoundsException(zza);
|
||||
}
|
||||
|
||||
public static int zzb(int i, int i4, String str) {
|
||||
if (i < 0 || i > i4) {
|
||||
throw new IndexOutOfBoundsException(zzd(i, i4, FirebaseAnalytics.Param.INDEX));
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
public static void zzc(int i, int i4, int i5) {
|
||||
if (i < 0 || i4 < i || i4 > i5) {
|
||||
throw new IndexOutOfBoundsException((i < 0 || i > i5) ? zzd(i, i5, "start index") : (i4 < 0 || i4 > i5) ? zzd(i4, i5, "end index") : zzdn.zza("end index (%s) must not be less than start index (%s)", Integer.valueOf(i4), Integer.valueOf(i)));
|
||||
}
|
||||
}
|
||||
|
||||
private static String zzd(int i, int i4, String str) {
|
||||
if (i < 0) {
|
||||
return zzdn.zza("%s (%s) must not be negative", str, Integer.valueOf(i));
|
||||
}
|
||||
if (i4 >= 0) {
|
||||
return zzdn.zza("%s (%s) must not be greater than size (%s)", str, Integer.valueOf(i), Integer.valueOf(i4));
|
||||
}
|
||||
throw new IllegalArgumentException(a.l(i4, "negative size: "));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzdn {
|
||||
public static String zza(String str, Object... objArr) {
|
||||
int length;
|
||||
int length2;
|
||||
int indexOf;
|
||||
String sb;
|
||||
int i = 0;
|
||||
int i4 = 0;
|
||||
while (true) {
|
||||
length = objArr.length;
|
||||
if (i4 >= length) {
|
||||
break;
|
||||
}
|
||||
Object obj = objArr[i4];
|
||||
if (obj == null) {
|
||||
sb = "null";
|
||||
} else {
|
||||
try {
|
||||
sb = obj.toString();
|
||||
} catch (Exception e4) {
|
||||
String str2 = obj.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(obj));
|
||||
Logger.getLogger("com.google.common.base.Strings").logp(Level.WARNING, "com.google.common.base.Strings", "lenientToString", "Exception during lenientFormat for ".concat(str2), (Throwable) e4);
|
||||
StringBuilder p = a.p("<", str2, " threw ");
|
||||
p.append(e4.getClass().getName());
|
||||
p.append(">");
|
||||
sb = p.toString();
|
||||
}
|
||||
}
|
||||
objArr[i4] = sb;
|
||||
i4++;
|
||||
}
|
||||
StringBuilder sb2 = new StringBuilder((length * 16) + str.length());
|
||||
int i5 = 0;
|
||||
while (true) {
|
||||
length2 = objArr.length;
|
||||
if (i >= length2 || (indexOf = str.indexOf("%s", i5)) == -1) {
|
||||
break;
|
||||
}
|
||||
sb2.append((CharSequence) str, i5, indexOf);
|
||||
sb2.append(objArr[i]);
|
||||
i++;
|
||||
i5 = indexOf + 2;
|
||||
}
|
||||
sb2.append((CharSequence) str, i5, str.length());
|
||||
if (i < length2) {
|
||||
sb2.append(" [");
|
||||
sb2.append(objArr[i]);
|
||||
for (int i6 = i + 1; i6 < objArr.length; i6++) {
|
||||
sb2.append(", ");
|
||||
sb2.append(objArr[i6]);
|
||||
}
|
||||
sb2.append(']');
|
||||
}
|
||||
return sb2.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import java.util.NoSuchElementException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
abstract class zzdo extends zzdv {
|
||||
private final int zza;
|
||||
private int zzb;
|
||||
|
||||
public zzdo(int i, int i4) {
|
||||
zzdm.zzb(i4, i, FirebaseAnalytics.Param.INDEX);
|
||||
this.zza = i;
|
||||
this.zzb = i4;
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator, java.util.ListIterator
|
||||
public final boolean hasNext() {
|
||||
return this.zzb < this.zza;
|
||||
}
|
||||
|
||||
@Override // java.util.ListIterator
|
||||
public final boolean hasPrevious() {
|
||||
return this.zzb > 0;
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator, java.util.ListIterator
|
||||
public final Object next() {
|
||||
if (!hasNext()) {
|
||||
throw new NoSuchElementException();
|
||||
}
|
||||
int i = this.zzb;
|
||||
this.zzb = i + 1;
|
||||
return zza(i);
|
||||
}
|
||||
|
||||
@Override // java.util.ListIterator
|
||||
public final int nextIndex() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
@Override // java.util.ListIterator
|
||||
public final Object previous() {
|
||||
if (!hasPrevious()) {
|
||||
throw new NoSuchElementException();
|
||||
}
|
||||
int i = this.zzb - 1;
|
||||
this.zzb = i;
|
||||
return zza(i);
|
||||
}
|
||||
|
||||
@Override // java.util.ListIterator
|
||||
public final int previousIndex() {
|
||||
return this.zzb - 1;
|
||||
}
|
||||
|
||||
public abstract Object zza(int i);
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.lang.reflect.Array;
|
||||
import java.util.AbstractCollection;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class zzdp extends AbstractCollection implements Serializable {
|
||||
private static final Object[] zza = new Object[0];
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection
|
||||
@Deprecated
|
||||
public final boolean add(Object obj) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection
|
||||
@Deprecated
|
||||
public final boolean addAll(Collection collection) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection
|
||||
@Deprecated
|
||||
public final void clear() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection
|
||||
@Deprecated
|
||||
public final boolean remove(Object obj) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection
|
||||
@Deprecated
|
||||
public final boolean removeAll(Collection collection) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection
|
||||
@Deprecated
|
||||
public final boolean retainAll(Collection collection) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection
|
||||
public final Object[] toArray() {
|
||||
return toArray(zza);
|
||||
}
|
||||
|
||||
public int zza(Object[] objArr, int i) {
|
||||
throw null;
|
||||
}
|
||||
|
||||
public int zzb() {
|
||||
throw null;
|
||||
}
|
||||
|
||||
public int zzc() {
|
||||
throw null;
|
||||
}
|
||||
|
||||
public zzds zzd() {
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable
|
||||
/* renamed from: zze, reason: merged with bridge method [inline-methods] */
|
||||
public abstract zzdu iterator();
|
||||
|
||||
public abstract boolean zzf();
|
||||
|
||||
public Object[] zzg() {
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection
|
||||
public final Object[] toArray(Object[] objArr) {
|
||||
objArr.getClass();
|
||||
int size = size();
|
||||
int length = objArr.length;
|
||||
if (length < size) {
|
||||
Object[] zzg = zzg();
|
||||
if (zzg == null) {
|
||||
objArr = (Object[]) Array.newInstance(objArr.getClass().getComponentType(), size);
|
||||
} else {
|
||||
return Arrays.copyOfRange(zzg, zzc(), zzb(), objArr.getClass());
|
||||
}
|
||||
} else if (length > size) {
|
||||
objArr[size] = null;
|
||||
}
|
||||
zza(objArr, 0);
|
||||
return objArr;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzdq extends zzdo {
|
||||
private final zzds zza;
|
||||
|
||||
public zzdq(zzds zzdsVar, int i) {
|
||||
super(zzdsVar.size(), i);
|
||||
this.zza = zzdsVar;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzdo
|
||||
public final Object zza(int i) {
|
||||
return this.zza.get(i);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzdr extends zzds {
|
||||
final transient int zza;
|
||||
final transient int zzb;
|
||||
final /* synthetic */ zzds zzc;
|
||||
|
||||
public zzdr(zzds zzdsVar, int i, int i4) {
|
||||
this.zzc = zzdsVar;
|
||||
this.zza = i;
|
||||
this.zzb = i4;
|
||||
}
|
||||
|
||||
@Override // java.util.List
|
||||
public final Object get(int i) {
|
||||
zzdm.zza(i, this.zzb, FirebaseAnalytics.Param.INDEX);
|
||||
return this.zzc.get(i + this.zza);
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
|
||||
public final int size() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzdp
|
||||
public final int zzb() {
|
||||
return this.zzc.zzc() + this.zza + this.zzb;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzdp
|
||||
public final int zzc() {
|
||||
return this.zzc.zzc() + this.zza;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzdp
|
||||
public final boolean zzf() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzdp
|
||||
public final Object[] zzg() {
|
||||
return this.zzc.zzg();
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzds, java.util.List
|
||||
/* renamed from: zzh, reason: merged with bridge method [inline-methods] */
|
||||
public final zzds subList(int i, int i4) {
|
||||
zzdm.zzc(i, i4, this.zzb);
|
||||
zzds zzdsVar = this.zzc;
|
||||
int i5 = this.zza;
|
||||
return zzdsVar.subList(i + i5, i4 + i5);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,184 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
import java.util.RandomAccess;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class zzds extends zzdp implements List, RandomAccess {
|
||||
private static final zzdv zza = new zzdq(zzdt.zza, 0);
|
||||
|
||||
public static zzds zzi(Object[] objArr, int i) {
|
||||
return i == 0 ? zzdt.zza : new zzdt(objArr, i);
|
||||
}
|
||||
|
||||
public static zzds zzj(Collection collection) {
|
||||
if (collection instanceof zzdp) {
|
||||
zzds zzd = ((zzdp) collection).zzd();
|
||||
if (!zzd.zzf()) {
|
||||
return zzd;
|
||||
}
|
||||
Object[] array = zzd.toArray();
|
||||
return zzi(array, array.length);
|
||||
}
|
||||
Object[] array2 = collection.toArray();
|
||||
int length = array2.length;
|
||||
for (int i = 0; i < length; i++) {
|
||||
if (array2[i] == null) {
|
||||
throw new NullPointerException(a.l(i, "at index "));
|
||||
}
|
||||
}
|
||||
return zzi(array2, length);
|
||||
}
|
||||
|
||||
public static zzds zzk() {
|
||||
return zzdt.zza;
|
||||
}
|
||||
|
||||
@Override // java.util.List
|
||||
@Deprecated
|
||||
public final void add(int i, Object obj) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override // java.util.List
|
||||
@Deprecated
|
||||
public final boolean addAll(int i, Collection collection) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
|
||||
public final boolean contains(Object obj) {
|
||||
return indexOf(obj) >= 0;
|
||||
}
|
||||
|
||||
@Override // java.util.Collection, java.util.List
|
||||
public final boolean equals(Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof List)) {
|
||||
return false;
|
||||
}
|
||||
List list = (List) obj;
|
||||
int size = size();
|
||||
if (size != list.size()) {
|
||||
return false;
|
||||
}
|
||||
if (list instanceof RandomAccess) {
|
||||
for (int i = 0; i < size; i++) {
|
||||
if (!zzdl.zza(get(i), list.get(i))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
Iterator it = iterator();
|
||||
Iterator it2 = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
if (!it2.hasNext() || !zzdl.zza(it.next(), it2.next())) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return !it2.hasNext();
|
||||
}
|
||||
|
||||
@Override // java.util.Collection, java.util.List
|
||||
public final int hashCode() {
|
||||
int size = size();
|
||||
int i = 1;
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
i = (i * 31) + get(i4).hashCode();
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
@Override // java.util.List
|
||||
public final int indexOf(Object obj) {
|
||||
if (obj == null) {
|
||||
return -1;
|
||||
}
|
||||
int size = size();
|
||||
for (int i = 0; i < size; i++) {
|
||||
if (obj.equals(get(i))) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzdp, java.util.AbstractCollection, java.util.Collection, java.lang.Iterable
|
||||
public final /* synthetic */ Iterator iterator() {
|
||||
return listIterator(0);
|
||||
}
|
||||
|
||||
@Override // java.util.List
|
||||
public final int lastIndexOf(Object obj) {
|
||||
if (obj == null) {
|
||||
return -1;
|
||||
}
|
||||
for (int size = size() - 1; size >= 0; size--) {
|
||||
if (obj.equals(get(size))) {
|
||||
return size;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // java.util.List
|
||||
public final /* synthetic */ ListIterator listIterator() {
|
||||
return listIterator(0);
|
||||
}
|
||||
|
||||
@Override // java.util.List
|
||||
@Deprecated
|
||||
public final Object remove(int i) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override // java.util.List
|
||||
@Deprecated
|
||||
public final Object set(int i, Object obj) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzdp
|
||||
public int zza(Object[] objArr, int i) {
|
||||
int size = size();
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
objArr[i4] = get(i4);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzdp
|
||||
@Deprecated
|
||||
public final zzds zzd() {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzdp
|
||||
/* renamed from: zze */
|
||||
public final zzdu iterator() {
|
||||
return listIterator(0);
|
||||
}
|
||||
|
||||
@Override // java.util.List
|
||||
/* renamed from: zzh */
|
||||
public zzds subList(int i, int i4) {
|
||||
zzdm.zzc(i, i4, size());
|
||||
int i5 = i4 - i;
|
||||
return i5 == size() ? this : i5 == 0 ? zzdt.zza : new zzdr(this, i, i5);
|
||||
}
|
||||
|
||||
@Override // java.util.List
|
||||
/* renamed from: zzl, reason: merged with bridge method [inline-methods] */
|
||||
public final zzdv listIterator(int i) {
|
||||
zzdm.zzb(i, size(), FirebaseAnalytics.Param.INDEX);
|
||||
return isEmpty() ? zza : new zzdq(this, i);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzdt extends zzds {
|
||||
static final zzds zza = new zzdt(new Object[0], 0);
|
||||
final transient Object[] zzb;
|
||||
private final transient int zzc;
|
||||
|
||||
public zzdt(Object[] objArr, int i) {
|
||||
this.zzb = objArr;
|
||||
this.zzc = i;
|
||||
}
|
||||
|
||||
@Override // java.util.List
|
||||
public final Object get(int i) {
|
||||
zzdm.zza(i, this.zzc, FirebaseAnalytics.Param.INDEX);
|
||||
Object obj = this.zzb[i];
|
||||
obj.getClass();
|
||||
return obj;
|
||||
}
|
||||
|
||||
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
|
||||
public final int size() {
|
||||
return this.zzc;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzds, com.google.android.gms.internal.location.zzdp
|
||||
public final int zza(Object[] objArr, int i) {
|
||||
System.arraycopy(this.zzb, 0, objArr, 0, this.zzc);
|
||||
return this.zzc;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzdp
|
||||
public final int zzb() {
|
||||
return this.zzc;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzdp
|
||||
public final int zzc() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzdp
|
||||
public final boolean zzf() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzdp
|
||||
public final Object[] zzg() {
|
||||
return this.zzb;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class zzdu implements Iterator {
|
||||
@Override // java.util.Iterator
|
||||
@Deprecated
|
||||
public final void remove() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import java.util.ListIterator;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class zzdv extends zzdu implements ListIterator {
|
||||
@Override // java.util.ListIterator
|
||||
@Deprecated
|
||||
public final void add(Object obj) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override // java.util.ListIterator
|
||||
@Deprecated
|
||||
public final void set(Object obj) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
enum zzdw implements Executor {
|
||||
INSTANCE;
|
||||
|
||||
@Override // java.util.concurrent.Executor
|
||||
public final void execute(Runnable runnable) {
|
||||
runnable.run();
|
||||
}
|
||||
|
||||
@Override // java.lang.Enum
|
||||
public final String toString() {
|
||||
return "MoreExecutors.directExecutor()";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzdx {
|
||||
public static Executor zza() {
|
||||
return zzdw.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.Feature;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zze implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
List zzk = zzds.zzk();
|
||||
int i = 0;
|
||||
int i4 = 0;
|
||||
int i5 = 0;
|
||||
String str = null;
|
||||
String str2 = null;
|
||||
String str3 = null;
|
||||
zzd zzdVar = null;
|
||||
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:
|
||||
str = SafeParcelReader.createString(parcel, readHeader);
|
||||
break;
|
||||
case 4:
|
||||
str2 = SafeParcelReader.createString(parcel, readHeader);
|
||||
break;
|
||||
case 5:
|
||||
i5 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 6:
|
||||
str3 = SafeParcelReader.createString(parcel, readHeader);
|
||||
break;
|
||||
case 7:
|
||||
zzdVar = (zzd) SafeParcelReader.createParcelable(parcel, readHeader, zzd.CREATOR);
|
||||
break;
|
||||
case 8:
|
||||
zzk = SafeParcelReader.createTypedList(parcel, readHeader, Feature.CREATOR);
|
||||
break;
|
||||
default:
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
break;
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new zzd(i, i4, str, str2, str3, i5, zzk, zzdVar);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new zzd[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Looper;
|
||||
import android.os.RemoteException;
|
||||
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.Preconditions;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzf extends GmsClient {
|
||||
public zzf(Context context, Looper looper, ClientSettings clientSettings, ConnectionCallbacks connectionCallbacks, OnConnectionFailedListener onConnectionFailedListener) {
|
||||
super(context, looper, 23, 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.location.internal.IGoogleLocationManagerService");
|
||||
return queryLocalInterface instanceof zzo ? (zzo) queryLocalInterface : new zzn(iBinder);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final Feature[] getApiFeatures() {
|
||||
return com.google.android.gms.location.zzm.zzl;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final Bundle getGetServiceRequestExtraArgs() {
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putString("client_name", "activity_recognition");
|
||||
return bundle;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient, com.google.android.gms.common.api.Api.Client
|
||||
public final int getMinApkVersion() {
|
||||
return 11717000;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final String getServiceDescriptor() {
|
||||
return "com.google.android.gms.location.internal.IGoogleLocationManagerService";
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final String getStartServiceAction() {
|
||||
return "com.google.android.location.internal.GoogleLocationManagerService.START";
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final boolean usesClientTelemetry() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public final void zzp(PendingIntent pendingIntent) throws RemoteException {
|
||||
Preconditions.checkNotNull(pendingIntent);
|
||||
((zzo) getService()).zzm(pendingIntent);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.api.Result;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
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 = "FusedLocationProviderResultCreator")
|
||||
@SafeParcelable.Reserved({1000})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzg extends AbstractSafeParcelable implements Result {
|
||||
|
||||
@SafeParcelable.Field(getter = "getStatus", id = 1)
|
||||
private final Status zzb;
|
||||
public static final zzg zza = new zzg(Status.RESULT_SUCCESS);
|
||||
public static final Parcelable.Creator<zzg> CREATOR = new zzh();
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public zzg(@SafeParcelable.Param(id = 1) Status status) {
|
||||
this.zzb = status;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.Result
|
||||
public final Status getStatus() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeParcelable(parcel, 1, this.zzb, i, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzh implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
Status status = null;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
if (SafeParcelReader.getFieldId(readHeader) != 1) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
status = (Status) SafeParcelReader.createParcelable(parcel, readHeader, Status.CREATOR);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new zzg(status);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new zzg[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.IBinder;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzi extends zza implements zzk {
|
||||
public zzi(IBinder iBinder) {
|
||||
super(iBinder, "com.google.android.gms.location.internal.IFusedLocationProviderCallback");
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzk
|
||||
public final void zzd(zzg zzgVar) throws RemoteException {
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzk
|
||||
public final void zze() throws RemoteException {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class zzj extends zzb implements zzk {
|
||||
public zzj() {
|
||||
super("com.google.android.gms.location.internal.IFusedLocationProviderCallback");
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzb
|
||||
public final boolean zza(int i, Parcel parcel, Parcel parcel2, int i4) throws RemoteException {
|
||||
if (i == 1) {
|
||||
zzg zzgVar = (zzg) zzc.zza(parcel, zzg.CREATOR);
|
||||
zzc.zzb(parcel);
|
||||
zzd(zzgVar);
|
||||
} else {
|
||||
if (i != 2) {
|
||||
return false;
|
||||
}
|
||||
zze();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.IInterface;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface zzk extends IInterface {
|
||||
void zzd(zzg zzgVar) throws RemoteException;
|
||||
|
||||
void zze() throws RemoteException;
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class zzl extends zzb implements zzm {
|
||||
public zzl() {
|
||||
super("com.google.android.gms.location.internal.IGeofencerCallbacks");
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzb
|
||||
public final boolean zza(int i, Parcel parcel, Parcel parcel2, int i4) throws RemoteException {
|
||||
if (i == 1) {
|
||||
int readInt = parcel.readInt();
|
||||
String[] createStringArray = parcel.createStringArray();
|
||||
zzc.zzb(parcel);
|
||||
zzb(readInt, createStringArray);
|
||||
} else if (i == 2) {
|
||||
int readInt2 = parcel.readInt();
|
||||
String[] createStringArray2 = parcel.createStringArray();
|
||||
zzc.zzb(parcel);
|
||||
zzd(readInt2, createStringArray2);
|
||||
} else {
|
||||
if (i != 3) {
|
||||
return false;
|
||||
}
|
||||
int readInt3 = parcel.readInt();
|
||||
PendingIntent pendingIntent = (PendingIntent) zzc.zza(parcel, PendingIntent.CREATOR);
|
||||
zzc.zzb(parcel);
|
||||
zzc(readInt3, pendingIntent);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.os.IInterface;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface zzm extends IInterface {
|
||||
void zzb(int i, String[] strArr) throws RemoteException;
|
||||
|
||||
void zzc(int i, PendingIntent pendingIntent) throws RemoteException;
|
||||
|
||||
void zzd(int i, String[] strArr) throws RemoteException;
|
||||
}
|
||||
@@ -0,0 +1,217 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.location.Location;
|
||||
import android.os.IBinder;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.internal.IStatusCallback;
|
||||
import com.google.android.gms.common.internal.ICancelToken;
|
||||
import com.google.android.gms.location.ActivityTransitionRequest;
|
||||
import com.google.android.gms.location.CurrentLocationRequest;
|
||||
import com.google.android.gms.location.GeofencingRequest;
|
||||
import com.google.android.gms.location.LastLocationRequest;
|
||||
import com.google.android.gms.location.LocationAvailability;
|
||||
import com.google.android.gms.location.LocationRequest;
|
||||
import com.google.android.gms.location.LocationSettingsRequest;
|
||||
import com.google.android.gms.location.SleepSegmentRequest;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzn extends zza implements zzo {
|
||||
public zzn(IBinder iBinder) {
|
||||
super(iBinder, "com.google.android.gms.location.internal.IGoogleLocationManagerService");
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final Location zzd() throws RemoteException {
|
||||
Parcel zzb = zzb(7, zza());
|
||||
Location location = (Location) zzc.zza(zzb, Location.CREATOR);
|
||||
zzb.recycle();
|
||||
return location;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final ICancelToken zze(CurrentLocationRequest currentLocationRequest, zzq zzqVar) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zzc.zzd(zza, currentLocationRequest);
|
||||
zzc.zze(zza, zzqVar);
|
||||
Parcel zzb = zzb(87, zza);
|
||||
ICancelToken asInterface = ICancelToken.Stub.asInterface(zzb.readStrongBinder());
|
||||
zzb.recycle();
|
||||
return asInterface;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final LocationAvailability zzf(String str) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zza.writeString(str);
|
||||
Parcel zzb = zzb(34, zza);
|
||||
LocationAvailability locationAvailability = (LocationAvailability) zzc.zza(zzb, LocationAvailability.CREATOR);
|
||||
zzb.recycle();
|
||||
return locationAvailability;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final void zzg(GeofencingRequest geofencingRequest, PendingIntent pendingIntent, zzm zzmVar) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zzc.zzd(zza, geofencingRequest);
|
||||
zzc.zzd(zza, pendingIntent);
|
||||
zzc.zze(zza, zzmVar);
|
||||
zzc(57, zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final void zzh(LocationSettingsRequest locationSettingsRequest, zzs zzsVar, String str) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zzc.zzd(zza, locationSettingsRequest);
|
||||
zzc.zze(zza, zzsVar);
|
||||
zza.writeString(null);
|
||||
zzc(63, zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final void zzi(zzk zzkVar) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zzc.zze(zza, zzkVar);
|
||||
zzc(67, zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final void zzj(LastLocationRequest lastLocationRequest, zzq zzqVar) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zzc.zzd(zza, lastLocationRequest);
|
||||
zzc.zze(zza, zzqVar);
|
||||
zzc(82, zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final void zzk(zzdb zzdbVar, LocationRequest locationRequest, IStatusCallback iStatusCallback) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zzc.zzd(zza, zzdbVar);
|
||||
zzc.zzd(zza, locationRequest);
|
||||
zzc.zze(zza, iStatusCallback);
|
||||
zzc(88, zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final void zzl(PendingIntent pendingIntent, IStatusCallback iStatusCallback) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zzc.zzd(zza, pendingIntent);
|
||||
zzc.zze(zza, iStatusCallback);
|
||||
zzc(73, zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final void zzm(PendingIntent pendingIntent) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zzc.zzd(zza, pendingIntent);
|
||||
zzc(6, zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final void zzn(PendingIntent pendingIntent, zzm zzmVar, String str) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zzc.zzd(zza, pendingIntent);
|
||||
zzc.zze(zza, zzmVar);
|
||||
zza.writeString(str);
|
||||
zzc(2, zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final void zzo(String[] strArr, zzm zzmVar, String str) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zza.writeStringArray(strArr);
|
||||
zzc.zze(zza, zzmVar);
|
||||
zza.writeString(str);
|
||||
zzc(3, zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final void zzp(PendingIntent pendingIntent, IStatusCallback iStatusCallback) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zzc.zzd(zza, pendingIntent);
|
||||
zzc.zze(zza, iStatusCallback);
|
||||
zzc(69, zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final void zzq(ActivityTransitionRequest activityTransitionRequest, PendingIntent pendingIntent, IStatusCallback iStatusCallback) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zzc.zzd(zza, activityTransitionRequest);
|
||||
zzc.zzd(zza, pendingIntent);
|
||||
zzc.zze(zza, iStatusCallback);
|
||||
zzc(72, zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final void zzr(long j4, boolean z3, PendingIntent pendingIntent) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zza.writeLong(j4);
|
||||
zzc.zzc(zza, true);
|
||||
zzc.zzd(zza, pendingIntent);
|
||||
zzc(5, zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final void zzs(com.google.android.gms.location.zzb zzbVar, PendingIntent pendingIntent, IStatusCallback iStatusCallback) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zzc.zzd(zza, zzbVar);
|
||||
zzc.zzd(zza, pendingIntent);
|
||||
zzc.zze(zza, iStatusCallback);
|
||||
zzc(70, zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final void zzt(PendingIntent pendingIntent, SleepSegmentRequest sleepSegmentRequest, IStatusCallback iStatusCallback) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zzc.zzd(zza, pendingIntent);
|
||||
zzc.zzd(zza, sleepSegmentRequest);
|
||||
zzc.zze(zza, iStatusCallback);
|
||||
zzc(79, zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final void zzu(Location location) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zzc.zzd(zza, location);
|
||||
zzc(13, zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final void zzv(Location location, IStatusCallback iStatusCallback) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zzc.zzd(zza, location);
|
||||
zzc.zze(zza, iStatusCallback);
|
||||
zzc(85, zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final void zzw(boolean z3) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zzc.zzc(zza, z3);
|
||||
zzc(12, zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final void zzx(boolean z3, IStatusCallback iStatusCallback) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zzc.zzc(zza, z3);
|
||||
zzc.zze(zza, iStatusCallback);
|
||||
zzc(84, zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final void zzy(zzdb zzdbVar, IStatusCallback iStatusCallback) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zzc.zzd(zza, zzdbVar);
|
||||
zzc.zze(zza, iStatusCallback);
|
||||
zzc(89, zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzo
|
||||
public final void zzz(zzdf zzdfVar) throws RemoteException {
|
||||
Parcel zza = zza();
|
||||
zzc.zzd(zza, zzdfVar);
|
||||
zzc(59, zza);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.location.Location;
|
||||
import android.os.IInterface;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.internal.IStatusCallback;
|
||||
import com.google.android.gms.common.internal.ICancelToken;
|
||||
import com.google.android.gms.location.ActivityTransitionRequest;
|
||||
import com.google.android.gms.location.CurrentLocationRequest;
|
||||
import com.google.android.gms.location.GeofencingRequest;
|
||||
import com.google.android.gms.location.LastLocationRequest;
|
||||
import com.google.android.gms.location.LocationAvailability;
|
||||
import com.google.android.gms.location.LocationRequest;
|
||||
import com.google.android.gms.location.LocationSettingsRequest;
|
||||
import com.google.android.gms.location.SleepSegmentRequest;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface zzo extends IInterface {
|
||||
@Deprecated
|
||||
Location zzd() throws RemoteException;
|
||||
|
||||
@Deprecated
|
||||
ICancelToken zze(CurrentLocationRequest currentLocationRequest, zzq zzqVar) throws RemoteException;
|
||||
|
||||
@Deprecated
|
||||
LocationAvailability zzf(String str) throws RemoteException;
|
||||
|
||||
void zzg(GeofencingRequest geofencingRequest, PendingIntent pendingIntent, zzm zzmVar) throws RemoteException;
|
||||
|
||||
void zzh(LocationSettingsRequest locationSettingsRequest, zzs zzsVar, String str) throws RemoteException;
|
||||
|
||||
void zzi(zzk zzkVar) throws RemoteException;
|
||||
|
||||
@Deprecated
|
||||
void zzj(LastLocationRequest lastLocationRequest, zzq zzqVar) throws RemoteException;
|
||||
|
||||
void zzk(zzdb zzdbVar, LocationRequest locationRequest, IStatusCallback iStatusCallback) throws RemoteException;
|
||||
|
||||
void zzl(PendingIntent pendingIntent, IStatusCallback iStatusCallback) throws RemoteException;
|
||||
|
||||
void zzm(PendingIntent pendingIntent) throws RemoteException;
|
||||
|
||||
void zzn(PendingIntent pendingIntent, zzm zzmVar, String str) throws RemoteException;
|
||||
|
||||
void zzo(String[] strArr, zzm zzmVar, String str) throws RemoteException;
|
||||
|
||||
void zzp(PendingIntent pendingIntent, IStatusCallback iStatusCallback) throws RemoteException;
|
||||
|
||||
void zzq(ActivityTransitionRequest activityTransitionRequest, PendingIntent pendingIntent, IStatusCallback iStatusCallback) throws RemoteException;
|
||||
|
||||
void zzr(long j4, boolean z3, PendingIntent pendingIntent) throws RemoteException;
|
||||
|
||||
void zzs(com.google.android.gms.location.zzb zzbVar, PendingIntent pendingIntent, IStatusCallback iStatusCallback) throws RemoteException;
|
||||
|
||||
void zzt(PendingIntent pendingIntent, SleepSegmentRequest sleepSegmentRequest, IStatusCallback iStatusCallback) throws RemoteException;
|
||||
|
||||
@Deprecated
|
||||
void zzu(Location location) throws RemoteException;
|
||||
|
||||
void zzv(Location location, IStatusCallback iStatusCallback) throws RemoteException;
|
||||
|
||||
@Deprecated
|
||||
void zzw(boolean z3) throws RemoteException;
|
||||
|
||||
void zzx(boolean z3, IStatusCallback iStatusCallback) throws RemoteException;
|
||||
|
||||
void zzy(zzdb zzdbVar, IStatusCallback iStatusCallback) throws RemoteException;
|
||||
|
||||
@Deprecated
|
||||
void zzz(zzdf zzdfVar) throws RemoteException;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.location.Location;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class zzp extends zzb implements zzq {
|
||||
public zzp() {
|
||||
super("com.google.android.gms.location.internal.ILocationStatusCallback");
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzb
|
||||
public final boolean zza(int i, Parcel parcel, Parcel parcel2, int i4) throws RemoteException {
|
||||
if (i != 1) {
|
||||
return false;
|
||||
}
|
||||
Status status = (Status) zzc.zza(parcel, Status.CREATOR);
|
||||
Location location = (Location) zzc.zza(parcel, Location.CREATOR);
|
||||
zzc.zzb(parcel);
|
||||
zzb(status, location);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.location.Location;
|
||||
import android.os.IInterface;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface zzq extends IInterface {
|
||||
void zzb(Status status, Location location) throws RemoteException;
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.location.LocationSettingsResult;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class zzr extends zzb implements zzs {
|
||||
public zzr() {
|
||||
super("com.google.android.gms.location.internal.ISettingsCallbacks");
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzb
|
||||
public final boolean zza(int i, Parcel parcel, Parcel parcel2, int i4) throws RemoteException {
|
||||
if (i != 1) {
|
||||
return false;
|
||||
}
|
||||
LocationSettingsResult locationSettingsResult = (LocationSettingsResult) zzc.zza(parcel, LocationSettingsResult.CREATOR);
|
||||
zzc.zzb(parcel);
|
||||
zzb(locationSettingsResult);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.os.IInterface;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.location.LocationSettingsResult;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface zzs extends IInterface {
|
||||
void zzb(LocationSettingsResult locationSettingsResult) throws RemoteException;
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzt extends zzv {
|
||||
final /* synthetic */ long zza;
|
||||
final /* synthetic */ PendingIntent zzb;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public zzt(zzw zzwVar, GoogleApiClient googleApiClient, long j4, PendingIntent pendingIntent) {
|
||||
super(googleApiClient);
|
||||
this.zza = j4;
|
||||
this.zzb = pendingIntent;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
public final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
zzf zzfVar = (zzf) anyClient;
|
||||
long j4 = this.zza;
|
||||
PendingIntent pendingIntent = this.zzb;
|
||||
Preconditions.checkNotNull(pendingIntent);
|
||||
Preconditions.checkArgument(j4 >= 0, "detectionIntervalMillis must be >= 0");
|
||||
((zzo) zzfVar.getService()).zzr(j4, true, pendingIntent);
|
||||
setResult((zzt) Status.RESULT_SUCCESS);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzu extends zzv {
|
||||
final /* synthetic */ PendingIntent zza;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public zzu(zzw zzwVar, GoogleApiClient googleApiClient, PendingIntent pendingIntent) {
|
||||
super(googleApiClient);
|
||||
this.zza = pendingIntent;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
public final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzf) anyClient).zzp(this.zza);
|
||||
setResult((zzu) Status.RESULT_SUCCESS);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.api.Result;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.common.api.internal.BaseImplementation;
|
||||
import com.google.android.gms.location.ActivityRecognition;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class zzv extends BaseImplementation.ApiMethodImpl {
|
||||
public zzv(GoogleApiClient googleApiClient) {
|
||||
super(ActivityRecognition.API, googleApiClient);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BasePendingResult
|
||||
public final /* bridge */ /* synthetic */ Result createFailedResult(Status status) {
|
||||
return status;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl, com.google.android.gms.common.api.internal.BaseImplementation.ResultHolder
|
||||
@KeepForSdk
|
||||
public final /* bridge */ /* synthetic */ void setResult(Object obj) {
|
||||
setResult((zzv) obj);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.google.android.gms.internal.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.api.PendingResult;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.location.ActivityRecognitionApi;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzw implements ActivityRecognitionApi {
|
||||
@Override // com.google.android.gms.location.ActivityRecognitionApi
|
||||
public final PendingResult<Status> removeActivityUpdates(GoogleApiClient googleApiClient, PendingIntent pendingIntent) {
|
||||
return googleApiClient.execute(new zzu(this, googleApiClient, pendingIntent));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.ActivityRecognitionApi
|
||||
public final PendingResult<Status> requestActivityUpdates(GoogleApiClient googleApiClient, long j4, PendingIntent pendingIntent) {
|
||||
return googleApiClient.execute(new zzt(this, googleApiClient, j4, pendingIntent));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user