granularity level: instruction
.class public final La0/g0;
.super Ljava/lang/Object;
.source "SourceFile"
.field public static final g:Ljava/lang/Object;
.field public static h:La0/g0;
.field public static i:Landroid/os/HandlerThread;
.field public final a:Ljava/util/HashMap;
.field public final b:Landroid/content/Context;
.field public volatile c:Lh0/d;
.field public final d:Ld0/a;
.field public final e:J
.field public final f:J
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Ljava/lang/Object;
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
sput-object v0, La0/g0;->g:Ljava/lang/Object;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/os/Looper;)V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, La0/g0;->a:Ljava/util/HashMap;
new-instance v0, La0/f0;
invoke-direct {v0, p0}, La0/f0;-><init>(La0/g0;)V
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p1
iput-object p1, p0, La0/g0;->b:Landroid/content/Context;
new-instance p1, Lh0/d;
invoke-direct {p1, p2, v0}, Lh0/d;-><init>(Landroid/os/Looper;Landroid/os/Handler$Callback;)V
iput-object p1, p0, La0/g0;->c:Lh0/d;
invoke-static {}, Ld0/a;->a()Ld0/a;
move-result-object p1
iput-object p1, p0, La0/g0;->d:Ld0/a;
const-wide/16 p1, 0x1388
iput-wide p1, p0, La0/g0;->e:J
const-wide/32 p1, 0x493e0
iput-wide p1, p0, La0/g0;->f:J
return-void
.end method
.method public final a(Ljava/lang/String;Ljava/lang/String;ILa0/y;Z)V
.locals 1
new-instance v0, La0/c0;
invoke-direct {v0, p1, p2, p3, p5}, La0/c0;-><init>(Ljava/lang/String;Ljava/lang/String;IZ)V
iget-object p1, p0, La0/g0;->a:Ljava/util/HashMap;
monitor-enter p1
:try_start_0
iget-object p2, p0, La0/g0;->a:Ljava/util/HashMap;
invoke-virtual {p2, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
check-cast p2, La0/e0;
if-eqz p2, :cond_2
iget-object p3, p2, La0/e0;->a:Ljava/util/HashMap;
invoke-virtual {p3, p4}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z
move-result p3
if-eqz p3, :cond_1
iget-object p3, p2, La0/e0;->a:Ljava/util/HashMap;
invoke-virtual {p3, p4}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
iget-object p2, p2, La0/e0;->a:Ljava/util/HashMap;
invoke-virtual {p2}, Ljava/util/HashMap;->isEmpty()Z
move-result p2
if-eqz p2, :cond_0
iget-object p2, p0, La0/g0;->c:Lh0/d;
const/4 p3, 0x0
invoke-virtual {p2, p3, v0}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;
move-result-object p2
iget-object p3, p0, La0/g0;->c:Lh0/d;
iget-wide p4, p0, La0/g0;->e:J
invoke-virtual {p3, p2, p4, p5}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z
:cond_0
monitor-exit p1
return-void
:cond_1
new-instance p2, Ljava/lang/IllegalStateException;
invoke-virtual {v0}, La0/c0;->toString()Ljava/lang/String;
move-result-object p3
new-instance p4, Ljava/lang/StringBuilder;
invoke-direct {p4}, Ljava/lang/StringBuilder;-><init>()V
const-string p5, "Trying to unbind a GmsServiceConnection that was not bound before. config="
invoke-virtual {p4, p5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p4, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p3
invoke-direct {p2, p3}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p2
:cond_2
new-instance p2, Ljava/lang/IllegalStateException;
invoke-virtual {v0}, La0/c0;->toString()Ljava/lang/String;
move-result-object p3
new-instance p4, Ljava/lang/StringBuilder;
invoke-direct {p4}, Ljava/lang/StringBuilder;-><init>()V
const-string p5, "Nonexistent connection status for service config: "
invoke-virtual {p4, p5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p4, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p3
invoke-direct {p2, p3}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p2
:catchall_0
move-exception p2
monitor-exit p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p2
.end method
.method public final b(La0/c0;La0/y;Ljava/lang/String;)Z
.locals 4
iget-object v0, p0, La0/g0;->a:Ljava/util/HashMap;
monitor-enter v0
:try_start_0
iget-object v1, p0, La0/g0;->a:Ljava/util/HashMap;
invoke-virtual {v1, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, La0/e0;
if-nez v1, :cond_0
new-instance v1, La0/e0;
invoke-direct {v1, p0, p1}, La0/e0;-><init>(La0/g0;La0/c0;)V
iget-object v2, v1, La0/e0;->a:Ljava/util/HashMap;
invoke-virtual {v2, p2, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
invoke-virtual {v1, p3}, La0/e0;->a(Ljava/lang/String;)V
iget-object p2, p0, La0/g0;->a:Ljava/util/HashMap;
invoke-virtual {p2, p1, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_0
:catchall_0
move-exception p1
goto :goto_1
:cond_0
iget-object v2, p0, La0/g0;->c:Lh0/d;
const/4 v3, 0x0
invoke-virtual {v2, v3, p1}, Landroid/os/Handler;->removeMessages(ILjava/lang/Object;)V
iget-object v2, v1, La0/e0;->a:Ljava/util/HashMap;
invoke-virtual {v2, p2}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_3
iget-object p1, v1, La0/e0;->a:Ljava/util/HashMap;
invoke-virtual {p1, p2, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget p1, v1, La0/e0;->b:I
const/4 v2, 0x1
if-eq p1, v2, :cond_2
const/4 p2, 0x2
if-eq p1, p2, :cond_1
goto :goto_0
:cond_1
invoke-virtual {v1, p3}, La0/e0;->a(Ljava/lang/String;)V
goto :goto_0
:cond_2
iget-object p1, v1, La0/e0;->f:Landroid/content/ComponentName;
iget-object p3, v1, La0/e0;->d:Landroid/os/IBinder;
invoke-virtual {p2, p1, p3}, La0/y;->onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V
:goto_0
iget-boolean p1, v1, La0/e0;->c:Z
monitor-exit v0
return p1
:cond_3
new-instance p2, Ljava/lang/IllegalStateException;
invoke-virtual {p1}, La0/c0;->toString()Ljava/lang/String;
move-result-object p1
new-instance p3, Ljava/lang/StringBuilder;
invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Trying to bind a GmsServiceConnection that was already connected before. config="
invoke-virtual {p3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p2
:goto_1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
.end method