granularity level: instruction
.class public abstract Lcom/google/android/gms/common/api/internal/zap;
.super Lcom/google/android/gms/common/api/internal/LifecycleCallback;
.source "com.google.android.gms:play-services-base@@18.0.1"
.implements Landroid/content/DialogInterface$OnCancelListener;
.field protected volatile zaa:Z
.field protected final zab:Ljava/util/concurrent/atomic/AtomicReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/atomic/AtomicReference<",
"Lcom/google/android/gms/common/api/internal/zam;",
">;"
}
.end annotation
.end field
.field protected final zac:Lcom/google/android/gms/common/GoogleApiAvailability;
.field private final zad:Landroid/os/Handler;
.method constructor <init>(Lcom/google/android/gms/common/api/internal/LifecycleFragment;Lcom/google/android/gms/common/GoogleApiAvailability;)V
.locals 1
invoke-direct {p0, p1}, Lcom/google/android/gms/common/api/internal/LifecycleCallback;-><init>(Lcom/google/android/gms/common/api/internal/LifecycleFragment;)V
new-instance p1, Ljava/util/concurrent/atomic/AtomicReference;
const/4 v0, 0x0
invoke-direct {p1, v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
iput-object p1, p0, Lcom/google/android/gms/common/api/internal/zap;->zab:Ljava/util/concurrent/atomic/AtomicReference;
new-instance p1, Lcom/google/android/gms/internal/base/zaq;
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v0
invoke-direct {p1, v0}, Lcom/google/android/gms/internal/base/zaq;-><init>(Landroid/os/Looper;)V
iput-object p1, p0, Lcom/google/android/gms/common/api/internal/zap;->zad:Landroid/os/Handler;
iput-object p2, p0, Lcom/google/android/gms/common/api/internal/zap;->zac:Lcom/google/android/gms/common/GoogleApiAvailability;
return-void
.end method
.method private final zaa(Lcom/google/android/gms/common/ConnectionResult;I)V
.locals 2
iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zap;->zab:Ljava/util/concurrent/atomic/AtomicReference;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V
invoke-virtual {p0, p1, p2}, Lcom/google/android/gms/common/api/internal/zap;->zab(Lcom/google/android/gms/common/ConnectionResult;I)V
return-void
.end method
.method private final zad()V
.locals 2
iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zap;->zab:Ljava/util/concurrent/atomic/AtomicReference;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V
invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/zap;->zac()V
return-void
.end method
.method private static final zae(Lcom/google/android/gms/common/api/internal/zam;)I
.locals 0
if-nez p0, :cond_0
const/4 p0, -0x1
return p0
:cond_0
invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/zam;->zaa()I
move-result p0
return p0
.end method
.method static bridge synthetic zaf(Lcom/google/android/gms/common/api/internal/zap;Lcom/google/android/gms/common/ConnectionResult;I)V
.locals 0
invoke-direct {p0, p1, p2}, Lcom/google/android/gms/common/api/internal/zap;->zaa(Lcom/google/android/gms/common/ConnectionResult;I)V
return-void
.end method
.method static bridge synthetic zag(Lcom/google/android/gms/common/api/internal/zap;)V
.locals 0
invoke-direct {p0}, Lcom/google/android/gms/common/api/internal/zap;->zad()V
return-void
.end method
.method public final onActivityResult(IILandroid/content/Intent;)V
.locals 2
iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zap;->zab:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/android/gms/common/api/internal/zam;
const/4 v1, 0x1
if-eq p1, v1, :cond_3
const/4 p2, 0x2
if-eq p1, p2, :cond_0
goto :goto_0
:cond_0
iget-object p1, p0, Lcom/google/android/gms/common/api/internal/zap;->zac:Lcom/google/android/gms/common/GoogleApiAvailability;
invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/zap;->getActivity()Landroid/app/Activity;
move-result-object p2
invoke-virtual {p1, p2}, Lcom/google/android/gms/common/GoogleApiAvailability;->isGooglePlayServicesAvailable(Landroid/content/Context;)I
move-result p1
if-nez p1, :cond_1
invoke-direct {p0}, Lcom/google/android/gms/common/api/internal/zap;->zad()V
return-void
:cond_1
if-nez v0, :cond_2
return-void
:cond_2
invoke-virtual {v0}, Lcom/google/android/gms/common/api/internal/zam;->zab()Lcom/google/android/gms/common/ConnectionResult;
move-result-object p2
invoke-virtual {p2}, Lcom/google/android/gms/common/ConnectionResult;->getErrorCode()I
move-result p2
const/16 p3, 0x12
if-ne p2, p3, :cond_7
if-ne p1, p3, :cond_7
return-void
:cond_3
const/4 p1, -0x1
if-ne p2, p1, :cond_4
invoke-direct {p0}, Lcom/google/android/gms/common/api/internal/zap;->zad()V
return-void
:cond_4
if-nez p2, :cond_7
if-nez v0, :cond_5
return-void
:cond_5
const/16 p1, 0xd
if-eqz p3, :cond_6
const-string p2, "<<ResolutionFailureErrorDetail>>"
invoke-virtual {p3, p2, p1}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
move-result p1
:cond_6
new-instance p2, Lcom/google/android/gms/common/ConnectionResult;
const/4 p3, 0x0
invoke-virtual {v0}, Lcom/google/android/gms/common/api/internal/zam;->zab()Lcom/google/android/gms/common/ConnectionResult;
move-result-object v1
invoke-virtual {v1}, Lcom/google/android/gms/common/ConnectionResult;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {p2, p1, p3, v1}, Lcom/google/android/gms/common/ConnectionResult;-><init>(ILandroid/app/PendingIntent;Ljava/lang/String;)V
invoke-static {v0}, Lcom/google/android/gms/common/api/internal/zap;->zae(Lcom/google/android/gms/common/api/internal/zam;)I
move-result p1
invoke-direct {p0, p2, p1}, Lcom/google/android/gms/common/api/internal/zap;->zaa(Lcom/google/android/gms/common/ConnectionResult;I)V
return-void
:goto_0
:cond_7
if-eqz v0, :cond_8
invoke-virtual {v0}, Lcom/google/android/gms/common/api/internal/zam;->zab()Lcom/google/android/gms/common/ConnectionResult;
move-result-object p1
invoke-virtual {v0}, Lcom/google/android/gms/common/api/internal/zam;->zaa()I
move-result p2
invoke-direct {p0, p1, p2}, Lcom/google/android/gms/common/api/internal/zap;->zaa(Lcom/google/android/gms/common/ConnectionResult;I)V
:cond_8
return-void
.end method
.method public final onCancel(Landroid/content/DialogInterface;)V
.locals 2
new-instance p1, Lcom/google/android/gms/common/ConnectionResult;
const/16 v0, 0xd
const/4 v1, 0x0
invoke-direct {p1, v0, v1}, Lcom/google/android/gms/common/ConnectionResult;-><init>(ILandroid/app/PendingIntent;)V
iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zap;->zab:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/android/gms/common/api/internal/zam;
invoke-static {v0}, Lcom/google/android/gms/common/api/internal/zap;->zae(Lcom/google/android/gms/common/api/internal/zam;)I
move-result v0
invoke-direct {p0, p1, v0}, Lcom/google/android/gms/common/api/internal/zap;->zaa(Lcom/google/android/gms/common/ConnectionResult;I)V
return-void
.end method
.method public final onCreate(Landroid/os/Bundle;)V
.locals 4
invoke-super {p0, p1}, Lcom/google/android/gms/common/api/internal/LifecycleCallback;->onCreate(Landroid/os/Bundle;)V
if-eqz p1, :cond_1
iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zap;->zab:Ljava/util/concurrent/atomic/AtomicReference;
const/4 v1, 0x0
const-string v2, "resolving_error"
invoke-virtual {p1, v2, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v1
if-eqz v1, :cond_0
new-instance v1, Lcom/google/android/gms/common/ConnectionResult;
const-string v2, "failed_status"
invoke-virtual {p1, v2}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
move-result v2
const-string v3, "failed_resolution"
invoke-virtual {p1, v3}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
move-result-object v3
check-cast v3, Landroid/app/PendingIntent;
invoke-direct {v1, v2, v3}, Lcom/google/android/gms/common/ConnectionResult;-><init>(ILandroid/app/PendingIntent;)V
const/4 v2, -0x1
const-string v3, "failed_client_id"
invoke-virtual {p1, v3, v2}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I
move-result p1
new-instance v2, Lcom/google/android/gms/common/api/internal/zam;
invoke-direct {v2, v1, p1}, Lcom/google/android/gms/common/api/internal/zam;-><init>(Lcom/google/android/gms/common/ConnectionResult;I)V
goto :goto_0
:cond_0
const/4 v2, 0x0
:goto_0
invoke-virtual {v0, v2}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V
:cond_1
return-void
.end method
.method public final onSaveInstanceState(Landroid/os/Bundle;)V
.locals 3
invoke-super {p0, p1}, Lcom/google/android/gms/common/api/internal/LifecycleCallback;->onSaveInstanceState(Landroid/os/Bundle;)V
iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zap;->zab:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/android/gms/common/api/internal/zam;
if-nez v0, :cond_0
return-void
:cond_0
const/4 v1, 0x1
const-string v2, "resolving_error"
invoke-virtual {p1, v2, v1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
invoke-virtual {v0}, Lcom/google/android/gms/common/api/internal/zam;->zaa()I
move-result v1
const-string v2, "failed_client_id"
invoke-virtual {p1, v2, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
invoke-virtual {v0}, Lcom/google/android/gms/common/api/internal/zam;->zab()Lcom/google/android/gms/common/ConnectionResult;
move-result-object v1
invoke-virtual {v1}, Lcom/google/android/gms/common/ConnectionResult;->getErrorCode()I
move-result v1
const-string v2, "failed_status"
invoke-virtual {p1, v2, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
invoke-virtual {v0}, Lcom/google/android/gms/common/api/internal/zam;->zab()Lcom/google/android/gms/common/ConnectionResult;
move-result-object v0
invoke-virtual {v0}, Lcom/google/android/gms/common/ConnectionResult;->getResolution()Landroid/app/PendingIntent;
move-result-object v0
const-string v1, "failed_resolution"
invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
return-void
.end method
.method public onStart()V
.locals 1
invoke-super {p0}, Lcom/google/android/gms/common/api/internal/LifecycleCallback;->onStart()V
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/google/android/gms/common/api/internal/zap;->zaa:Z
return-void
.end method
.method public onStop()V
.locals 1
invoke-super {p0}, Lcom/google/android/gms/common/api/internal/LifecycleCallback;->onStop()V
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/google/android/gms/common/api/internal/zap;->zaa:Z
return-void
.end method
.method protected abstract zab(Lcom/google/android/gms/common/ConnectionResult;I)V
.end method
.method protected abstract zac()V
.end method
.method public final zah(Lcom/google/android/gms/common/ConnectionResult;I)V
.locals 1
new-instance v0, Lcom/google/android/gms/common/api/internal/zam;
invoke-direct {v0, p1, p2}, Lcom/google/android/gms/common/api/internal/zam;-><init>(Lcom/google/android/gms/common/ConnectionResult;I)V
iget-object p1, p0, Lcom/google/android/gms/common/api/internal/zap;->zab:Ljava/util/concurrent/atomic/AtomicReference;
const/4 p2, 0x0
invoke-static {p1, p2, v0}, Lcom/google/android/gms/common/api/internal/zap$$ExternalSyntheticBackportWithForwarding0;->m(Ljava/util/concurrent/atomic/AtomicReference;Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_0
iget-object p1, p0, Lcom/google/android/gms/common/api/internal/zap;->zad:Landroid/os/Handler;
new-instance p2, Lcom/google/android/gms/common/api/internal/zao;
invoke-direct {p2, p0, v0}, Lcom/google/android/gms/common/api/internal/zao;-><init>(Lcom/google/android/gms/common/api/internal/zap;Lcom/google/android/gms/common/api/internal/zam;)V
invoke-virtual {p1, p2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
:cond_0
return-void
.end method