Source code
package android.support.v4.media.session;
import android.app.PendingIntent;
import android.net.Uri;
import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import android.support.v4.media.MediaMetadataCompat;
import android.support.v4.media.RatingCompat;
import android.support.v4.media.session.MediaSessionCompat.QueueItem;
import android.text.TextUtils;
import android.view.KeyEvent;
import java.util.List;
public interface IMediaSession extends IInterface {
public static abstract class Stub extends Binder implements IMediaSession {
private static final String DESCRIPTOR = "android.support.v4.media.session.IMediaSession";
static final int TRANSACTION_adjustVolume = 11;
static final int TRANSACTION_fastForward = 22;
static final int TRANSACTION_getExtras = 31;
static final int TRANSACTION_getFlags = 9;
static final int TRANSACTION_getLaunchPendingIntent = 8;
static final int TRANSACTION_getMetadata = 27;
static final int TRANSACTION_getPackageName = 6;
static final int TRANSACTION_getPlaybackState = 28;
static final int TRANSACTION_getQueue = 29;
static final int TRANSACTION_getQueueTitle = 30;
static final int TRANSACTION_getRatingType = 32;
static final int TRANSACTION_getTag = 7;
static final int TRANSACTION_getVolumeAttributes = 10;
static final int TRANSACTION_isTransportControlEnabled = 5;
static final int TRANSACTION_next = 20;
static final int TRANSACTION_pause = 18;
static final int TRANSACTION_play = 13;
static final int TRANSACTION_playFromMediaId = 14;
static final int TRANSACTION_playFromSearch = 15;
static final int TRANSACTION_playFromUri = 16;
static final int TRANSACTION_previous = 21;
static final int TRANSACTION_rate = 25;
static final int TRANSACTION_registerCallbackListener = 3;
static final int TRANSACTION_rewind = 23;
static final int TRANSACTION_seekTo = 24;
static final int TRANSACTION_sendCommand = 1;
static final int TRANSACTION_sendCustomAction = 26;
static final int TRANSACTION_sendMediaButton = 2;
static final int TRANSACTION_setVolumeTo = 12;
static final int TRANSACTION_skipToQueueItem = 17;
static final int TRANSACTION_stop = 19;
static final int TRANSACTION_unregisterCallbackListener = 4;
private static class Proxy implements IMediaSession {
private IBinder mRemote;
Proxy(IBinder remote) {
this.mRemote = remote;
}
public IBinder asBinder() {
return this.mRemote;
}
public String getInterfaceDescriptor() {
return Stub.DESCRIPTOR;
}
public void sendCommand(String command, Bundle args, ResultReceiverWrapper cb) throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
_data.writeString(command);
if (args != null) {
_data.writeInt(1);
args.writeToParcel(_data, 0);
} else {
_data.writeInt(0);
}
if (cb != null) {
_data.writeInt(1);
cb.writeToParcel(_data, 0);
} else {
_data.writeInt(0);
}
this.mRemote.transact(1, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public boolean sendMediaButton(KeyEvent mediaButton) throws RemoteException {
boolean _result = true;
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
if (mediaButton != null) {
_data.writeInt(1);
mediaButton.writeToParcel(_data, 0);
} else {
_data.writeInt(0);
}
this.mRemote.transact(2, _data, _reply, 0);
_reply.readException();
if (_reply.readInt() == 0) {
_result = false;
}
_reply.recycle();
_data.recycle();
return _result;
} catch (Throwable th) {
_reply.recycle();
_data.recycle();
}
}
public void registerCallbackListener(IMediaControllerCallback cb) throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
_data.writeStrongBinder(cb != null ? cb.asBinder() : null);
this.mRemote.transact(3, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public void unregisterCallbackListener(IMediaControllerCallback cb) throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
_data.writeStrongBinder(cb != null ? cb.asBinder() : null);
this.mRemote.transact(4, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public boolean isTransportControlEnabled() throws RemoteException {
boolean _result = false;
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(5, _data, _reply, 0);
_reply.readException();
if (_reply.readInt() != 0) {
_result = true;
}
_reply.recycle();
_data.recycle();
return _result;
} catch (Throwable th) {
_reply.recycle();
_data.recycle();
}
}
public String getPackageName() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(6, _data, _reply, 0);
_reply.readException();
String _result = _reply.readString();
return _result;
} finally {
_reply.recycle();
_data.recycle();
}
}
public String getTag() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(7, _data, _reply, 0);
_reply.readException();
String _result = _reply.readString();
return _result;
} finally {
_reply.recycle();
_data.recycle();
}
}
public PendingIntent getLaunchPendingIntent() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
PendingIntent _result;
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(8, _data, _reply, 0);
_reply.readException();
if (_reply.readInt() != 0) {
_result = (PendingIntent) PendingIntent.CREATOR.createFromParcel(_reply);
} else {
_result = null;
}
_reply.recycle();
_data.recycle();
return _result;
} catch (Throwable th) {
_reply.recycle();
_data.recycle();
}
}
public long getFlags() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(9, _data, _reply, 0);
_reply.readException();
long _result = _reply.readLong();
return _result;
} finally {
_reply.recycle();
_data.recycle();
}
}
public ParcelableVolumeInfo getVolumeAttributes() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
ParcelableVolumeInfo _result;
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(10, _data, _reply, 0);
_reply.readException();
if (_reply.readInt() != 0) {
_result = (ParcelableVolumeInfo) ParcelableVolumeInfo.CREATOR.createFromParcel(_reply);
} else {
_result = null;
}
_reply.recycle();
_data.recycle();
return _result;
} catch (Throwable th) {
_reply.recycle();
_data.recycle();
}
}
public void adjustVolume(int direction, int flags, String packageName) throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
_data.writeInt(direction);
_data.writeInt(flags);
_data.writeString(packageName);
this.mRemote.transact(11, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public void setVolumeTo(int value, int flags, String packageName) throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
_data.writeInt(value);
_data.writeInt(flags);
_data.writeString(packageName);
this.mRemote.transact(12, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public void play() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(13, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public void playFromMediaId(String uri, Bundle extras) throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
_data.writeString(uri);
if (extras != null) {
_data.writeInt(1);
extras.writeToParcel(_data, 0);
} else {
_data.writeInt(0);
}
this.mRemote.transact(14, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public void playFromSearch(String string, Bundle extras) throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
_data.writeString(string);
if (extras != null) {
_data.writeInt(1);
extras.writeToParcel(_data, 0);
} else {
_data.writeInt(0);
}
this.mRemote.transact(15, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public void playFromUri(Uri uri, Bundle extras) throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
if (uri != null) {
_data.writeInt(1);
uri.writeToParcel(_data, 0);
} else {
_data.writeInt(0);
}
if (extras != null) {
_data.writeInt(1);
extras.writeToParcel(_data, 0);
} else {
_data.writeInt(0);
}
this.mRemote.transact(16, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public void skipToQueueItem(long id) throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
_data.writeLong(id);
this.mRemote.transact(17, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public void pause() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(18, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public void stop() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(19, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public void next() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(20, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public void previous() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(21, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public void fastForward() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(22, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public void rewind() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(23, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public void seekTo(long pos) throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
_data.writeLong(pos);
this.mRemote.transact(24, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public void rate(RatingCompat rating) throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
if (rating != null) {
_data.writeInt(1);
rating.writeToParcel(_data, 0);
} else {
_data.writeInt(0);
}
this.mRemote.transact(25, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public void sendCustomAction(String action, Bundle args) throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
_data.writeString(action);
if (args != null) {
_data.writeInt(1);
args.writeToParcel(_data, 0);
} else {
_data.writeInt(0);
}
this.mRemote.transact(26, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public MediaMetadataCompat getMetadata() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
MediaMetadataCompat _result;
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(27, _data, _reply, 0);
_reply.readException();
if (_reply.readInt() != 0) {
_result = (MediaMetadataCompat) MediaMetadataCompat.CREATOR.createFromParcel(_reply);
} else {
_result = null;
}
_reply.recycle();
_data.recycle();
return _result;
} catch (Throwable th) {
_reply.recycle();
_data.recycle();
}
}
public PlaybackStateCompat getPlaybackState() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
PlaybackStateCompat _result;
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(28, _data, _reply, 0);
_reply.readException();
if (_reply.readInt() != 0) {
_result = (PlaybackStateCompat) PlaybackStateCompat.CREATOR.createFromParcel(_reply);
} else {
_result = null;
}
_reply.recycle();
_data.recycle();
return _result;
} catch (Throwable th) {
_reply.recycle();
_data.recycle();
}
}
public List<QueueItem> getQueue() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(29, _data, _reply, 0);
_reply.readException();
List<QueueItem> _result = _reply.createTypedArrayList(QueueItem.CREATOR);
return _result;
} finally {
_reply.recycle();
_data.recycle();
}
}
public CharSequence getQueueTitle() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
CharSequence _result;
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(30, _data, _reply, 0);
_reply.readException();
if (_reply.readInt() != 0) {
_result = (CharSequence) TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(_reply);
} else {
_result = null;
}
_reply.recycle();
_data.recycle();
return _result;
} catch (Throwable th) {
_reply.recycle();
_data.recycle();
}
}
public Bundle getExtras() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
Bundle _result;
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(31, _data, _reply, 0);
_reply.readException();
if (_reply.readInt() != 0) {
_result = (Bundle) Bundle.CREATOR.createFromParcel(_reply);
} else {
_result = null;
}
_reply.recycle();
_data.recycle();
return _result;
} catch (Throwable th) {
_reply.recycle();
_data.recycle();
}
}
public int getRatingType() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(32, _data, _reply, 0);
_reply.readException();
int _result = _reply.readInt();
return _result;
} finally {
_reply.recycle();
_data.recycle();
}
}
}
public Stub() {
attachInterface(this, DESCRIPTOR);
}
public static IMediaSession asInterface(IBinder obj) {
if (obj == null) {
return null;
}
IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (iin == null || !(iin instanceof IMediaSession)) {
return new Proxy(obj);
}
return (IMediaSession) iin;
}
public IBinder asBinder() {
return this;
}
public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException {
int i = 0;
String _arg0;
Bundle _arg1;
boolean _result;
String _result2;
switch (code) {
case 1:
ResultReceiverWrapper _arg2;
data.enforceInterface(DESCRIPTOR);
_arg0 = data.readString();
if (data.readInt() != 0) {
_arg1 = (Bundle) Bundle.CREATOR.createFromParcel(data);
} else {
_arg1 = null;
}
if (data.readInt() != 0) {
_arg2 = (ResultReceiverWrapper) ResultReceiverWrapper.CREATOR.createFromParcel(data);
} else {
_arg2 = null;
}
sendCommand(_arg0, _arg1, _arg2);
reply.writeNoException();
return true;
case 2:
KeyEvent _arg02;
data.enforceInterface(DESCRIPTOR);
if (data.readInt() != 0) {
_arg02 = (KeyEvent) KeyEvent.CREATOR.createFromParcel(data);
} else {
_arg02 = null;
}
_result = sendMediaButton(_arg02);
reply.writeNoException();
if (_result) {
i = 1;
}
reply.writeInt(i);
return true;
case 3:
data.enforceInterface(DESCRIPTOR);
registerCallbackListener(android.support.v4.media.session.IMediaControllerCallback.Stub.asInterface(data.readStrongBinder()));
reply.writeNoException();
return true;
case 4:
data.enforceInterface(DESCRIPTOR);
unregisterCallbackListener(android.support.v4.media.session.IMediaControllerCallback.Stub.asInterface(data.readStrongBinder()));
reply.writeNoException();
return true;
case 5:
data.enforceInterface(DESCRIPTOR);
_result = isTransportControlEnabled();
reply.writeNoException();
if (_result) {
i = 1;
}
reply.writeInt(i);
return true;
case 6:
data.enforceInterface(DESCRIPTOR);
_result2 = getPackageName();
reply.writeNoException();
reply.writeString(_result2);
return true;
case 7:
data.enforceInterface(DESCRIPTOR);
_result2 = getTag();
reply.writeNoException();
reply.writeString(_result2);
return true;
case 8:
data.enforceInterface(DESCRIPTOR);
PendingIntent _result3 = getLaunchPendingIntent();
reply.writeNoException();
if (_result3 != null) {
reply.writeInt(1);
_result3.writeToParcel(reply, 1);
return true;
}
reply.writeInt(0);
return true;
case 9:
data.enforceInterface(DESCRIPTOR);
long _result4 = getFlags();
reply.writeNoException();
reply.writeLong(_result4);
return true;
case 10:
data.enforceInterface(DESCRIPTOR);
ParcelableVolumeInfo _result5 = getVolumeAttributes();
reply.writeNoException();
if (_result5 != null) {
reply.writeInt(1);
_result5.writeToParcel(reply, 1);
return true;
}
reply.writeInt(0);
return true;
case 11:
data.enforceInterface(DESCRIPTOR);
adjustVolume(data.readInt(), data.readInt(), data.readString());
reply.writeNoException();
return true;
case 12:
data.enforceInterface(DESCRIPTOR);
setVolumeTo(data.readInt(), data.readInt(), data.readString());
reply.writeNoException();
return true;
case 13:
data.enforceInterface(DESCRIPTOR);
play();
reply.writeNoException();
return true;
case 14:
data.enforceInterface(DESCRIPTOR);
_arg0 = data.readString();
if (data.readInt() != 0) {
_arg1 = (Bundle) Bundle.CREATOR.createFromParcel(data);
} else {
_arg1 = null;
}
playFromMediaId(_arg0, _arg1);
reply.writeNoException();
return true;
case 15:
data.enforceInterface(DESCRIPTOR);
_arg0 = data.readString();
if (data.readInt() != 0) {
_arg1 = (Bundle) Bundle.CREATOR.createFromParcel(data);
} else {
_arg1 = null;
}
playFromSearch(_arg0, _arg1);
reply.writeNoException();
return true;
case 16:
Uri _arg03;
data.enforceInterface(DESCRIPTOR);
if (data.readInt() != 0) {
_arg03 = (Uri) Uri.CREATOR.createFromParcel(data);
} else {
_arg03 = null;
}
if (data.readInt() != 0) {
_arg1 = (Bundle) Bundle.CREATOR.createFromParcel(data);
} else {
_arg1 = null;
}
playFromUri(_arg03, _arg1);
reply.writeNoException();
return true;
case 17:
data.enforceInterface(DESCRIPTOR);
skipToQueueItem(data.readLong());
reply.writeNoException();
return true;
case 18:
data.enforceInterface(DESCRIPTOR);
pause();
reply.writeNoException();
return true;
case 19:
data.enforceInterface(DESCRIPTOR);
stop();
reply.writeNoException();
return true;
case 20:
data.enforceInterface(DESCRIPTOR);
next();
reply.writeNoException();
return true;
case 21:
data.enforceInterface(DESCRIPTOR);
previous();
reply.writeNoException();
return true;
case 22:
data.enforceInterface(DESCRIPTOR);
fastForward();
reply.writeNoException();
return true;
case 23:
data.enforceInterface(DESCRIPTOR);
rewind();
reply.writeNoException();
return true;
case 24:
data.enforceInterface(DESCRIPTOR);
seekTo(data.readLong());
reply.writeNoException();
return true;
case 25:
RatingCompat _arg04;
data.enforceInterface(DESCRIPTOR);
if (data.readInt() != 0) {
_arg04 = (RatingCompat) RatingCompat.CREATOR.createFromParcel(data);
} else {
_arg04 = null;
}
rate(_arg04);
reply.writeNoException();
return true;
case 26:
data.enforceInterface(DESCRIPTOR);
_arg0 = data.readString();
if (data.readInt() != 0) {
_arg1 = (Bundle) Bundle.CREATOR.createFromParcel(data);
} else {
_arg1 = null;
}
sendCustomAction(_arg0, _arg1);
reply.writeNoException();
return true;
case 27:
data.enforceInterface(DESCRIPTOR);
MediaMetadataCompat _result6 = getMetadata();
reply.writeNoException();
if (_result6 != null) {
reply.writeInt(1);
_result6.writeToParcel(reply, 1);
return true;
}
reply.writeInt(0);
return true;
case 28:
data.enforceInterface(DESCRIPTOR);
PlaybackStateCompat _result7 = getPlaybackState();
reply.writeNoException();
if (_result7 != null) {
reply.writeInt(1);
_result7.writeToParcel(reply, 1);
return true;
}
reply.writeInt(0);
return true;
case 29:
data.enforceInterface(DESCRIPTOR);
List<QueueItem> _result8 = getQueue();
reply.writeNoException();
reply.writeTypedList(_result8);
return true;
case 30:
data.enforceInterface(DESCRIPTOR);
CharSequence _result9 = getQueueTitle();
reply.writeNoException();
if (_result9 != null) {
reply.writeInt(1);
TextUtils.writeToParcel(_result9, reply, 1);
return true;
}
reply.writeInt(0);
return true;
case 31:
data.enforceInterface(DESCRIPTOR);
Bundle _result10 = getExtras();
reply.writeNoException();
if (_result10 != null) {
reply.writeInt(1);
_result10.writeToParcel(reply, 1);
return true;
}
reply.writeInt(0);
return true;
case 32:
data.enforceInterface(DESCRIPTOR);
int _result11 = getRatingType();
reply.writeNoException();
reply.writeInt(_result11);
return true;
case 1598968902:
reply.writeString(DESCRIPTOR);
return true;
default:
return super.onTransact(code, data, reply, flags);
}
}
}
void adjustVolume(int i, int i2, String str) throws RemoteException;
void fastForward() throws RemoteException;
Bundle getExtras() throws RemoteException;
long getFlags() throws RemoteException;
PendingIntent getLaunchPendingIntent() throws RemoteException;
MediaMetadataCompat getMetadata() throws RemoteException;
String getPackageName() throws RemoteException;
PlaybackStateCompat getPlaybackState() throws RemoteException;
List<QueueItem> getQueue() throws RemoteException;
CharSequence getQueueTitle() throws RemoteException;
int getRatingType() throws RemoteException;
String getTag() throws RemoteException;
ParcelableVolumeInfo getVolumeAttributes() throws RemoteException;
boolean isTransportControlEnabled() throws RemoteException;
void next() throws RemoteException;
void pause() throws RemoteException;
void play() throws RemoteException;
void playFromMediaId(String str, Bundle bundle) throws RemoteException;
void playFromSearch(String str, Bundle bundle) throws RemoteException;
void playFromUri(Uri uri, Bundle bundle) throws RemoteException;
void previous() throws RemoteException;
void rate(RatingCompat ratingCompat) throws RemoteException;
void registerCallbackListener(IMediaControllerCallback iMediaControllerCallback) throws RemoteException;
void rewind() throws RemoteException;
void seekTo(long j) throws RemoteException;
void sendCommand(String str, Bundle bundle, ResultReceiverWrapper resultReceiverWrapper) throws RemoteException;
void sendCustomAction(String str, Bundle bundle) throws RemoteException;
boolean sendMediaButton(KeyEvent keyEvent) throws RemoteException;
void setVolumeTo(int i, int i2, String str) throws RemoteException;
void skipToQueueItem(long j) throws RemoteException;
void stop() throws RemoteException;
void unregisterCallbackListener(IMediaControllerCallback iMediaControllerCallback) throws RemoteException;
}