2019-07-24 11:27:29 +00:00
|
|
|
.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
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public static final TAG:Ljava/lang/String; = "CustomTabsSessionToken"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final mCallback:Landroidx/browser/customtabs/CustomTabsCallback;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
.field public final mCallbackBinder:Lo/a/a/a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-12-13 02:35:12 +00:00
|
|
|
.method public constructor <init>(Lo/a/a/a;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Lo/a/a/a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
2019-12-06 03:29:40 +00:00
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-direct {v0, v1}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Lo/a/a/a;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {p0}, Lo/a/a/a$a;->asInterface(Landroid/os/IBinder;)Lo/a/a/a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-direct {v0, p0}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Lo/a/a/a;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Lo/a/a/a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v0}, Landroid/os/IInterface;->asBinder()Landroid/os/IBinder;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public getCallbackBinder()Landroid/os/IBinder;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Lo/a/a/a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-interface {v0}, Landroid/os/IInterface;->asBinder()Landroid/os/IBinder;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Lo/a/a/a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|