156 lines
5.5 KiB
Smali
156 lines
5.5 KiB
Smali
.class Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;
|
|
.super Ljava/lang/Object;
|
|
.source "MediaControllerCompat.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/support/v4/media/session/MediaControllerCompat$b;
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
value = 0x15
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroid/support/v4/media/session/MediaControllerCompat;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x8
|
|
name = "MediaControllerImplApi21"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21$a;,
|
|
Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21$ExtraBinderRequestResultReceiver;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field protected final am:Ljava/lang/Object;
|
|
|
|
.field final an:Ljava/util/List;
|
|
.annotation build Landroidx/annotation/GuardedBy;
|
|
value = "mLock"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Landroid/support/v4/media/session/MediaControllerCompat$a;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field ao:Ljava/util/HashMap;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/HashMap<",
|
|
"Landroid/support/v4/media/session/MediaControllerCompat$a;",
|
|
"Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21$a;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final ap:Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
.field final mLock:Ljava/lang/Object;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/support/v4/media/session/MediaSessionCompat$Token;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Landroid/os/RemoteException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Ljava/lang/Object;
|
|
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object v0, p0, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;->mLock:Ljava/lang/Object;
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;->an:Ljava/util/List;
|
|
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
iput-object v0, p0, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;->ao:Ljava/util/HashMap;
|
|
|
|
iput-object p2, p0, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;->ap:Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
iget-object p2, p0, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;->ap:Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
iget-object p2, p2, Landroid/support/v4/media/session/MediaSessionCompat$Token;->aA:Ljava/lang/Object;
|
|
|
|
new-instance v0, Landroid/media/session/MediaController;
|
|
|
|
check-cast p2, Landroid/media/session/MediaSession$Token;
|
|
|
|
invoke-direct {v0, p1, p2}, Landroid/media/session/MediaController;-><init>(Landroid/content/Context;Landroid/media/session/MediaSession$Token;)V
|
|
|
|
iput-object v0, p0, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;->am:Ljava/lang/Object;
|
|
|
|
iget-object p1, p0, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;->am:Ljava/lang/Object;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iget-object p1, p0, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;->ap:Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
iget-object p1, p1, Landroid/support/v4/media/session/MediaSessionCompat$Token;->aB:Landroid/support/v4/media/session/b;
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const-string p1, "android.support.v4.media.session.command.GET_EXTRA_BINDER"
|
|
|
|
new-instance p2, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21$ExtraBinderRequestResultReceiver;
|
|
|
|
invoke-direct {p2, p0}, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21$ExtraBinderRequestResultReceiver;-><init>(Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;)V
|
|
|
|
iget-object v0, p0, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;->am:Ljava/lang/Object;
|
|
|
|
check-cast v0, Landroid/media/session/MediaController;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, p1, v1, p2}, Landroid/media/session/MediaController;->sendCommand(Ljava/lang/String;Landroid/os/Bundle;Landroid/os/ResultReceiver;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
:cond_1
|
|
new-instance p1, Landroid/os/RemoteException;
|
|
|
|
invoke-direct {p1}, Landroid/os/RemoteException;-><init>()V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final dispatchMediaButtonEvent(Landroid/view/KeyEvent;)Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;->am:Ljava/lang/Object;
|
|
|
|
check-cast v0, Landroid/media/session/MediaController;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/media/session/MediaController;->dispatchMediaButtonEvent(Landroid/view/KeyEvent;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|