apkfuckery/com.discord/smali/androidx/media/MediaBrowserServiceCompat$ServiceHandler.smali

406 lines
14 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class final Landroidx/media/MediaBrowserServiceCompat$ServiceHandler;
.super Landroid/os/Handler;
2019-02-04 20:29:01 +00:00
.source "MediaBrowserServiceCompat.java"
2019-02-04 20:08:30 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/media/MediaBrowserServiceCompat;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x10
name = "ServiceHandler"
.end annotation
# instance fields
.field private final mServiceBinderImpl:Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;
.field final synthetic this$0:Landroidx/media/MediaBrowserServiceCompat;
# direct methods
.method constructor <init>(Landroidx/media/MediaBrowserServiceCompat;)V
.locals 1
iput-object p1, p0, Landroidx/media/MediaBrowserServiceCompat$ServiceHandler;->this$0:Landroidx/media/MediaBrowserServiceCompat;
invoke-direct {p0}, Landroid/os/Handler;-><init>()V
new-instance p1, Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;
iget-object v0, p0, Landroidx/media/MediaBrowserServiceCompat$ServiceHandler;->this$0:Landroidx/media/MediaBrowserServiceCompat;
invoke-direct {p1, v0}, Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;-><init>(Landroidx/media/MediaBrowserServiceCompat;)V
iput-object p1, p0, Landroidx/media/MediaBrowserServiceCompat$ServiceHandler;->mServiceBinderImpl:Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;
return-void
.end method
# virtual methods
.method public final handleMessage(Landroid/os/Message;)V
2019-05-03 18:53:54 +00:00
.locals 9
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Landroid/os/Message;->getData()Landroid/os/Bundle;
move-result-object v0
iget v1, p1, Landroid/os/Message;->what:I
2019-05-03 18:53:54 +00:00
const-string v2, "data_callback_token"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v3, "data_calling_uid"
const-string v4, "data_calling_pid"
const-string v5, "data_package_name"
const-string v6, "data_root_hints"
const-string v7, "data_result_receiver"
const-string v8, "data_media_item_id"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
packed-switch v1, :pswitch_data_0
new-instance v0, Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v1, "Unhandled message: "
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v1, "\n Service version: 2\n Client version: "
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
iget p1, p1, Landroid/os/Message;->arg1:I
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-05-03 18:53:54 +00:00
const-string v0, "MBServiceCompat"
2019-02-04 20:08:30 +00:00
invoke-static {v0, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return-void
:pswitch_0
const-string v1, "data_custom_action_extras"
invoke-virtual {v0, v1}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
move-result-object v1
invoke-static {v1}, Landroid/support/v4/media/session/MediaSessionCompat;->b(Landroid/os/Bundle;)V
iget-object v2, p0, Landroidx/media/MediaBrowserServiceCompat$ServiceHandler;->mServiceBinderImpl:Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;
const-string v3, "data_custom_action"
invoke-virtual {v0, v3}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v3
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v7}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
2019-02-04 20:08:30 +00:00
move-result-object v0
check-cast v0, Landroid/support/v4/os/ResultReceiver;
new-instance v4, Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacksCompat;
iget-object p1, p1, Landroid/os/Message;->replyTo:Landroid/os/Messenger;
invoke-direct {v4, p1}, Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacksCompat;-><init>(Landroid/os/Messenger;)V
invoke-virtual {v2, v3, v1, v0, v4}, Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;->sendCustomAction(Ljava/lang/String;Landroid/os/Bundle;Landroid/support/v4/os/ResultReceiver;Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacks;)V
return-void
:pswitch_1
const-string v1, "data_search_extras"
invoke-virtual {v0, v1}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
move-result-object v1
invoke-static {v1}, Landroid/support/v4/media/session/MediaSessionCompat;->b(Landroid/os/Bundle;)V
iget-object v2, p0, Landroidx/media/MediaBrowserServiceCompat$ServiceHandler;->mServiceBinderImpl:Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;
const-string v3, "data_search_query"
invoke-virtual {v0, v3}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v3
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v7}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
2019-02-04 20:08:30 +00:00
move-result-object v0
check-cast v0, Landroid/support/v4/os/ResultReceiver;
new-instance v4, Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacksCompat;
iget-object p1, p1, Landroid/os/Message;->replyTo:Landroid/os/Messenger;
invoke-direct {v4, p1}, Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacksCompat;-><init>(Landroid/os/Messenger;)V
invoke-virtual {v2, v3, v1, v0, v4}, Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;->search(Ljava/lang/String;Landroid/os/Bundle;Landroid/support/v4/os/ResultReceiver;Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacks;)V
return-void
:pswitch_2
iget-object v0, p0, Landroidx/media/MediaBrowserServiceCompat$ServiceHandler;->mServiceBinderImpl:Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;
new-instance v1, Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacksCompat;
iget-object p1, p1, Landroid/os/Message;->replyTo:Landroid/os/Messenger;
invoke-direct {v1, p1}, Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacksCompat;-><init>(Landroid/os/Messenger;)V
invoke-virtual {v0, v1}, Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;->unregisterCallbacks(Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacks;)V
return-void
:pswitch_3
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v6}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
2019-02-04 20:08:30 +00:00
move-result-object v7
invoke-static {v7}, Landroid/support/v4/media/session/MediaSessionCompat;->b(Landroid/os/Bundle;)V
iget-object v2, p0, Landroidx/media/MediaBrowserServiceCompat$ServiceHandler;->mServiceBinderImpl:Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;
2019-05-03 18:53:54 +00:00
new-instance v1, Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacksCompat;
2019-02-04 20:08:30 +00:00
iget-object p1, p1, Landroid/os/Message;->replyTo:Landroid/os/Messenger;
2019-05-03 18:53:54 +00:00
invoke-direct {v1, p1}, Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacksCompat;-><init>(Landroid/os/Messenger;)V
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v5}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result-object p1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v4}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
2019-02-04 20:08:30 +00:00
move-result v5
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v3}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
2019-02-04 20:08:30 +00:00
move-result v6
2019-05-03 18:53:54 +00:00
move-object v3, v1
move-object v4, p1
2019-02-04 20:08:30 +00:00
invoke-virtual/range {v2 .. v7}, Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;->registerCallbacks(Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacks;Ljava/lang/String;IILandroid/os/Bundle;)V
return-void
:pswitch_4
iget-object v1, p0, Landroidx/media/MediaBrowserServiceCompat$ServiceHandler;->mServiceBinderImpl:Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v8}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
move-result-object v2
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v7}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
2019-02-04 20:08:30 +00:00
move-result-object v0
check-cast v0, Landroid/support/v4/os/ResultReceiver;
new-instance v3, Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacksCompat;
iget-object p1, p1, Landroid/os/Message;->replyTo:Landroid/os/Messenger;
invoke-direct {v3, p1}, Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacksCompat;-><init>(Landroid/os/Messenger;)V
invoke-virtual {v1, v2, v0, v3}, Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;->getMediaItem(Ljava/lang/String;Landroid/support/v4/os/ResultReceiver;Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacks;)V
return-void
:pswitch_5
iget-object v1, p0, Landroidx/media/MediaBrowserServiceCompat$ServiceHandler;->mServiceBinderImpl:Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v8}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v3
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v0, v2}, Landroidx/core/app/BundleCompat;->getBinder(Landroid/os/Bundle;Ljava/lang/String;)Landroid/os/IBinder;
2019-02-04 20:08:30 +00:00
move-result-object v0
2019-05-03 18:53:54 +00:00
new-instance v2, Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacksCompat;
2019-02-04 20:08:30 +00:00
iget-object p1, p1, Landroid/os/Message;->replyTo:Landroid/os/Messenger;
2019-05-03 18:53:54 +00:00
invoke-direct {v2, p1}, Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacksCompat;-><init>(Landroid/os/Messenger;)V
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v1, v3, v0, v2}, Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;->removeSubscription(Ljava/lang/String;Landroid/os/IBinder;Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacks;)V
2019-02-04 20:08:30 +00:00
return-void
:pswitch_6
const-string v1, "data_options"
invoke-virtual {v0, v1}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
move-result-object v1
invoke-static {v1}, Landroid/support/v4/media/session/MediaSessionCompat;->b(Landroid/os/Bundle;)V
2019-05-03 18:53:54 +00:00
iget-object v3, p0, Landroidx/media/MediaBrowserServiceCompat$ServiceHandler;->mServiceBinderImpl:Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v8}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v4
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v0, v2}, Landroidx/core/app/BundleCompat;->getBinder(Landroid/os/Bundle;Ljava/lang/String;)Landroid/os/IBinder;
2019-02-04 20:08:30 +00:00
move-result-object v0
2019-05-03 18:53:54 +00:00
new-instance v2, Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacksCompat;
2019-02-04 20:08:30 +00:00
iget-object p1, p1, Landroid/os/Message;->replyTo:Landroid/os/Messenger;
2019-05-03 18:53:54 +00:00
invoke-direct {v2, p1}, Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacksCompat;-><init>(Landroid/os/Messenger;)V
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v3, v4, v0, v1, v2}, Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;->addSubscription(Ljava/lang/String;Landroid/os/IBinder;Landroid/os/Bundle;Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacks;)V
2019-02-04 20:08:30 +00:00
return-void
:pswitch_7
iget-object v0, p0, Landroidx/media/MediaBrowserServiceCompat$ServiceHandler;->mServiceBinderImpl:Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;
new-instance v1, Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacksCompat;
iget-object p1, p1, Landroid/os/Message;->replyTo:Landroid/os/Messenger;
invoke-direct {v1, p1}, Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacksCompat;-><init>(Landroid/os/Messenger;)V
invoke-virtual {v0, v1}, Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;->disconnect(Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacks;)V
return-void
:pswitch_8
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v6}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
2019-02-04 20:08:30 +00:00
move-result-object v6
invoke-static {v6}, Landroid/support/v4/media/session/MediaSessionCompat;->b(Landroid/os/Bundle;)V
iget-object v2, p0, Landroidx/media/MediaBrowserServiceCompat$ServiceHandler;->mServiceBinderImpl:Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v5}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v4}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
2019-02-04 20:08:30 +00:00
move-result v4
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v3}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
2019-02-04 20:08:30 +00:00
move-result v5
new-instance v7, Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacksCompat;
iget-object p1, p1, Landroid/os/Message;->replyTo:Landroid/os/Messenger;
invoke-direct {v7, p1}, Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacksCompat;-><init>(Landroid/os/Messenger;)V
2019-05-03 18:53:54 +00:00
move-object v3, v1
2019-02-04 20:08:30 +00:00
invoke-virtual/range {v2 .. v7}, Landroidx/media/MediaBrowserServiceCompat$ServiceBinderImpl;->connect(Ljava/lang/String;IILandroid/os/Bundle;Landroidx/media/MediaBrowserServiceCompat$ServiceCallbacks;)V
return-void
:pswitch_data_0
.packed-switch 0x1
:pswitch_8
:pswitch_7
:pswitch_6
:pswitch_5
:pswitch_4
:pswitch_3
:pswitch_2
:pswitch_1
:pswitch_0
.end packed-switch
.end method
.method public final postOrRun(Ljava/lang/Runnable;)V
.locals 2
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v0
invoke-virtual {p0}, Landroidx/media/MediaBrowserServiceCompat$ServiceHandler;->getLooper()Landroid/os/Looper;
move-result-object v1
invoke-virtual {v1}, Landroid/os/Looper;->getThread()Ljava/lang/Thread;
move-result-object v1
if-ne v0, v1, :cond_0
invoke-interface {p1}, Ljava/lang/Runnable;->run()V
return-void
:cond_0
invoke-virtual {p0, p1}, Landroidx/media/MediaBrowserServiceCompat$ServiceHandler;->post(Ljava/lang/Runnable;)Z
return-void
.end method
.method public final sendMessageAtTime(Landroid/os/Message;J)Z
.locals 3
invoke-virtual {p1}, Landroid/os/Message;->getData()Landroid/os/Bundle;
move-result-object v0
const-class v1, Landroid/support/v4/media/MediaBrowserCompat;
invoke-virtual {v1}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/os/Bundle;->setClassLoader(Ljava/lang/ClassLoader;)V
invoke-static {}, Landroid/os/Binder;->getCallingUid()I
2019-05-03 18:53:54 +00:00
move-result v1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v2, "data_calling_uid"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
2019-02-04 20:08:30 +00:00
invoke-static {}, Landroid/os/Binder;->getCallingPid()I
2019-05-03 18:53:54 +00:00
move-result v1
const-string v2, "data_calling_pid"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
2019-02-04 20:08:30 +00:00
invoke-super {p0, p1, p2, p3}, Landroid/os/Handler;->sendMessageAtTime(Landroid/os/Message;J)Z
move-result p1
return p1
.end method