apkfuckery/com.discord/smali/androidx/browser/customtabs/CustomTabsService$1.smali

219 lines
7.3 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public Landroidx/browser/customtabs/CustomTabsService$1;
2020-04-17 17:35:24 +00:00
.super Ls/a/a/b$a;
2019-07-24 11:27:29 +00:00
.source "CustomTabsService.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/browser/customtabs/CustomTabsService;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-12-06 03:29:40 +00:00
accessFlags = 0x1
2019-07-24 11:27:29 +00:00
name = null
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public final synthetic this$0:Landroidx/browser/customtabs/CustomTabsService;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>(Landroidx/browser/customtabs/CustomTabsService;)V
2019-07-24 11:27:29 +00:00
.locals 0
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
2020-04-17 17:35:24 +00:00
invoke-direct {p0}, Ls/a/a/b$a;-><init>()V
2019-07-24 11:27:29 +00:00
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
2020-04-17 17:35:24 +00:00
.method public mayLaunchUrl(Ls/a/a/a;Landroid/net/Uri;Landroid/os/Bundle;Ljava/util/List;)Z
2019-07-24 11:27:29 +00:00
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-04-17 17:35:24 +00:00
"Ls/a/a/a;",
2019-07-24 11:27:29 +00:00
"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;
2020-04-17 17:35:24 +00:00
invoke-direct {v1, p1}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ls/a/a/a;)V
2019-07-24 11:27:29 +00:00
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
2020-04-17 17:35:24 +00:00
.method public newSession(Ls/a/a/a;)Z
2019-07-24 11:27:29 +00:00
.locals 5
new-instance v0, Landroidx/browser/customtabs/CustomTabsSessionToken;
2020-04-17 17:35:24 +00:00
invoke-direct {v0, p1}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ls/a/a/a;)V
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
invoke-interface {p1}, Landroid/os/IInterface;->asBinder()Landroid/os/IBinder;
2019-07-24 11:27:29 +00:00
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;
2019-12-06 03:29:40 +00:00
invoke-interface {p1}, Landroid/os/IInterface;->asBinder()Landroid/os/IBinder;
2019-07-24 11:27:29 +00:00
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
2020-04-17 17:35:24 +00:00
.method public postMessage(Ls/a/a/a;Ljava/lang/String;Landroid/os/Bundle;)I
2019-07-24 11:27:29 +00:00
.locals 2
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken;
2020-04-17 17:35:24 +00:00
invoke-direct {v1, p1}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ls/a/a/a;)V
2019-07-24 11:27:29 +00:00
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
2020-04-17 17:35:24 +00:00
.method public requestPostMessageChannel(Ls/a/a/a;Landroid/net/Uri;)Z
2019-07-24 11:27:29 +00:00
.locals 2
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken;
2020-04-17 17:35:24 +00:00
invoke-direct {v1, p1}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ls/a/a/a;)V
2019-07-24 11:27:29 +00:00
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
2020-04-17 17:35:24 +00:00
.method public updateVisuals(Ls/a/a/a;Landroid/os/Bundle;)Z
2019-07-24 11:27:29 +00:00
.locals 2
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken;
2020-04-17 17:35:24 +00:00
invoke-direct {v1, p1}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ls/a/a/a;)V
2019-07-24 11:27:29 +00:00
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
2020-04-17 17:35:24 +00:00
.method public validateRelationship(Ls/a/a/a;ILandroid/net/Uri;Landroid/os/Bundle;)Z
2019-07-24 11:27:29 +00:00
.locals 2
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken;
2020-04-17 17:35:24 +00:00
invoke-direct {v1, p1}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ls/a/a/a;)V
2019-07-24 11:27:29 +00:00
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