WithinAppServiceBinder.smali

.class public Lcom/google/firebase/iid/WithinAppServiceBinder;
.super Landroid/os/Binder;
.source "com.google.firebase:firebase-iid@@20.3.0"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/google/firebase/iid/WithinAppServiceBinder$IntentHandler;
    }
.end annotation


# instance fields
.field private final intentHandler:Lcom/google/firebase/iid/WithinAppServiceBinder$IntentHandler;


# direct methods
.method public constructor <init>(Lcom/google/firebase/iid/WithinAppServiceBinder$IntentHandler;)V
    .registers 2

    .line 1
    invoke-direct {p0}, Landroid/os/Binder;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/google/firebase/iid/WithinAppServiceBinder;->intentHandler:Lcom/google/firebase/iid/WithinAppServiceBinder$IntentHandler;

    return-void
.end method

.method static final synthetic lambda$send$0$WithinAppServiceBinder(Lcom/google/firebase/iid/WithinAppServiceConnection$BindRequest;Lcom/google/android/gms/tasks/Task;)V
    .registers 2

    .line 12
    invoke-virtual {p0}, Lcom/google/firebase/iid/WithinAppServiceConnection$BindRequest;->finish()V

    return-void
.end method


# virtual methods
.method send(Lcom/google/firebase/iid/WithinAppServiceConnection$BindRequest;)V
    .registers 5

    .line 4
    invoke-static {}, Landroid/os/Binder;->getCallingUid()I

    move-result v0

    invoke-static {}, Landroid/os/Process;->myUid()I

    move-result v1

    if-ne v0, v1, :cond_2d

    const/4 v0, 0x3

    const-string v1, "FirebaseInstanceId"

    .line 6
    invoke-static {v1, v0}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

    move-result v0

    if-eqz v0, :cond_18

    const-string v0, "service received new intent via bind strategy"

    .line 7
    invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 8
    :cond_18
    iget-object v0, p0, Lcom/google/firebase/iid/WithinAppServiceBinder;->intentHandler:Lcom/google/firebase/iid/WithinAppServiceBinder$IntentHandler;

    iget-object v1, p1, Lcom/google/firebase/iid/WithinAppServiceConnection$BindRequest;->intent:Landroid/content/Intent;

    .line 9
    invoke-interface {v0, v1}, Lcom/google/firebase/iid/WithinAppServiceBinder$IntentHandler;->handle(Landroid/content/Intent;)Lcom/google/android/gms/tasks/Task;

    move-result-object v0

    .line 10
    invoke-static {}, Lcom/google/firebase/iid/FirebaseIidExecutors;->directExecutor()Ljava/util/concurrent/Executor;

    move-result-object v1

    new-instance v2, Lcom/google/firebase/iid/WithinAppServiceBinder$$Lambda$0;

    invoke-direct {v2, p1}, Lcom/google/firebase/iid/WithinAppServiceBinder$$Lambda$0;-><init>(Lcom/google/firebase/iid/WithinAppServiceConnection$BindRequest;)V

    invoke-virtual {v0, v1, v2}, Lcom/google/android/gms/tasks/Task;->addOnCompleteListener(Ljava/util/concurrent/Executor;Lcom/google/android/gms/tasks/OnCompleteListener;)Lcom/google/android/gms/tasks/Task;

    return-void

    .line 5
    :cond_2d
    new-instance p1, Ljava/lang/SecurityException;

    const-string v0, "Binding only allowed within app"

    invoke-direct {p1, v0}, Ljava/lang/SecurityException;-><init>(Ljava/lang/String;)V

    throw p1
.end method