apkfuckery/com.discord/smali/androidx/browser/customtabs/CustomTabsSessionToken.smali
2020-04-27 22:53:11 +02:00

169 lines
4.7 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 public static final TAG:Ljava/lang/String; = "CustomTabsSessionToken"
# instance fields
.field public final mCallback:Landroidx/browser/customtabs/CustomTabsCallback;
.field public final mCallbackBinder:Lr/a/a/a;
# direct methods
.method public constructor <init>(Lr/a/a/a;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Lr/a/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>(Lr/a/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}, Lr/a/a/a$a;->asInterface(Landroid/os/IBinder;)Lr/a/a/a;
move-result-object p0
invoke-direct {v0, p0}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Lr/a/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:Lr/a/a/a;
invoke-interface {v0}, Landroid/os/IInterface;->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 public getCallbackBinder()Landroid/os/IBinder;
.locals 1
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsSessionToken;->mCallbackBinder:Lr/a/a/a;
invoke-interface {v0}, Landroid/os/IInterface;->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:Lr/a/a/a;
invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
.end method