170 lines
4.8 KiB
Smali
170 lines
4.8 KiB
Smali
|
.class public Landroidx/browser/customtabs/CustomTabsSessionToken;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "CustomTabsSessionToken.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
value = {
|
||
|
Landroidx/browser/customtabs/CustomTabsSessionToken$MockCallback;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field private static final TAG:Ljava/lang/String; = "CustomTabsSessionToken"
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private final mCallback:Landroidx/browser/customtabs/CustomTabsCallback;
|
||
|
|
||
|
.field final mCallbackBinder:Landroid/support/a/a;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Landroid/support/a/a;)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Landroid/support/a/a;
|
||
|
|
||
|
new-instance p1, Landroidx/browser/customtabs/CustomTabsSessionToken$1;
|
||
|
|
||
|
invoke-direct {p1, p0}, Landroidx/browser/customtabs/CustomTabsSessionToken$1;-><init>(Landroidx/browser/customtabs/CustomTabsSessionToken;)V
|
||
|
|
||
|
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
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
|
||
|
new-instance v0, Landroidx/browser/customtabs/CustomTabsSessionToken;
|
||
|
|
||
|
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken$MockCallback;
|
||
|
|
||
|
invoke-direct {v1}, Landroidx/browser/customtabs/CustomTabsSessionToken$MockCallback;-><init>()V
|
||
|
|
||
|
invoke-direct {v0, v1}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Landroid/support/a/a;)V
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public static getSessionTokenFromIntent(Landroid/content/Intent;)Landroidx/browser/customtabs/CustomTabsSessionToken;
|
||
|
.locals 1
|
||
|
|
||
|
invoke-virtual {p0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
const-string v0, "android.support.customtabs.extra.SESSION"
|
||
|
|
||
|
invoke-static {p0, v0}, Landroidx/core/app/BundleCompat;->getBinder(Landroid/os/Bundle;Ljava/lang/String;)Landroid/os/IBinder;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
if-nez p0, :cond_0
|
||
|
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:cond_0
|
||
|
new-instance v0, Landroidx/browser/customtabs/CustomTabsSessionToken;
|
||
|
|
||
|
invoke-static {p0}, Landroid/support/a/a$a;->asInterface(Landroid/os/IBinder;)Landroid/support/a/a;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-direct {v0, p0}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Landroid/support/a/a;)V
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public equals(Ljava/lang/Object;)Z
|
||
|
.locals 1
|
||
|
|
||
|
instance-of v0, p1, Landroidx/browser/customtabs/CustomTabsSessionToken;
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
return p1
|
||
|
|
||
|
: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:Landroid/support/a/a;
|
||
|
|
||
|
invoke-interface {v0}, Landroid/support/a/a;->asBinder()Landroid/os/IBinder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
return p1
|
||
|
.end method
|
||
|
|
||
|
.method public getCallback()Landroidx/browser/customtabs/CustomTabsCallback;
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallback:Landroidx/browser/customtabs/CustomTabsCallback;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method getCallbackBinder()Landroid/os/IBinder;
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Landroid/support/a/a;
|
||
|
|
||
|
invoke-interface {v0}, Landroid/support/a/a;->asBinder()Landroid/os/IBinder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public hashCode()I
|
||
|
.locals 1
|
||
|
|
||
|
invoke-virtual {p0}, Landroidx/browser/customtabs/CustomTabsSessionToken;->getCallbackBinder()Landroid/os/IBinder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public isAssociatedWith(Landroidx/browser/customtabs/CustomTabsSession;)Z
|
||
|
.locals 1
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession;->getBinder()Landroid/os/IBinder;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Landroid/support/a/a;
|
||
|
|
||
|
invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
return p1
|
||
|
.end method
|