granularity level: instruction

		.class public abstract Lcom/google/android/gms/common/api/internal/BaseImplementation$ApiMethodImpl;
.super Lcom/google/android/gms/common/api/internal/BasePendingResult;
.source "com.google.android.gms:play-services-base@@18.0.1"
.implements Lcom/google/android/gms/common/api/internal/BaseImplementation$ResultHolder;

.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/android/gms/common/api/internal/BaseImplementation;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x409
name = "ApiMethodImpl"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<R::",
"Lcom/google/android/gms/common/api/Result;",
"A::",
"Lcom/google/android/gms/common/api/Api$AnyClient;",
">",
"Lcom/google/android/gms/common/api/internal/BasePendingResult<",
"TR;>;",
"Lcom/google/android/gms/common/api/internal/BaseImplementation$ResultHolder<",
"TR;>;"
}
.end annotation

.field private final mApi:Lcom/google/android/gms/common/api/Api;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/android/gms/common/api/Api<",
"*>;"
}
.end annotation
.end field
.field private final mClientKey:Lcom/google/android/gms/common/api/Api$AnyClientKey;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/android/gms/common/api/Api$AnyClientKey<",
"TA;>;"
}
.end annotation
.end field


.method protected constructor <init>(Lcom/google/android/gms/common/api/Api$AnyClientKey;Lcom/google/android/gms/common/api/GoogleApiClient;)V
	.locals 1
	.annotation runtime Ljava/lang/Deprecated;
	.end annotation
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Lcom/google/android/gms/common/api/Api$AnyClientKey<",
	"TA;>;",
	"Lcom/google/android/gms/common/api/GoogleApiClient;",
	")V"
	}
	.end annotation

	const-string v0, "GoogleApiClient must not be null"
	invoke-static {p2, v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object p2
	check-cast p2, Lcom/google/android/gms/common/api/GoogleApiClient;
	invoke-direct {p0, p2}, Lcom/google/android/gms/common/api/internal/BasePendingResult;-><init>(Lcom/google/android/gms/common/api/GoogleApiClient;)V
	invoke-static {p1}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object p1
	check-cast p1, Lcom/google/android/gms/common/api/Api$AnyClientKey;
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/BaseImplementation$ApiMethodImpl;->mClientKey:Lcom/google/android/gms/common/api/Api$AnyClientKey;
	const/4 p1, 0x0
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/BaseImplementation$ApiMethodImpl;->mApi:Lcom/google/android/gms/common/api/Api;
	return-void
.end method

.method protected constructor <init>(Lcom/google/android/gms/common/api/Api;Lcom/google/android/gms/common/api/GoogleApiClient;)V
	.locals 1
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Lcom/google/android/gms/common/api/Api<",
	"*>;",
	"Lcom/google/android/gms/common/api/GoogleApiClient;",
	")V"
	}
	.end annotation

	const-string v0, "GoogleApiClient must not be null"
	invoke-static {p2, v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object p2
	check-cast p2, Lcom/google/android/gms/common/api/GoogleApiClient;
	invoke-direct {p0, p2}, Lcom/google/android/gms/common/api/internal/BasePendingResult;-><init>(Lcom/google/android/gms/common/api/GoogleApiClient;)V
	const-string p2, "Api must not be null"
	invoke-static {p1, p2}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	invoke-virtual {p1}, Lcom/google/android/gms/common/api/Api;->zab()Lcom/google/android/gms/common/api/Api$AnyClientKey;
	move-result-object p2
	iput-object p2, p0, Lcom/google/android/gms/common/api/internal/BaseImplementation$ApiMethodImpl;->mClientKey:Lcom/google/android/gms/common/api/Api$AnyClientKey;
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/BaseImplementation$ApiMethodImpl;->mApi:Lcom/google/android/gms/common/api/Api;
	return-void
.end method

.method protected constructor <init>(Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;)V
	.locals 0
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler<",
	"TR;>;)V"
	}
	.end annotation

	invoke-direct {p0, p1}, Lcom/google/android/gms/common/api/internal/BasePendingResult;-><init>(Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;)V
	new-instance p1, Lcom/google/android/gms/common/api/Api$AnyClientKey;
	invoke-direct {p1}, Lcom/google/android/gms/common/api/Api$AnyClientKey;-><init>()V
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/BaseImplementation$ApiMethodImpl;->mClientKey:Lcom/google/android/gms/common/api/Api$AnyClientKey;
	const/4 p1, 0x0
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/BaseImplementation$ApiMethodImpl;->mApi:Lcom/google/android/gms/common/api/Api;
	return-void
.end method

.method private setFailedResult(Landroid/os/RemoteException;)V
	.locals 3

	new-instance v0, Lcom/google/android/gms/common/api/Status;
	invoke-virtual {p1}, Landroid/os/RemoteException;->getLocalizedMessage()Ljava/lang/String;
	move-result-object p1
	const/16 v1, 0x8
	const/4 v2, 0x0
	invoke-direct {v0, v1, p1, v2}, Lcom/google/android/gms/common/api/Status;-><init>(ILjava/lang/String;Landroid/app/PendingIntent;)V
	invoke-virtual {p0, v0}, Lcom/google/android/gms/common/api/internal/BaseImplementation$ApiMethodImpl;->setFailedResult(Lcom/google/android/gms/common/api/Status;)V
	return-void
.end method

.method protected abstract doExecute(Lcom/google/android/gms/common/api/Api$AnyClient;)V
	
	.annotation system Ldalvik/annotation/Throws;
	value = {
	Landroid/os/RemoteException;
	}
	.end annotation
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(TA;)V"
	}
	.end annotation

.end method

.method public final getApi()Lcom/google/android/gms/common/api/Api;
	.locals 1
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"()",
	"Lcom/google/android/gms/common/api/Api<",
	"*>;"
	}
	.end annotation

	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BaseImplementation$ApiMethodImpl;->mApi:Lcom/google/android/gms/common/api/Api;
	return-object v0
.end method

.method public final getClientKey()Lcom/google/android/gms/common/api/Api$AnyClientKey;
	.locals 1
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"()",
	"Lcom/google/android/gms/common/api/Api$AnyClientKey<",
	"TA;>;"
	}
	.end annotation

	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BaseImplementation$ApiMethodImpl;->mClientKey:Lcom/google/android/gms/common/api/Api$AnyClientKey;
	return-object v0
.end method

.method protected onSetFailedResult(Lcom/google/android/gms/common/api/Result;)V
	.locals 0
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(TR;)V"
	}
	.end annotation

	return-void
.end method

.method public final run(Lcom/google/android/gms/common/api/Api$AnyClient;)V
	.locals 0
	.annotation system Ldalvik/annotation/Throws;
	value = {
	Landroid/os/DeadObjectException;
	}
	.end annotation
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(TA;)V"
	}
	.end annotation

	:try_start_0
	invoke-virtual {p0, p1}, Lcom/google/android/gms/common/api/internal/BaseImplementation$ApiMethodImpl;->doExecute(Lcom/google/android/gms/common/api/Api$AnyClient;)V
	:try_end_0
	.catch Landroid/os/DeadObjectException; {:try_start_0 .. :try_end_0} :catch_1
	.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
	return-void
	:catch_0
	move-exception p1
	invoke-direct {p0, p1}, Lcom/google/android/gms/common/api/internal/BaseImplementation$ApiMethodImpl;->setFailedResult(Landroid/os/RemoteException;)V
	return-void
	:catch_1
	move-exception p1
	invoke-direct {p0, p1}, Lcom/google/android/gms/common/api/internal/BaseImplementation$ApiMethodImpl;->setFailedResult(Landroid/os/RemoteException;)V
	throw p1
.end method

.method public final setFailedResult(Lcom/google/android/gms/common/api/Status;)V
	.locals 2

	invoke-virtual {p1}, Lcom/google/android/gms/common/api/Status;->isSuccess()Z
	move-result v0
	xor-int/lit8 v0, v0, 0x1
	const-string v1, "Failed result must not be success"
	invoke-static {v0, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkArgument(ZLjava/lang/Object;)V
	invoke-virtual {p0, p1}, Lcom/google/android/gms/common/api/internal/BaseImplementation$ApiMethodImpl;->createFailedResult(Lcom/google/android/gms/common/api/Status;)Lcom/google/android/gms/common/api/Result;
	move-result-object p1
	invoke-virtual {p0, p1}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->setResult(Lcom/google/android/gms/common/api/Result;)V
	invoke-virtual {p0, p1}, Lcom/google/android/gms/common/api/internal/BaseImplementation$ApiMethodImpl;->onSetFailedResult(Lcom/google/android/gms/common/api/Result;)V
	return-void
.end method

.method public bridge synthetic setResult(Ljava/lang/Object;)V
	.locals 0

	check-cast p1, Lcom/google/android/gms/common/api/Result;
	invoke-super {p0, p1}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->setResult(Lcom/google/android/gms/common/api/Result;)V
	return-void
.end method