182 lines
6.3 KiB
Smali
182 lines
6.3 KiB
Smali
.class Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21$ExtraBinderRequestResultReceiver;
|
|
.super Landroid/os/ResultReceiver;
|
|
.source "MediaControllerCompat.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x8
|
|
name = "ExtraBinderRequestResultReceiver"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private au:Ljava/lang/ref/WeakReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/ref/WeakReference<",
|
|
"Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p0, v0}, Landroid/os/ResultReceiver;-><init>(Landroid/os/Handler;)V
|
|
|
|
new-instance v0, Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object v0, p0, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21$ExtraBinderRequestResultReceiver;->au:Ljava/lang/ref/WeakReference;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected onReceiveResult(ILandroid/os/Bundle;)V
|
|
.locals 4
|
|
|
|
iget-object p1, p0, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21$ExtraBinderRequestResultReceiver;->au:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
iget-object v0, p1, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;->mLock:Ljava/lang/Object;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
iget-object v1, p1, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;->at:Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
const-string v2, "android.support.v4.media.session.EXTRA_BINDER"
|
|
|
|
invoke-static {p2, v2}, Landroidx/core/app/BundleCompat;->getBinder(Landroid/os/Bundle;Ljava/lang/String;)Landroid/os/IBinder;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2}, Landroid/support/v4/media/session/b$a;->b(Landroid/os/IBinder;)Landroid/support/v4/media/session/b;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, v1, Landroid/support/v4/media/session/MediaSessionCompat$Token;->aF:Landroid/support/v4/media/session/b;
|
|
|
|
iget-object v1, p1, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;->at:Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
const-string v2, "android.support.v4.media.session.SESSION_TOKEN2_BUNDLE"
|
|
|
|
invoke-virtual {p2, v2}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, v1, Landroid/support/v4/media/session/MediaSessionCompat$Token;->aG:Landroid/os/Bundle;
|
|
|
|
iget-object p2, p1, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;->at:Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
iget-object p2, p2, Landroid/support/v4/media/session/MediaSessionCompat$Token;->aF:Landroid/support/v4/media/session/b;
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
iget-object p2, p1, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;->ar:Ljava/util/List;
|
|
|
|
invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p2
|
|
|
|
:goto_0
|
|
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/support/v4/media/session/MediaControllerCompat$a;
|
|
|
|
new-instance v2, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21$a;
|
|
|
|
invoke-direct {v2, v1}, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21$a;-><init>(Landroid/support/v4/media/session/MediaControllerCompat$a;)V
|
|
|
|
iget-object v3, p1, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;->as:Ljava/util/HashMap;
|
|
|
|
invoke-virtual {v3, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iput-object v2, v1, Landroid/support/v4/media/session/MediaControllerCompat$a;->an:Landroid/support/v4/media/session/a;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
:try_start_1
|
|
iget-object v3, p1, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;->at:Landroid/support/v4/media/session/MediaSessionCompat$Token;
|
|
|
|
iget-object v3, v3, Landroid/support/v4/media/session/MediaSessionCompat$Token;->aF:Landroid/support/v4/media/session/b;
|
|
|
|
invoke-interface {v3, v2}, Landroid/support/v4/media/session/b;->a(Landroid/support/v4/media/session/a;)V
|
|
:try_end_1
|
|
.catch Landroid/os/RemoteException; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
const/16 v2, 0xd
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:try_start_2
|
|
invoke-virtual {v1, v2, v3, v3}, Landroid/support/v4/media/session/MediaControllerCompat$a;->a(ILjava/lang/Object;Landroid/os/Bundle;)V
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p2
|
|
|
|
const-string v1, "MediaControllerCompat"
|
|
|
|
const-string v2, "Dead object in registerCallback."
|
|
|
|
invoke-static {v1, v2, p2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
:cond_1
|
|
iget-object p1, p1, Landroid/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21;->ar:Ljava/util/List;
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->clear()V
|
|
|
|
:cond_2
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit v0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
throw p1
|
|
|
|
:cond_3
|
|
:goto_1
|
|
return-void
|
|
.end method
|