950 lines
22 KiB
Smali
950 lines
22 KiB
Smali
.class final Lcom/google/firebase/iid/e;
|
|
.super Ljava/lang/Object;
|
|
|
|
# interfaces
|
|
.implements Landroid/content/ServiceConnection;
|
|
|
|
|
|
# instance fields
|
|
.field final aPH:Landroid/os/Messenger;
|
|
|
|
.field aPI:Lcom/google/firebase/iid/k;
|
|
|
|
.field final aPJ:Ljava/util/Queue;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Queue<",
|
|
"Lcom/google/firebase/iid/m<",
|
|
"*>;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Ljavax/annotation/concurrent/GuardedBy;
|
|
value = "this"
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final aPK:Landroid/util/SparseArray;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroid/util/SparseArray<",
|
|
"Lcom/google/firebase/iid/m<",
|
|
"*>;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Ljavax/annotation/concurrent/GuardedBy;
|
|
value = "this"
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final synthetic aPL:Lcom/google/firebase/iid/d;
|
|
|
|
.field state:I
|
|
.annotation build Ljavax/annotation/concurrent/GuardedBy;
|
|
value = "this"
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>(Lcom/google/firebase/iid/d;)V
|
|
.locals 3
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/iid/e;->aPL:Lcom/google/firebase/iid/d;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput p1, p0, Lcom/google/firebase/iid/e;->state:I
|
|
|
|
new-instance p1, Landroid/os/Messenger;
|
|
|
|
new-instance v0, Lcom/google/android/gms/internal/e/d;
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Lcom/google/firebase/iid/g;
|
|
|
|
invoke-direct {v2, p0}, Lcom/google/firebase/iid/g;-><init>(Lcom/google/firebase/iid/e;)V
|
|
|
|
invoke-direct {v0, v1, v2}, Lcom/google/android/gms/internal/e/d;-><init>(Landroid/os/Looper;Landroid/os/Handler$Callback;)V
|
|
|
|
invoke-direct {p1, v0}, Landroid/os/Messenger;-><init>(Landroid/os/Handler;)V
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/iid/e;->aPH:Landroid/os/Messenger;
|
|
|
|
new-instance p1, Ljava/util/ArrayDeque;
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayDeque;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/iid/e;->aPJ:Ljava/util/Queue;
|
|
|
|
new-instance p1, Landroid/util/SparseArray;
|
|
|
|
invoke-direct {p1}, Landroid/util/SparseArray;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/iid/e;->aPK:Landroid/util/SparseArray;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method synthetic constructor <init>(Lcom/google/firebase/iid/d;B)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/firebase/iid/e;-><init>(Lcom/google/firebase/iid/d;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final wv()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/iid/e;->aPL:Lcom/google/firebase/iid/d;
|
|
|
|
iget-object v0, v0, Lcom/google/firebase/iid/d;->aPE:Ljava/util/concurrent/ScheduledExecutorService;
|
|
|
|
new-instance v1, Lcom/google/firebase/iid/i;
|
|
|
|
invoke-direct {v1, p0}, Lcom/google/firebase/iid/i;-><init>(Lcom/google/firebase/iid/e;)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/concurrent/ScheduledExecutorService;->execute(Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method final declared-synchronized b(Lcom/google/firebase/iid/m;)Z
|
|
.locals 5
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget v0, p0, Lcom/google/firebase/iid/e;->state:I
|
|
|
|
const/4 v1, 0x2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
if-eq v0, v3, :cond_3
|
|
|
|
if-eq v0, v1, :cond_2
|
|
|
|
const/4 p1, 0x3
|
|
|
|
if-eq v0, p1, :cond_1
|
|
|
|
const/4 p1, 0x4
|
|
|
|
if-ne v0, p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
iget v0, p0, Lcom/google/firebase/iid/e;->state:I
|
|
|
|
const/16 v1, 0x1a
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2, v1}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
const-string v1, "Unknown state: "
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
monitor-exit p0
|
|
|
|
return v2
|
|
|
|
:cond_2
|
|
:try_start_1
|
|
iget-object v0, p0, Lcom/google/firebase/iid/e;->aPJ:Ljava/util/Queue;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Queue;->add(Ljava/lang/Object;)Z
|
|
|
|
invoke-direct {p0}, Lcom/google/firebase/iid/e;->wv()V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return v3
|
|
|
|
:cond_3
|
|
:try_start_2
|
|
iget-object v0, p0, Lcom/google/firebase/iid/e;->aPJ:Ljava/util/Queue;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Queue;->add(Ljava/lang/Object;)Z
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return v3
|
|
|
|
:cond_4
|
|
:try_start_3
|
|
iget-object v0, p0, Lcom/google/firebase/iid/e;->aPJ:Ljava/util/Queue;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Queue;->add(Ljava/lang/Object;)Z
|
|
|
|
iget p1, p0, Lcom/google/firebase/iid/e;->state:I
|
|
|
|
if-nez p1, :cond_5
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_5
|
|
const/4 p1, 0x0
|
|
|
|
:goto_1
|
|
invoke-static {p1}, Lcom/google/android/gms/common/internal/p;->checkState(Z)V
|
|
|
|
const-string p1, "MessengerIpcClient"
|
|
|
|
invoke-static {p1, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
const-string p1, "MessengerIpcClient"
|
|
|
|
const-string v0, "Starting bind to GmsCore"
|
|
|
|
invoke-static {p1, v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_6
|
|
iput v3, p0, Lcom/google/firebase/iid/e;->state:I
|
|
|
|
new-instance p1, Landroid/content/Intent;
|
|
|
|
const-string v0, "com.google.android.c2dm.intent.REGISTER"
|
|
|
|
invoke-direct {p1, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string v0, "com.google.android.gms"
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
invoke-static {}, Lcom/google/android/gms/common/stats/a;->lS()Lcom/google/android/gms/common/stats/a;
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/iid/e;->aPL:Lcom/google/firebase/iid/d;
|
|
|
|
iget-object v0, v0, Lcom/google/firebase/iid/d;->aPD:Landroid/content/Context;
|
|
|
|
invoke-static {v0, p1, p0, v3}, Lcom/google/android/gms/common/stats/a;->b(Landroid/content/Context;Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_7
|
|
|
|
const-string p1, "Unable to bind to service"
|
|
|
|
invoke-virtual {p0, v2, p1}, Lcom/google/firebase/iid/e;->e(ILjava/lang/String;)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_7
|
|
iget-object p1, p0, Lcom/google/firebase/iid/e;->aPL:Lcom/google/firebase/iid/d;
|
|
|
|
iget-object p1, p1, Lcom/google/firebase/iid/d;->aPE:Ljava/util/concurrent/ScheduledExecutorService;
|
|
|
|
new-instance v0, Lcom/google/firebase/iid/f;
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/firebase/iid/f;-><init>(Lcom/google/firebase/iid/e;)V
|
|
|
|
const-wide/16 v1, 0x1e
|
|
|
|
sget-object v4, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-interface {p1, v0, v1, v2, v4}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
:goto_2
|
|
monitor-exit p0
|
|
|
|
return v3
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method final c(Landroid/os/Message;)Z
|
|
.locals 4
|
|
|
|
iget v0, p1, Landroid/os/Message;->arg1:I
|
|
|
|
const-string v1, "MessengerIpcClient"
|
|
|
|
const/4 v2, 0x3
|
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const/16 v1, 0x29
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2, v1}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
const-string v1, "Received response to request: "
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "MessengerIpcClient"
|
|
|
|
invoke-static {v2, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_0
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v1, p0, Lcom/google/firebase/iid/e;->aPK:Landroid/util/SparseArray;
|
|
|
|
invoke-virtual {v1, v0}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/google/firebase/iid/m;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
const-string p1, "MessengerIpcClient"
|
|
|
|
const/16 v1, 0x32
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3, v1}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
const-string v1, "Received response for unknown request: "
|
|
|
|
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
monitor-exit p0
|
|
|
|
return v2
|
|
|
|
:cond_1
|
|
iget-object v3, p0, Lcom/google/firebase/iid/e;->aPK:Landroid/util/SparseArray;
|
|
|
|
invoke-virtual {v3, v0}, Landroid/util/SparseArray;->remove(I)V
|
|
|
|
invoke-virtual {p0}, Lcom/google/firebase/iid/e;->ww()V
|
|
|
|
monitor-exit p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-virtual {p1}, Landroid/os/Message;->getData()Landroid/os/Bundle;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const-string v3, "unsupported"
|
|
|
|
invoke-virtual {p1, v3, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
new-instance p1, Lcom/google/firebase/iid/l;
|
|
|
|
const/4 v0, 0x4
|
|
|
|
const-string v3, "Not supported by GmsCore"
|
|
|
|
invoke-direct {p1, v0, v3}, Lcom/google/firebase/iid/l;-><init>(ILjava/lang/String;)V
|
|
|
|
invoke-virtual {v1, p1}, Lcom/google/firebase/iid/m;->a(Lcom/google/firebase/iid/l;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
invoke-virtual {v1, p1}, Lcom/google/firebase/iid/m;->d(Landroid/os/Bundle;)V
|
|
|
|
:goto_0
|
|
return v2
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
:try_start_1
|
|
monitor-exit p0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method final declared-synchronized cD(I)V
|
|
.locals 4
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/google/firebase/iid/e;->aPK:Landroid/util/SparseArray;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/google/firebase/iid/m;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v1, "MessengerIpcClient"
|
|
|
|
const/16 v2, 0x1f
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3, v2}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
const-string v2, "Timing out request: "
|
|
|
|
invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
iget-object v1, p0, Lcom/google/firebase/iid/e;->aPK:Landroid/util/SparseArray;
|
|
|
|
invoke-virtual {v1, p1}, Landroid/util/SparseArray;->remove(I)V
|
|
|
|
new-instance p1, Lcom/google/firebase/iid/l;
|
|
|
|
const/4 v1, 0x3
|
|
|
|
const-string v2, "Timed out waiting for response"
|
|
|
|
invoke-direct {p1, v1, v2}, Lcom/google/firebase/iid/l;-><init>(ILjava/lang/String;)V
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/firebase/iid/m;->a(Lcom/google/firebase/iid/l;)V
|
|
|
|
invoke-virtual {p0}, Lcom/google/firebase/iid/e;->ww()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
:cond_0
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method final declared-synchronized e(ILjava/lang/String;)V
|
|
.locals 5
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
const-string v0, "MessengerIpcClient"
|
|
|
|
const/4 v1, 0x3
|
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const-string v0, "MessengerIpcClient"
|
|
|
|
const-string v2, "Disconnected: "
|
|
|
|
invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Ljava/lang/String;->length()I
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v3, Ljava/lang/String;
|
|
|
|
invoke-direct {v3, v2}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
|
|
|
|
move-object v2, v3
|
|
|
|
:goto_0
|
|
invoke-static {v0, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_1
|
|
iget v0, p0, Lcom/google/firebase/iid/e;->state:I
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
const/4 v2, 0x2
|
|
|
|
const/4 v3, 0x1
|
|
|
|
const/4 v4, 0x4
|
|
|
|
if-eq v0, v3, :cond_4
|
|
|
|
if-eq v0, v2, :cond_4
|
|
|
|
if-eq v0, v1, :cond_3
|
|
|
|
if-ne v0, v4, :cond_2
|
|
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
:try_start_1
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
iget p2, p0, Lcom/google/firebase/iid/e;->state:I
|
|
|
|
const/16 v0, 0x1a
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
const-string v0, "Unknown state: "
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_3
|
|
iput v4, p0, Lcom/google/firebase/iid/e;->state:I
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:cond_4
|
|
:try_start_2
|
|
const-string v0, "MessengerIpcClient"
|
|
|
|
invoke-static {v0, v2}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const-string v0, "MessengerIpcClient"
|
|
|
|
const-string v1, "Unbinding service"
|
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_5
|
|
iput v4, p0, Lcom/google/firebase/iid/e;->state:I
|
|
|
|
invoke-static {}, Lcom/google/android/gms/common/stats/a;->lS()Lcom/google/android/gms/common/stats/a;
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/iid/e;->aPL:Lcom/google/firebase/iid/d;
|
|
|
|
iget-object v0, v0, Lcom/google/firebase/iid/d;->aPD:Landroid/content/Context;
|
|
|
|
invoke-static {v0, p0}, Lcom/google/android/gms/common/stats/a;->a(Landroid/content/Context;Landroid/content/ServiceConnection;)V
|
|
|
|
new-instance v0, Lcom/google/firebase/iid/l;
|
|
|
|
invoke-direct {v0, p1, p2}, Lcom/google/firebase/iid/l;-><init>(ILjava/lang/String;)V
|
|
|
|
iget-object p1, p0, Lcom/google/firebase/iid/e;->aPJ:Ljava/util/Queue;
|
|
|
|
invoke-interface {p1}, Ljava/util/Queue;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_1
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_6
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lcom/google/firebase/iid/m;
|
|
|
|
invoke-virtual {p2, v0}, Lcom/google/firebase/iid/m;->a(Lcom/google/firebase/iid/l;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_6
|
|
iget-object p1, p0, Lcom/google/firebase/iid/e;->aPJ:Ljava/util/Queue;
|
|
|
|
invoke-interface {p1}, Ljava/util/Queue;->clear()V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
:goto_2
|
|
iget-object p2, p0, Lcom/google/firebase/iid/e;->aPK:Landroid/util/SparseArray;
|
|
|
|
invoke-virtual {p2}, Landroid/util/SparseArray;->size()I
|
|
|
|
move-result p2
|
|
|
|
if-ge p1, p2, :cond_7
|
|
|
|
iget-object p2, p0, Lcom/google/firebase/iid/e;->aPK:Landroid/util/SparseArray;
|
|
|
|
invoke-virtual {p2, p1}, Landroid/util/SparseArray;->valueAt(I)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lcom/google/firebase/iid/m;
|
|
|
|
invoke-virtual {p2, v0}, Lcom/google/firebase/iid/m;->a(Lcom/google/firebase/iid/l;)V
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_7
|
|
iget-object p1, p0, Lcom/google/firebase/iid/e;->aPK:Landroid/util/SparseArray;
|
|
|
|
invoke-virtual {p1}, Landroid/util/SparseArray;->clear()V
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:cond_8
|
|
:try_start_3
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/IllegalStateException;-><init>()V
|
|
|
|
throw p1
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
goto :goto_4
|
|
|
|
:goto_3
|
|
throw p1
|
|
|
|
:goto_4
|
|
goto :goto_3
|
|
.end method
|
|
|
|
.method public final declared-synchronized onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V
|
|
.locals 2
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
const-string p1, "MessengerIpcClient"
|
|
|
|
const/4 v0, 0x2
|
|
|
|
invoke-static {p1, v0}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const-string p1, "MessengerIpcClient"
|
|
|
|
const-string v1, "Service connected"
|
|
|
|
invoke-static {p1, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
if-nez p2, :cond_1
|
|
|
|
const-string p2, "Null service connection"
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/google/firebase/iid/e;->e(ILjava/lang/String;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
:try_start_1
|
|
new-instance v1, Lcom/google/firebase/iid/k;
|
|
|
|
invoke-direct {v1, p2}, Lcom/google/firebase/iid/k;-><init>(Landroid/os/IBinder;)V
|
|
|
|
iput-object v1, p0, Lcom/google/firebase/iid/e;->aPI:Lcom/google/firebase/iid/k;
|
|
:try_end_1
|
|
.catch Landroid/os/RemoteException; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:try_start_2
|
|
iput v0, p0, Lcom/google/firebase/iid/e;->state:I
|
|
|
|
invoke-direct {p0}, Lcom/google/firebase/iid/e;->wv()V
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:catch_0
|
|
move-exception p2
|
|
|
|
:try_start_3
|
|
invoke-virtual {p2}, Landroid/os/RemoteException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/google/firebase/iid/e;->e(ILjava/lang/String;)V
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final declared-synchronized onServiceDisconnected(Landroid/content/ComponentName;)V
|
|
.locals 2
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
const-string p1, "MessengerIpcClient"
|
|
|
|
const/4 v0, 0x2
|
|
|
|
invoke-static {p1, v0}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const-string p1, "MessengerIpcClient"
|
|
|
|
const-string v1, "Service disconnected"
|
|
|
|
invoke-static {p1, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_0
|
|
const-string p1, "Service disconnected"
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/google/firebase/iid/e;->e(ILjava/lang/String;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method final declared-synchronized ww()V
|
|
.locals 2
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget v0, p0, Lcom/google/firebase/iid/e;->state:I
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/iid/e;->aPJ:Ljava/util/Queue;
|
|
|
|
invoke-interface {v0}, Ljava/util/Queue;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/iid/e;->aPK:Landroid/util/SparseArray;
|
|
|
|
invoke-virtual {v0}, Landroid/util/SparseArray;->size()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const-string v0, "MessengerIpcClient"
|
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "MessengerIpcClient"
|
|
|
|
const-string v1, "Finished handling requests, unbinding"
|
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_0
|
|
const/4 v0, 0x3
|
|
|
|
iput v0, p0, Lcom/google/firebase/iid/e;->state:I
|
|
|
|
invoke-static {}, Lcom/google/android/gms/common/stats/a;->lS()Lcom/google/android/gms/common/stats/a;
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/iid/e;->aPL:Lcom/google/firebase/iid/d;
|
|
|
|
iget-object v0, v0, Lcom/google/firebase/iid/d;->aPD:Landroid/content/Context;
|
|
|
|
invoke-static {v0, p0}, Lcom/google/android/gms/common/stats/a;->a(Landroid/content/Context;Landroid/content/ServiceConnection;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
:cond_1
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
monitor-exit p0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method final declared-synchronized wx()V
|
|
.locals 2
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget v0, p0, Lcom/google/firebase/iid/e;->state:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
const-string v0, "Timed out while binding"
|
|
|
|
invoke-virtual {p0, v1, v0}, Lcom/google/firebase/iid/e;->e(ILjava/lang/String;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
:cond_0
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
monitor-exit p0
|
|
|
|
throw v0
|
|
.end method
|