241 lines
6.3 KiB
Smali
241 lines
6.3 KiB
Smali
.class final synthetic Lcom/google/firebase/iid/h;
|
|
.super Ljava/lang/Object;
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
# instance fields
|
|
.field private final aNN:Lcom/google/firebase/iid/e;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/google/firebase/iid/e;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/iid/h;->aNN:Lcom/google/firebase/iid/e;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final run()V
|
|
.locals 8
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/iid/h;->aNN:Lcom/google/firebase/iid/e;
|
|
|
|
:goto_0
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
iget v1, v0, Lcom/google/firebase/iid/e;->state:I
|
|
|
|
const/4 v2, 0x2
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v1, v0, Lcom/google/firebase/iid/e;->aNK:Ljava/util/Queue;
|
|
|
|
invoke-interface {v1}, Ljava/util/Queue;->isEmpty()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {v0}, Lcom/google/firebase/iid/e;->ve()V
|
|
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
iget-object v1, v0, Lcom/google/firebase/iid/e;->aNK:Ljava/util/Queue;
|
|
|
|
invoke-interface {v1}, Ljava/util/Queue;->poll()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/google/firebase/iid/l;
|
|
|
|
iget-object v3, v0, Lcom/google/firebase/iid/e;->aNL:Landroid/util/SparseArray;
|
|
|
|
iget v4, v1, Lcom/google/firebase/iid/l;->aNR:I
|
|
|
|
invoke-virtual {v3, v4, v1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
|
|
|
iget-object v3, v0, Lcom/google/firebase/iid/e;->aNM:Lcom/google/firebase/iid/d;
|
|
|
|
iget-object v3, v3, Lcom/google/firebase/iid/d;->aNG:Ljava/util/concurrent/ScheduledExecutorService;
|
|
|
|
new-instance v4, Lcom/google/firebase/iid/i;
|
|
|
|
invoke-direct {v4, v0, v1}, Lcom/google/firebase/iid/i;-><init>(Lcom/google/firebase/iid/e;Lcom/google/firebase/iid/l;)V
|
|
|
|
const-wide/16 v5, 0x1e
|
|
|
|
sget-object v7, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-interface {v3, v4, v5, v6, v7}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
const-string v3, "MessengerIpcClient"
|
|
|
|
const/4 v4, 0x3
|
|
|
|
invoke-static {v3, v4}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
const-string v3, "MessengerIpcClient"
|
|
|
|
invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5}, Ljava/lang/String;->length()I
|
|
|
|
move-result v5
|
|
|
|
add-int/lit8 v5, v5, 0x8
|
|
|
|
new-instance v6, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v6, v5}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
const-string v5, "Sending "
|
|
|
|
invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_2
|
|
iget-object v3, v0, Lcom/google/firebase/iid/e;->aNM:Lcom/google/firebase/iid/d;
|
|
|
|
iget-object v3, v3, Lcom/google/firebase/iid/d;->aNF:Landroid/content/Context;
|
|
|
|
iget-object v4, v0, Lcom/google/firebase/iid/e;->aNI:Landroid/os/Messenger;
|
|
|
|
invoke-static {}, Landroid/os/Message;->obtain()Landroid/os/Message;
|
|
|
|
move-result-object v5
|
|
|
|
iget v6, v1, Lcom/google/firebase/iid/l;->what:I
|
|
|
|
iput v6, v5, Landroid/os/Message;->what:I
|
|
|
|
iget v6, v1, Lcom/google/firebase/iid/l;->aNR:I
|
|
|
|
iput v6, v5, Landroid/os/Message;->arg1:I
|
|
|
|
iput-object v4, v5, Landroid/os/Message;->replyTo:Landroid/os/Messenger;
|
|
|
|
new-instance v4, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v4}, Landroid/os/Bundle;-><init>()V
|
|
|
|
const-string v6, "oneWay"
|
|
|
|
invoke-virtual {v1}, Lcom/google/firebase/iid/l;->vg()Z
|
|
|
|
move-result v7
|
|
|
|
invoke-virtual {v4, v6, v7}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
|
|
|
|
const-string v6, "pkg"
|
|
|
|
invoke-virtual {v3}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v4, v6, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const-string v3, "data"
|
|
|
|
iget-object v1, v1, Lcom/google/firebase/iid/l;->aNT:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {v4, v3, v1}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V
|
|
|
|
invoke-virtual {v5, v4}, Landroid/os/Message;->setData(Landroid/os/Bundle;)V
|
|
|
|
:try_start_1
|
|
iget-object v1, v0, Lcom/google/firebase/iid/e;->aNJ:Lcom/google/firebase/iid/j;
|
|
|
|
iget-object v3, v1, Lcom/google/firebase/iid/j;->aNP:Landroid/os/Messenger;
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
iget-object v1, v1, Lcom/google/firebase/iid/j;->aNP:Landroid/os/Messenger;
|
|
|
|
invoke-virtual {v1, v5}, Landroid/os/Messenger;->send(Landroid/os/Message;)V
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_3
|
|
iget-object v3, v1, Lcom/google/firebase/iid/j;->aNQ:Lcom/google/firebase/iid/zzl;
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
iget-object v1, v1, Lcom/google/firebase/iid/j;->aNQ:Lcom/google/firebase/iid/zzl;
|
|
|
|
invoke-virtual {v1, v5}, Lcom/google/firebase/iid/zzl;->send(Landroid/os/Message;)V
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_4
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v3, "Both messengers are null"
|
|
|
|
invoke-direct {v1, v3}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
:try_end_1
|
|
.catch Landroid/os/RemoteException; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
invoke-virtual {v1}, Landroid/os/RemoteException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v2, v1}, Lcom/google/firebase/iid/e;->e(ILjava/lang/String;)V
|
|
|
|
goto/16 :goto_0
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
:try_start_2
|
|
monitor-exit v0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
throw v1
|
|
|
|
return-void
|
|
.end method
|