granularity level: instruction
.class public final synthetic Lh1/k;
.super Ljava/lang/Object;
.source "SourceFile"
.implements Ljava/util/concurrent/Callable;
.field public final synthetic a:Landroid/content/Context;
.field public final synthetic b:Landroid/content/Intent;
.method public synthetic constructor <init>(Landroid/content/Context;Landroid/content/Intent;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lh1/k;->a:Landroid/content/Context;
iput-object p2, p0, Lh1/k;->b:Landroid/content/Intent;
return-void
.end method
.method public final call()Ljava/lang/Object;
.locals 9
iget-object v0, p0, Lh1/k;->a:Landroid/content/Context;
iget-object v1, p0, Lh1/k;->b:Landroid/content/Intent;
invoke-static {}, Lh1/z;->a()Lh1/z;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
const-string v3, "FirebaseMessaging"
const/4 v4, 0x3
invoke-static {v3, v4}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v3
iget-object v3, v2, Lh1/z;->d:Ljava/lang/Object;
check-cast v3, Ljava/util/Queue;
invoke-interface {v3, v1}, Ljava/util/Queue;->offer(Ljava/lang/Object;)Z
new-instance v1, Landroid/content/Intent;
const-string v3, "com.google.firebase.MESSAGING_EVENT"
invoke-direct {v1, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v3
invoke-virtual {v1, v3}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
monitor-enter v2
:try_start_0
iget-object v3, v2, Lh1/z;->a:Ljava/lang/Object;
move-object v5, v3
check-cast v5, Ljava/lang/String;
if-eqz v5, :cond_1
check-cast v3, Ljava/lang/String;
goto :goto_1
:cond_1
invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v3
const/4 v5, 0x0
invoke-virtual {v3, v1, v5}, Landroid/content/pm/PackageManager;->resolveService(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo;
move-result-object v3
const/4 v5, 0x0
iget-object v3, v3, Landroid/content/pm/ResolveInfo;->serviceInfo:Landroid/content/pm/ServiceInfo;
invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v6
iget-object v7, v3, Landroid/content/pm/ServiceInfo;->packageName:Ljava/lang/String;
invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v6
iget-object v6, v3, Landroid/content/pm/ServiceInfo;->name:Ljava/lang/String;
const-string v5, "."
invoke-virtual {v6, v5}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v5
iget-object v3, v3, Landroid/content/pm/ServiceInfo;->name:Ljava/lang/String;
:goto_0
iput-object v3, v2, Lh1/z;->a:Ljava/lang/Object;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:goto_1
monitor-exit v2
move-object v5, v3
if-eqz v5, :cond_8
const-string v3, "FirebaseMessaging"
invoke-static {v3, v4}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v3
invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v3
invoke-virtual {v1, v3, v5}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
:cond_8
invoke-virtual {v2, v0}, Lh1/z;->c(Landroid/content/Context;)Z
move-result v2
invoke-static {v0, v1}, Lh1/j0;->b(Landroid/content/Context;Landroid/content/Intent;)Landroid/content/ComponentName;
move-result-object v0
const/4 v0, -0x1
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
return-object v0
:catchall_0
move-exception v0
monitor-exit v2
throw v0
.end method