apkfuckery/com.discord/smali/androidx/browser/customtabs/CustomTabsService$1.smali
2020-03-27 23:23:51 +01:00

218 lines
7.3 KiB
Smali

.class public Landroidx/browser/customtabs/CustomTabsService$1;
.super Lr/a/a/b$a;
.source "CustomTabsService.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/browser/customtabs/CustomTabsService;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Landroidx/browser/customtabs/CustomTabsService;
# direct methods
.method public constructor <init>(Landroidx/browser/customtabs/CustomTabsService;)V
.locals 0
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
invoke-direct {p0}, Lr/a/a/b$a;-><init>()V
return-void
.end method
# virtual methods
.method public extraCommand(Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;
.locals 1
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
invoke-virtual {v0, p1, p2}, Landroidx/browser/customtabs/CustomTabsService;->extraCommand(Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;
move-result-object p1
return-object p1
.end method
.method public mayLaunchUrl(Lr/a/a/a;Landroid/net/Uri;Landroid/os/Bundle;Ljava/util/List;)Z
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lr/a/a/a;",
"Landroid/net/Uri;",
"Landroid/os/Bundle;",
"Ljava/util/List<",
"Landroid/os/Bundle;",
">;)Z"
}
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken;
invoke-direct {v1, p1}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Lr/a/a/a;)V
invoke-virtual {v0, v1, p2, p3, p4}, Landroidx/browser/customtabs/CustomTabsService;->mayLaunchUrl(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/net/Uri;Landroid/os/Bundle;Ljava/util/List;)Z
move-result p1
return p1
.end method
.method public newSession(Lr/a/a/a;)Z
.locals 5
new-instance v0, Landroidx/browser/customtabs/CustomTabsSessionToken;
invoke-direct {v0, p1}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Lr/a/a/a;)V
const/4 v1, 0x0
:try_start_0
new-instance v2, Landroidx/browser/customtabs/CustomTabsService$1$1;
invoke-direct {v2, p0, v0}, Landroidx/browser/customtabs/CustomTabsService$1$1;-><init>(Landroidx/browser/customtabs/CustomTabsService$1;Landroidx/browser/customtabs/CustomTabsSessionToken;)V
iget-object v3, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
iget-object v3, v3, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Ljava/util/Map;
monitor-enter v3
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
:try_start_1
invoke-interface {p1}, Landroid/os/IInterface;->asBinder()Landroid/os/IBinder;
move-result-object v4
invoke-interface {v4, v2, v1}, Landroid/os/IBinder;->linkToDeath(Landroid/os/IBinder$DeathRecipient;I)V
iget-object v4, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
iget-object v4, v4, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Ljava/util/Map;
invoke-interface {p1}, Landroid/os/IInterface;->asBinder()Landroid/os/IBinder;
move-result-object p1
invoke-interface {v4, p1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
monitor-exit v3
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:try_start_2
iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
invoke-virtual {p1, v0}, Landroidx/browser/customtabs/CustomTabsService;->newSession(Landroidx/browser/customtabs/CustomTabsSessionToken;)Z
move-result p1
:try_end_2
.catch Landroid/os/RemoteException; {:try_start_2 .. :try_end_2} :catch_0
return p1
:catchall_0
move-exception p1
:try_start_3
monitor-exit v3
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
:try_start_4
throw p1
:try_end_4
.catch Landroid/os/RemoteException; {:try_start_4 .. :try_end_4} :catch_0
:catch_0
return v1
.end method
.method public postMessage(Lr/a/a/a;Ljava/lang/String;Landroid/os/Bundle;)I
.locals 2
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken;
invoke-direct {v1, p1}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Lr/a/a/a;)V
invoke-virtual {v0, v1, p2, p3}, Landroidx/browser/customtabs/CustomTabsService;->postMessage(Landroidx/browser/customtabs/CustomTabsSessionToken;Ljava/lang/String;Landroid/os/Bundle;)I
move-result p1
return p1
.end method
.method public requestPostMessageChannel(Lr/a/a/a;Landroid/net/Uri;)Z
.locals 2
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken;
invoke-direct {v1, p1}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Lr/a/a/a;)V
invoke-virtual {v0, v1, p2}, Landroidx/browser/customtabs/CustomTabsService;->requestPostMessageChannel(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/net/Uri;)Z
move-result p1
return p1
.end method
.method public updateVisuals(Lr/a/a/a;Landroid/os/Bundle;)Z
.locals 2
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken;
invoke-direct {v1, p1}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Lr/a/a/a;)V
invoke-virtual {v0, v1, p2}, Landroidx/browser/customtabs/CustomTabsService;->updateVisuals(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/os/Bundle;)Z
move-result p1
return p1
.end method
.method public validateRelationship(Lr/a/a/a;ILandroid/net/Uri;Landroid/os/Bundle;)Z
.locals 2
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken;
invoke-direct {v1, p1}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Lr/a/a/a;)V
invoke-virtual {v0, v1, p2, p3, p4}, Landroidx/browser/customtabs/CustomTabsService;->validateRelationship(Landroidx/browser/customtabs/CustomTabsSessionToken;ILandroid/net/Uri;Landroid/os/Bundle;)Z
move-result p1
return p1
.end method
.method public warmup(J)Z
.locals 1
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
invoke-virtual {v0, p1, p2}, Landroidx/browser/customtabs/CustomTabsService;->warmup(J)Z
move-result p1
return p1
.end method