Changes of com.discord v1181

This commit is contained in:
root 2020-07-08 16:44:49 +00:00
parent f52990c3c2
commit 5a8adcbf82
29917 changed files with 1840412 additions and 1765629 deletions

View file

@ -0,0 +1,132 @@
.class public final Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
.super Ljava/lang/Object;
.source "CustomTabColorSchemeParams.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/browser/customtabs/CustomTabColorSchemeParams;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Builder"
.end annotation
# instance fields
.field public mNavigationBarColor:Ljava/lang/Integer;
.annotation build Landroidx/annotation/ColorInt;
.end annotation
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public mSecondaryToolbarColor:Ljava/lang/Integer;
.annotation build Landroidx/annotation/ColorInt;
.end annotation
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public mToolbarColor:Ljava/lang/Integer;
.annotation build Landroidx/annotation/ColorInt;
.end annotation
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public build()Landroidx/browser/customtabs/CustomTabColorSchemeParams;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
new-instance v0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->mToolbarColor:Ljava/lang/Integer;
iget-object v2, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->mSecondaryToolbarColor:Ljava/lang/Integer;
iget-object v3, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->mNavigationBarColor:Ljava/lang/Integer;
invoke-direct {v0, v1, v2, v3}, Landroidx/browser/customtabs/CustomTabColorSchemeParams;-><init>(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V
return-object v0
.end method
.method public setNavigationBarColor(I)Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
.locals 1
.param p1 # I
.annotation build Landroidx/annotation/ColorInt;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/high16 v0, -0x1000000
or-int/2addr p1, v0
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->mNavigationBarColor:Ljava/lang/Integer;
return-object p0
.end method
.method public setSecondaryToolbarColor(I)Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
.locals 0
.param p1 # I
.annotation build Landroidx/annotation/ColorInt;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->mSecondaryToolbarColor:Ljava/lang/Integer;
return-object p0
.end method
.method public setToolbarColor(I)Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
.locals 1
.param p1 # I
.annotation build Landroidx/annotation/ColorInt;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/high16 v0, -0x1000000
or-int/2addr p1, v0
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->mToolbarColor:Ljava/lang/Integer;
return-object p0
.end method

View file

@ -0,0 +1,213 @@
.class public final Landroidx/browser/customtabs/CustomTabColorSchemeParams;
.super Ljava/lang/Object;
.source "CustomTabColorSchemeParams.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
}
.end annotation
# instance fields
.field public final navigationBarColor:Ljava/lang/Integer;
.annotation build Landroidx/annotation/ColorInt;
.end annotation
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public final secondaryToolbarColor:Ljava/lang/Integer;
.annotation build Landroidx/annotation/ColorInt;
.end annotation
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public final toolbarColor:Ljava/lang/Integer;
.annotation build Landroidx/annotation/ColorInt;
.end annotation
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V
.locals 0
.param p1 # Ljava/lang/Integer;
.annotation build Landroidx/annotation/ColorInt;
.end annotation
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Ljava/lang/Integer;
.annotation build Landroidx/annotation/ColorInt;
.end annotation
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p3 # Ljava/lang/Integer;
.annotation build Landroidx/annotation/ColorInt;
.end annotation
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->toolbarColor:Ljava/lang/Integer;
iput-object p2, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->secondaryToolbarColor:Ljava/lang/Integer;
iput-object p3, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->navigationBarColor:Ljava/lang/Integer;
return-void
.end method
.method public static fromBundle(Landroid/os/Bundle;)Landroidx/browser/customtabs/CustomTabColorSchemeParams;
.locals 4
.param p0 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
if-nez p0, :cond_0
new-instance p0, Landroid/os/Bundle;
const/4 v0, 0x0
invoke-direct {p0, v0}, Landroid/os/Bundle;-><init>(I)V
:cond_0
new-instance v0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;
const-string v1, "android.support.customtabs.extra.TOOLBAR_COLOR"
invoke-virtual {p0, v1}, Landroid/os/Bundle;->get(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Integer;
const-string v2, "android.support.customtabs.extra.SECONDARY_TOOLBAR_COLOR"
invoke-virtual {p0, v2}, Landroid/os/Bundle;->get(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/Integer;
const-string v3, "androidx.browser.customtabs.extra.NAVIGATION_BAR_COLOR"
invoke-virtual {p0, v3}, Landroid/os/Bundle;->get(Ljava/lang/String;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/lang/Integer;
invoke-direct {v0, v1, v2, p0}, Landroidx/browser/customtabs/CustomTabColorSchemeParams;-><init>(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V
return-object v0
.end method
# virtual methods
.method public toBundle()Landroid/os/Bundle;
.locals 3
.annotation build Landroidx/annotation/NonNull;
.end annotation
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->toolbarColor:Ljava/lang/Integer;
if-eqz v1, :cond_0
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
const-string v2, "android.support.customtabs.extra.TOOLBAR_COLOR"
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
:cond_0
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->secondaryToolbarColor:Ljava/lang/Integer;
if-eqz v1, :cond_1
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
const-string v2, "android.support.customtabs.extra.SECONDARY_TOOLBAR_COLOR"
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
:cond_1
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->navigationBarColor:Ljava/lang/Integer;
if-eqz v1, :cond_2
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
const-string v2, "androidx.browser.customtabs.extra.NAVIGATION_BAR_COLOR"
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
:cond_2
return-object v0
.end method
.method public withDefaults(Landroidx/browser/customtabs/CustomTabColorSchemeParams;)Landroidx/browser/customtabs/CustomTabColorSchemeParams;
.locals 4
.param p1 # Landroidx/browser/customtabs/CustomTabColorSchemeParams;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
new-instance v0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->toolbarColor:Ljava/lang/Integer;
if-nez v1, :cond_0
iget-object v1, p1, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->toolbarColor:Ljava/lang/Integer;
:cond_0
iget-object v2, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->secondaryToolbarColor:Ljava/lang/Integer;
if-nez v2, :cond_1
iget-object v2, p1, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->secondaryToolbarColor:Ljava/lang/Integer;
:cond_1
iget-object v3, p0, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->navigationBarColor:Ljava/lang/Integer;
if-nez v3, :cond_2
iget-object v3, p1, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->navigationBarColor:Ljava/lang/Integer;
:cond_2
invoke-direct {v0, v1, v2, v3}, Landroidx/browser/customtabs/CustomTabColorSchemeParams;-><init>(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V
return-object v0
.end method

View file

@ -12,6 +12,14 @@
.field public static final NAVIGATION_STARTED:I = 0x1
.field public static final ONLINE_EXTRAS_KEY:Ljava/lang/String; = "online"
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.end field
.field public static final TAB_HIDDEN:I = 0x6
.field public static final TAB_SHOWN:I = 0x5
@ -30,30 +38,80 @@
# virtual methods
.method public extraCallback(Ljava/lang/String;Landroid/os/Bundle;)V
.locals 0
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
return-void
.end method
.method public extraCallbackWithResult(Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;
.locals 0
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
const/4 p1, 0x0
return-object p1
.end method
.method public onMessageChannelReady(Landroid/os/Bundle;)V
.locals 0
.param p1 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
return-void
.end method
.method public onNavigationEvent(ILandroid/os/Bundle;)V
.locals 0
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
return-void
.end method
.method public onPostMessage(Ljava/lang/String;Landroid/os/Bundle;)V
.locals 0
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
return-void
.end method
.method public onRelationshipValidationResult(ILandroid/net/Uri;ZLandroid/os/Bundle;)V
.locals 0
.param p2 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p4 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
return-void
.end method

View file

@ -33,6 +33,14 @@
# virtual methods
.method public final onCustomTabsServiceConnected(Landroid/content/ComponentName;Landroidx/browser/customtabs/CustomTabsClient;)V
.locals 2
.param p1 # Landroid/content/ComponentName;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroidx/browser/customtabs/CustomTabsClient;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const-wide/16 v0, 0x0
@ -45,7 +53,7 @@
return-void
.end method
.method public final onServiceDisconnected(Landroid/content/ComponentName;)V
.method public onServiceDisconnected(Landroid/content/ComponentName;)V
.locals 0
return-void

View file

@ -1,11 +1,11 @@
.class public Landroidx/browser/customtabs/CustomTabsClient$2;
.super Ls/a/a/a$a;
.super Ld0/a/a/a$a;
.source "CustomTabsClient.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/browser/customtabs/CustomTabsClient;->newSession(Landroidx/browser/customtabs/CustomTabsCallback;)Landroidx/browser/customtabs/CustomTabsSession;
value = Landroidx/browser/customtabs/CustomTabsClient;->createCallbackWrapper(Landroidx/browser/customtabs/CustomTabsCallback;)Ld0/a/a/a$a;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
@ -30,7 +30,7 @@
iput-object p2, p0, Landroidx/browser/customtabs/CustomTabsClient$2;->val$callback:Landroidx/browser/customtabs/CustomTabsCallback;
invoke-direct {p0}, Ls/a/a/a$a;-><init>()V
invoke-direct {p0}, Ld0/a/a/a$a;-><init>()V
new-instance p1, Landroid/os/Handler;
@ -73,6 +73,38 @@
return-void
.end method
.method public extraCallbackWithResult(Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsClient$2;->val$callback:Landroidx/browser/customtabs/CustomTabsCallback;
if-nez v0, :cond_0
const/4 p1, 0x0
return-object p1
:cond_0
invoke-virtual {v0, p1, p2}, Landroidx/browser/customtabs/CustomTabsCallback;->extraCallbackWithResult(Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;
move-result-object p1
return-object p1
.end method
.method public onMessageChannelReady(Landroid/os/Bundle;)V
.locals 2
.annotation system Ldalvik/annotation/Throws;

View file

@ -4,31 +4,48 @@
# instance fields
.field public final mService:Ls/a/a/b;
.field public final mApplicationContext:Landroid/content/Context;
.field public final mService:Ld0/a/a/b;
.field public final mServiceComponentName:Landroid/content/ComponentName;
# direct methods
.method public constructor <init>(Ls/a/a/b;Landroid/content/ComponentName;)V
.method public constructor <init>(Ld0/a/a/b;Landroid/content/ComponentName;Landroid/content/Context;)V
.locals 0
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsClient;->mService:Ls/a/a/b;
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsClient;->mService:Ld0/a/a/b;
iput-object p2, p0, Landroidx/browser/customtabs/CustomTabsClient;->mServiceComponentName:Landroid/content/ComponentName;
iput-object p3, p0, Landroidx/browser/customtabs/CustomTabsClient;->mApplicationContext:Landroid/content/Context;
return-void
.end method
.method public static bindCustomTabsService(Landroid/content/Context;Ljava/lang/String;Landroidx/browser/customtabs/CustomTabsServiceConnection;)Z
.locals 2
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Landroidx/browser/customtabs/CustomTabsServiceConnection;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {p2, v0}, Landroidx/browser/customtabs/CustomTabsServiceConnection;->setApplicationContext(Landroid/content/Context;)V
new-instance v0, Landroid/content/Intent;
@ -56,6 +73,14 @@
.method public static connectAndInitialize(Landroid/content/Context;Ljava/lang/String;)Z
.locals 2
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const/4 v0, 0x0
@ -85,12 +110,49 @@
return v0
.end method
.method private createCallbackWrapper(Landroidx/browser/customtabs/CustomTabsCallback;)Ld0/a/a/a$a;
.locals 1
.param p1 # Landroidx/browser/customtabs/CustomTabsCallback;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
new-instance v0, Landroidx/browser/customtabs/CustomTabsClient$2;
invoke-direct {v0, p0, p1}, Landroidx/browser/customtabs/CustomTabsClient$2;-><init>(Landroidx/browser/customtabs/CustomTabsClient;Landroidx/browser/customtabs/CustomTabsCallback;)V
return-object v0
.end method
.method public static createSessionId(Landroid/content/Context;I)Landroid/app/PendingIntent;
.locals 2
new-instance v0, Landroid/content/Intent;
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
const/4 v1, 0x0
invoke-static {p0, p1, v0, v1}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
move-result-object p0
return-object p0
.end method
.method public static getPackageName(Landroid/content/Context;Ljava/util/List;)Ljava/lang/String;
.locals 1
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
@ -113,10 +175,17 @@
.method public static getPackageName(Landroid/content/Context;Ljava/util/List;Z)Ljava/lang/String;
.locals 4
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
@ -180,11 +249,11 @@
invoke-direct {v1, v0}, Ljava/util/ArrayList;-><init>(I)V
invoke-interface {v1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
invoke-virtual {v1, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
if-eqz p1, :cond_1
invoke-interface {v1, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
invoke-virtual {v1, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z
:cond_1
move-object v0, v1
@ -229,15 +298,150 @@
return-object p0
.end method
.method public static newPendingSession(Landroid/content/Context;Landroidx/browser/customtabs/CustomTabsCallback;I)Landroidx/browser/customtabs/CustomTabsSession$PendingSession;
.locals 0
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Landroidx/browser/customtabs/CustomTabsCallback;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
# virtual methods
.method public extraCommand(Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;
.locals 1
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
invoke-static {p0, p2}, Landroidx/browser/customtabs/CustomTabsClient;->createSessionId(Landroid/content/Context;I)Landroid/app/PendingIntent;
move-result-object p0
new-instance p2, Landroidx/browser/customtabs/CustomTabsSession$PendingSession;
invoke-direct {p2, p1, p0}, Landroidx/browser/customtabs/CustomTabsSession$PendingSession;-><init>(Landroidx/browser/customtabs/CustomTabsCallback;Landroid/app/PendingIntent;)V
return-object p2
.end method
.method private newSessionInternal(Landroidx/browser/customtabs/CustomTabsCallback;Landroid/app/PendingIntent;)Landroidx/browser/customtabs/CustomTabsSession;
.locals 3
.param p1 # Landroidx/browser/customtabs/CustomTabsCallback;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Landroid/app/PendingIntent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
invoke-direct {p0, p1}, Landroidx/browser/customtabs/CustomTabsClient;->createCallbackWrapper(Landroidx/browser/customtabs/CustomTabsCallback;)Ld0/a/a/a$a;
move-result-object p1
const/4 v0, 0x0
if-eqz p2, :cond_0
:try_start_0
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsClient;->mService:Ls/a/a/b;
new-instance v1, Landroid/os/Bundle;
invoke-interface {v0, p1, p2}, Ls/a/a/b;->extraCommand(Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
const-string v2, "android.support.customtabs.extra.SESSION_ID"
invoke-virtual {v1, v2, p2}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsClient;->mService:Ld0/a/a/b;
invoke-interface {v2, p1, v1}, Ld0/a/a/b;->newSessionWithExtras(Ld0/a/a/a;Landroid/os/Bundle;)Z
move-result v1
goto :goto_0
:cond_0
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsClient;->mService:Ld0/a/a/b;
invoke-interface {v1, p1}, Ld0/a/a/b;->newSession(Ld0/a/a/a;)Z
move-result v1
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
:goto_0
if-nez v1, :cond_1
return-object v0
:cond_1
new-instance v0, Landroidx/browser/customtabs/CustomTabsSession;
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsClient;->mService:Ld0/a/a/b;
iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsClient;->mServiceComponentName:Landroid/content/ComponentName;
invoke-direct {v0, v1, p1, v2, p2}, Landroidx/browser/customtabs/CustomTabsSession;-><init>(Ld0/a/a/b;Ld0/a/a/a;Landroid/content/ComponentName;Landroid/app/PendingIntent;)V
:catch_0
return-object v0
.end method
# virtual methods
.method public attachSession(Landroidx/browser/customtabs/CustomTabsSession$PendingSession;)Landroidx/browser/customtabs/CustomTabsSession;
.locals 1
.param p1 # Landroidx/browser/customtabs/CustomTabsSession$PendingSession;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession$PendingSession;->getCallback()Landroidx/browser/customtabs/CustomTabsCallback;
move-result-object v0
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession$PendingSession;->getId()Landroid/app/PendingIntent;
move-result-object p1
invoke-direct {p0, v0, p1}, Landroidx/browser/customtabs/CustomTabsClient;->newSessionInternal(Landroidx/browser/customtabs/CustomTabsCallback;Landroid/app/PendingIntent;)Landroidx/browser/customtabs/CustomTabsSession;
move-result-object p1
return-object p1
.end method
.method public extraCommand(Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
:try_start_0
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsClient;->mService:Ld0/a/a/b;
invoke-interface {v0, p1, p2}, Ld0/a/a/b;->extraCommand(Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;
move-result-object p1
:try_end_0
@ -252,37 +456,42 @@
.end method
.method public newSession(Landroidx/browser/customtabs/CustomTabsCallback;)Landroidx/browser/customtabs/CustomTabsSession;
.locals 3
.locals 1
.param p1 # Landroidx/browser/customtabs/CustomTabsCallback;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
new-instance v0, Landroidx/browser/customtabs/CustomTabsClient$2;
const/4 v0, 0x0
invoke-direct {v0, p0, p1}, Landroidx/browser/customtabs/CustomTabsClient$2;-><init>(Landroidx/browser/customtabs/CustomTabsClient;Landroidx/browser/customtabs/CustomTabsCallback;)V
invoke-direct {p0, p1, v0}, Landroidx/browser/customtabs/CustomTabsClient;->newSessionInternal(Landroidx/browser/customtabs/CustomTabsCallback;Landroid/app/PendingIntent;)Landroidx/browser/customtabs/CustomTabsSession;
const/4 p1, 0x0
:try_start_0
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsClient;->mService:Ls/a/a/b;
invoke-interface {v1, v0}, Ls/a/a/b;->newSession(Ls/a/a/a;)Z
move-result v1
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
if-nez v1, :cond_0
move-result-object p1
return-object p1
.end method
:cond_0
new-instance p1, Landroidx/browser/customtabs/CustomTabsSession;
.method public newSession(Landroidx/browser/customtabs/CustomTabsCallback;I)Landroidx/browser/customtabs/CustomTabsSession;
.locals 1
.param p1 # Landroidx/browser/customtabs/CustomTabsCallback;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsClient;->mService:Ls/a/a/b;
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsClient;->mApplicationContext:Landroid/content/Context;
iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsClient;->mServiceComponentName:Landroid/content/ComponentName;
invoke-static {v0, p2}, Landroidx/browser/customtabs/CustomTabsClient;->createSessionId(Landroid/content/Context;I)Landroid/app/PendingIntent;
invoke-direct {p1, v1, v0, v2}, Landroidx/browser/customtabs/CustomTabsSession;-><init>(Ls/a/a/b;Ls/a/a/a;Landroid/content/ComponentName;)V
move-result-object p2
invoke-direct {p0, p1, p2}, Landroidx/browser/customtabs/CustomTabsClient;->newSessionInternal(Landroidx/browser/customtabs/CustomTabsCallback;Landroid/app/PendingIntent;)Landroidx/browser/customtabs/CustomTabsSession;
move-result-object p1
:catch_0
return-object p1
.end method
@ -290,9 +499,9 @@
.locals 1
:try_start_0
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsClient;->mService:Ls/a/a/b;
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsClient;->mService:Ld0/a/a/b;
invoke-interface {v0, p1, p2}, Ls/a/a/b;->warmup(J)Z
invoke-interface {v0, p1, p2}, Ld0/a/a/b;->warmup(J)Z
move-result p1
:try_end_0

View file

@ -16,6 +16,9 @@
# instance fields
.field public mActionButtons:Ljava/util/ArrayList;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
@ -25,11 +28,29 @@
.end annotation
.end field
.field public mColorSchemeParamBundles:Landroid/util/SparseArray;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/SparseArray<",
"Landroid/os/Bundle;",
">;"
}
.end annotation
.end field
.field public final mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
.field public mInstantAppsEnabled:Z
.field public final mIntent:Landroid/content/Intent;
.field public mMenuItems:Ljava/util/ArrayList;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
@ -40,21 +61,40 @@
.end field
.field public mStartAnimationBundle:Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 1
.locals 2
const/4 v0, 0x0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
invoke-direct {p0, v0}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;-><init>(Landroidx/browser/customtabs/CustomTabsSession;)V
new-instance v0, Landroid/content/Intent;
const-string v1, "android.intent.action.VIEW"
invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
new-instance v0, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
invoke-direct {v0}, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;-><init>()V
iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mInstantAppsEnabled:Z
return-void
.end method
.method public constructor <init>(Landroidx/browser/customtabs/CustomTabsSession;)V
.locals 3
.locals 2
.param p1 # Landroidx/browser/customtabs/CustomTabsSession;
.annotation build Landroidx/annotation/Nullable;
.end annotation
@ -70,54 +110,53 @@
iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
const/4 v0, 0x0
new-instance v0, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mMenuItems:Ljava/util/ArrayList;
invoke-direct {v0}, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;-><init>()V
iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mStartAnimationBundle:Landroid/os/Bundle;
iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mActionButtons:Ljava/util/ArrayList;
const/4 v0, 0x1
const/4 v1, 0x1
iput-boolean v1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mInstantAppsEnabled:Z
iput-boolean v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mInstantAppsEnabled:Z
if-eqz p1, :cond_0
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession;->getComponentName()Landroid/content/ComponentName;
move-result-object v2
invoke-virtual {v2}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
invoke-virtual {p0, p1}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setSession(Landroidx/browser/customtabs/CustomTabsSession;)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
:cond_0
new-instance v1, Landroid/os/Bundle;
return-void
.end method
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
.method private setSessionParameters(Landroid/os/IBinder;Landroid/app/PendingIntent;)V
.locals 2
.param p1 # Landroid/os/IBinder;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Landroid/app/PendingIntent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
if-nez p1, :cond_1
new-instance v0, Landroid/os/Bundle;
goto :goto_0
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
:cond_1
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession;->getBinder()Landroid/os/IBinder;
const-string v1, "android.support.customtabs.extra.SESSION"
move-result-object v0
invoke-static {v0, v1, p1}, Landroidx/core/app/BundleCompat;->putBinder(Landroid/os/Bundle;Ljava/lang/String;Landroid/os/IBinder;)V
:goto_0
const-string p1, "android.support.customtabs.extra.SESSION"
if-eqz p2, :cond_0
invoke-static {v1, p1, v0}, Landroidx/core/app/BundleCompat;->putBinder(Landroid/os/Bundle;Ljava/lang/String;Landroid/os/IBinder;)V
const-string p1, "android.support.customtabs.extra.SESSION_ID"
invoke-virtual {v0, p1, p2}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
:cond_0
iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
invoke-virtual {p1, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
invoke-virtual {p1, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
return-void
.end method
@ -126,6 +165,8 @@
# virtual methods
.method public addDefaultShareMenuItem()Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 3
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
@ -148,6 +189,8 @@
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mMenuItems:Ljava/util/ArrayList;
@ -189,6 +232,13 @@
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p4 # Landroid/app/PendingIntent;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/IllegalStateException;
@ -257,10 +307,27 @@
.method public build()Landroidx/browser/customtabs/CustomTabsIntent;
.locals 3
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
const-string v1, "android.support.customtabs.extra.SESSION"
invoke-virtual {v0, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_0
const/4 v0, 0x0
invoke-direct {p0, v0, v0}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setSessionParameters(Landroid/os/IBinder;Landroid/app/PendingIntent;)V
:cond_0
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mMenuItems:Ljava/util/ArrayList;
if-eqz v0, :cond_0
if-eqz v0, :cond_1
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
@ -268,10 +335,10 @@
invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putParcelableArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;
:cond_0
:cond_1
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mActionButtons:Ljava/util/ArrayList;
if-eqz v0, :cond_1
if-eqz v0, :cond_2
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
@ -279,7 +346,7 @@
invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putParcelableArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;
:cond_1
:cond_2
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
iget-boolean v1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mInstantAppsEnabled:Z
@ -288,6 +355,39 @@
invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
invoke-virtual {v1}, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->build()Landroidx/browser/customtabs/CustomTabColorSchemeParams;
move-result-object v1
invoke-virtual {v1}, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->toBundle()Landroid/os/Bundle;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mColorSchemeParamBundles:Landroid/util/SparseArray;
if-eqz v0, :cond_3
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mColorSchemeParamBundles:Landroid/util/SparseArray;
const-string v2, "androidx.browser.customtabs.extra.COLOR_SCHEME_PARAMS"
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putSparseParcelableArray(Ljava/lang/String;Landroid/util/SparseArray;)V
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
invoke-virtual {v1, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
:cond_3
new-instance v0, Landroidx/browser/customtabs/CustomTabsIntent;
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
@ -301,6 +401,8 @@
.method public enableUrlBarHiding()Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 3
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
@ -327,6 +429,8 @@
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/4 v0, 0x0
@ -351,6 +455,8 @@
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
new-instance v0, Landroid/os/Bundle;
@ -395,6 +501,8 @@
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
@ -405,6 +513,87 @@
return-object p0
.end method
.method public setColorScheme(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
if-ltz p1, :cond_0
const/4 v0, 0x2
if-gt p1, v0, :cond_0
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
const-string v1, "androidx.browser.customtabs.extra.COLOR_SCHEME"
invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "Invalid value for the colorScheme argument"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public setColorSchemeParams(ILandroidx/browser/customtabs/CustomTabColorSchemeParams;)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 1
.param p2 # Landroidx/browser/customtabs/CustomTabColorSchemeParams;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
if-ltz p1, :cond_1
const/4 v0, 0x2
if-gt p1, v0, :cond_1
if-eqz p1, :cond_1
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mColorSchemeParamBundles:Landroid/util/SparseArray;
if-nez v0, :cond_0
new-instance v0, Landroid/util/SparseArray;
invoke-direct {v0}, Landroid/util/SparseArray;-><init>()V
iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mColorSchemeParamBundles:Landroid/util/SparseArray;
:cond_0
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mColorSchemeParamBundles:Landroid/util/SparseArray;
invoke-virtual {p2}, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->toBundle()Landroid/os/Bundle;
move-result-object p2
invoke-virtual {v0, p1, p2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
return-object p0
:cond_1
new-instance p2, Ljava/lang/IllegalArgumentException;
const-string v0, "Invalid colorScheme: "
invoke-static {v0, p1}, Lf/e/b/a/a;->h(Ljava/lang/String;I)Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p2
.end method
.method public setExitAnimations(Landroid/content/Context;II)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 0
.param p1 # Landroid/content/Context;
@ -419,6 +608,8 @@
.annotation build Landroidx/annotation/AnimRes;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
invoke-static {p1, p2, p3}, Landroidx/core/app/ActivityOptionsCompat;->makeCustomAnimation(Landroid/content/Context;II)Landroidx/core/app/ActivityOptionsCompat;
@ -439,24 +630,68 @@
.method public setInstantAppsEnabled(Z)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
iput-boolean p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mInstantAppsEnabled:Z
return-object p0
.end method
.method public setSecondaryToolbarColor(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 2
.method public setNavigationBarColor(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 1
.param p1 # I
.annotation build Landroidx/annotation/ColorInt;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
const-string v1, "android.support.customtabs.extra.SECONDARY_TOOLBAR_COLOR"
invoke-virtual {v0, p1}, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->setNavigationBarColor(I)Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
return-object p0
.end method
.method public setPendingSession(Landroidx/browser/customtabs/CustomTabsSession$PendingSession;)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 1
.param p1 # Landroidx/browser/customtabs/CustomTabsSession$PendingSession;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession$PendingSession;->getId()Landroid/app/PendingIntent;
move-result-object p1
const/4 v0, 0x0
invoke-direct {p0, v0, p1}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setSessionParameters(Landroid/os/IBinder;Landroid/app/PendingIntent;)V
return-object p0
.end method
.method public setSecondaryToolbarColor(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 1
.param p1 # I
.annotation build Landroidx/annotation/ColorInt;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
invoke-virtual {v0, p1}, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->setSecondaryToolbarColor(I)Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
return-object p0
.end method
@ -475,6 +710,8 @@
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
@ -497,8 +734,44 @@
return-object p0
.end method
.method public setSession(Landroidx/browser/customtabs/CustomTabsSession;)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 2
.param p1 # Landroidx/browser/customtabs/CustomTabsSession;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession;->getComponentName()Landroid/content/ComponentName;
move-result-object v1
invoke-virtual {v1}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession;->getBinder()Landroid/os/IBinder;
move-result-object v0
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession;->getId()Landroid/app/PendingIntent;
move-result-object p1
invoke-direct {p0, v0, p1}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setSessionParameters(Landroid/os/IBinder;Landroid/app/PendingIntent;)V
return-object p0
.end method
.method public setShowTitle(Z)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
@ -523,6 +796,8 @@
.annotation build Landroidx/annotation/AnimRes;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
invoke-static {p1, p2, p3}, Landroidx/core/app/ActivityOptionsCompat;->makeCustomAnimation(Landroid/content/Context;II)Landroidx/core/app/ActivityOptionsCompat;
@ -538,17 +813,17 @@
.end method
.method public setToolbarColor(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 2
.locals 1
.param p1 # I
.annotation build Landroidx/annotation/ColorInt;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
const-string v1, "android.support.customtabs.extra.TOOLBAR_COLOR"
invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
invoke-virtual {v0, p1}, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->setToolbarColor(I)Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
return-object p0
.end method

View file

@ -0,0 +1,27 @@
.class public interface abstract annotation Landroidx/browser/customtabs/CustomTabsIntent$ColorScheme;
.super Ljava/lang/Object;
.source "CustomTabsIntent.java"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/browser/customtabs/CustomTabsIntent;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2609
name = "ColorScheme"
.end annotation
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->SOURCE:Ljava/lang/annotation/RetentionPolicy;
.end annotation

View file

@ -6,16 +6,29 @@
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/browser/customtabs/CustomTabsIntent$Builder;
Landroidx/browser/customtabs/CustomTabsIntent$Builder;,
Landroidx/browser/customtabs/CustomTabsIntent$ColorScheme;
}
.end annotation
# static fields
.field public static final COLOR_SCHEME_DARK:I = 0x2
.field public static final COLOR_SCHEME_LIGHT:I = 0x1
.field public static final COLOR_SCHEME_MAX:I = 0x2
.field public static final COLOR_SCHEME_SYSTEM:I = 0x0
.field public static final EXTRA_ACTION_BUTTON_BUNDLE:Ljava/lang/String; = "android.support.customtabs.extra.ACTION_BUTTON_BUNDLE"
.field public static final EXTRA_CLOSE_BUTTON_ICON:Ljava/lang/String; = "android.support.customtabs.extra.CLOSE_BUTTON_ICON"
.field public static final EXTRA_COLOR_SCHEME:Ljava/lang/String; = "androidx.browser.customtabs.extra.COLOR_SCHEME"
.field public static final EXTRA_COLOR_SCHEME_PARAMS:Ljava/lang/String; = "androidx.browser.customtabs.extra.COLOR_SCHEME_PARAMS"
.field public static final EXTRA_DEFAULT_SHARE_MENU_ITEM:Ljava/lang/String; = "android.support.customtabs.extra.SHARE_MENU_ITEM"
.field public static final EXTRA_ENABLE_INSTANT_APPS:Ljava/lang/String; = "android.support.customtabs.extra.EXTRA_ENABLE_INSTANT_APPS"
@ -26,6 +39,8 @@
.field public static final EXTRA_MENU_ITEMS:Ljava/lang/String; = "android.support.customtabs.extra.MENU_ITEMS"
.field public static final EXTRA_NAVIGATION_BAR_COLOR:Ljava/lang/String; = "androidx.browser.customtabs.extra.NAVIGATION_BAR_COLOR"
.field public static final EXTRA_REMOTEVIEWS:Ljava/lang/String; = "android.support.customtabs.extra.EXTRA_REMOTEVIEWS"
.field public static final EXTRA_REMOTEVIEWS_CLICKED_ID:Ljava/lang/String; = "android.support.customtabs.extra.EXTRA_REMOTEVIEWS_CLICKED_ID"
@ -38,6 +53,14 @@
.field public static final EXTRA_SESSION:Ljava/lang/String; = "android.support.customtabs.extra.SESSION"
.field public static final EXTRA_SESSION_ID:Ljava/lang/String; = "android.support.customtabs.extra.SESSION_ID"
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.end field
.field public static final EXTRA_TINT_ACTION_BUTTON:Ljava/lang/String; = "android.support.customtabs.extra.TINT_ACTION_BUTTON"
.field public static final EXTRA_TITLE_VISIBILITY_STATE:Ljava/lang/String; = "android.support.customtabs.extra.TITLE_VISIBILITY"
@ -82,6 +105,14 @@
# direct methods
.method public constructor <init>(Landroid/content/Intent;Landroid/os/Bundle;)V
.locals 0
.param p1 # Landroid/content/Intent;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
@ -92,6 +123,85 @@
return-void
.end method
.method public static getColorSchemeParams(Landroid/content/Intent;I)Landroidx/browser/customtabs/CustomTabColorSchemeParams;
.locals 2
.param p0 # Landroid/content/Intent;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
if-ltz p1, :cond_2
const/4 v0, 0x2
if-gt p1, v0, :cond_2
if-eqz p1, :cond_2
invoke-virtual {p0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object p0
if-nez p0, :cond_0
const/4 p0, 0x0
invoke-static {p0}, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->fromBundle(Landroid/os/Bundle;)Landroidx/browser/customtabs/CustomTabColorSchemeParams;
move-result-object p0
return-object p0
:cond_0
invoke-static {p0}, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->fromBundle(Landroid/os/Bundle;)Landroidx/browser/customtabs/CustomTabColorSchemeParams;
move-result-object v0
const-string v1, "androidx.browser.customtabs.extra.COLOR_SCHEME_PARAMS"
invoke-virtual {p0, v1}, Landroid/os/Bundle;->getSparseParcelableArray(Ljava/lang/String;)Landroid/util/SparseArray;
move-result-object p0
if-eqz p0, :cond_1
invoke-virtual {p0, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
move-result-object p0
check-cast p0, Landroid/os/Bundle;
if-eqz p0, :cond_1
invoke-static {p0}, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->fromBundle(Landroid/os/Bundle;)Landroidx/browser/customtabs/CustomTabColorSchemeParams;
move-result-object p0
invoke-virtual {p0, v0}, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->withDefaults(Landroidx/browser/customtabs/CustomTabColorSchemeParams;)Landroidx/browser/customtabs/CustomTabColorSchemeParams;
move-result-object p0
return-object p0
:cond_1
return-object v0
:cond_2
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string v0, "Invalid colorScheme: "
invoke-static {v0, p1}, Lf/e/b/a/a;->h(Ljava/lang/String;I)Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static getMaxToolbarItems()I
.locals 1
@ -102,6 +212,12 @@
.method public static setAlwaysUseBrowserUI(Landroid/content/Intent;)Landroid/content/Intent;
.locals 2
.param p0 # Landroid/content/Intent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
if-nez p0, :cond_0
@ -127,37 +243,49 @@
.method public static shouldAlwaysUseBrowserUI(Landroid/content/Intent;)Z
.locals 2
.param p0 # Landroid/content/Intent;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const/4 v0, 0x0
const-string v0, "android.support.customtabs.extra.user_opt_out"
const-string v1, "android.support.customtabs.extra.user_opt_out"
const/4 v1, 0x0
invoke-virtual {p0, v1, v0}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z
invoke-virtual {p0, v0, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z
move-result v1
move-result v0
if-eqz v1, :cond_0
if-eqz v0, :cond_0
invoke-virtual {p0}, Landroid/content/Intent;->getFlags()I
move-result p0
const/high16 v1, 0x10000000
const/high16 v0, 0x10000000
and-int/2addr p0, v1
and-int/2addr p0, v0
if-eqz p0, :cond_0
const/4 v0, 0x1
const/4 v1, 0x1
:cond_0
return v0
return v1
.end method
# virtual methods
.method public launchUrl(Landroid/content/Context;Landroid/net/Uri;)V
.locals 1
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent;->intent:Landroid/content/Intent;

View file

@ -1,53 +0,0 @@
.class public Landroidx/browser/customtabs/CustomTabsService$1$1;
.super Ljava/lang/Object;
.source "CustomTabsService.java"
# interfaces
.implements Landroid/os/IBinder$DeathRecipient;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/browser/customtabs/CustomTabsService$1;->newSession(Ls/a/a/a;)Z
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$1:Landroidx/browser/customtabs/CustomTabsService$1;
.field public final synthetic val$sessionToken:Landroidx/browser/customtabs/CustomTabsSessionToken;
# direct methods
.method public constructor <init>(Landroidx/browser/customtabs/CustomTabsService$1;Landroidx/browser/customtabs/CustomTabsSessionToken;)V
.locals 0
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsService$1$1;->this$1:Landroidx/browser/customtabs/CustomTabsService$1;
iput-object p2, p0, Landroidx/browser/customtabs/CustomTabsService$1$1;->val$sessionToken:Landroidx/browser/customtabs/CustomTabsSessionToken;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public binderDied()V
.locals 2
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1$1;->this$1:Landroidx/browser/customtabs/CustomTabsService$1;
iget-object v0, v0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsService$1$1;->val$sessionToken:Landroidx/browser/customtabs/CustomTabsSessionToken;
invoke-virtual {v0, v1}, Landroidx/browser/customtabs/CustomTabsService;->cleanUpSession(Landroidx/browser/customtabs/CustomTabsSessionToken;)Z
return-void
.end method

View file

@ -1,5 +1,5 @@
.class public Landroidx/browser/customtabs/CustomTabsService$1;
.super Ls/a/a/b$a;
.super Ld0/a/a/b$a;
.source "CustomTabsService.java"
@ -24,92 +24,88 @@
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
invoke-direct {p0}, Ls/a/a/b$a;-><init>()V
invoke-direct {p0}, Ld0/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(Ls/a/a/a;Landroid/net/Uri;Landroid/os/Bundle;Ljava/util/List;)Z
.method private getSessionIdFromBundle(Landroid/os/Bundle;)Landroid/app/PendingIntent;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ls/a/a/a;",
"Landroid/net/Uri;",
"Landroid/os/Bundle;",
"Ljava/util/List<",
"Landroid/os/Bundle;",
">;)Z"
}
.param p1 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
if-nez p1, :cond_0
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken;
const/4 p1, 0x0
invoke-direct {v1, p1}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ls/a/a/a;)V
return-object p1
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
:cond_0
const-string v0, "android.support.customtabs.extra.SESSION_ID"
move-result p1
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
return p1
move-result-object v1
check-cast v1, Landroid/app/PendingIntent;
invoke-virtual {p1, v0}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V
return-object v1
.end method
.method public newSession(Ls/a/a/a;)Z
.locals 5
.method private newSessionInternal(Ld0/a/a/a;Landroid/app/PendingIntent;)Z
.locals 4
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/app/PendingIntent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
new-instance v0, Landroidx/browser/customtabs/CustomTabsSessionToken;
invoke-direct {v0, p1}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ls/a/a/a;)V
invoke-direct {v0, p1, p2}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ld0/a/a/a;Landroid/app/PendingIntent;)V
const/4 v1, 0x0
const/4 p2, 0x0
:try_start_0
new-instance v2, Landroidx/browser/customtabs/CustomTabsService$1$1;
new-instance v1, Le0/a/a/a;
invoke-direct {v2, p0, v0}, Landroidx/browser/customtabs/CustomTabsService$1$1;-><init>(Landroidx/browser/customtabs/CustomTabsService$1;Landroidx/browser/customtabs/CustomTabsSessionToken;)V
invoke-direct {v1, p0, v0}, Le0/a/a/a;-><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 v2, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
iget-object v3, v3, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Ljava/util/Map;
iget-object v2, v2, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Landroidx/collection/SimpleArrayMap;
monitor-enter v3
monitor-enter v2
: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
move-result-object v3
invoke-interface {v4, v2, v1}, Landroid/os/IBinder;->linkToDeath(Landroid/os/IBinder$DeathRecipient;I)V
invoke-interface {v3, v1, p2}, 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 v3, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
iget-object v4, v4, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Ljava/util/Map;
iget-object v3, v3, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Landroidx/collection/SimpleArrayMap;
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;
invoke-virtual {v3, p1, v1}, Landroidx/collection/SimpleArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
monitor-exit v3
monitor-exit v2
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
@ -128,7 +124,7 @@
move-exception p1
:try_start_3
monitor-exit v3
monitor-exit v2
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
@ -138,17 +134,150 @@
.catch Landroid/os/RemoteException; {:try_start_4 .. :try_end_4} :catch_0
:catch_0
return v1
return p2
.end method
.method public postMessage(Ls/a/a/a;Ljava/lang/String;Landroid/os/Bundle;)I
.locals 2
# virtual methods
.method public extraCommand(Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
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 synthetic g(Landroidx/browser/customtabs/CustomTabsSessionToken;)V
.locals 1
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
invoke-virtual {v0, p1}, Landroidx/browser/customtabs/CustomTabsService;->cleanUpSession(Landroidx/browser/customtabs/CustomTabsSessionToken;)Z
return-void
.end method
.method public mayLaunchUrl(Ld0/a/a/a;Landroid/net/Uri;Landroid/os/Bundle;Ljava/util/List;)Z
.locals 3
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p4 # Ljava/util/List;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ld0/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>(Ls/a/a/a;)V
invoke-direct {p0, p3}, Landroidx/browser/customtabs/CustomTabsService$1;->getSessionIdFromBundle(Landroid/os/Bundle;)Landroid/app/PendingIntent;
move-result-object v2
invoke-direct {v1, p1, v2}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ld0/a/a/a;Landroid/app/PendingIntent;)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(Ld0/a/a/a;)Z
.locals 1
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const/4 v0, 0x0
invoke-direct {p0, p1, v0}, Landroidx/browser/customtabs/CustomTabsService$1;->newSessionInternal(Ld0/a/a/a;Landroid/app/PendingIntent;)Z
move-result p1
return p1
.end method
.method public newSessionWithExtras(Ld0/a/a/a;Landroid/os/Bundle;)Z
.locals 0
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
invoke-direct {p0, p2}, Landroidx/browser/customtabs/CustomTabsService$1;->getSessionIdFromBundle(Landroid/os/Bundle;)Landroid/app/PendingIntent;
move-result-object p2
invoke-direct {p0, p1, p2}, Landroidx/browser/customtabs/CustomTabsService$1;->newSessionInternal(Ld0/a/a/a;Landroid/app/PendingIntent;)Z
move-result p1
return p1
.end method
.method public postMessage(Ld0/a/a/a;Ljava/lang/String;Landroid/os/Bundle;)I
.locals 3
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken;
invoke-direct {p0, p3}, Landroidx/browser/customtabs/CustomTabsService$1;->getSessionIdFromBundle(Landroid/os/Bundle;)Landroid/app/PendingIntent;
move-result-object v2
invoke-direct {v1, p1, v2}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ld0/a/a/a;Landroid/app/PendingIntent;)V
invoke-virtual {v0, v1, p2, p3}, Landroidx/browser/customtabs/CustomTabsService;->postMessage(Landroidx/browser/customtabs/CustomTabsSessionToken;Ljava/lang/String;Landroid/os/Bundle;)I
@ -157,14 +286,56 @@
return p1
.end method
.method public requestPostMessageChannel(Ls/a/a/a;Landroid/net/Uri;)Z
.locals 2
.method public receiveFile(Ld0/a/a/a;Landroid/net/Uri;ILandroid/os/Bundle;)Z
.locals 3
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p4 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
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>(Ls/a/a/a;)V
invoke-direct {p0, p4}, Landroidx/browser/customtabs/CustomTabsService$1;->getSessionIdFromBundle(Landroid/os/Bundle;)Landroid/app/PendingIntent;
move-result-object v2
invoke-direct {v1, p1, v2}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ld0/a/a/a;Landroid/app/PendingIntent;)V
invoke-virtual {v0, v1, p2, p3, p4}, Landroidx/browser/customtabs/CustomTabsService;->receiveFile(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/net/Uri;ILandroid/os/Bundle;)Z
move-result p1
return p1
.end method
.method public requestPostMessageChannel(Ld0/a/a/a;Landroid/net/Uri;)Z
.locals 3
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken;
const/4 v2, 0x0
invoke-direct {v1, p1, v2}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ld0/a/a/a;Landroid/app/PendingIntent;)V
invoke-virtual {v0, v1, p2}, Landroidx/browser/customtabs/CustomTabsService;->requestPostMessageChannel(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/net/Uri;)Z
@ -173,14 +344,58 @@
return p1
.end method
.method public updateVisuals(Ls/a/a/a;Landroid/os/Bundle;)Z
.method public requestPostMessageChannelWithExtras(Ld0/a/a/a;Landroid/net/Uri;Landroid/os/Bundle;)Z
.locals 2
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
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>(Ls/a/a/a;)V
invoke-direct {p0, p3}, Landroidx/browser/customtabs/CustomTabsService$1;->getSessionIdFromBundle(Landroid/os/Bundle;)Landroid/app/PendingIntent;
move-result-object p3
invoke-direct {v1, p1, p3}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ld0/a/a/a;Landroid/app/PendingIntent;)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(Ld0/a/a/a;Landroid/os/Bundle;)Z
.locals 3
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken;
invoke-direct {p0, p2}, Landroidx/browser/customtabs/CustomTabsService$1;->getSessionIdFromBundle(Landroid/os/Bundle;)Landroid/app/PendingIntent;
move-result-object v2
invoke-direct {v1, p1, v2}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ld0/a/a/a;Landroid/app/PendingIntent;)V
invoke-virtual {v0, v1, p2}, Landroidx/browser/customtabs/CustomTabsService;->updateVisuals(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/os/Bundle;)Z
@ -189,14 +404,30 @@
return p1
.end method
.method public validateRelationship(Ls/a/a/a;ILandroid/net/Uri;Landroid/os/Bundle;)Z
.locals 2
.method public validateRelationship(Ld0/a/a/a;ILandroid/net/Uri;Landroid/os/Bundle;)Z
.locals 3
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p4 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
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>(Ls/a/a/a;)V
invoke-direct {p0, p4}, Landroidx/browser/customtabs/CustomTabsService$1;->getSessionIdFromBundle(Landroid/os/Bundle;)Landroid/app/PendingIntent;
move-result-object v2
invoke-direct {v1, p1, v2}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ld0/a/a/a;Landroid/app/PendingIntent;)V
invoke-virtual {v0, v1, p2, p3, p4}, Landroidx/browser/customtabs/CustomTabsService;->validateRelationship(Landroidx/browser/customtabs/CustomTabsSessionToken;ILandroid/net/Uri;Landroid/os/Bundle;)Z

View file

@ -0,0 +1,27 @@
.class public interface abstract annotation Landroidx/browser/customtabs/CustomTabsService$FilePurpose;
.super Ljava/lang/Object;
.source "CustomTabsService.java"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/browser/customtabs/CustomTabsService;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2609
name = "FilePurpose"
.end annotation
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->SOURCE:Ljava/lang/annotation/RetentionPolicy;
.end annotation

View file

@ -6,6 +6,7 @@
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/browser/customtabs/CustomTabsService$FilePurpose;,
Landroidx/browser/customtabs/CustomTabsService$Relation;,
Landroidx/browser/customtabs/CustomTabsService$Result;
}
@ -15,6 +16,16 @@
# static fields
.field public static final ACTION_CUSTOM_TABS_CONNECTION:Ljava/lang/String; = "android.support.customtabs.action.CustomTabsService"
.field public static final CATEGORY_COLOR_SCHEME_CUSTOMIZATION:Ljava/lang/String; = "androidx.browser.customtabs.category.ColorSchemeCustomization"
.field public static final CATEGORY_NAVBAR_COLOR_CUSTOMIZATION:Ljava/lang/String; = "androidx.browser.customtabs.category.NavBarColorCustomization"
.field public static final CATEGORY_TRUSTED_WEB_ACTIVITY_IMMERSIVE_MODE:Ljava/lang/String; = "androidx.browser.trusted.category.ImmersiveMode"
.field public static final CATEGORY_WEB_SHARE_TARGET_V2:Ljava/lang/String; = "androidx.browser.trusted.category.WebShareTargetV2"
.field public static final FILE_PURPOSE_TRUSTED_WEB_ACTIVITY_SPLASH_IMAGE:I = 0x1
.field public static final KEY_URL:Ljava/lang/String; = "android.support.customtabs.otherurls.URL"
.field public static final RELATION_HANDLE_ALL_URLS:I = 0x2
@ -27,16 +38,18 @@
.field public static final RESULT_FAILURE_REMOTE_ERROR:I = -0x2
.field public static final RESULT_SUCCESS:I
.field public static final RESULT_SUCCESS:I = 0x0
.field public static final TRUSTED_WEB_ACTIVITY_CATEGORY:Ljava/lang/String; = "androidx.browser.trusted.category.TrustedWebActivities"
# instance fields
.field public mBinder:Ls/a/a/b$a;
.field public mBinder:Ld0/a/a/b$a;
.field public final mDeathRecipientMap:Ljava/util/Map;
.field public final mDeathRecipientMap:Landroidx/collection/SimpleArrayMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Landroidx/collection/SimpleArrayMap<",
"Landroid/os/IBinder;",
"Landroid/os/IBinder$DeathRecipient;",
">;"
@ -51,17 +64,17 @@
invoke-direct {p0}, Landroid/app/Service;-><init>()V
new-instance v0, Landroidx/collection/ArrayMap;
new-instance v0, Landroidx/collection/SimpleArrayMap;
invoke-direct {v0}, Landroidx/collection/ArrayMap;-><init>()V
invoke-direct {v0}, Landroidx/collection/SimpleArrayMap;-><init>()V
iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Ljava/util/Map;
iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Landroidx/collection/SimpleArrayMap;
new-instance v0, Landroidx/browser/customtabs/CustomTabsService$1;
invoke-direct {v0, p0}, Landroidx/browser/customtabs/CustomTabsService$1;-><init>(Landroidx/browser/customtabs/CustomTabsService;)V
iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsService;->mBinder:Ls/a/a/b$a;
iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsService;->mBinder:Ld0/a/a/b$a;
return-void
.end method
@ -70,11 +83,15 @@
# virtual methods
.method public cleanUpSession(Landroidx/browser/customtabs/CustomTabsSessionToken;)Z
.locals 3
.param p1 # Landroidx/browser/customtabs/CustomTabsSessionToken;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const/4 v0, 0x0
:try_start_0
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Ljava/util/Map;
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Landroidx/collection/SimpleArrayMap;
monitor-enter v1
:try_end_0
@ -85,9 +102,16 @@
move-result-object p1
iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Ljava/util/Map;
if-nez p1, :cond_0
invoke-interface {v2, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
monitor-exit v1
return v0
:cond_0
iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Landroidx/collection/SimpleArrayMap;
invoke-virtual {v2, p1}, Landroidx/collection/SimpleArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
@ -95,9 +119,9 @@
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;
iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Landroidx/collection/SimpleArrayMap;
invoke-interface {v2, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
invoke-virtual {v2, p1}, Landroidx/collection/SimpleArrayMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
monitor-exit v1
@ -122,9 +146,35 @@
.end method
.method public abstract extraCommand(Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end method
.method public abstract mayLaunchUrl(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/net/Uri;Landroid/os/Bundle;Ljava/util/List;)Z
.param p1 # Landroidx/browser/customtabs/CustomTabsSessionToken;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p4 # Ljava/util/List;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
@ -139,26 +189,91 @@
.end method
.method public abstract newSession(Landroidx/browser/customtabs/CustomTabsSessionToken;)Z
.param p1 # Landroidx/browser/customtabs/CustomTabsSessionToken;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.end method
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
.locals 0
.param p1 # Landroid/content/Intent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsService;->mBinder:Ls/a/a/b$a;
iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsService;->mBinder:Ld0/a/a/b$a;
return-object p1
.end method
.method public abstract postMessage(Landroidx/browser/customtabs/CustomTabsSessionToken;Ljava/lang/String;Landroid/os/Bundle;)I
.param p1 # Landroidx/browser/customtabs/CustomTabsSessionToken;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.end method
.method public abstract receiveFile(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/net/Uri;ILandroid/os/Bundle;)Z
.param p1 # Landroidx/browser/customtabs/CustomTabsSessionToken;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p4 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.end method
.method public abstract requestPostMessageChannel(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/net/Uri;)Z
.param p1 # Landroidx/browser/customtabs/CustomTabsSessionToken;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.end method
.method public abstract updateVisuals(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/os/Bundle;)Z
.param p1 # Landroidx/browser/customtabs/CustomTabsSessionToken;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.end method
.method public abstract validateRelationship(Landroidx/browser/customtabs/CustomTabsSessionToken;ILandroid/net/Uri;Landroid/os/Bundle;)Z
.param p1 # Landroidx/browser/customtabs/CustomTabsSessionToken;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p4 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.end method
.method public abstract warmup(J)Z

View file

@ -19,12 +19,12 @@
# direct methods
.method public constructor <init>(Landroidx/browser/customtabs/CustomTabsServiceConnection;Ls/a/a/b;Landroid/content/ComponentName;)V
.method public constructor <init>(Landroidx/browser/customtabs/CustomTabsServiceConnection;Ld0/a/a/b;Landroid/content/ComponentName;Landroid/content/Context;)V
.locals 0
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsServiceConnection$1;->this$0:Landroidx/browser/customtabs/CustomTabsServiceConnection;
invoke-direct {p0, p2, p3}, Landroidx/browser/customtabs/CustomTabsClient;-><init>(Ls/a/a/b;Landroid/content/ComponentName;)V
invoke-direct {p0, p2, p3, p4}, Landroidx/browser/customtabs/CustomTabsClient;-><init>(Ld0/a/a/b;Landroid/content/ComponentName;Landroid/content/Context;)V
return-void
.end method

View file

@ -6,6 +6,13 @@
.implements Landroid/content/ServiceConnection;
# instance fields
.field public mApplicationContext:Landroid/content/Context;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 0
@ -17,21 +24,85 @@
# virtual methods
.method public getApplicationContext()Landroid/content/Context;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsServiceConnection;->mApplicationContext:Landroid/content/Context;
return-object v0
.end method
.method public abstract onCustomTabsServiceConnected(Landroid/content/ComponentName;Landroidx/browser/customtabs/CustomTabsClient;)V
.param p1 # Landroid/content/ComponentName;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroidx/browser/customtabs/CustomTabsClient;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.end method
.method public final onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V
.locals 1
.locals 2
.param p1 # Landroid/content/ComponentName;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/IBinder;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsServiceConnection;->mApplicationContext:Landroid/content/Context;
if-eqz v0, :cond_0
new-instance v0, Landroidx/browser/customtabs/CustomTabsServiceConnection$1;
invoke-static {p2}, Ls/a/a/b$a;->asInterface(Landroid/os/IBinder;)Ls/a/a/b;
invoke-static {p2}, Ld0/a/a/b$a;->asInterface(Landroid/os/IBinder;)Ld0/a/a/b;
move-result-object p2
invoke-direct {v0, p0, p2, p1}, Landroidx/browser/customtabs/CustomTabsServiceConnection$1;-><init>(Landroidx/browser/customtabs/CustomTabsServiceConnection;Ls/a/a/b;Landroid/content/ComponentName;)V
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsServiceConnection;->mApplicationContext:Landroid/content/Context;
invoke-direct {v0, p0, p2, p1, v1}, Landroidx/browser/customtabs/CustomTabsServiceConnection$1;-><init>(Landroidx/browser/customtabs/CustomTabsServiceConnection;Ld0/a/a/b;Landroid/content/ComponentName;Landroid/content/Context;)V
invoke-virtual {p0, p1, v0}, Landroidx/browser/customtabs/CustomTabsServiceConnection;->onCustomTabsServiceConnected(Landroid/content/ComponentName;Landroidx/browser/customtabs/CustomTabsClient;)V
return-void
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "Custom Tabs Service connected before an applicationcontext has been provided."
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public setApplicationContext(Landroid/content/Context;)V
.locals 0
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsServiceConnection;->mApplicationContext:Landroid/content/Context;
return-void
.end method

View file

@ -0,0 +1,181 @@
.class public Landroidx/browser/customtabs/CustomTabsSession$MockSession;
.super Ld0/a/a/b$a;
.source "CustomTabsSession.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/browser/customtabs/CustomTabsSession;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "MockSession"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ld0/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 0
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
const/4 p1, 0x0
return-object p1
.end method
.method public mayLaunchUrl(Ld0/a/a/a;Landroid/net/Uri;Landroid/os/Bundle;Ljava/util/List;)Z
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ld0/a/a/a;",
"Landroid/net/Uri;",
"Landroid/os/Bundle;",
"Ljava/util/List<",
"Landroid/os/Bundle;",
">;)Z"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
const/4 p1, 0x0
return p1
.end method
.method public newSession(Ld0/a/a/a;)Z
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
const/4 p1, 0x0
return p1
.end method
.method public newSessionWithExtras(Ld0/a/a/a;Landroid/os/Bundle;)Z
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
const/4 p1, 0x0
return p1
.end method
.method public postMessage(Ld0/a/a/a;Ljava/lang/String;Landroid/os/Bundle;)I
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
const/4 p1, 0x0
return p1
.end method
.method public receiveFile(Ld0/a/a/a;Landroid/net/Uri;ILandroid/os/Bundle;)Z
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
const/4 p1, 0x0
return p1
.end method
.method public requestPostMessageChannel(Ld0/a/a/a;Landroid/net/Uri;)Z
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
const/4 p1, 0x0
return p1
.end method
.method public requestPostMessageChannelWithExtras(Ld0/a/a/a;Landroid/net/Uri;Landroid/os/Bundle;)Z
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
const/4 p1, 0x0
return p1
.end method
.method public updateVisuals(Ld0/a/a/a;Landroid/os/Bundle;)Z
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
const/4 p1, 0x0
return p1
.end method
.method public validateRelationship(Ld0/a/a/a;ILandroid/net/Uri;Landroid/os/Bundle;)Z
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
const/4 p1, 0x0
return p1
.end method
.method public warmup(J)Z
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
const/4 p1, 0x0
return p1
.end method

View file

@ -0,0 +1,76 @@
.class public Landroidx/browser/customtabs/CustomTabsSession$PendingSession;
.super Ljava/lang/Object;
.source "CustomTabsSession.java"
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/browser/customtabs/CustomTabsSession;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "PendingSession"
.end annotation
# instance fields
.field public final mCallback:Landroidx/browser/customtabs/CustomTabsCallback;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public final mId:Landroid/app/PendingIntent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroidx/browser/customtabs/CustomTabsCallback;Landroid/app/PendingIntent;)V
.locals 0
.param p1 # Landroidx/browser/customtabs/CustomTabsCallback;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Landroid/app/PendingIntent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsSession$PendingSession;->mCallback:Landroidx/browser/customtabs/CustomTabsCallback;
iput-object p2, p0, Landroidx/browser/customtabs/CustomTabsSession$PendingSession;->mId:Landroid/app/PendingIntent;
return-void
.end method
# virtual methods
.method public getCallback()Landroidx/browser/customtabs/CustomTabsCallback;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSession$PendingSession;->mCallback:Landroidx/browser/customtabs/CustomTabsCallback;
return-object v0
.end method
.method public getId()Landroid/app/PendingIntent;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSession$PendingSession;->mId:Landroid/app/PendingIntent;
return-object v0
.end method

View file

@ -3,23 +3,41 @@
.source "CustomTabsSession.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/browser/customtabs/CustomTabsSession$MockSession;,
Landroidx/browser/customtabs/CustomTabsSession$PendingSession;
}
.end annotation
# static fields
.field public static final TAG:Ljava/lang/String; = "CustomTabsSession"
# instance fields
.field public final mCallback:Ls/a/a/a;
.field public final mCallback:Ld0/a/a/a;
.field public final mComponentName:Landroid/content/ComponentName;
.field public final mId:Landroid/app/PendingIntent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public final mLock:Ljava/lang/Object;
.field public final mService:Ls/a/a/b;
.field public final mService:Ld0/a/a/b;
# direct methods
.method public constructor <init>(Ls/a/a/b;Ls/a/a/a;Landroid/content/ComponentName;)V
.method public constructor <init>(Ld0/a/a/b;Ld0/a/a/a;Landroid/content/ComponentName;Landroid/app/PendingIntent;)V
.locals 1
.param p4 # Landroid/app/PendingIntent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
@ -29,17 +47,55 @@
iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsSession;->mLock:Ljava/lang/Object;
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsSession;->mService:Ls/a/a/b;
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsSession;->mService:Ld0/a/a/b;
iput-object p2, p0, Landroidx/browser/customtabs/CustomTabsSession;->mCallback:Ls/a/a/a;
iput-object p2, p0, Landroidx/browser/customtabs/CustomTabsSession;->mCallback:Ld0/a/a/a;
iput-object p3, p0, Landroidx/browser/customtabs/CustomTabsSession;->mComponentName:Landroid/content/ComponentName;
iput-object p4, p0, Landroidx/browser/customtabs/CustomTabsSession;->mId:Landroid/app/PendingIntent;
return-void
.end method
.method private addIdToBundle(Landroid/os/Bundle;)V
.locals 2
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSession;->mId:Landroid/app/PendingIntent;
if-eqz v0, :cond_0
const-string v1, "android.support.customtabs.extra.SESSION_ID"
invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
:cond_0
return-void
.end method
.method private createBundleWithId(Landroid/os/Bundle;)Landroid/os/Bundle;
.locals 1
.param p1 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
if-eqz p1, :cond_0
invoke-virtual {v0, p1}, Landroid/os/Bundle;->putAll(Landroid/os/Bundle;)V
:cond_0
invoke-direct {p0, v0}, Landroidx/browser/customtabs/CustomTabsSession;->addIdToBundle(Landroid/os/Bundle;)V
return-object v0
.end method
.method public static createMockSessionForTesting(Landroid/content/ComponentName;)Landroidx/browser/customtabs/CustomTabsSession;
.locals 3
.locals 4
.param p0 # Landroid/content/ComponentName;
.annotation build Landroidx/annotation/NonNull;
.end annotation
@ -52,13 +108,17 @@
new-instance v0, Landroidx/browser/customtabs/CustomTabsSession;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken$MockCallback;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSession$MockSession;
invoke-direct {v1}, Landroidx/browser/customtabs/CustomTabsSessionToken$MockCallback;-><init>()V
invoke-direct {v1}, Landroidx/browser/customtabs/CustomTabsSession$MockSession;-><init>()V
const/4 v2, 0x0
new-instance v2, Landroidx/browser/customtabs/CustomTabsSessionToken$MockCallback;
invoke-direct {v0, v2, v1, p0}, Landroidx/browser/customtabs/CustomTabsSession;-><init>(Ls/a/a/b;Ls/a/a/a;Landroid/content/ComponentName;)V
invoke-direct {v2}, Landroidx/browser/customtabs/CustomTabsSessionToken$MockCallback;-><init>()V
const/4 v3, 0x0
invoke-direct {v0, v1, v2, p0, v3}, Landroidx/browser/customtabs/CustomTabsSession;-><init>(Ld0/a/a/b;Ld0/a/a/a;Landroid/content/ComponentName;Landroid/app/PendingIntent;)V
return-object v0
.end method
@ -68,7 +128,7 @@
.method public getBinder()Landroid/os/IBinder;
.locals 1
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSession;->mCallback:Ls/a/a/a;
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSession;->mCallback:Ld0/a/a/a;
invoke-interface {v0}, Landroid/os/IInterface;->asBinder()Landroid/os/IBinder;
@ -85,8 +145,30 @@
return-object v0
.end method
.method public getId()Landroid/app/PendingIntent;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSession;->mId:Landroid/app/PendingIntent;
return-object v0
.end method
.method public mayLaunchUrl(Landroid/net/Uri;Landroid/os/Bundle;Ljava/util/List;)Z
.locals 2
.param p1 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p3 # Ljava/util/List;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
@ -98,12 +180,16 @@
}
.end annotation
invoke-direct {p0, p2}, Landroidx/browser/customtabs/CustomTabsSession;->createBundleWithId(Landroid/os/Bundle;)Landroid/os/Bundle;
move-result-object p2
:try_start_0
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSession;->mService:Ls/a/a/b;
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSession;->mService:Ld0/a/a/b;
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsSession;->mCallback:Ls/a/a/a;
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsSession;->mCallback:Ld0/a/a/a;
invoke-interface {v0, v1, p1, p2, p3}, Ls/a/a/b;->mayLaunchUrl(Ls/a/a/a;Landroid/net/Uri;Landroid/os/Bundle;Ljava/util/List;)Z
invoke-interface {v0, v1, p1, p2, p3}, Ld0/a/a/b;->mayLaunchUrl(Ld0/a/a/a;Landroid/net/Uri;Landroid/os/Bundle;Ljava/util/List;)Z
move-result p1
:try_end_0
@ -119,17 +205,29 @@
.method public postMessage(Ljava/lang/String;Landroid/os/Bundle;)I
.locals 3
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
invoke-direct {p0, p2}, Landroidx/browser/customtabs/CustomTabsSession;->createBundleWithId(Landroid/os/Bundle;)Landroid/os/Bundle;
move-result-object p2
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSession;->mLock:Ljava/lang/Object;
monitor-enter v0
:try_start_0
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsSession;->mService:Ls/a/a/b;
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsSession;->mService:Ld0/a/a/b;
iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsSession;->mCallback:Ls/a/a/a;
iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsSession;->mCallback:Ld0/a/a/a;
invoke-interface {v1, v2, p1, p2}, Ls/a/a/b;->postMessage(Ls/a/a/a;Ljava/lang/String;Landroid/os/Bundle;)I
invoke-interface {v1, v2, p1, p2}, Ld0/a/a/b;->postMessage(Ld0/a/a/a;Ljava/lang/String;Landroid/os/Bundle;)I
move-result p1
:try_end_0
@ -161,15 +259,74 @@
throw p1
.end method
.method public requestPostMessageChannel(Landroid/net/Uri;)Z
.method public receiveFile(Landroid/net/Uri;ILandroid/os/Bundle;)Z
.locals 2
.param p1 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
invoke-direct {p0, p3}, Landroidx/browser/customtabs/CustomTabsSession;->createBundleWithId(Landroid/os/Bundle;)Landroid/os/Bundle;
move-result-object p3
:try_start_0
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSession;->mService:Ls/a/a/b;
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSession;->mService:Ld0/a/a/b;
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsSession;->mCallback:Ls/a/a/a;
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsSession;->mCallback:Ld0/a/a/a;
invoke-interface {v0, v1, p1}, Ls/a/a/b;->requestPostMessageChannel(Ls/a/a/a;Landroid/net/Uri;)Z
invoke-interface {v0, v1, p1, p2, p3}, Ld0/a/a/b;->receiveFile(Ld0/a/a/a;Landroid/net/Uri;ILandroid/os/Bundle;)Z
move-result p1
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
return p1
:catch_0
const/4 p1, 0x0
return p1
.end method
.method public requestPostMessageChannel(Landroid/net/Uri;)Z
.locals 3
.param p1 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
:try_start_0
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSession;->mId:Landroid/app/PendingIntent;
if-eqz v0, :cond_0
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSession;->mService:Ld0/a/a/b;
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsSession;->mCallback:Ld0/a/a/a;
const/4 v2, 0x0
invoke-direct {p0, v2}, Landroidx/browser/customtabs/CustomTabsSession;->createBundleWithId(Landroid/os/Bundle;)Landroid/os/Bundle;
move-result-object v2
invoke-interface {v0, v1, p1, v2}, Ld0/a/a/b;->requestPostMessageChannelWithExtras(Ld0/a/a/a;Landroid/net/Uri;Landroid/os/Bundle;)Z
move-result p1
return p1
:cond_0
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSession;->mService:Ld0/a/a/b;
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsSession;->mCallback:Ld0/a/a/a;
invoke-interface {v0, v1, p1}, Ld0/a/a/b;->requestPostMessageChannel(Ld0/a/a/a;Landroid/net/Uri;)Z
move-result p1
:try_end_0
@ -214,12 +371,14 @@
invoke-virtual {p1, p2, v0}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V
invoke-direct {p0, v0}, Landroidx/browser/customtabs/CustomTabsSession;->addIdToBundle(Landroid/os/Bundle;)V
:try_start_0
iget-object p2, p0, Landroidx/browser/customtabs/CustomTabsSession;->mService:Ls/a/a/b;
iget-object p2, p0, Landroidx/browser/customtabs/CustomTabsSession;->mService:Ld0/a/a/b;
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSession;->mCallback:Ls/a/a/a;
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSession;->mCallback:Ld0/a/a/a;
invoke-interface {p2, v0, p1}, Ls/a/a/b;->updateVisuals(Ls/a/a/a;Landroid/os/Bundle;)Z
invoke-interface {p2, v0, p1}, Ld0/a/a/b;->updateVisuals(Ld0/a/a/a;Landroid/os/Bundle;)Z
move-result p1
:try_end_0
@ -264,12 +423,14 @@
invoke-virtual {v0, p1, p3}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
invoke-direct {p0, v0}, Landroidx/browser/customtabs/CustomTabsSession;->addIdToBundle(Landroid/os/Bundle;)V
:try_start_0
iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsSession;->mService:Ls/a/a/b;
iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsSession;->mService:Ld0/a/a/b;
iget-object p2, p0, Landroidx/browser/customtabs/CustomTabsSession;->mCallback:Ls/a/a/a;
iget-object p2, p0, Landroidx/browser/customtabs/CustomTabsSession;->mCallback:Ld0/a/a/a;
invoke-interface {p1, p2, v0}, Ls/a/a/b;->updateVisuals(Ls/a/a/a;Landroid/os/Bundle;)Z
invoke-interface {p1, p2, v0}, Ld0/a/a/b;->updateVisuals(Ld0/a/a/a;Landroid/os/Bundle;)Z
move-result p1
:try_end_0
@ -320,12 +481,14 @@
invoke-virtual {p1, p2, v0}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V
invoke-direct {p0, p1}, Landroidx/browser/customtabs/CustomTabsSession;->addIdToBundle(Landroid/os/Bundle;)V
:try_start_0
iget-object p2, p0, Landroidx/browser/customtabs/CustomTabsSession;->mService:Ls/a/a/b;
iget-object p2, p0, Landroidx/browser/customtabs/CustomTabsSession;->mService:Ld0/a/a/b;
iget-object p3, p0, Landroidx/browser/customtabs/CustomTabsSession;->mCallback:Ls/a/a/a;
iget-object p3, p0, Landroidx/browser/customtabs/CustomTabsSession;->mCallback:Ld0/a/a/a;
invoke-interface {p2, p3, p1}, Ls/a/a/b;->updateVisuals(Ls/a/a/a;Landroid/os/Bundle;)Z
invoke-interface {p2, p3, p1}, Ld0/a/a/b;->updateVisuals(Ld0/a/a/a;Landroid/os/Bundle;)Z
move-result p1
:try_end_0
@ -363,12 +526,16 @@
goto :goto_0
:cond_0
invoke-direct {p0, p3}, Landroidx/browser/customtabs/CustomTabsSession;->createBundleWithId(Landroid/os/Bundle;)Landroid/os/Bundle;
move-result-object p3
:try_start_0
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsSession;->mService:Ls/a/a/b;
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsSession;->mService:Ld0/a/a/b;
iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsSession;->mCallback:Ls/a/a/a;
iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsSession;->mCallback:Ld0/a/a/a;
invoke-interface {v1, v2, p1, p2, p3}, Ls/a/a/b;->validateRelationship(Ls/a/a/a;ILandroid/net/Uri;Landroid/os/Bundle;)Z
invoke-interface {v1, v2, p1, p2, p3}, Ld0/a/a/b;->validateRelationship(Ld0/a/a/a;ILandroid/net/Uri;Landroid/os/Bundle;)Z
move-result p1
:try_end_0

View file

@ -5,7 +5,7 @@
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ls/a/a/a;)V
value = Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ld0/a/a/a;Landroid/app/PendingIntent;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
@ -33,13 +33,21 @@
# virtual methods
.method public extraCallback(Ljava/lang/String;Landroid/os/Bundle;)V
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
:try_start_0
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken$1;->this$0:Landroidx/browser/customtabs/CustomTabsSessionToken;
iget-object v0, v0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Ls/a/a/a;
iget-object v0, v0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Ld0/a/a/a;
invoke-interface {v0, p1, p2}, Ls/a/a/a;->extraCallback(Ljava/lang/String;Landroid/os/Bundle;)V
invoke-interface {v0, p1, p2}, Ld0/a/a/a;->extraCallback(Ljava/lang/String;Landroid/os/Bundle;)V
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
@ -56,15 +64,55 @@
return-void
.end method
.method public onMessageChannelReady(Landroid/os/Bundle;)V
.method public extraCallbackWithResult(Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
:try_start_0
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken$1;->this$0:Landroidx/browser/customtabs/CustomTabsSessionToken;
iget-object v0, v0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Ls/a/a/a;
iget-object v0, v0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Ld0/a/a/a;
invoke-interface {v0, p1}, Ls/a/a/a;->onMessageChannelReady(Landroid/os/Bundle;)V
invoke-interface {v0, p1, p2}, Ld0/a/a/a;->extraCallbackWithResult(Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;
move-result-object p1
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
return-object p1
:catch_0
const-string p1, "CustomTabsSessionToken"
const-string p2, "RemoteException during ICustomTabsCallback transaction"
invoke-static {p1, p2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
const/4 p1, 0x0
return-object p1
.end method
.method public onMessageChannelReady(Landroid/os/Bundle;)V
.locals 1
.param p1 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
:try_start_0
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken$1;->this$0:Landroidx/browser/customtabs/CustomTabsSessionToken;
iget-object v0, v0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Ld0/a/a/a;
invoke-interface {v0, p1}, Ld0/a/a/a;->onMessageChannelReady(Landroid/os/Bundle;)V
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
@ -83,13 +131,17 @@
.method public onNavigationEvent(ILandroid/os/Bundle;)V
.locals 1
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
:try_start_0
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken$1;->this$0:Landroidx/browser/customtabs/CustomTabsSessionToken;
iget-object v0, v0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Ls/a/a/a;
iget-object v0, v0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Ld0/a/a/a;
invoke-interface {v0, p1, p2}, Ls/a/a/a;->onNavigationEvent(ILandroid/os/Bundle;)V
invoke-interface {v0, p1, p2}, Ld0/a/a/a;->onNavigationEvent(ILandroid/os/Bundle;)V
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
@ -108,13 +160,21 @@
.method public onPostMessage(Ljava/lang/String;Landroid/os/Bundle;)V
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
:try_start_0
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken$1;->this$0:Landroidx/browser/customtabs/CustomTabsSessionToken;
iget-object v0, v0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Ls/a/a/a;
iget-object v0, v0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Ld0/a/a/a;
invoke-interface {v0, p1, p2}, Ls/a/a/a;->onPostMessage(Ljava/lang/String;Landroid/os/Bundle;)V
invoke-interface {v0, p1, p2}, Ld0/a/a/a;->onPostMessage(Ljava/lang/String;Landroid/os/Bundle;)V
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
@ -133,13 +193,21 @@
.method public onRelationshipValidationResult(ILandroid/net/Uri;ZLandroid/os/Bundle;)V
.locals 1
.param p2 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p4 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
:try_start_0
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken$1;->this$0:Landroidx/browser/customtabs/CustomTabsSessionToken;
iget-object v0, v0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Ls/a/a/a;
iget-object v0, v0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Ld0/a/a/a;
invoke-interface {v0, p1, p2, p3, p4}, Ls/a/a/a;->onRelationshipValidationResult(ILandroid/net/Uri;ZLandroid/os/Bundle;)V
invoke-interface {v0, p1, p2, p3, p4}, Ld0/a/a/a;->onRelationshipValidationResult(ILandroid/net/Uri;ZLandroid/os/Bundle;)V
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

View file

@ -1,5 +1,5 @@
.class public Landroidx/browser/customtabs/CustomTabsSessionToken$MockCallback;
.super Ls/a/a/a$a;
.super Ld0/a/a/a$a;
.source "CustomTabsSessionToken.java"
@ -18,7 +18,7 @@
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ls/a/a/a$a;-><init>()V
invoke-direct {p0}, Ld0/a/a/a$a;-><init>()V
return-void
.end method
@ -37,6 +37,14 @@
return-void
.end method
.method public extraCallbackWithResult(Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;
.locals 0
const/4 p1, 0x0
return-object p1
.end method
.method public onMessageChannelReady(Landroid/os/Bundle;)V
.locals 0

View file

@ -17,29 +17,75 @@
# instance fields
.field public final mCallback:Landroidx/browser/customtabs/CustomTabsCallback;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public final mCallbackBinder:Ls/a/a/a;
.field public final mCallbackBinder:Ld0/a/a/a;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public final mSessionId:Landroid/app/PendingIntent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
# direct methods
.method public constructor <init>(Ls/a/a/a;)V
.method public constructor <init>(Ld0/a/a/a;Landroid/app/PendingIntent;)V
.locals 0
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Landroid/app/PendingIntent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Ls/a/a/a;
if-nez p1, :cond_1
if-eqz p2, :cond_0
goto :goto_0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "CustomTabsSessionToken must have either a session id or a callback (or both)."
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
:goto_0
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Ld0/a/a/a;
iput-object p2, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mSessionId:Landroid/app/PendingIntent;
if-nez p1, :cond_2
const/4 p1, 0x0
goto :goto_1
:cond_2
new-instance p1, Landroidx/browser/customtabs/CustomTabsSessionToken$1;
invoke-direct {p1, p0}, Landroidx/browser/customtabs/CustomTabsSessionToken$1;-><init>(Landroidx/browser/customtabs/CustomTabsSessionToken;)V
:goto_1
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallback:Landroidx/browser/customtabs/CustomTabsCallback;
return-void
.end method
.method public static createMockSessionTokenForTesting()Landroidx/browser/customtabs/CustomTabsSessionToken;
.locals 2
.locals 3
.annotation build Landroidx/annotation/NonNull;
.end annotation
@ -49,38 +95,90 @@
invoke-direct {v1}, Landroidx/browser/customtabs/CustomTabsSessionToken$MockCallback;-><init>()V
invoke-direct {v0, v1}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ls/a/a/a;)V
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ld0/a/a/a;Landroid/app/PendingIntent;)V
return-object v0
.end method
.method private getCallbackBinderAssertNotNull()Landroid/os/IBinder;
.locals 2
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Ld0/a/a/a;
if-eqz v0, :cond_0
invoke-interface {v0}, Landroid/os/IInterface;->asBinder()Landroid/os/IBinder;
move-result-object v0
return-object v0
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "CustomTabSessionToken must have valid binder or pending session"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static getSessionTokenFromIntent(Landroid/content/Intent;)Landroidx/browser/customtabs/CustomTabsSessionToken;
.locals 1
.locals 3
.param p0 # Landroid/content/Intent;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
invoke-virtual {p0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object p0
move-result-object v0
const-string v0, "android.support.customtabs.extra.SESSION"
const/4 v1, 0x0
invoke-static {p0, v0}, Landroidx/core/app/BundleCompat;->getBinder(Landroid/os/Bundle;Ljava/lang/String;)Landroid/os/IBinder;
if-nez v0, :cond_0
move-result-object p0
if-nez p0, :cond_0
const/4 p0, 0x0
return-object p0
return-object v1
:cond_0
new-instance v0, Landroidx/browser/customtabs/CustomTabsSessionToken;
const-string v2, "android.support.customtabs.extra.SESSION"
invoke-static {p0}, Ls/a/a/a$a;->asInterface(Landroid/os/IBinder;)Ls/a/a/a;
invoke-static {v0, v2}, Landroidx/core/app/BundleCompat;->getBinder(Landroid/os/Bundle;Ljava/lang/String;)Landroid/os/IBinder;
move-result-object v0
const-string v2, "android.support.customtabs.extra.SESSION_ID"
invoke-virtual {p0, v2}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;
move-result-object p0
invoke-direct {v0, p0}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ls/a/a/a;)V
check-cast p0, Landroid/app/PendingIntent;
if-nez v0, :cond_1
if-nez p0, :cond_1
return-object v1
:cond_1
if-nez v0, :cond_2
goto :goto_0
:cond_2
invoke-static {v0}, Ld0/a/a/a$a;->asInterface(Landroid/os/IBinder;)Ld0/a/a/a;
move-result-object v1
:goto_0
new-instance v0, Landroidx/browser/customtabs/CustomTabsSessionToken;
invoke-direct {v0, v1, p0}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ld0/a/a/a;Landroid/app/PendingIntent;)V
return-object v0
.end method
@ -88,30 +186,70 @@
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 1
.locals 4
instance-of v0, p1, Landroidx/browser/customtabs/CustomTabsSessionToken;
const/4 v1, 0x0
if-nez v0, :cond_0
const/4 p1, 0x0
return p1
return v1
:cond_0
check-cast p1, Landroidx/browser/customtabs/CustomTabsSessionToken;
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSessionToken;->getCallbackBinder()Landroid/os/IBinder;
move-result-object p1
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Ls/a/a/a;
invoke-interface {v0}, Landroid/os/IInterface;->asBinder()Landroid/os/IBinder;
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSessionToken;->getId()Landroid/app/PendingIntent;
move-result-object v0
invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mSessionId:Landroid/app/PendingIntent;
const/4 v3, 0x1
if-nez v2, :cond_1
const/4 v2, 0x1
goto :goto_0
:cond_1
const/4 v2, 0x0
:goto_0
if-nez v0, :cond_2
goto :goto_1
:cond_2
const/4 v3, 0x0
:goto_1
if-eq v2, v3, :cond_3
return v1
:cond_3
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mSessionId:Landroid/app/PendingIntent;
if-eqz v1, :cond_4
invoke-virtual {v1, v0}, Landroid/app/PendingIntent;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
:cond_4
invoke-direct {p0}, Landroidx/browser/customtabs/CustomTabsSessionToken;->getCallbackBinderAssertNotNull()Landroid/os/IBinder;
move-result-object v0
invoke-direct {p1}, Landroidx/browser/customtabs/CustomTabsSessionToken;->getCallbackBinderAssertNotNull()Landroid/os/IBinder;
move-result-object p1
invoke-virtual {v0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result p1
@ -120,6 +258,8 @@
.method public getCallback()Landroidx/browser/customtabs/CustomTabsCallback;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallback:Landroidx/browser/customtabs/CustomTabsCallback;
@ -128,9 +268,18 @@
.method public getCallbackBinder()Landroid/os/IBinder;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Ls/a/a/a;
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Ld0/a/a/a;
if-nez v0, :cond_0
const/4 v0, 0x0
return-object v0
:cond_0
invoke-interface {v0}, Landroid/os/IInterface;->asBinder()Landroid/os/IBinder;
move-result-object v0
@ -138,10 +287,77 @@
return-object v0
.end method
.method public getId()Landroid/app/PendingIntent;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mSessionId:Landroid/app/PendingIntent;
return-object v0
.end method
.method public hasCallback()Z
.locals 1
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Ld0/a/a/a;
if-eqz v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public hasId()Z
.locals 1
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mSessionId:Landroid/app/PendingIntent;
if-eqz v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public hashCode()I
.locals 1
invoke-virtual {p0}, Landroidx/browser/customtabs/CustomTabsSessionToken;->getCallbackBinder()Landroid/os/IBinder;
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mSessionId:Landroid/app/PendingIntent;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroid/app/PendingIntent;->hashCode()I
move-result v0
return v0
:cond_0
invoke-direct {p0}, Landroidx/browser/customtabs/CustomTabsSessionToken;->getCallbackBinderAssertNotNull()Landroid/os/IBinder;
move-result-object v0
@ -154,12 +370,16 @@
.method public isAssociatedWith(Landroidx/browser/customtabs/CustomTabsSession;)Z
.locals 1
.param p1 # Landroidx/browser/customtabs/CustomTabsSession;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession;->getBinder()Landroid/os/IBinder;
move-result-object p1
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Ls/a/a/a;
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Ld0/a/a/a;
invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

View file

@ -0,0 +1,38 @@
.class public interface abstract Landroidx/browser/customtabs/PostMessageBackend;
.super Ljava/lang/Object;
.source "PostMessageBackend.java"
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
# virtual methods
.method public abstract onDisconnectChannel(Landroid/content/Context;)V
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.end method
.method public abstract onNotifyMessageChannelReady(Landroid/os/Bundle;)Z
.param p1 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.end method
.method public abstract onPostMessage(Ljava/lang/String;Landroid/os/Bundle;)Z
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.end method

View file

@ -1,5 +1,5 @@
.class public Landroidx/browser/customtabs/PostMessageService$1;
.super Ls/a/a/c$a;
.super Ld0/a/a/c$a;
.source "PostMessageService.java"
@ -24,35 +24,55 @@
iput-object p1, p0, Landroidx/browser/customtabs/PostMessageService$1;->this$0:Landroidx/browser/customtabs/PostMessageService;
invoke-direct {p0}, Ls/a/a/c$a;-><init>()V
invoke-direct {p0}, Ld0/a/a/c$a;-><init>()V
return-void
.end method
# virtual methods
.method public onMessageChannelReady(Ls/a/a/a;Landroid/os/Bundle;)V
.method public onMessageChannelReady(Ld0/a/a/a;Landroid/os/Bundle;)V
.locals 0
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
invoke-interface {p1, p2}, Ls/a/a/a;->onMessageChannelReady(Landroid/os/Bundle;)V
invoke-interface {p1, p2}, Ld0/a/a/a;->onMessageChannelReady(Landroid/os/Bundle;)V
return-void
.end method
.method public onPostMessage(Ls/a/a/a;Ljava/lang/String;Landroid/os/Bundle;)V
.method public onPostMessage(Ld0/a/a/a;Ljava/lang/String;Landroid/os/Bundle;)V
.locals 0
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
invoke-interface {p1, p2, p3}, Ls/a/a/a;->onPostMessage(Ljava/lang/String;Landroid/os/Bundle;)V
invoke-interface {p1, p2, p3}, Ld0/a/a/a;->onPostMessage(Ljava/lang/String;Landroid/os/Bundle;)V
return-void
.end method

View file

@ -4,7 +4,7 @@
# instance fields
.field public mBinder:Ls/a/a/c$a;
.field public mBinder:Ld0/a/a/c$a;
# direct methods
@ -17,7 +17,7 @@
invoke-direct {v0, p0}, Landroidx/browser/customtabs/PostMessageService$1;-><init>(Landroidx/browser/customtabs/PostMessageService;)V
iput-object v0, p0, Landroidx/browser/customtabs/PostMessageService;->mBinder:Ls/a/a/c$a;
iput-object v0, p0, Landroidx/browser/customtabs/PostMessageService;->mBinder:Ld0/a/a/c$a;
return-void
.end method
@ -26,8 +26,14 @@
# virtual methods
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
.locals 0
.param p1 # Landroid/content/Intent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object p1, p0, Landroidx/browser/customtabs/PostMessageService;->mBinder:Ls/a/a/c$a;
iget-object p1, p0, Landroidx/browser/customtabs/PostMessageService;->mBinder:Ld0/a/a/c$a;
return-object p1
.end method

View file

@ -3,20 +3,39 @@
.source "PostMessageServiceConnection.java"
# interfaces
.implements Landroidx/browser/customtabs/PostMessageBackend;
.implements Landroid/content/ServiceConnection;
# static fields
.field public static final TAG:Ljava/lang/String; = "PostMessageServConn"
# instance fields
.field public final mLock:Ljava/lang/Object;
.field public mService:Ls/a/a/c;
.field public mMessageChannelCreated:Z
.field public final mSessionBinder:Ls/a/a/a;
.field public mPackageName:Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public mService:Ld0/a/a/c;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public final mSessionBinder:Ld0/a/a/a;
# direct methods
.method public constructor <init>(Landroidx/browser/customtabs/CustomTabsSessionToken;)V
.locals 1
.param p1 # Landroidx/browser/customtabs/CustomTabsSessionToken;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
@ -30,19 +49,143 @@
move-result-object p1
invoke-static {p1}, Ls/a/a/a$a;->asInterface(Landroid/os/IBinder;)Ls/a/a/a;
if-eqz p1, :cond_0
invoke-static {p1}, Ld0/a/a/a$a;->asInterface(Landroid/os/IBinder;)Ld0/a/a/a;
move-result-object p1
iput-object p1, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mSessionBinder:Ls/a/a/a;
iput-object p1, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mSessionBinder:Ld0/a/a/a;
return-void
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "Provided session must have binder."
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method private isBoundToService()Z
.locals 1
iget-object v0, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mService:Ld0/a/a/c;
if-eqz v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method private notifyMessageChannelReadyInternal(Landroid/os/Bundle;)Z
.locals 4
.param p1 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
iget-object v0, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mService:Ld0/a/a/c;
const/4 v1, 0x0
if-nez v0, :cond_0
return v1
:cond_0
iget-object v0, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mLock:Ljava/lang/Object;
monitor-enter v0
:try_start_0
iget-object v2, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mService:Ld0/a/a/c;
iget-object v3, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mSessionBinder:Ld0/a/a/a;
invoke-interface {v2, v3, p1}, Ld0/a/a/c;->onMessageChannelReady(Ld0/a/a/a;Landroid/os/Bundle;)V
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:try_start_1
monitor-exit v0
const/4 p1, 0x1
return p1
:catchall_0
move-exception p1
goto :goto_0
:catch_0
monitor-exit v0
return v1
:goto_0
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
.end method
# virtual methods
.method public bindSessionToPostMessageService(Landroid/content/Context;)Z
.locals 1
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mPackageName:Ljava/lang/String;
if-eqz v0, :cond_0
invoke-virtual {p0, p1, v0}, Landroidx/browser/customtabs/PostMessageServiceConnection;->bindSessionToPostMessageService(Landroid/content/Context;Ljava/lang/String;)Z
move-result p1
return p1
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "setPackageName must be called before bindSessionToPostMessageService."
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public bindSessionToPostMessageService(Landroid/content/Context;Ljava/lang/String;)Z
.locals 2
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
new-instance v0, Landroid/content/Intent;
@ -62,63 +205,131 @@
move-result p1
if-nez p1, :cond_0
const-string p2, "PostMessageServConn"
const-string v0, "Could not bind to PostMessageService in client."
invoke-static {p2, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
:cond_0
return p1
.end method
.method public cleanup(Landroid/content/Context;)V
.locals 1
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
invoke-direct {p0}, Landroidx/browser/customtabs/PostMessageServiceConnection;->isBoundToService()Z
move-result v0
if-eqz v0, :cond_0
invoke-virtual {p0, p1}, Landroidx/browser/customtabs/PostMessageServiceConnection;->unbindFromContext(Landroid/content/Context;)V
:cond_0
return-void
.end method
.method public final notifyMessageChannelReady(Landroid/os/Bundle;)Z
.locals 4
.locals 1
.param p1 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
iget-object v0, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mService:Ls/a/a/c;
const/4 v0, 0x1
const/4 v1, 0x0
iput-boolean v0, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mMessageChannelCreated:Z
if-nez v0, :cond_0
invoke-direct {p0, p1}, Landroidx/browser/customtabs/PostMessageServiceConnection;->notifyMessageChannelReadyInternal(Landroid/os/Bundle;)Z
return v1
:cond_0
iget-object v0, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mLock:Ljava/lang/Object;
monitor-enter v0
:try_start_0
iget-object v2, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mService:Ls/a/a/c;
iget-object v3, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mSessionBinder:Ls/a/a/a;
invoke-interface {v2, v3, p1}, Ls/a/a/c;->onMessageChannelReady(Ls/a/a/a;Landroid/os/Bundle;)V
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:try_start_1
monitor-exit v0
const/4 p1, 0x1
move-result p1
return p1
.end method
:catchall_0
move-exception p1
.method public onDisconnectChannel(Landroid/content/Context;)V
.locals 0
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
goto :goto_0
invoke-virtual {p0, p1}, Landroidx/browser/customtabs/PostMessageServiceConnection;->unbindFromContext(Landroid/content/Context;)V
:catch_0
monitor-exit v0
return-void
.end method
return v1
.method public final onNotifyMessageChannelReady(Landroid/os/Bundle;)Z
.locals 0
.param p1 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
:goto_0
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
invoke-virtual {p0, p1}, Landroidx/browser/customtabs/PostMessageServiceConnection;->notifyMessageChannelReady(Landroid/os/Bundle;)Z
throw p1
move-result p1
return p1
.end method
.method public final onPostMessage(Ljava/lang/String;Landroid/os/Bundle;)Z
.locals 0
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
invoke-virtual {p0, p1, p2}, Landroidx/browser/customtabs/PostMessageServiceConnection;->postMessage(Ljava/lang/String;Landroid/os/Bundle;)Z
move-result p1
return p1
.end method
.method public onPostMessageServiceConnected()V
.locals 0
.locals 1
iget-boolean v0, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mMessageChannelCreated:Z
if-eqz v0, :cond_0
const/4 v0, 0x0
invoke-direct {p0, v0}, Landroidx/browser/customtabs/PostMessageServiceConnection;->notifyMessageChannelReadyInternal(Landroid/os/Bundle;)Z
:cond_0
return-void
.end method
@ -130,12 +341,20 @@
.method public final onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V
.locals 0
.param p1 # Landroid/content/ComponentName;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/IBinder;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-static {p2}, Ls/a/a/c$a;->asInterface(Landroid/os/IBinder;)Ls/a/a/c;
invoke-static {p2}, Ld0/a/a/c$a;->asInterface(Landroid/os/IBinder;)Ld0/a/a/c;
move-result-object p1
iput-object p1, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mService:Ls/a/a/c;
iput-object p1, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mService:Ld0/a/a/c;
invoke-virtual {p0}, Landroidx/browser/customtabs/PostMessageServiceConnection;->onPostMessageServiceConnected()V
@ -144,10 +363,14 @@
.method public final onServiceDisconnected(Landroid/content/ComponentName;)V
.locals 0
.param p1 # Landroid/content/ComponentName;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const/4 p1, 0x0
iput-object p1, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mService:Ls/a/a/c;
iput-object p1, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mService:Ld0/a/a/c;
invoke-virtual {p0}, Landroidx/browser/customtabs/PostMessageServiceConnection;->onPostMessageServiceDisconnected()V
@ -156,8 +379,16 @@
.method public final postMessage(Ljava/lang/String;Landroid/os/Bundle;)Z
.locals 4
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
iget-object v0, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mService:Ls/a/a/c;
iget-object v0, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mService:Ld0/a/a/c;
const/4 v1, 0x0
@ -171,11 +402,11 @@
monitor-enter v0
:try_start_0
iget-object v2, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mService:Ls/a/a/c;
iget-object v2, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mService:Ld0/a/a/c;
iget-object v3, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mSessionBinder:Ls/a/a/a;
iget-object v3, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mSessionBinder:Ld0/a/a/a;
invoke-interface {v2, v3, p1, p2}, Ls/a/a/c;->onPostMessage(Ls/a/a/a;Ljava/lang/String;Landroid/os/Bundle;)V
invoke-interface {v2, v3, p1, p2}, Ld0/a/a/c;->onPostMessage(Ld0/a/a/a;Ljava/lang/String;Landroid/os/Bundle;)V
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
@ -205,10 +436,42 @@
throw p1
.end method
.method public unbindFromContext(Landroid/content/Context;)V
.method public setPackageName(Ljava/lang/String;)V
.locals 0
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
invoke-virtual {p1, p0}, Landroid/content/Context;->unbindService(Landroid/content/ServiceConnection;)V
iput-object p1, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mPackageName:Ljava/lang/String;
return-void
.end method
.method public unbindFromContext(Landroid/content/Context;)V
.locals 1
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-direct {p0}, Landroidx/browser/customtabs/PostMessageServiceConnection;->isBoundToService()Z
move-result v0
if-eqz v0, :cond_0
invoke-virtual {p1, p0}, Landroid/content/Context;->unbindService(Landroid/content/ServiceConnection;)V
const/4 p1, 0x0
iput-object p1, p0, Landroidx/browser/customtabs/PostMessageServiceConnection;->mService:Ld0/a/a/c;
:cond_0
return-void
.end method

View file

@ -4,6 +4,14 @@
# static fields
.field public static final ACTION_MANAGE_TRUSTED_WEB_ACTIVITY_DATA:Ljava/lang/String; = "android.support.customtabs.action.ACTION_MANAGE_TRUSTED_WEB_ACTIVITY_DATA"
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.end field
.field public static final EXTRA_LAUNCH_AS_TRUSTED_WEB_ACTIVITY:Ljava/lang/String; = "android.support.customtabs.extra.LAUNCH_AS_TRUSTED_WEB_ACTIVITY"
@ -16,6 +24,67 @@
return-void
.end method
.method public static areSplashScreensSupported(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z
.locals 2
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
new-instance v0, Landroid/content/Intent;
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
const-string v1, "android.support.customtabs.action.CustomTabsService"
invoke-virtual {v0, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;
move-result-object v0
invoke-virtual {v0, p1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
move-result-object p1
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object p0
const/16 v0, 0x40
invoke-virtual {p0, p1, v0}, Landroid/content/pm/PackageManager;->resolveService(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo;
move-result-object p0
if-eqz p0, :cond_1
iget-object p0, p0, Landroid/content/pm/ResolveInfo;->filter:Landroid/content/IntentFilter;
if-nez p0, :cond_0
goto :goto_0
:cond_0
invoke-virtual {p0, p2}, Landroid/content/IntentFilter;->hasCategory(Ljava/lang/String;)Z
move-result p0
return p0
:cond_1
:goto_0
const/4 p0, 0x0
return p0
.end method
.method public static launchAsTrustedWebActivity(Landroid/content/Context;Landroidx/browser/customtabs/CustomTabsIntent;Landroid/net/Uri;)V
.locals 3
.param p0 # Landroid/content/Context;
@ -30,6 +99,8 @@
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation runtime Ljava/lang/Deprecated;
.end annotation
iget-object v0, p1, Landroidx/browser/customtabs/CustomTabsIntent;->intent:Landroid/content/Intent;
@ -66,3 +137,113 @@
throw p0
.end method
.method public static launchBrowserSiteSettings(Landroid/content/Context;Landroidx/browser/customtabs/CustomTabsSession;Landroid/net/Uri;)V
.locals 3
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Landroidx/browser/customtabs/CustomTabsSession;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
new-instance v0, Landroid/content/Intent;
const-string v1, "android.support.customtabs.action.ACTION_MANAGE_TRUSTED_WEB_ACTIVITY_DATA"
invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession;->getComponentName()Landroid/content/ComponentName;
move-result-object v1
invoke-virtual {v1}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
invoke-virtual {v0, p2}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;
new-instance p2, Landroid/os/Bundle;
invoke-direct {p2}, Landroid/os/Bundle;-><init>()V
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession;->getBinder()Landroid/os/IBinder;
move-result-object v1
const-string v2, "android.support.customtabs.extra.SESSION"
invoke-static {p2, v2, v1}, Landroidx/core/app/BundleCompat;->putBinder(Landroid/os/Bundle;Ljava/lang/String;Landroid/os/IBinder;)V
invoke-virtual {v0, p2}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession;->getId()Landroid/app/PendingIntent;
move-result-object p1
if-eqz p1, :cond_0
const-string p2, "android.support.customtabs.extra.SESSION_ID"
invoke-virtual {v0, p2, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
:cond_0
invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
return-void
.end method
.method public static transferSplashImage(Landroid/content/Context;Ljava/io/File;Ljava/lang/String;Ljava/lang/String;Landroidx/browser/customtabs/CustomTabsSession;)Z
.locals 0
.param p0 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Ljava/io/File;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p4 # Landroidx/browser/customtabs/CustomTabsSession;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/WorkerThread;
.end annotation
invoke-static {p0, p2, p1}, Landroidx/core/content/FileProvider;->getUriForFile(Landroid/content/Context;Ljava/lang/String;Ljava/io/File;)Landroid/net/Uri;
move-result-object p1
const/4 p2, 0x1
invoke-virtual {p0, p3, p1, p2}, Landroid/content/Context;->grantUriPermission(Ljava/lang/String;Landroid/net/Uri;I)V
const/4 p0, 0x0
invoke-virtual {p4, p1, p2, p0}, Landroidx/browser/customtabs/CustomTabsSession;->receiveFile(Landroid/net/Uri;ILandroid/os/Bundle;)Z
move-result p0
return p0
.end method