granularity level: instruction
.class public final Lcom/google/firebase/iid/FirebaseInstanceIdReceiver;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"
.field public final a:Ljava/util/concurrent/ExecutorService;
.method public constructor <init>()V
.locals 9
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
new-instance v7, La/b;
const-string v0, "firebase-iid-executor"
invoke-direct {v7, v0}, La/b;-><init>(Ljava/lang/String;)V
new-instance v8, Ljava/util/concurrent/ThreadPoolExecutor;
sget-object v5, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
new-instance v6, Ljava/util/concurrent/LinkedBlockingQueue;
invoke-direct {v6}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>()V
const/4 v1, 0x1
const/4 v2, 0x1
const-wide/16 v3, 0x3c
move-object v0, v8
invoke-direct/range {v0 .. v7}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V
const/4 v0, 0x1
invoke-virtual {v8, v0}, Ljava/util/concurrent/ThreadPoolExecutor;->allowCoreThreadTimeOut(Z)V
invoke-static {v8}, Ljava/util/concurrent/Executors;->unconfigurableExecutorService(Ljava/util/concurrent/ExecutorService;)Ljava/util/concurrent/ExecutorService;
move-result-object v0
iput-object v0, p0, Lcom/google/firebase/iid/FirebaseInstanceIdReceiver;->a:Ljava/util/concurrent/ExecutorService;
return-void
.end method
.method public static b(Landroid/content/Context;Landroid/content/Intent;)I
.locals 6
invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object v0
const/16 v1, 0x1f4
const-string v0, "google.message_id"
invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v3
new-instance v3, Landroid/os/Bundle;
invoke-direct {v3}, Landroid/os/Bundle;-><init>()V
invoke-virtual {v3, v0, v2}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
invoke-static {p0}, Lw/m;->a(Landroid/content/Context;)Lw/m;
move-result-object v0
new-instance v2, Lw/k;
monitor-enter v0
:try_start_0
iget v4, v0, Lw/m;->d:I
add-int/lit8 v5, v4, 0x1
iput v5, v0, Lw/m;->d:I
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit v0
const/4 v5, 0x0
invoke-direct {v2, v4, v3, v5}, Lw/k;-><init>(ILandroid/os/Bundle;I)V
invoke-virtual {v0, v2}, Lw/m;->b(Lw/k;)Lo0/o;
move-result-object v0
:goto_0
new-instance v2, Lh1/l;
invoke-direct {v2, p0}, Lh1/l;-><init>(Landroid/content/Context;)V
invoke-virtual {v2, p1}, Lh1/l;->b(Landroid/content/Intent;)Lo0/o;
move-result-object p0
invoke-static {p0}, Lf0/a;->a(Lo0/o;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/lang/Integer;
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result v1
sget-object p0, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
const-wide/16 v2, 0x1
invoke-virtual {p0, v2, v3}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
move-result-wide p0
sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-static {v0, p0, p1, v2}, Lf0/a;->b(Lo0/o;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
return v1
:catchall_0
move-exception p0
monitor-exit v0
throw p0
.end method
.method public static c(Landroid/content/Intent;)I
.locals 3
const-string v0, "pending_intent"
invoke-virtual {p0, v0}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;
move-result-object v1
check-cast v1, Landroid/app/PendingIntent;
const-string v2, "CloudMessagingReceiver"
:goto_0
invoke-virtual {p0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object v1
invoke-virtual {v1, v0}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V
invoke-virtual {p0}, Landroid/content/Intent;->getAction()Ljava/lang/String;
move-result-object p0
const-string v0, "com.google.firebase.messaging.NOTIFICATION_DISMISS"
invoke-virtual {v0, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
new-instance p0, Landroid/content/Intent;
invoke-direct {p0, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
invoke-virtual {p0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
move-result-object p0
invoke-static {p0}, Lp0/a;->C(Landroid/content/Intent;)Z
move-result v0
if-eqz v0, :cond_2
invoke-virtual {p0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object p0
const-string v0, "_nd"
invoke-static {v0, p0}, Lp0/a;->x(Ljava/lang/String;Landroid/os/Bundle;)V
:cond_2
const/4 p0, -0x1
return p0
.end method
.method public final a(Landroid/content/Context;Landroid/content/Intent;)V
.locals 8
invoke-virtual {p0}, Landroid/content/BroadcastReceiver;->isOrderedBroadcast()Z
move-result v4
invoke-virtual {p0}, Landroid/content/BroadcastReceiver;->goAsync()Landroid/content/BroadcastReceiver$PendingResult;
move-result-object v5
iget-object v6, p0, Lcom/google/firebase/iid/FirebaseInstanceIdReceiver;->a:Ljava/util/concurrent/ExecutorService;
new-instance v7, Lw/f;
move-object v0, v7
move-object v1, p0
move-object v2, p2
move-object v3, p1
invoke-direct/range {v0 .. v5}, Lw/f;-><init>(Lcom/google/firebase/iid/FirebaseInstanceIdReceiver;Landroid/content/Intent;Landroid/content/Context;ZLandroid/content/BroadcastReceiver$PendingResult;)V
invoke-interface {v6, v7}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
return-void
.end method
.method public final bridge synthetic onReceive(Landroid/content/Context;Landroid/content/Intent;)V
.locals 0
invoke-virtual {p0, p1, p2}, Lcom/google/firebase/iid/FirebaseInstanceIdReceiver;->a(Landroid/content/Context;Landroid/content/Intent;)V
return-void
.end method