293 lines
8.6 KiB
Smali
293 lines
8.6 KiB
Smali
.class public Landroid/support/v4/media/MediaBrowserCompat$d;
|
|
.super Ljava/lang/Object;
|
|
.source "MediaBrowserCompat.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/support/v4/media/MediaBrowserCompat$c;
|
|
.implements Landroid/support/v4/media/MediaBrowserCompat$g;
|
|
.implements Landroid/support/v4/media/MediaBrowserCompat$b$a;
|
|
|
|
|
|
# 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 = 0x9
|
|
name = "d"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Landroid/content/Context;
|
|
|
|
.field public final b:Ljava/lang/Object;
|
|
|
|
.field public final c:Landroid/os/Bundle;
|
|
|
|
.field public final d:Landroid/support/v4/media/MediaBrowserCompat$a;
|
|
|
|
.field public final e:Landroidx/collection/ArrayMap;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroidx/collection/ArrayMap<",
|
|
"Ljava/lang/String;",
|
|
"Landroid/support/v4/media/MediaBrowserCompat$i;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public f:Landroid/support/v4/media/MediaBrowserCompat$h;
|
|
|
|
.field public g:Landroid/os/Messenger;
|
|
|
|
.field public h:Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
|
|
# direct methods
|
|
.method public 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$g;)V
|
|
|
|
iput-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$d;->d: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$d;->e:Landroidx/collection/ArrayMap;
|
|
|
|
iput-object p1, p0, Landroid/support/v4/media/MediaBrowserCompat$d;->a:Landroid/content/Context;
|
|
|
|
new-instance v0, Landroid/os/Bundle;
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
invoke-direct {v0, p4}, Landroid/os/Bundle;-><init>(Landroid/os/Bundle;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
|
|
|
:goto_0
|
|
iput-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$d;->c:Landroid/os/Bundle;
|
|
|
|
iget-object p4, p0, Landroid/support/v4/media/MediaBrowserCompat$d;->c:Landroid/os/Bundle;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const-string v1, "extra_client_version"
|
|
|
|
invoke-virtual {p4, v1, v0}, 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$d;->c: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$d;->b:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$d;->f:Landroid/support/v4/media/MediaBrowserCompat$h;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v1, p0, Landroid/support/v4/media/MediaBrowserCompat$d;->g:Landroid/os/Messenger;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const/4 v2, 0x7
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:try_start_0
|
|
invoke-virtual {v0, v2, v3, v1}, Landroid/support/v4/media/MediaBrowserCompat$h;->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$d;->b: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 a(Landroid/os/Messenger;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public 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 a(Landroid/os/Messenger;Ljava/lang/String;Ljava/util/List;Landroid/os/Bundle;Landroid/os/Bundle;)V
|
|
.locals 0
|
|
|
|
iget-object p5, p0, Landroid/support/v4/media/MediaBrowserCompat$d;->g:Landroid/os/Messenger;
|
|
|
|
if-eq p5, p1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Landroid/support/v4/media/MediaBrowserCompat$d;->e:Landroidx/collection/ArrayMap;
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/collection/SimpleArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/support/v4/media/MediaBrowserCompat$i;
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
sget-boolean p1, Landroid/support/v4/media/MediaBrowserCompat;->b:Z
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string p3, "onLoadChildren for id that isn\'t subscribed id="
|
|
|
|
invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "MediaBrowserCompat"
|
|
|
|
invoke-static {p2, p1}, 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$i;->a(Landroid/os/Bundle;)Landroid/support/v4/media/MediaBrowserCompat$j;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
if-nez p4, :cond_4
|
|
|
|
if-nez p3, :cond_3
|
|
|
|
invoke-virtual {p1}, Landroid/support/v4/media/MediaBrowserCompat$j;->c()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
invoke-virtual {p1}, Landroid/support/v4/media/MediaBrowserCompat$j;->a()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
if-nez p3, :cond_5
|
|
|
|
invoke-virtual {p1}, Landroid/support/v4/media/MediaBrowserCompat$j;->d()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
invoke-virtual {p1}, Landroid/support/v4/media/MediaBrowserCompat$j;->b()V
|
|
|
|
:cond_6
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$d;->h:Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$d;->b: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
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {v0, v1}, Landroid/support/v4/media/session/MediaSessionCompat$Token;->a(Ljava/lang/Object;Lp/a/b/b/g/b;)Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$d;->h:Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$d;->h:Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public c()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroid/support/v4/media/MediaBrowserCompat$d;->b: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 d()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|