431 lines
14 KiB
Smali
431 lines
14 KiB
Smali
.class Landroid/support/v4/media/MediaBrowserCompat$e;
|
|
.super Ljava/lang/Object;
|
|
|
|
# interfaces
|
|
.implements Landroid/support/v4/media/MediaBrowserCompat$b$a;
|
|
.implements Landroid/support/v4/media/MediaBrowserCompat$d;
|
|
.implements Landroid/support/v4/media/MediaBrowserCompat$i;
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
value = 0x15
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroid/support/v4/media/MediaBrowserCompat;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x8
|
|
name = "e"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field protected A:Landroid/support/v4/media/MediaBrowserCompat$j;
|
|
|
|
.field protected B:Landroid/os/Messenger;
|
|
|
|
.field private C:Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
.field private D:Landroid/os/Bundle;
|
|
|
|
.field final mContext:Landroid/content/Context;
|
|
|
|
.field protected final p:Ljava/lang/Object;
|
|
|
|
.field protected final q:Landroid/os/Bundle;
|
|
|
|
.field protected final r:Landroid/support/v4/media/MediaBrowserCompat$a;
|
|
|
|
.field private final t:Landroidx/collection/ArrayMap;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroidx/collection/ArrayMap<",
|
|
"Ljava/lang/String;",
|
|
"Landroid/support/v4/media/MediaBrowserCompat$k;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field protected u:I
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Landroid/content/Context;Landroid/content/ComponentName;Landroid/support/v4/media/MediaBrowserCompat$b;Landroid/os/Bundle;)V
|
|
.locals 2
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Landroid/support/v4/media/MediaBrowserCompat$a;
|
|
|
|
invoke-direct {v0, p0}, Landroid/support/v4/media/MediaBrowserCompat$a;-><init>(Landroid/support/v4/media/MediaBrowserCompat$i;)V
|
|
|
|
iput-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->r:Landroid/support/v4/media/MediaBrowserCompat$a;
|
|
|
|
new-instance v0, Landroidx/collection/ArrayMap;
|
|
|
|
invoke-direct {v0}, Landroidx/collection/ArrayMap;-><init>()V
|
|
|
|
iput-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->t:Landroidx/collection/ArrayMap;
|
|
|
|
iput-object p1, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->mContext:Landroid/content/Context;
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
new-instance v0, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v0, p4}, Landroid/os/Bundle;-><init>(Landroid/os/Bundle;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v0, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
|
|
|
:goto_0
|
|
iput-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->q:Landroid/os/Bundle;
|
|
|
|
iget-object p4, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->q:Landroid/os/Bundle;
|
|
|
|
const-string v0, "extra_client_version"
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {p4, v0, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
invoke-virtual {p3, p0}, Landroid/support/v4/media/MediaBrowserCompat$b;->setInternalConnectionCallback(Landroid/support/v4/media/MediaBrowserCompat$b$a;)V
|
|
|
|
iget-object p3, p3, Landroid/support/v4/media/MediaBrowserCompat$b;->mConnectionCallbackObj:Ljava/lang/Object;
|
|
|
|
iget-object p4, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->q:Landroid/os/Bundle;
|
|
|
|
new-instance v0, Landroid/media/browse/MediaBrowser;
|
|
|
|
check-cast p3, Landroid/media/browse/MediaBrowser$ConnectionCallback;
|
|
|
|
invoke-direct {v0, p1, p2, p3, p4}, Landroid/media/browse/MediaBrowser;-><init>(Landroid/content/Context;Landroid/content/ComponentName;Landroid/media/browse/MediaBrowser$ConnectionCallback;Landroid/os/Bundle;)V
|
|
|
|
iput-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->p:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Landroid/os/Messenger;Ljava/lang/String;Landroid/support/v4/media/session/MediaSessionCompat$Token;Landroid/os/Bundle;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Landroid/os/Messenger;Ljava/lang/String;Ljava/util/List;Landroid/os/Bundle;Landroid/os/Bundle;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->B:Landroid/os/Messenger;
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->t:Landroidx/collection/ArrayMap;
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/collection/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/support/v4/media/MediaBrowserCompat$k;
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
sget-boolean p1, Landroid/support/v4/media/MediaBrowserCompat;->DEBUG:Z
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const-string p1, "MediaBrowserCompat"
|
|
|
|
const-string p3, "onLoadChildren for id that isn\'t subscribed id="
|
|
|
|
invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p3, p2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p1, p2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_1
|
|
return-void
|
|
|
|
:cond_2
|
|
invoke-virtual {p1, p4}, Landroid/support/v4/media/MediaBrowserCompat$k;->a(Landroid/os/Bundle;)Landroid/support/v4/media/MediaBrowserCompat$l;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
const/4 p1, 0x0
|
|
|
|
if-nez p4, :cond_3
|
|
|
|
if-eqz p3, :cond_4
|
|
|
|
iput-object p5, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->D:Landroid/os/Bundle;
|
|
|
|
iput-object p1, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->D:Landroid/os/Bundle;
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
if-eqz p3, :cond_4
|
|
|
|
iput-object p5, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->D:Landroid/os/Bundle;
|
|
|
|
iput-object p1, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->D:Landroid/os/Bundle;
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public final b(Landroid/os/Messenger;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final connect()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->p:Ljava/lang/Object;
|
|
|
|
check-cast v0, Landroid/media/browse/MediaBrowser;
|
|
|
|
invoke-virtual {v0}, Landroid/media/browse/MediaBrowser;->connect()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final disconnect()V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->A:Landroid/support/v4/media/MediaBrowserCompat$j;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->B:Landroid/os/Messenger;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->A:Landroid/support/v4/media/MediaBrowserCompat$j;
|
|
|
|
iget-object v1, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->B:Landroid/os/Messenger;
|
|
|
|
const/4 v2, 0x7
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {v0, v2, v3, v1}, Landroid/support/v4/media/MediaBrowserCompat$j;->a(ILandroid/os/Bundle;Landroid/os/Messenger;)V
|
|
:try_end_0
|
|
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
const-string v0, "MediaBrowserCompat"
|
|
|
|
const-string v1, "Remote error unregistering client messenger."
|
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_0
|
|
:goto_0
|
|
iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->p:Ljava/lang/Object;
|
|
|
|
check-cast v0, Landroid/media/browse/MediaBrowser;
|
|
|
|
invoke-virtual {v0}, Landroid/media/browse/MediaBrowser;->disconnect()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final getSessionToken()Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->C:Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->p:Ljava/lang/Object;
|
|
|
|
check-cast v0, Landroid/media/browse/MediaBrowser;
|
|
|
|
invoke-virtual {v0}, Landroid/media/browse/MediaBrowser;->getSessionToken()Landroid/media/session/MediaSession$Token;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroid/support/v4/media/session/MediaSessionCompat$Token;->e(Ljava/lang/Object;)Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->C:Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->C:Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final onConnected()V
|
|
.locals 6
|
|
|
|
iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->p:Ljava/lang/Object;
|
|
|
|
check-cast v0, Landroid/media/browse/MediaBrowser;
|
|
|
|
invoke-virtual {v0}, Landroid/media/browse/MediaBrowser;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string v1, "extra_service_version"
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->u:I
|
|
|
|
const-string v1, "extra_messenger"
|
|
|
|
invoke-static {v0, v1}, Landroidx/core/app/BundleCompat;->getBinder(Landroid/os/Bundle;Ljava/lang/String;)Landroid/os/IBinder;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
new-instance v2, Landroid/support/v4/media/MediaBrowserCompat$j;
|
|
|
|
iget-object v3, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->q:Landroid/os/Bundle;
|
|
|
|
invoke-direct {v2, v1, v3}, Landroid/support/v4/media/MediaBrowserCompat$j;-><init>(Landroid/os/IBinder;Landroid/os/Bundle;)V
|
|
|
|
iput-object v2, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->A:Landroid/support/v4/media/MediaBrowserCompat$j;
|
|
|
|
new-instance v1, Landroid/os/Messenger;
|
|
|
|
iget-object v2, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->r:Landroid/support/v4/media/MediaBrowserCompat$a;
|
|
|
|
invoke-direct {v1, v2}, Landroid/os/Messenger;-><init>(Landroid/os/Handler;)V
|
|
|
|
iput-object v1, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->B:Landroid/os/Messenger;
|
|
|
|
iget-object v1, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->r:Landroid/support/v4/media/MediaBrowserCompat$a;
|
|
|
|
iget-object v2, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->B:Landroid/os/Messenger;
|
|
|
|
invoke-virtual {v1, v2}, Landroid/support/v4/media/MediaBrowserCompat$a;->a(Landroid/os/Messenger;)V
|
|
|
|
:try_start_0
|
|
iget-object v1, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->A:Landroid/support/v4/media/MediaBrowserCompat$j;
|
|
|
|
iget-object v2, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->mContext:Landroid/content/Context;
|
|
|
|
iget-object v3, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->B:Landroid/os/Messenger;
|
|
|
|
new-instance v4, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v4}, Landroid/os/Bundle;-><init>()V
|
|
|
|
const-string v5, "data_package_name"
|
|
|
|
invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v4, v5, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const-string v2, "data_root_hints"
|
|
|
|
iget-object v5, v1, Landroid/support/v4/media/MediaBrowserCompat$j;->q:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {v4, v2, v5}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V
|
|
|
|
const/4 v2, 0x6
|
|
|
|
invoke-virtual {v1, v2, v4, v3}, Landroid/support/v4/media/MediaBrowserCompat$j;->a(ILandroid/os/Bundle;Landroid/os/Messenger;)V
|
|
:try_end_0
|
|
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
const-string v1, "MediaBrowserCompat"
|
|
|
|
const-string v2, "Remote error registering client messenger."
|
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const-string v1, "extra_session_binder"
|
|
|
|
invoke-static {v0, v1}, Landroidx/core/app/BundleCompat;->getBinder(Landroid/os/Bundle;Ljava/lang/String;)Landroid/os/IBinder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroid/support/v4/media/session/b$a;->b(Landroid/os/IBinder;)Landroid/support/v4/media/session/b;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
iget-object v1, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->p:Ljava/lang/Object;
|
|
|
|
check-cast v1, Landroid/media/browse/MediaBrowser;
|
|
|
|
invoke-virtual {v1}, Landroid/media/browse/MediaBrowser;->getSessionToken()Landroid/media/session/MediaSession$Token;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1, v0}, Landroid/support/v4/media/session/MediaSessionCompat$Token;->a(Ljava/lang/Object;Landroid/support/v4/media/session/b;)Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->C:Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onConnectionSuspended()V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->A:Landroid/support/v4/media/MediaBrowserCompat$j;
|
|
|
|
iput-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->B:Landroid/os/Messenger;
|
|
|
|
iput-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->C:Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
iget-object v1, p0, Landroid/support/v4/media/MediaBrowserCompat$e;->r:Landroid/support/v4/media/MediaBrowserCompat$a;
|
|
|
|
invoke-virtual {v1, v0}, Landroid/support/v4/media/MediaBrowserCompat$a;->a(Landroid/os/Messenger;)V
|
|
|
|
return-void
|
|
.end method
|