2019-07-24 11:27:29 +00:00
|
|
|
.class public abstract Landroidx/browser/customtabs/CustomTabsService;
|
|
|
|
.super Landroid/app/Service;
|
|
|
|
.source "CustomTabsService.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Landroidx/browser/customtabs/CustomTabsService$Relation;,
|
|
|
|
Landroidx/browser/customtabs/CustomTabsService$Result;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final ACTION_CUSTOM_TABS_CONNECTION:Ljava/lang/String; = "android.support.customtabs.action.CustomTabsService"
|
|
|
|
|
|
|
|
.field public static final KEY_URL:Ljava/lang/String; = "android.support.customtabs.otherurls.URL"
|
|
|
|
|
|
|
|
.field public static final RELATION_HANDLE_ALL_URLS:I = 0x2
|
|
|
|
|
|
|
|
.field public static final RELATION_USE_AS_ORIGIN:I = 0x1
|
|
|
|
|
|
|
|
.field public static final RESULT_FAILURE_DISALLOWED:I = -0x1
|
|
|
|
|
|
|
|
.field public static final RESULT_FAILURE_MESSAGING_ERROR:I = -0x3
|
|
|
|
|
|
|
|
.field public static final RESULT_FAILURE_REMOTE_ERROR:I = -0x2
|
|
|
|
|
|
|
|
.field public static final RESULT_SUCCESS:I
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-04-27 20:53:11 +00:00
|
|
|
.field public mBinder:Lr/a/a/b$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final mDeathRecipientMap:Ljava/util/Map;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Landroid/os/IBinder;",
|
|
|
|
"Landroid/os/IBinder$DeathRecipient;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Landroid/app/Service;-><init>()V
|
|
|
|
|
|
|
|
new-instance v0, Landroidx/collection/ArrayMap;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Landroidx/collection/ArrayMap;-><init>()V
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Ljava/util/Map;
|
|
|
|
|
|
|
|
new-instance v0, Landroidx/browser/customtabs/CustomTabsService$1;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Landroidx/browser/customtabs/CustomTabsService$1;-><init>(Landroidx/browser/customtabs/CustomTabsService;)V
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsService;->mBinder:Lr/a/a/b$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public cleanUpSession(Landroidx/browser/customtabs/CustomTabsSessionToken;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 3
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Ljava/util/Map;
|
|
|
|
|
|
|
|
monitor-enter v1
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/util/NoSuchElementException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
:try_start_1
|
|
|
|
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSessionToken;->getCallbackBinder()Landroid/os/IBinder;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Ljava/util/Map;
|
|
|
|
|
|
|
|
invoke-interface {v2, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Landroid/os/IBinder$DeathRecipient;
|
|
|
|
|
|
|
|
invoke-interface {p1, v2, v0}, Landroid/os/IBinder;->unlinkToDeath(Landroid/os/IBinder$DeathRecipient;I)Z
|
|
|
|
|
|
|
|
iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Ljava/util/Map;
|
|
|
|
|
|
|
|
invoke-interface {v2, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
monitor-exit v1
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
monitor-exit v1
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
:try_start_2
|
|
|
|
throw p1
|
|
|
|
:try_end_2
|
|
|
|
.catch Ljava/util/NoSuchElementException; {:try_start_2 .. :try_end_2} :catch_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public abstract extraCommand(Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public abstract mayLaunchUrl(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/net/Uri;Landroid/os/Bundle;Ljava/util/List;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Landroidx/browser/customtabs/CustomTabsSessionToken;",
|
|
|
|
"Landroid/net/Uri;",
|
|
|
|
"Landroid/os/Bundle;",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Landroid/os/Bundle;",
|
|
|
|
">;)Z"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public abstract newSession(Landroidx/browser/customtabs/CustomTabsSessionToken;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
|
|
|
|
.locals 0
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsService;->mBinder:Lr/a/a/b$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public abstract postMessage(Landroidx/browser/customtabs/CustomTabsSessionToken;Ljava/lang/String;Landroid/os/Bundle;)I
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public abstract requestPostMessageChannel(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/net/Uri;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public abstract updateVisuals(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/os/Bundle;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public abstract validateRelationship(Landroidx/browser/customtabs/CustomTabsSessionToken;ILandroid/net/Uri;Landroid/os/Bundle;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public abstract warmup(J)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|