granularity level: instruction
.class public final Lcom/google/firebase/iid/FirebaseInstanceIdReceiver;
.super Lcom/google/android/gms/cloudmessaging/CloudMessagingReceiver;
.source "FirebaseInstanceIdReceiver.java"
.field private static final TAG:Ljava/lang/String; = "FirebaseMessaging"
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Lcom/google/android/gms/cloudmessaging/CloudMessagingReceiver;-><init>()V
return-void
.end method
.method private static createServiceIntent(Landroid/content/Context;Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;
.locals 0
new-instance p0, Landroid/content/Intent;
invoke-direct {p0, p1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
invoke-virtual {p0, p2}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
move-result-object p0
return-object p0
.end method
.method protected onMessageReceive(Landroid/content/Context;Lcom/google/android/gms/cloudmessaging/CloudMessage;)I
.locals 1
:try_start_0
new-instance v0, Lcom/google/firebase/messaging/FcmBroadcastProcessor;
invoke-direct {v0, p1}, Lcom/google/firebase/messaging/FcmBroadcastProcessor;-><init>(Landroid/content/Context;)V
invoke-virtual {p2}, Lcom/google/android/gms/cloudmessaging/CloudMessage;->getIntent()Landroid/content/Intent;
move-result-object p1
invoke-virtual {v0, p1}, Lcom/google/firebase/messaging/FcmBroadcastProcessor;->process(Landroid/content/Intent;)Lcom/google/android/gms/tasks/Task;
move-result-object p1
invoke-static {p1}, Lcom/google/android/gms/tasks/Tasks;->await(Lcom/google/android/gms/tasks/Task;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/Integer;
invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
move-result p1
:try_end_0
.catch Ljava/util/concurrent/ExecutionException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
return p1
:catch_0
move-exception p1
goto :goto_0
:catch_1
move-exception p1
:goto_0
const-string p2, "FirebaseMessaging"
const-string v0, "Failed to send message to service."
invoke-static {p2, v0, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
const/16 p1, 0x1f4
return p1
.end method
.method protected onNotificationDismissed(Landroid/content/Context;Landroid/os/Bundle;)V
.locals 1
const-string v0, "com.google.firebase.messaging.NOTIFICATION_DISMISS"
invoke-static {p1, v0, p2}, Lcom/google/firebase/iid/FirebaseInstanceIdReceiver;->createServiceIntent(Landroid/content/Context;Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;
move-result-object p1
invoke-static {p1}, Lcom/google/firebase/messaging/MessagingAnalytics;->shouldUploadScionMetrics(Landroid/content/Intent;)Z
move-result p2
if-eqz p2, :cond_0
invoke-static {p1}, Lcom/google/firebase/messaging/MessagingAnalytics;->logNotificationDismiss(Landroid/content/Intent;)V
:cond_0
return-void
.end method