CustomTabsService.smali
.class public abstract Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsService;
.super Landroid/app/Service;
.source "CustomTabsService.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lim/tpelyyftgw/messenger/support/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 RESULT_FAILURE_DISALLOWED:I
.field public static final RESULT_FAILURE_MESSAGING_ERROR:I
.field public static final RESULT_FAILURE_REMOTE_ERROR:I
.field public static final RESULT_SUCCESS:I
# instance fields
.field private mBinder:Lim/tpelyyftgw/messenger/support/customtabs/ICustomTabsService$Stub;
.field private final mDeathRecipientMap:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Landroid/os/IBinder;",
"Landroid/os/IBinder$DeathRecipient;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
const v0, -0x1570
invoke-static {v0}, Lnp/NPFog;->d(I)I
move-result v0
sput v0, Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsService;->RESULT_FAILURE_DISALLOWED:I
const v0, -0x156e
invoke-static {v0}, Lnp/NPFog;->d(I)I
move-result v0
sput v0, Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsService;->RESULT_FAILURE_MESSAGING_ERROR:I
const v0, -0x156f
invoke-static {v0}, Lnp/NPFog;->d(I)I
move-result v0
sput v0, Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsService;->RESULT_FAILURE_REMOTE_ERROR:I
return-void
.end method
.method public constructor <init>()V
.registers 2
.line 41
invoke-direct {p0}, Landroid/app/Service;-><init>()V
.line 81
new-instance v0, Landroidx/collection/ArrayMap;
invoke-direct {v0}, Landroidx/collection/ArrayMap;-><init>()V
iput-object v0, p0, Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsService;->mDeathRecipientMap:Ljava/util/Map;
.line 83
new-instance v0, Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsService$1;
invoke-direct {v0, p0}, Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsService$1;-><init>(Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsService;)V
iput-object v0, p0, Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsService;->mBinder:Lim/tpelyyftgw/messenger/support/customtabs/ICustomTabsService$Stub;
return-void
.end method
.method static synthetic access$000(Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsService;)Ljava/util/Map;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsService;
.line 41
iget-object v0, p0, Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsService;->mDeathRecipientMap:Ljava/util/Map;
return-object v0
.end method
# virtual methods
.method protected cleanUpSession(Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsSessionToken;)Z
.registers 7
.param p1, "sessionToken" # Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsSessionToken;
.line 158
const/4 v0, 0x0
:try_start_1
iget-object v1, p0, Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsService;->mDeathRecipientMap:Ljava/util/Map;
monitor-enter v1
:try_end_4
.catch Ljava/util/NoSuchElementException; {:try_start_1 .. :try_end_4} :catch_20
.line 159
:try_start_4
invoke-virtual {p1}, Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsSessionToken;->getCallbackBinder()Landroid/os/IBinder;
move-result-object v2
.line 160
.local v2, "binder":Landroid/os/IBinder;
iget-object v3, p0, Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsService;->mDeathRecipientMap:Ljava/util/Map;
.line 161
invoke-interface {v3, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroid/os/IBinder$DeathRecipient;
.line 162
.local v3, "deathRecipient":Landroid/os/IBinder$DeathRecipient;
invoke-interface {v2, v3, v0}, Landroid/os/IBinder;->unlinkToDeath(Landroid/os/IBinder$DeathRecipient;I)Z
.line 163
iget-object v4, p0, Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsService;->mDeathRecipientMap:Ljava/util/Map;
invoke-interface {v4, v2}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
.line 164
nop
.end local v2 # "binder":Landroid/os/IBinder;
.end local v3 # "deathRecipient":Landroid/os/IBinder$DeathRecipient;
monitor-exit v1
.line 167
nop
.line 168
const/4 v0, 0x1
return v0
.line 164
:catchall_1d
move-exception v2
monitor-exit v1
:try_end_1f
.catchall {:try_start_4 .. :try_end_1f} :catchall_1d
.end local p1 # "sessionToken":Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsSessionToken;
:try_start_1f
throw v2
:try_end_20
.catch Ljava/util/NoSuchElementException; {:try_start_1f .. :try_end_20} :catch_20
.line 165
.restart local p1 # "sessionToken":Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsSessionToken;
:catch_20
move-exception v1
.line 166
.local v1, "e":Ljava/util/NoSuchElementException;
return v0
.end method
.method protected abstract extraCommand(Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;
.end method
.method protected abstract mayLaunchUrl(Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsSessionToken;Landroid/net/Uri;Landroid/os/Bundle;Ljava/util/List;)Z
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsSessionToken;",
"Landroid/net/Uri;",
"Landroid/os/Bundle;",
"Ljava/util/List<",
"Landroid/os/Bundle;",
">;)Z"
}
.end annotation
.end method
.method protected abstract newSession(Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsSessionToken;)Z
.end method
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
.registers 3
.param p1, "intent" # Landroid/content/Intent;
.line 144
iget-object v0, p0, Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsService;->mBinder:Lim/tpelyyftgw/messenger/support/customtabs/ICustomTabsService$Stub;
return-object v0
.end method
.method protected abstract postMessage(Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsSessionToken;Ljava/lang/String;Landroid/os/Bundle;)I
.end method
.method protected abstract requestPostMessageChannel(Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsSessionToken;Landroid/net/Uri;)Z
.end method
.method protected abstract updateVisuals(Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsSessionToken;Landroid/os/Bundle;)Z
.end method
.method protected abstract warmup(J)Z
.end method