Initial version -- added millennium read funcionality
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1,56 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public class zza implements IInterface {
|
||||
private final IBinder zza;
|
||||
private final String zzb;
|
||||
|
||||
protected zza(IBinder iBinder, String str) {
|
||||
this.zza = iBinder;
|
||||
this.zzb = str;
|
||||
}
|
||||
|
||||
@Override // android.os.IInterface
|
||||
public final IBinder asBinder() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
protected final Parcel zza() {
|
||||
Parcel parcelObtain = Parcel.obtain();
|
||||
parcelObtain.writeInterfaceToken(this.zzb);
|
||||
return parcelObtain;
|
||||
}
|
||||
|
||||
protected final Parcel zzb(int i, Parcel parcel) throws RemoteException {
|
||||
Parcel parcelObtain = Parcel.obtain();
|
||||
try {
|
||||
try {
|
||||
this.zza.transact(i, parcel, parcelObtain, 0);
|
||||
parcelObtain.readException();
|
||||
return parcelObtain;
|
||||
} catch (RuntimeException e) {
|
||||
parcelObtain.recycle();
|
||||
throw e;
|
||||
}
|
||||
} finally {
|
||||
parcel.recycle();
|
||||
}
|
||||
}
|
||||
|
||||
protected final void zzc(int i, Parcel parcel) throws RemoteException {
|
||||
Parcel parcelObtain = Parcel.obtain();
|
||||
try {
|
||||
this.zza.transact(i, parcel, parcelObtain, 0);
|
||||
parcelObtain.readException();
|
||||
} finally {
|
||||
parcel.recycle();
|
||||
parcelObtain.recycle();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.location.LocationSettingsResult;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public abstract class zzaa extends zzb implements zzab {
|
||||
public zzaa() {
|
||||
super("com.google.android.gms.location.internal.ISettingsCallbacks");
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzb
|
||||
protected final boolean zza(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
|
||||
if (i != 1) {
|
||||
return false;
|
||||
}
|
||||
LocationSettingsResult locationSettingsResult = (LocationSettingsResult) zzc.zza(parcel, LocationSettingsResult.CREATOR);
|
||||
zzc.zzd(parcel);
|
||||
zzb(locationSettingsResult);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.os.IInterface;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.location.LocationSettingsResult;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public interface zzab extends IInterface {
|
||||
void zzb(LocationSettingsResult locationSettingsResult) throws RemoteException;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzac extends zzae {
|
||||
final /* synthetic */ long zza;
|
||||
final /* synthetic */ PendingIntent zzb;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
zzac(zzaf zzafVar, GoogleApiClient googleApiClient, long j, PendingIntent pendingIntent) {
|
||||
super(googleApiClient);
|
||||
this.zza = j;
|
||||
this.zzb = pendingIntent;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
protected final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
PendingIntent pendingIntent = this.zzb;
|
||||
zzg zzgVar = (zzg) anyClient;
|
||||
Preconditions.checkNotNull(pendingIntent);
|
||||
long j = this.zza;
|
||||
Preconditions.checkArgument(j >= 0, "detectionIntervalMillis must be >= 0");
|
||||
((zzv) zzgVar.getService()).zzh(j, true, pendingIntent);
|
||||
setResult(Status.RESULT_SUCCESS);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzad extends zzae {
|
||||
final /* synthetic */ PendingIntent zza;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
zzad(zzaf zzafVar, GoogleApiClient googleApiClient, PendingIntent pendingIntent) {
|
||||
super(googleApiClient);
|
||||
this.zza = pendingIntent;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
protected final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzg) anyClient).zzp(this.zza);
|
||||
setResult(Status.RESULT_SUCCESS);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
abstract class zzae extends BaseImplementation.ApiMethodImpl {
|
||||
public zzae(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
|
||||
public final /* bridge */ /* synthetic */ void setResult(Object obj) {
|
||||
super.setResult((Result) obj);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zzaf implements ActivityRecognitionApi {
|
||||
@Override // com.google.android.gms.location.ActivityRecognitionApi
|
||||
public final PendingResult<Status> removeActivityUpdates(GoogleApiClient googleApiClient, PendingIntent pendingIntent) {
|
||||
return googleApiClient.execute(new zzad(this, googleApiClient, pendingIntent));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.ActivityRecognitionApi
|
||||
public final PendingResult<Status> requestActivityUpdates(GoogleApiClient googleApiClient, long j, PendingIntent pendingIntent) {
|
||||
return googleApiClient.execute(new zzac(this, googleApiClient, j, pendingIntent));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzag extends Api.AbstractClientBuilder {
|
||||
zzag() {
|
||||
}
|
||||
|
||||
@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 zzg(context, looper, clientSettings, connectionCallbacks, onConnectionFailedListener);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzah extends IStatusCallback.Stub {
|
||||
final /* synthetic */ TaskCompletionSource zza;
|
||||
|
||||
zzah(zzaj zzajVar, 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,32 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzai implements BaseImplementation.ResultHolder {
|
||||
private final TaskCompletionSource zza;
|
||||
|
||||
public zzai(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,131 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.PendingIntent;
|
||||
import android.content.Context;
|
||||
import android.os.RemoteException;
|
||||
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.location.zza;
|
||||
import com.google.android.gms.location.zzb;
|
||||
import com.google.android.gms.location.zzo;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zzaj 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 zzag(), clientKey);
|
||||
}
|
||||
|
||||
public zzaj(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.zzam
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
Api api = zzaj.zzb;
|
||||
zzai zzaiVar = new zzai((TaskCompletionSource) obj2);
|
||||
Preconditions.checkNotNull(zzaiVar, "ResultHolder not provided.");
|
||||
((zzv) ((zzg) obj).getService()).zzk(pendingIntent, new StatusCallback(zzaiVar));
|
||||
}
|
||||
}).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.zzak
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
Api api = zzaj.zzb;
|
||||
((zzg) obj).zzp(pendingIntent);
|
||||
((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.zzan
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
Api api = zzaj.zzb;
|
||||
zzai zzaiVar = new zzai((TaskCompletionSource) obj2);
|
||||
PendingIntent pendingIntent2 = pendingIntent;
|
||||
Preconditions.checkNotNull(pendingIntent2, "PendingIntent must be specified.");
|
||||
Preconditions.checkNotNull(zzaiVar, "ResultHolder not provided.");
|
||||
((zzv) ((zzg) obj).getService()).zzn(pendingIntent2, new StatusCallback(zzaiVar));
|
||||
}
|
||||
}).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.zzal
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
Api api = zzaj.zzb;
|
||||
zzai zzaiVar = new zzai((TaskCompletionSource) obj2);
|
||||
ActivityTransitionRequest activityTransitionRequest2 = activityTransitionRequest;
|
||||
Preconditions.checkNotNull(activityTransitionRequest2, "activityTransitionRequest must be specified.");
|
||||
PendingIntent pendingIntent2 = pendingIntent;
|
||||
Preconditions.checkNotNull(pendingIntent2, "PendingIntent must be specified.");
|
||||
Preconditions.checkNotNull(zzaiVar, "ResultHolder not provided.");
|
||||
((zzv) ((zzg) obj).getService()).zzj(activityTransitionRequest2, pendingIntent2, new StatusCallback(zzaiVar));
|
||||
}
|
||||
}).setMethodKey(2405).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.ActivityRecognitionClient
|
||||
public final Task<Void> requestActivityUpdates(long j, final PendingIntent pendingIntent) {
|
||||
zza zzaVar = new zza();
|
||||
zzaVar.zza(j);
|
||||
final zzb zzbVarZzb = zzaVar.zzb();
|
||||
zzbVarZzb.zza(getContextAttributionTag());
|
||||
return doWrite(TaskApiCall.builder().run(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzap
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
Api api = zzaj.zzb;
|
||||
zzai zzaiVar = new zzai((TaskCompletionSource) obj2);
|
||||
zzb zzbVar = zzbVarZzb;
|
||||
Preconditions.checkNotNull(zzbVar, "ActivityRecognitionRequest can't be null.");
|
||||
PendingIntent pendingIntent2 = pendingIntent;
|
||||
Preconditions.checkNotNull(pendingIntent2, "PendingIntent must be specified.");
|
||||
Preconditions.checkNotNull(zzaiVar, "ResultHolder not provided.");
|
||||
((zzv) ((zzg) obj).getService()).zzi(zzbVar, pendingIntent2, new StatusCallback(zzaiVar));
|
||||
}
|
||||
}).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.zzao
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
((zzv) ((zzg) obj).getService()).zzm(pendingIntent, sleepSegmentRequest, new zzah(this.zza, (TaskCompletionSource) obj2));
|
||||
}
|
||||
}).setFeatures(zzo.zzb).setMethodKey(2410).build());
|
||||
}
|
||||
|
||||
public zzaj(Context context) {
|
||||
super(context, (Api<Api.ApiOptions.NoOptions>) zzb, Api.ApiOptions.NO_OPTIONS, GoogleApi.Settings.DEFAULT_SETTINGS);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzaq extends zzba {
|
||||
zzaq(zzbb zzbbVar, GoogleApiClient googleApiClient) {
|
||||
super(googleApiClient);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
protected final /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzdz) anyClient).zzB(zzbb.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzar extends zzba {
|
||||
final /* synthetic */ ListenerHolder zza;
|
||||
final /* synthetic */ LocationRequest zzb;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
zzar(zzbb zzbbVar, GoogleApiClient googleApiClient, ListenerHolder listenerHolder, LocationRequest locationRequest) {
|
||||
super(googleApiClient);
|
||||
this.zza = listenerHolder;
|
||||
this.zzb = locationRequest;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
protected final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzdz) anyClient).zzs(new zzaz(this.zza), this.zzb, zzbb.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzas extends zzba {
|
||||
final /* synthetic */ ListenerHolder zza;
|
||||
final /* synthetic */ LocationRequest zzb;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
zzas(zzbb zzbbVar, GoogleApiClient googleApiClient, ListenerHolder listenerHolder, LocationRequest locationRequest) {
|
||||
super(googleApiClient);
|
||||
this.zza = listenerHolder;
|
||||
this.zzb = locationRequest;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
protected final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzdz) anyClient).zzt(new zzaz(this.zza), this.zzb, zzbb.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzat extends zzba {
|
||||
final /* synthetic */ PendingIntent zza;
|
||||
final /* synthetic */ LocationRequest zzb;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
zzat(zzbb zzbbVar, GoogleApiClient googleApiClient, PendingIntent pendingIntent, LocationRequest locationRequest) {
|
||||
super(googleApiClient);
|
||||
this.zza = pendingIntent;
|
||||
this.zzb = locationRequest;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
protected final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzdz) anyClient).zzu(this.zza, this.zzb, zzbb.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzau extends zzba {
|
||||
final /* synthetic */ LocationListener zza;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
zzau(zzbb zzbbVar, GoogleApiClient googleApiClient, LocationListener locationListener) {
|
||||
super(googleApiClient);
|
||||
this.zza = locationListener;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
protected final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzdz) anyClient).zzv(ListenerHolders.createListenerKey(this.zza, "LocationListener"), true, zzbb.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzav extends zzba {
|
||||
final /* synthetic */ PendingIntent zza;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
zzav(zzbb zzbbVar, GoogleApiClient googleApiClient, PendingIntent pendingIntent) {
|
||||
super(googleApiClient);
|
||||
this.zza = pendingIntent;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
protected final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzdz) anyClient).zzx(this.zza, zzbb.zza(this), null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzaw extends zzba {
|
||||
final /* synthetic */ LocationCallback zza;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
zzaw(zzbb zzbbVar, GoogleApiClient googleApiClient, LocationCallback locationCallback) {
|
||||
super(googleApiClient);
|
||||
this.zza = locationCallback;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
protected final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzdz) anyClient).zzw(ListenerHolders.createListenerKey(this.zza, "LocationCallback"), true, zzbb.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzax extends zzba {
|
||||
final /* synthetic */ boolean zza;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
zzax(zzbb zzbbVar, GoogleApiClient googleApiClient, boolean z) {
|
||||
super(googleApiClient);
|
||||
this.zza = z;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
protected final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
zzdz zzdzVar = (zzdz) anyClient;
|
||||
if (this.zza) {
|
||||
zzdzVar.zzy(zzbb.zza(this));
|
||||
} else {
|
||||
zzdzVar.zzz(zzbb.zza(this));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.location.Location;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzay extends zzba {
|
||||
final /* synthetic */ Location zza;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
zzay(zzbb zzbbVar, GoogleApiClient googleApiClient, Location location) {
|
||||
super(googleApiClient);
|
||||
this.zza = location;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
protected final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzdz) anyClient).zzA(this.zza, zzbb.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzaz implements zzdr {
|
||||
private ListenerHolder zza;
|
||||
|
||||
zzaz(ListenerHolder listenerHolder) {
|
||||
this.zza = listenerHolder;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzdr
|
||||
public final synchronized ListenerHolder zza() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzdr
|
||||
public final synchronized void zzb(ListenerHolder listenerHolder) {
|
||||
ListenerHolder listenerHolder2 = this.zza;
|
||||
if (listenerHolder2 != listenerHolder) {
|
||||
listenerHolder2.clear();
|
||||
this.zza = listenerHolder;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzdr
|
||||
public final void zzc() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.os.Binder;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public class zzb extends Binder implements IInterface {
|
||||
protected 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 i2) throws RemoteException {
|
||||
if (i <= 16777215) {
|
||||
parcel.enforceInterface(getInterfaceDescriptor());
|
||||
} else if (super.onTransact(i, parcel, parcel2, i2)) {
|
||||
return true;
|
||||
}
|
||||
return zza(i, parcel, parcel2, i2);
|
||||
}
|
||||
|
||||
protected boolean zza(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
abstract class zzba extends BaseImplementation.ApiMethodImpl {
|
||||
public zzba(GoogleApiClient googleApiClient) {
|
||||
super((Api<?>) zzbi.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
|
||||
public final /* bridge */ /* synthetic */ void setResult(Object obj) {
|
||||
super.setResult((Result) obj);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,169 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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.location.zzac;
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zzbb implements FusedLocationProviderApi {
|
||||
static /* synthetic */ TaskCompletionSource zza(final BaseImplementation.ResultHolder resultHolder) {
|
||||
TaskCompletionSource taskCompletionSource = new TaskCompletionSource();
|
||||
taskCompletionSource.getTask().addOnCompleteListener(new OnCompleteListener() { // from class: com.google.android.gms.internal.location.zzbd
|
||||
@Override // com.google.android.gms.tasks.OnCompleteListener
|
||||
public final /* synthetic */ void onComplete(Task task) {
|
||||
BaseImplementation.ResultHolder resultHolder2 = resultHolder;
|
||||
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 zzaq(this, googleApiClient));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderApi
|
||||
public final Location getLastLocation(GoogleApiClient googleApiClient) {
|
||||
Preconditions.checkArgument(googleApiClient != null, "GoogleApiClient parameter is required.");
|
||||
zzdz zzdzVar = (zzdz) googleApiClient.getClient(zzbi.zza);
|
||||
final AtomicReference atomicReference = new AtomicReference();
|
||||
final CountDownLatch countDownLatch = new CountDownLatch(1);
|
||||
TaskCompletionSource taskCompletionSource = new TaskCompletionSource();
|
||||
try {
|
||||
zzdzVar.zzq(new LastLocationRequest.Builder().build(), taskCompletionSource);
|
||||
taskCompletionSource.getTask().addOnCompleteListener(new OnCompleteListener() { // from class: com.google.android.gms.internal.location.zzbe
|
||||
@Override // com.google.android.gms.tasks.OnCompleteListener
|
||||
public final /* synthetic */ void onComplete(Task task) {
|
||||
if (task.isSuccessful()) {
|
||||
atomicReference.set((Location) task.getResult());
|
||||
}
|
||||
countDownLatch.countDown();
|
||||
}
|
||||
});
|
||||
if (zzfd.zza(countDownLatch, 30L, TimeUnit.SECONDS)) {
|
||||
return (Location) atomicReference.get();
|
||||
}
|
||||
return null;
|
||||
} catch (Exception unused) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderApi
|
||||
public final LocationAvailability getLocationAvailability(GoogleApiClient googleApiClient) {
|
||||
Preconditions.checkArgument(googleApiClient != null, "GoogleApiClient parameter is required.");
|
||||
zzdz zzdzVar = (zzdz) googleApiClient.getClient(zzbi.zza);
|
||||
final AtomicReference atomicReference = new AtomicReference();
|
||||
final CountDownLatch countDownLatch = new CountDownLatch(1);
|
||||
TaskCompletionSource taskCompletionSource = new TaskCompletionSource();
|
||||
try {
|
||||
zzdzVar.zzp(zzac.zza(), taskCompletionSource);
|
||||
taskCompletionSource.getTask().addOnCompleteListener(new OnCompleteListener() { // from class: com.google.android.gms.internal.location.zzbc
|
||||
@Override // com.google.android.gms.tasks.OnCompleteListener
|
||||
public final /* synthetic */ void onComplete(Task task) {
|
||||
if (task.isSuccessful()) {
|
||||
atomicReference.set((LocationAvailability) task.getResult());
|
||||
}
|
||||
countDownLatch.countDown();
|
||||
}
|
||||
});
|
||||
if (zzfd.zza(countDownLatch, 30L, TimeUnit.SECONDS)) {
|
||||
return (LocationAvailability) atomicReference.get();
|
||||
}
|
||||
return null;
|
||||
} 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 zzav(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 zzat(this, googleApiClient, pendingIntent, locationRequest));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderApi
|
||||
public final PendingResult<Status> setMockLocation(GoogleApiClient googleApiClient, Location location) {
|
||||
return googleApiClient.execute(new zzay(this, googleApiClient, location));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderApi
|
||||
public final PendingResult<Status> setMockMode(GoogleApiClient googleApiClient, boolean z) {
|
||||
return googleApiClient.execute(new zzax(this, googleApiClient, z));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderApi
|
||||
public final PendingResult<Status> removeLocationUpdates(GoogleApiClient googleApiClient, LocationCallback locationCallback) {
|
||||
return googleApiClient.execute(new zzaw(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 zzas(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 zzau(this, googleApiClient, locationListener));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderApi
|
||||
public final PendingResult<Status> requestLocationUpdates(GoogleApiClient googleApiClient, LocationRequest locationRequest, LocationListener locationListener) {
|
||||
Looper looperMyLooper = Looper.myLooper();
|
||||
Preconditions.checkNotNull(looperMyLooper, "invalid null looper");
|
||||
return googleApiClient.execute(new zzar(this, googleApiClient, ListenerHolders.createListenerHolder(locationListener, looperMyLooper, "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 zzar(this, googleApiClient, ListenerHolders.createListenerHolder(locationListener, looper, "LocationListener"), locationRequest));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzbf extends Api.AbstractClientBuilder {
|
||||
zzbf() {
|
||||
}
|
||||
|
||||
@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 zzdz(context, looper, clientSettings, connectionCallbacks, onConnectionFailedListener);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
interface zzbg {
|
||||
void zza(zzdz zzdzVar, ListenerHolder.ListenerKey listenerKey, boolean z, TaskCompletionSource taskCompletionSource) throws RemoteException;
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzbh implements RemoteCall, zzdr {
|
||||
final /* synthetic */ zzbi zza;
|
||||
private final zzbg zzb;
|
||||
private ListenerHolder zzc;
|
||||
private boolean zzd = true;
|
||||
|
||||
zzbh(zzbi zzbiVar, ListenerHolder listenerHolder, zzbg zzbgVar) {
|
||||
this.zza = zzbiVar;
|
||||
this.zzc = listenerHolder;
|
||||
this.zzb = zzbgVar;
|
||||
}
|
||||
|
||||
@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 z;
|
||||
zzdz zzdzVar = (zzdz) obj;
|
||||
TaskCompletionSource taskCompletionSource = (TaskCompletionSource) obj2;
|
||||
synchronized (this) {
|
||||
listenerKey = this.zzc.getListenerKey();
|
||||
z = this.zzd;
|
||||
this.zzc.clear();
|
||||
}
|
||||
if (listenerKey == null) {
|
||||
taskCompletionSource.setResult(false);
|
||||
} else {
|
||||
this.zzb.zza(zzdzVar, listenerKey, z, taskCompletionSource);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzdr
|
||||
public final synchronized ListenerHolder zza() {
|
||||
return this.zzc;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzdr
|
||||
public final synchronized void zzb(ListenerHolder listenerHolder) {
|
||||
ListenerHolder listenerHolder2 = this.zzc;
|
||||
if (listenerHolder2 != listenerHolder) {
|
||||
listenerHolder2.clear();
|
||||
this.zzc = listenerHolder;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzdr
|
||||
public final void zzc() {
|
||||
ListenerHolder.ListenerKey<?> listenerKey;
|
||||
synchronized (this) {
|
||||
this.zzd = false;
|
||||
listenerKey = this.zzc.getListenerKey();
|
||||
}
|
||||
if (listenerKey != null) {
|
||||
this.zza.doUnregisterEventListener(listenerKey, 2441);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,270 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.PendingIntent;
|
||||
import android.content.Context;
|
||||
import android.location.Location;
|
||||
import android.os.Looper;
|
||||
import android.os.RemoteException;
|
||||
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.DeviceOrientationListener;
|
||||
import com.google.android.gms.location.DeviceOrientationRequest;
|
||||
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.location.zzo;
|
||||
import com.google.android.gms.tasks.CancellationToken;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
import com.google.android.gms.tasks.Tasks;
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zzbi extends GoogleApi implements FusedLocationProviderClient {
|
||||
static final Api.ClientKey zza;
|
||||
public static final Api zzb;
|
||||
private static final Object zzc;
|
||||
private static Object zzd;
|
||||
|
||||
static {
|
||||
Api.ClientKey clientKey = new Api.ClientKey();
|
||||
zza = clientKey;
|
||||
zzb = new Api("LocationServices.API", new zzbf(), clientKey);
|
||||
zzc = new Object();
|
||||
}
|
||||
|
||||
public zzbi(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 zzbh zzbhVar = new zzbh(this, listenerHolder, zzcd.zza);
|
||||
return doRegisterEventListener(RegistrationMethods.builder().register(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzbt
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
Api api = zzbi.zzb;
|
||||
((zzdz) obj).zzs(zzbhVar, locationRequest, (TaskCompletionSource) obj2);
|
||||
}
|
||||
}).unregister(zzbhVar).withHolder(listenerHolder).setMethodKey(2435).build());
|
||||
}
|
||||
|
||||
private final Task zzb(final LocationRequest locationRequest, ListenerHolder listenerHolder) {
|
||||
final zzbh zzbhVar = new zzbh(this, listenerHolder, zzbz.zza);
|
||||
return doRegisterEventListener(RegistrationMethods.builder().register(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzbu
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
Api api = zzbi.zzb;
|
||||
((zzdz) obj).zzt(zzbhVar, locationRequest, (TaskCompletionSource) obj2);
|
||||
}
|
||||
}).unregister(zzbhVar).withHolder(listenerHolder).setMethodKey(2436).build());
|
||||
}
|
||||
|
||||
private final Task zzc(final DeviceOrientationRequest deviceOrientationRequest, final ListenerHolder listenerHolder) {
|
||||
RemoteCall remoteCall = new RemoteCall() { // from class: com.google.android.gms.internal.location.zzbm
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
Api api = zzbi.zzb;
|
||||
((zzdz) obj).zzC(listenerHolder, deviceOrientationRequest, (TaskCompletionSource) obj2);
|
||||
}
|
||||
};
|
||||
return doRegisterEventListener(RegistrationMethods.builder().register(remoteCall).unregister(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzbn
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
TaskCompletionSource taskCompletionSource = (TaskCompletionSource) obj2;
|
||||
zzdz zzdzVar = (zzdz) obj;
|
||||
Api api = zzbi.zzb;
|
||||
ListenerHolder.ListenerKey listenerKey = listenerHolder.getListenerKey();
|
||||
if (listenerKey != null) {
|
||||
zzdzVar.zzD(listenerKey, taskCompletionSource);
|
||||
}
|
||||
}
|
||||
}).withHolder(listenerHolder).setMethodKey(2434).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Void> flushLocations() {
|
||||
return doWrite(TaskApiCall.builder().run(zzca.zza).setMethodKey(2422).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.GoogleApi
|
||||
protected final String getApiFallbackAttributionTag(Context context) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@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 currentLocationRequestBuild = builder.build();
|
||||
if (cancellationToken != null) {
|
||||
Preconditions.checkArgument(!cancellationToken.isCancellationRequested(), "cancellationToken may not be already canceled");
|
||||
}
|
||||
Task<Location> taskDoRead = doRead(TaskApiCall.builder().run(new zzbp(currentLocationRequestBuild, cancellationToken)).setMethodKey(2415).build());
|
||||
if (cancellationToken == null) {
|
||||
return taskDoRead;
|
||||
}
|
||||
TaskCompletionSource taskCompletionSource = new TaskCompletionSource(cancellationToken);
|
||||
taskDoRead.continueWith(new zzbq(taskCompletionSource));
|
||||
return taskCompletionSource.getTask();
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Location> getLastLocation() {
|
||||
return doRead(TaskApiCall.builder().run(zzby.zza).setMethodKey(2414).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<LocationAvailability> getLocationAvailability() {
|
||||
return doRead(TaskApiCall.builder().run(zzbr.zza).setMethodKey(2416).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Void> removeDeviceOrientationUpdates(DeviceOrientationListener deviceOrientationListener) {
|
||||
return doUnregisterEventListener(ListenerHolders.createListenerKey(deviceOrientationListener, "DeviceOrientationListener"), 2440).continueWith(zzcg.zza, zzbo.zza);
|
||||
}
|
||||
|
||||
@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.zzbx
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
Api api = zzbi.zzb;
|
||||
((zzdz) obj).zzx(pendingIntent, (TaskCompletionSource) obj2, null);
|
||||
}
|
||||
}).setMethodKey(2418).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Void> requestDeviceOrientationUpdates(DeviceOrientationRequest deviceOrientationRequest, DeviceOrientationListener deviceOrientationListener, Looper looper) {
|
||||
if (looper == null) {
|
||||
looper = Looper.myLooper();
|
||||
Preconditions.checkNotNull(looper, "invalid null looper");
|
||||
}
|
||||
return zzc(deviceOrientationRequest, ListenerHolders.createListenerHolder(deviceOrientationListener, looper, "DeviceOrientationListener"));
|
||||
}
|
||||
|
||||
@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.zzbs
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
Api api = zzbi.zzb;
|
||||
((zzdz) obj).zzu(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.zzbl
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
Api api = zzbi.zzb;
|
||||
((zzdz) obj).zzA(location, (TaskCompletionSource) obj2);
|
||||
}
|
||||
}).setMethodKey(2421).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Void> setMockMode(boolean z) {
|
||||
synchronized (zzc) {
|
||||
if (!z) {
|
||||
Object obj = zzd;
|
||||
if (obj != null) {
|
||||
zzd = null;
|
||||
return doUnregisterEventListener(ListenerHolders.createListenerKey(obj, Object.class.getSimpleName()), 2420).continueWith(zzcf.zza, zzbk.zza);
|
||||
}
|
||||
} else if (zzd == null) {
|
||||
Object obj2 = new Object();
|
||||
zzd = obj2;
|
||||
return doRegisterEventListener(RegistrationMethods.builder().register(zzcb.zza).unregister(zzcc.zza).withHolder(ListenerHolders.createListenerHolder(obj2, Looper.getMainLooper(), Object.class.getSimpleName())).setMethodKey(2420).build());
|
||||
}
|
||||
return Tasks.forResult(null);
|
||||
}
|
||||
}
|
||||
|
||||
public zzbi(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 /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
Api api = zzbi.zzb;
|
||||
((zzdz) obj).zzq(lastLocationRequest, (TaskCompletionSource) obj2);
|
||||
}
|
||||
}).setMethodKey(2414).setFeatures(zzo.zzf).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Void> removeLocationUpdates(LocationCallback locationCallback) {
|
||||
return doUnregisterEventListener(ListenerHolders.createListenerKey(locationCallback, "LocationCallback"), 2418).continueWith(zzce.zza, zzbw.zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Void> requestDeviceOrientationUpdates(DeviceOrientationRequest deviceOrientationRequest, Executor executor, DeviceOrientationListener deviceOrientationListener) {
|
||||
return zzc(deviceOrientationRequest, ListenerHolders.createListenerHolder(deviceOrientationListener, executor, "DeviceOrientationListener"));
|
||||
}
|
||||
|
||||
@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 zzb(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(zzch.zza, zzbv.zza);
|
||||
}
|
||||
|
||||
@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 zza(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> taskDoRead = doRead(TaskApiCall.builder().run(new zzbp(currentLocationRequest, cancellationToken)).setMethodKey(2415).build());
|
||||
if (cancellationToken == null) {
|
||||
return taskDoRead;
|
||||
}
|
||||
TaskCompletionSource taskCompletionSource = new TaskCompletionSource(cancellationToken);
|
||||
taskDoRead.continueWith(new zzbq(taskCompletionSource));
|
||||
return taskCompletionSource.getTask();
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedLocationProviderClient
|
||||
public final Task<Void> requestLocationUpdates(LocationRequest locationRequest, Executor executor, LocationCallback locationCallback) {
|
||||
return zzb(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 zza(locationRequest, ListenerHolders.createListenerHolder(locationListener, executor, "LocationListener"));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.tasks.Continuation;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final /* synthetic */ class zzbk implements Continuation {
|
||||
static final /* synthetic */ zzbk zza = new zzbk();
|
||||
|
||||
private /* synthetic */ zzbk() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.tasks.Continuation
|
||||
public final /* synthetic */ Object then(Task task) {
|
||||
Api api = zzbi.zzb;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.tasks.Continuation;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final /* synthetic */ class zzbo implements Continuation {
|
||||
static final /* synthetic */ zzbo zza = new zzbo();
|
||||
|
||||
private /* synthetic */ zzbo() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.tasks.Continuation
|
||||
public final /* synthetic */ Object then(Task task) {
|
||||
Api api = zzbi.zzb;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.os.RemoteException;
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final /* synthetic */ class zzbp implements RemoteCall {
|
||||
private final /* synthetic */ CurrentLocationRequest zza;
|
||||
private final /* synthetic */ CancellationToken zzb;
|
||||
|
||||
/* synthetic */ zzbp(CurrentLocationRequest currentLocationRequest, CancellationToken cancellationToken) {
|
||||
this.zza = currentLocationRequest;
|
||||
this.zzb = cancellationToken;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
Api api = zzbi.zzb;
|
||||
((zzdz) obj).zzr(this.zza, this.zzb, (TaskCompletionSource) obj2);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
import java.util.Objects;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final /* synthetic */ class zzbq implements Continuation {
|
||||
private final /* synthetic */ TaskCompletionSource zza;
|
||||
|
||||
/* synthetic */ zzbq(TaskCompletionSource taskCompletionSource) {
|
||||
this.zza = taskCompletionSource;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.tasks.Continuation
|
||||
public final /* synthetic */ Object then(Task task) {
|
||||
Api api = zzbi.zzb;
|
||||
TaskCompletionSource taskCompletionSource = this.zza;
|
||||
if (task.isSuccessful()) {
|
||||
taskCompletionSource.trySetResult((Location) task.getResult());
|
||||
return null;
|
||||
}
|
||||
taskCompletionSource.trySetException((Exception) Objects.requireNonNull(task.getException()));
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.internal.RemoteCall;
|
||||
import com.google.android.gms.location.zzac;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final /* synthetic */ class zzbr implements RemoteCall {
|
||||
static final /* synthetic */ zzbr zza = new zzbr();
|
||||
|
||||
private /* synthetic */ zzbr() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
Api api = zzbi.zzb;
|
||||
((zzdz) obj).zzp(zzac.zza(), (TaskCompletionSource) obj2);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.tasks.Continuation;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final /* synthetic */ class zzbv implements Continuation {
|
||||
static final /* synthetic */ zzbv zza = new zzbv();
|
||||
|
||||
private /* synthetic */ zzbv() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.tasks.Continuation
|
||||
public final /* synthetic */ Object then(Task task) {
|
||||
Api api = zzbi.zzb;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.tasks.Continuation;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final /* synthetic */ class zzbw implements Continuation {
|
||||
static final /* synthetic */ zzbw zza = new zzbw();
|
||||
|
||||
private /* synthetic */ zzbw() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.tasks.Continuation
|
||||
public final /* synthetic */ Object then(Task task) {
|
||||
Api api = zzbi.zzb;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.internal.RemoteCall;
|
||||
import com.google.android.gms.location.LastLocationRequest;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final /* synthetic */ class zzby implements RemoteCall {
|
||||
static final /* synthetic */ zzby zza = new zzby();
|
||||
|
||||
private /* synthetic */ zzby() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
((zzdz) obj).zzq(new LastLocationRequest.Builder().build(), (TaskCompletionSource) obj2);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final /* synthetic */ class zzbz implements zzbg {
|
||||
static final /* synthetic */ zzbz zza = new zzbz();
|
||||
|
||||
private /* synthetic */ zzbz() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzbg
|
||||
public final /* synthetic */ void zza(zzdz zzdzVar, ListenerHolder.ListenerKey listenerKey, boolean z, TaskCompletionSource taskCompletionSource) throws RemoteException {
|
||||
zzdzVar.zzw(listenerKey, z, taskCompletionSource);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.os.BadParcelableException;
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zzc {
|
||||
public static final /* synthetic */ int zza = 0;
|
||||
private static final ClassLoader zzb = 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, Parcelable parcelable) {
|
||||
if (parcelable == null) {
|
||||
parcel.writeInt(0);
|
||||
} else {
|
||||
parcel.writeInt(1);
|
||||
parcelable.writeToParcel(parcel, 0);
|
||||
}
|
||||
}
|
||||
|
||||
public static void zzc(Parcel parcel, IInterface iInterface) {
|
||||
parcel.writeStrongBinder(iInterface.asBinder());
|
||||
}
|
||||
|
||||
public static void zzd(Parcel parcel) {
|
||||
int iDataAvail = parcel.dataAvail();
|
||||
if (iDataAvail <= 0) {
|
||||
return;
|
||||
}
|
||||
StringBuilder sb = new StringBuilder(String.valueOf(iDataAvail).length() + 45);
|
||||
sb.append("Parcel data not fully consumed, unread size: ");
|
||||
sb.append(iDataAvail);
|
||||
throw new BadParcelableException(sb.toString());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.internal.RemoteCall;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final /* synthetic */ class zzca implements RemoteCall {
|
||||
static final /* synthetic */ zzca zza = new zzca();
|
||||
|
||||
private /* synthetic */ zzca() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
((zzdz) obj).zzB((TaskCompletionSource) obj2);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.internal.RemoteCall;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final /* synthetic */ class zzcb implements RemoteCall {
|
||||
static final /* synthetic */ zzcb zza = new zzcb();
|
||||
|
||||
private /* synthetic */ zzcb() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
((zzdz) obj).zzy((TaskCompletionSource) obj2);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.internal.RemoteCall;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final /* synthetic */ class zzcc implements RemoteCall {
|
||||
static final /* synthetic */ zzcc zza = new zzcc();
|
||||
|
||||
private /* synthetic */ zzcc() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
((zzdz) obj).zzz((TaskCompletionSource) obj2);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final /* synthetic */ class zzcd implements zzbg {
|
||||
static final /* synthetic */ zzcd zza = new zzcd();
|
||||
|
||||
private /* synthetic */ zzcd() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzbg
|
||||
public final /* synthetic */ void zza(zzdz zzdzVar, ListenerHolder.ListenerKey listenerKey, boolean z, TaskCompletionSource taskCompletionSource) throws RemoteException {
|
||||
zzdzVar.zzv(listenerKey, z, taskCompletionSource);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final /* synthetic */ class zzce implements Executor {
|
||||
static final /* synthetic */ zzce zza = new zzce();
|
||||
|
||||
private /* synthetic */ zzce() {
|
||||
}
|
||||
|
||||
@Override // java.util.concurrent.Executor
|
||||
public final /* synthetic */ void execute(Runnable runnable) {
|
||||
runnable.run();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final /* synthetic */ class zzcf implements Executor {
|
||||
static final /* synthetic */ zzcf zza = new zzcf();
|
||||
|
||||
private /* synthetic */ zzcf() {
|
||||
}
|
||||
|
||||
@Override // java.util.concurrent.Executor
|
||||
public final /* synthetic */ void execute(Runnable runnable) {
|
||||
runnable.run();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final /* synthetic */ class zzcg implements Executor {
|
||||
static final /* synthetic */ zzcg zza = new zzcg();
|
||||
|
||||
private /* synthetic */ zzcg() {
|
||||
}
|
||||
|
||||
@Override // java.util.concurrent.Executor
|
||||
public final /* synthetic */ void execute(Runnable runnable) {
|
||||
runnable.run();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final /* synthetic */ class zzch implements Executor {
|
||||
static final /* synthetic */ zzch zza = new zzch();
|
||||
|
||||
private /* synthetic */ zzch() {
|
||||
}
|
||||
|
||||
@Override // java.util.concurrent.Executor
|
||||
public final /* synthetic */ void execute(Runnable runnable) {
|
||||
runnable.run();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.os.RemoteException;
|
||||
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.location.DeviceOrientationListener;
|
||||
import com.google.android.gms.location.DeviceOrientationRequest;
|
||||
import com.google.android.gms.location.FusedOrientationProviderClient;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zzci extends GoogleApi implements FusedOrientationProviderClient {
|
||||
public static final /* synthetic */ int zza = 0;
|
||||
|
||||
public zzci(Activity activity) {
|
||||
super(activity, (Api<Api.ApiOptions.NoOptions>) zzbi.zzb, Api.ApiOptions.NO_OPTIONS, GoogleApi.Settings.DEFAULT_SETTINGS);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.GoogleApi
|
||||
protected final String getApiFallbackAttributionTag(Context context) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedOrientationProviderClient
|
||||
public final Task<Void> removeOrientationUpdates(DeviceOrientationListener deviceOrientationListener) {
|
||||
return doUnregisterEventListener(ListenerHolders.createListenerKey(deviceOrientationListener, "DeviceOrientationListener"), 2440).continueWith(zzcm.zza, zzck.zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.FusedOrientationProviderClient
|
||||
public final Task<Void> requestOrientationUpdates(final DeviceOrientationRequest deviceOrientationRequest, Executor executor, DeviceOrientationListener deviceOrientationListener) {
|
||||
final ListenerHolder listenerHolderCreateListenerHolder = ListenerHolders.createListenerHolder(deviceOrientationListener, executor, "DeviceOrientationListener");
|
||||
RemoteCall remoteCall = new RemoteCall() { // from class: com.google.android.gms.internal.location.zzcl
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
int i = zzci.zza;
|
||||
((zzdz) obj).zzC(listenerHolderCreateListenerHolder, deviceOrientationRequest, (TaskCompletionSource) obj2);
|
||||
}
|
||||
};
|
||||
return doRegisterEventListener(RegistrationMethods.builder().register(remoteCall).unregister(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzcj
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
TaskCompletionSource taskCompletionSource = (TaskCompletionSource) obj2;
|
||||
zzdz zzdzVar = (zzdz) obj;
|
||||
int i = zzci.zza;
|
||||
ListenerHolder.ListenerKey listenerKey = listenerHolderCreateListenerHolder.getListenerKey();
|
||||
if (listenerKey != null) {
|
||||
zzdzVar.zzD(listenerKey, taskCompletionSource);
|
||||
}
|
||||
}
|
||||
}).withHolder(listenerHolderCreateListenerHolder).setMethodKey(2434).build());
|
||||
}
|
||||
|
||||
public zzci(Context context) {
|
||||
super(context, (Api<Api.ApiOptions.NoOptions>) zzbi.zzb, Api.ApiOptions.NO_OPTIONS, GoogleApi.Settings.DEFAULT_SETTINGS);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import com.google.android.gms.tasks.Continuation;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final /* synthetic */ class zzck implements Continuation {
|
||||
static final /* synthetic */ zzck zza = new zzck();
|
||||
|
||||
private /* synthetic */ zzck() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.tasks.Continuation
|
||||
public final /* synthetic */ Object then(Task task) {
|
||||
int i = zzci.zza;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final /* synthetic */ class zzcm implements Executor {
|
||||
static final /* synthetic */ zzcm zza = new zzcm();
|
||||
|
||||
private /* synthetic */ zzcm() {
|
||||
}
|
||||
|
||||
@Override // java.util.concurrent.Executor
|
||||
public final /* synthetic */ void execute(Runnable runnable) {
|
||||
runnable.run();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzcn extends zzcq {
|
||||
final /* synthetic */ GeofencingRequest zza;
|
||||
final /* synthetic */ PendingIntent zzb;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
zzcn(zzcr zzcrVar, GoogleApiClient googleApiClient, GeofencingRequest geofencingRequest, PendingIntent pendingIntent) {
|
||||
super(googleApiClient);
|
||||
this.zza = geofencingRequest;
|
||||
this.zzb = pendingIntent;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
protected final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzdz) anyClient).zzE(this.zza, this.zzb, zzcr.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzco extends zzcq {
|
||||
final /* synthetic */ PendingIntent zza;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
zzco(zzcr zzcrVar, GoogleApiClient googleApiClient, PendingIntent pendingIntent) {
|
||||
super(googleApiClient);
|
||||
this.zza = pendingIntent;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
protected final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzdz) anyClient).zzF(zzem.zzb(this.zza), zzcr.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import java.util.List;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzcp extends zzcq {
|
||||
final /* synthetic */ List zza;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
zzcp(zzcr zzcrVar, GoogleApiClient googleApiClient, List list) {
|
||||
super(googleApiClient);
|
||||
this.zza = list;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
protected final /* bridge */ /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
((zzdz) anyClient).zzF(zzem.zza(this.zza), zzcr.zza(this));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
abstract class zzcq extends BaseImplementation.ApiMethodImpl {
|
||||
public zzcq(GoogleApiClient googleApiClient) {
|
||||
super((Api<?>) zzbi.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
|
||||
public final /* bridge */ /* synthetic */ void setResult(Object obj) {
|
||||
super.setResult((Result) obj);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zzcr implements GeofencingApi {
|
||||
static /* synthetic */ TaskCompletionSource zza(final BaseImplementation.ResultHolder resultHolder) {
|
||||
TaskCompletionSource taskCompletionSource = new TaskCompletionSource();
|
||||
taskCompletionSource.getTask().addOnCompleteListener(new OnCompleteListener() { // from class: com.google.android.gms.internal.location.zzcs
|
||||
@Override // com.google.android.gms.tasks.OnCompleteListener
|
||||
public final /* synthetic */ void onComplete(Task task) {
|
||||
BaseImplementation.ResultHolder resultHolder2 = resultHolder;
|
||||
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 zzcn(this, googleApiClient, geofencingRequest, pendingIntent));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.GeofencingApi
|
||||
public final PendingResult<Status> removeGeofences(GoogleApiClient googleApiClient, PendingIntent pendingIntent) {
|
||||
return googleApiClient.execute(new zzco(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 zzcn(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 zzcp(this, googleApiClient, list));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.PendingIntent;
|
||||
import android.content.Context;
|
||||
import android.os.RemoteException;
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zzct extends GoogleApi implements GeofencingClient {
|
||||
public static final /* synthetic */ int zza = 0;
|
||||
|
||||
public zzct(Activity activity) {
|
||||
super(activity, (Api<Api.ApiOptions.NoOptions>) zzbi.zzb, Api.ApiOptions.NO_OPTIONS, GoogleApi.Settings.DEFAULT_SETTINGS);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.GeofencingClient
|
||||
public final Task<Void> addGeofences(final GeofencingRequest geofencingRequest, final PendingIntent pendingIntent) {
|
||||
return doWrite(TaskApiCall.builder().run(new RemoteCall() { // from class: com.google.android.gms.internal.location.zzcw
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
int i = zzct.zza;
|
||||
((zzdz) obj).zzE(geofencingRequest, 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.zzcu
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
int i = zzct.zza;
|
||||
((zzdz) obj).zzF(zzem.zzb(pendingIntent), (TaskCompletionSource) obj2);
|
||||
}
|
||||
}).setMethodKey(2425).build());
|
||||
}
|
||||
|
||||
public zzct(Context context) {
|
||||
super(context, (Api<Api.ApiOptions.NoOptions>) zzbi.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.zzcv
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
int i = zzct.zza;
|
||||
((zzdz) obj).zzF(zzem.zza(list), (TaskCompletionSource) obj2);
|
||||
}
|
||||
}).setMethodKey(2425).build());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzcx extends zzcy {
|
||||
final /* synthetic */ LocationSettingsRequest zza;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
zzcx(zzcz zzczVar, GoogleApiClient googleApiClient, LocationSettingsRequest locationSettingsRequest, String str) {
|
||||
super(googleApiClient);
|
||||
this.zza = locationSettingsRequest;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
|
||||
protected final /* synthetic */ void doExecute(Api.AnyClient anyClient) throws RemoteException {
|
||||
LocationSettingsRequest locationSettingsRequest = this.zza;
|
||||
Preconditions.checkArgument(locationSettingsRequest != null, "locationSettingsRequest can't be null");
|
||||
((zzv) ((zzdz) anyClient).getService()).zzD(locationSettingsRequest, new zzdf(this), null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
abstract class zzcy extends BaseImplementation.ApiMethodImpl {
|
||||
public zzcy(GoogleApiClient googleApiClient) {
|
||||
super((Api<?>) zzbi.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
|
||||
public final /* bridge */ /* synthetic */ void setResult(Object obj) {
|
||||
super.setResult((Result) obj);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zzcz implements SettingsApi {
|
||||
@Override // com.google.android.gms.location.SettingsApi
|
||||
public final PendingResult<LocationSettingsResult> checkLocationSettings(GoogleApiClient googleApiClient, LocationSettingsRequest locationSettingsRequest) {
|
||||
return googleApiClient.enqueue(new zzcx(this, googleApiClient, locationSettingsRequest, null));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
@Metadata(d1 = {"\u0000P\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0006\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0010\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\rH\u0002Ju\u0010\u000e\u001a\u00020\u00052\u0006\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u00072\b\b\u0002\u0010\u0012\u001a\u00020\u00072\n\b\u0002\u0010\u0013\u001a\u0004\u0018\u00010\u00102\n\b\u0002\u0010\u0014\u001a\u0004\u0018\u00010\u00102\n\b\u0002\u0010\u0015\u001a\u0004\u0018\u00010\u00072\u0010\b\u0002\u0010\u0016\u001a\n\u0012\u0004\u0012\u00020\u0018\u0018\u00010\u00172\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\u000b2\n\b\u0002\u0010\u0019\u001a\u0004\u0018\u00010\u0005H\u0007¢\u0006\u0002\u0010\u001aJ:\u0010\u001b\u001a\u00020\u00052\u0006\u0010\u001c\u001a\u00020\u001d2\n\b\u0002\u0010\u0014\u001a\u0004\u0018\u00010\u00102\u0010\b\u0002\u0010\u0016\u001a\n\u0012\u0004\u0012\u00020\u0018\u0018\u00010\u00172\n\b\u0002\u0010\u0019\u001a\u0004\u0018\u00010\u001eH\u0007JB\u0010\u001b\u001a\u00020\u00052\u0006\u0010\f\u001a\u00020\r2\u0006\u0010\u001f\u001a\u00020 2\u0006\u0010\u0011\u001a\u00020\u00072\b\b\u0002\u0010\u0012\u001a\u00020\u00072\n\b\u0002\u0010\u0014\u001a\u0004\u0018\u00010\u00102\n\b\u0002\u0010\u0019\u001a\u0004\u0018\u00010\u001eH\u0007JX\u0010\u001b\u001a\u00020\u00052\u0006\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u00072\b\b\u0002\u0010\u0012\u001a\u00020\u00072\n\b\u0002\u0010\u0013\u001a\u0004\u0018\u00010\u00102\n\b\u0002\u0010\u0014\u001a\u0004\u0018\u00010\u00102\u0010\b\u0002\u0010\u0016\u001a\n\u0012\u0004\u0012\u00020\u0018\u0018\u00010\u00172\n\b\u0002\u0010\u0019\u001a\u0004\u0018\u00010\u001eH\u0007R\u0016\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00050\u00048\u0006X\u0087\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0007X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\b\u001a\u00020\u0007X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\u0007X\u0086T¢\u0006\u0002\n\u0000¨\u0006!"}, d2 = {"Lcom/google/android/gms/libs/identity/ClientIdentity$Companion;", "", "()V", "CREATOR", "Landroid/os/Parcelable$Creator;", "Lcom/google/android/gms/libs/identity/ClientIdentity;", "MY_PID", "", "MY_UID", "UNKNOWN_PID", "convertClientType", "Lcom/google/android/gms/libs/identity/ClientType;", "clientType", "Lcom/google/android/gms/framework/logging/proto/GcoreDimensions$GCoreClientInfo$ClientType;", "forTest", "packageName", "", "uid", "pid", "attributionTag", "listenerId", "clientSdkVersion", "clientFeatures", "", "Lcom/google/android/gms/common/Feature;", "impersonator", "(Ljava/lang/String;IILjava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/util/List;Lcom/google/android/gms/libs/identity/ClientType;Lcom/google/android/gms/libs/identity/ClientIdentity;)Lcom/google/android/gms/libs/identity/ClientIdentity;", "from", "context", "Landroid/content/Context;", "Lcom/google/android/gms/libs/identity/Impersonator;", "request", "Lcom/google/android/gms/common/internal/GetServiceRequest;", "java.com.google.android.gms.libs.identity_identity"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
public final class zzd {
|
||||
private zzd() {
|
||||
}
|
||||
|
||||
public /* synthetic */ zzd(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.os.RemoteException;
|
||||
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.location.zzo;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zzda extends GoogleApi implements SettingsClient {
|
||||
public static final /* synthetic */ int zza = 0;
|
||||
|
||||
public zzda(Activity activity) {
|
||||
super(activity, (Api<Api.ApiOptions.NoOptions>) zzbi.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.zzdb
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
TaskCompletionSource taskCompletionSource = (TaskCompletionSource) obj2;
|
||||
zzdz zzdzVar = (zzdz) obj;
|
||||
int i = zzda.zza;
|
||||
LocationSettingsRequest locationSettingsRequest2 = locationSettingsRequest;
|
||||
Preconditions.checkArgument(locationSettingsRequest2 != null, "locationSettingsRequest can't be null");
|
||||
((zzv) zzdzVar.getService()).zzD(locationSettingsRequest2, new zzde(taskCompletionSource), null);
|
||||
}
|
||||
}).setMethodKey(2426).build());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.SettingsClient
|
||||
public final Task<Boolean> isGoogleLocationAccuracyEnabled() {
|
||||
return doRead(TaskApiCall.builder().run(zzdc.zza).setMethodKey(2444).setFeatures(zzo.zzm).build());
|
||||
}
|
||||
|
||||
public zzda(Context context) {
|
||||
super(context, (Api<Api.ApiOptions.NoOptions>) zzbi.zzb, Api.ApiOptions.NO_OPTIONS, GoogleApi.Settings.DEFAULT_SETTINGS);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.internal.RemoteCall;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final /* synthetic */ class zzdc implements RemoteCall {
|
||||
static final /* synthetic */ zzdc zza = new zzdc();
|
||||
|
||||
private /* synthetic */ zzdc() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.RemoteCall
|
||||
public final /* synthetic */ void accept(Object obj, Object obj2) throws RemoteException {
|
||||
((zzv) ((zzdz) obj).getService()).zzE(new zzdm((TaskCompletionSource) obj2));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.internal.TaskUtil;
|
||||
import com.google.android.gms.location.zzw;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzdd extends zzq {
|
||||
final /* synthetic */ TaskCompletionSource zza;
|
||||
final /* synthetic */ zzw zzb;
|
||||
|
||||
zzdd(TaskCompletionSource taskCompletionSource, zzw zzwVar) {
|
||||
this.zza = taskCompletionSource;
|
||||
this.zzb = zzwVar;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzr
|
||||
public final void zzd(zzl zzlVar) {
|
||||
TaskUtil.setResultOrApiException(zzlVar.getStatus(), this.zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzr
|
||||
public final void zze() throws RemoteException {
|
||||
this.zzb.zzf();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzde extends zzaa {
|
||||
final /* synthetic */ TaskCompletionSource zza;
|
||||
|
||||
zzde(TaskCompletionSource taskCompletionSource) {
|
||||
this.zza = taskCompletionSource;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzab
|
||||
public final void zzb(LocationSettingsResult locationSettingsResult) {
|
||||
TaskUtil.setResultOrApiException(locationSettingsResult.getStatus(), new LocationSettingsResponse(locationSettingsResult), this.zza);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import com.google.android.gms.common.api.internal.BaseImplementation;
|
||||
import com.google.android.gms.location.LocationSettingsResult;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzdf extends zzaa {
|
||||
final /* synthetic */ BaseImplementation.ResultHolder zza;
|
||||
|
||||
zzdf(BaseImplementation.ResultHolder resultHolder) {
|
||||
this.zza = resultHolder;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzab
|
||||
public final void zzb(LocationSettingsResult locationSettingsResult) {
|
||||
this.zza.setResult(locationSettingsResult);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzdg extends zzs {
|
||||
final /* synthetic */ TaskCompletionSource zza;
|
||||
|
||||
zzdg(TaskCompletionSource taskCompletionSource) {
|
||||
this.zza = taskCompletionSource;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzt
|
||||
public final void zzb(int i, String[] strArr) {
|
||||
TaskUtil.setResultOrApiException(new Status(GeofenceStatusCodes.zza(i)), this.zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzt
|
||||
public final void zzc(int i, String[] strArr) {
|
||||
TaskUtil.setResultOrApiException(new Status(GeofenceStatusCodes.zza(i)), this.zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzt
|
||||
public final void zzd(int i, PendingIntent pendingIntent) {
|
||||
TaskUtil.setResultOrApiException(new Status(GeofenceStatusCodes.zza(i)), this.zza);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzdh extends LocationCallback {
|
||||
final /* synthetic */ TaskCompletionSource zza;
|
||||
final /* synthetic */ zzdz zzb;
|
||||
|
||||
zzdh(zzdz zzdzVar, TaskCompletionSource taskCompletionSource) {
|
||||
this.zza = taskCompletionSource;
|
||||
this.zzb = zzdzVar;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.LocationCallback
|
||||
public final void onLocationResult(LocationResult locationResult) {
|
||||
this.zza.trySetResult(locationResult.getLastLocation());
|
||||
try {
|
||||
this.zzb.zzw(ListenerHolders.createListenerKey(this, "GetCurrentLocation"), false, new TaskCompletionSource());
|
||||
} catch (RemoteException unused) {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzdi implements zzdr {
|
||||
final /* synthetic */ ListenerHolder zza;
|
||||
final /* synthetic */ TaskCompletionSource zzb;
|
||||
|
||||
zzdi(zzdz zzdzVar, ListenerHolder listenerHolder, TaskCompletionSource taskCompletionSource) {
|
||||
this.zza = listenerHolder;
|
||||
this.zzb = taskCompletionSource;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzdr
|
||||
public final ListenerHolder zza() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzdr
|
||||
public final void zzb(ListenerHolder listenerHolder) {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzdr
|
||||
public final void zzc() {
|
||||
this.zzb.trySetResult(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzdj extends IStatusCallback.Stub {
|
||||
final /* synthetic */ Object zza;
|
||||
final /* synthetic */ TaskCompletionSource zzb;
|
||||
|
||||
zzdj(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,21 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
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;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzdk extends zzy {
|
||||
final /* synthetic */ TaskCompletionSource zza;
|
||||
|
||||
zzdk(TaskCompletionSource taskCompletionSource) {
|
||||
this.zza = taskCompletionSource;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzz
|
||||
public final void zzb(Status status, Location location) {
|
||||
TaskUtil.setResultOrApiException(status, location, this.zza);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.common.api.internal.TaskUtil;
|
||||
import com.google.android.gms.location.LocationAvailability;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzdl extends zzw {
|
||||
final /* synthetic */ TaskCompletionSource zza;
|
||||
|
||||
zzdl(TaskCompletionSource taskCompletionSource) {
|
||||
this.zza = taskCompletionSource;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzx
|
||||
public final void zzb(Status status, LocationAvailability locationAvailability) {
|
||||
TaskUtil.setResultOrApiException(status, locationAvailability, this.zza);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.common.api.internal.TaskUtil;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzdm extends zzn {
|
||||
final /* synthetic */ TaskCompletionSource zza;
|
||||
|
||||
zzdm(TaskCompletionSource taskCompletionSource) {
|
||||
this.zza = taskCompletionSource;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzo
|
||||
public final void zzb(Status status, boolean z) {
|
||||
TaskUtil.setResultOrApiException(status, Boolean.valueOf(z), this.zza);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import com.google.android.gms.common.api.internal.TaskUtil;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzdn extends zzq {
|
||||
final /* synthetic */ Object zza;
|
||||
final /* synthetic */ TaskCompletionSource zzb;
|
||||
|
||||
zzdn(Object obj, TaskCompletionSource taskCompletionSource) {
|
||||
this.zza = obj;
|
||||
this.zzb = taskCompletionSource;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzr
|
||||
public final void zzd(zzl zzlVar) {
|
||||
TaskUtil.setResultOrApiException(zzlVar.getStatus(), this.zza, this.zzb);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzr
|
||||
public final void zze() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.api.internal.TaskUtil;
|
||||
import com.google.android.gms.location.zzz;
|
||||
import com.google.android.gms.tasks.TaskCompletionSource;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzdo extends zzq {
|
||||
final /* synthetic */ TaskCompletionSource zza;
|
||||
final /* synthetic */ zzz zzb;
|
||||
|
||||
zzdo(TaskCompletionSource taskCompletionSource, zzz zzzVar) {
|
||||
this.zza = taskCompletionSource;
|
||||
this.zzb = zzzVar;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzr
|
||||
public final void zzd(zzl zzlVar) {
|
||||
TaskUtil.setResultOrApiException(zzlVar.getStatus(), this.zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.libs.identity.zzr
|
||||
public final void zze() throws RemoteException {
|
||||
this.zzb.zze();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
import com.google.android.gms.location.DeviceOrientation;
|
||||
import com.google.android.gms.location.DeviceOrientationListener;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzdp implements ListenerHolder.Notifier {
|
||||
final /* synthetic */ DeviceOrientation zza;
|
||||
|
||||
zzdp(zzdq zzdqVar, DeviceOrientation deviceOrientation) {
|
||||
this.zza = deviceOrientation;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.ListenerHolder.Notifier
|
||||
public final /* bridge */ /* synthetic */ void notifyListener(Object obj) {
|
||||
((DeviceOrientationListener) obj).onDeviceOrientationChanged(this.zza);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.internal.ListenerHolder.Notifier
|
||||
public final void onNotifyListenerFailed() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.google.android.gms.libs.identity;
|
||||
|
||||
import com.google.android.gms.common.api.internal.ListenerHolder;
|
||||
import com.google.android.gms.location.DeviceOrientation;
|
||||
import com.google.android.gms.location.zzs;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzdq extends zzs {
|
||||
private ListenerHolder zza;
|
||||
|
||||
zzdq(ListenerHolder listenerHolder) {
|
||||
this.zza = listenerHolder;
|
||||
}
|
||||
|
||||
final synchronized void zzc(ListenerHolder listenerHolder) {
|
||||
ListenerHolder listenerHolder2 = this.zza;
|
||||
if (listenerHolder2 != listenerHolder) {
|
||||
listenerHolder2.clear();
|
||||
this.zza = listenerHolder;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.zzt
|
||||
public final void zzd(DeviceOrientation deviceOrientation) {
|
||||
ListenerHolder listenerHolder;
|
||||
synchronized (this) {
|
||||
listenerHolder = this.zza;
|
||||
}
|
||||
listenerHolder.notifyListener(new zzdp(this, deviceOrientation));
|
||||
}
|
||||
|
||||
final synchronized void zze() {
|
||||
this.zza.clear();
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user