/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: /var/tmp/code-browser-generator/android_android_9.0.0_r358833596918674107602/combined/android/media/session/ISessionController.aidl
 */
package android.media.session;
Interface to MediaSessionRecord in the system.
@hide
/** * Interface to MediaSessionRecord in the system. * @hide */
public interface ISessionController extends android.os.IInterface {
Local-side IPC implementation stub class.
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements android.media.session.ISessionController { private static final java.lang.String DESCRIPTOR = "android.media.session.ISessionController";
Construct the stub at attach it to the interface.
/** Construct the stub at attach it to the interface. */
public Stub() { this.attachInterface(this, DESCRIPTOR); }
Cast an IBinder object into an android.media.session.ISessionController interface, generating a proxy if needed.
/** * Cast an IBinder object into an android.media.session.ISessionController interface, * generating a proxy if needed. */
public static android.media.session.ISessionController asInterface(android.os.IBinder obj) { if ((obj==null)) { return null; } android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); if (((iin!=null)&&(iin instanceof android.media.session.ISessionController))) { return ((android.media.session.ISessionController)iin); } return new android.media.session.ISessionController.Stub.Proxy(obj); } @Override public android.os.IBinder asBinder() { return this; } @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException { java.lang.String descriptor = DESCRIPTOR; switch (code) { case INTERFACE_TRANSACTION: { reply.writeString(descriptor); return true; } case TRANSACTION_sendCommand: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); java.lang.String _arg2; _arg2 = data.readString(); android.os.Bundle _arg3; if ((0!=data.readInt())) { _arg3 = android.os.Bundle.CREATOR.createFromParcel(data); } else { _arg3 = null; } android.os.ResultReceiver _arg4; if ((0!=data.readInt())) { _arg4 = android.os.ResultReceiver.CREATOR.createFromParcel(data); } else { _arg4 = null; } this.sendCommand(_arg0, _arg1, _arg2, _arg3, _arg4); reply.writeNoException(); return true; } case TRANSACTION_sendMediaButton: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); boolean _arg2; _arg2 = (0!=data.readInt()); android.view.KeyEvent _arg3; if ((0!=data.readInt())) { _arg3 = android.view.KeyEvent.CREATOR.createFromParcel(data); } else { _arg3 = null; } boolean _result = this.sendMediaButton(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_registerCallbackListener: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); this.registerCallbackListener(_arg0, _arg1); reply.writeNoException(); return true; } case TRANSACTION_unregisterCallbackListener: { data.enforceInterface(descriptor); android.media.session.ISessionControllerCallback _arg0; _arg0 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); this.unregisterCallbackListener(_arg0); reply.writeNoException(); return true; } case TRANSACTION_isTransportControlEnabled: { data.enforceInterface(descriptor); boolean _result = this.isTransportControlEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_getPackageName: { data.enforceInterface(descriptor); java.lang.String _result = this.getPackageName(); reply.writeNoException(); reply.writeString(_result); return true; } case TRANSACTION_getTag: { data.enforceInterface(descriptor); java.lang.String _result = this.getTag(); reply.writeNoException(); reply.writeString(_result); return true; } case TRANSACTION_getLaunchPendingIntent: { data.enforceInterface(descriptor); android.app.PendingIntent _result = this.getLaunchPendingIntent(); reply.writeNoException(); if ((_result!=null)) { reply.writeInt(1); _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); } else { reply.writeInt(0); } return true; } case TRANSACTION_getFlags: { data.enforceInterface(descriptor); long _result = this.getFlags(); reply.writeNoException(); reply.writeLong(_result); return true; } case TRANSACTION_getVolumeAttributes: { data.enforceInterface(descriptor); android.media.session.ParcelableVolumeInfo _result = this.getVolumeAttributes(); reply.writeNoException(); if ((_result!=null)) { reply.writeInt(1); _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); } else { reply.writeInt(0); } return true; } case TRANSACTION_adjustVolume: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); boolean _arg2; _arg2 = (0!=data.readInt()); int _arg3; _arg3 = data.readInt(); int _arg4; _arg4 = data.readInt(); this.adjustVolume(_arg0, _arg1, _arg2, _arg3, _arg4); reply.writeNoException(); return true; } case TRANSACTION_setVolumeTo: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); int _arg2; _arg2 = data.readInt(); int _arg3; _arg3 = data.readInt(); this.setVolumeTo(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); return true; } case TRANSACTION_prepare: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); this.prepare(_arg0, _arg1); reply.writeNoException(); return true; } case TRANSACTION_prepareFromMediaId: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); java.lang.String _arg2; _arg2 = data.readString(); android.os.Bundle _arg3; if ((0!=data.readInt())) { _arg3 = android.os.Bundle.CREATOR.createFromParcel(data); } else { _arg3 = null; } this.prepareFromMediaId(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); return true; } case TRANSACTION_prepareFromSearch: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); java.lang.String _arg2; _arg2 = data.readString(); android.os.Bundle _arg3; if ((0!=data.readInt())) { _arg3 = android.os.Bundle.CREATOR.createFromParcel(data); } else { _arg3 = null; } this.prepareFromSearch(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); return true; } case TRANSACTION_prepareFromUri: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); android.net.Uri _arg2; if ((0!=data.readInt())) { _arg2 = android.net.Uri.CREATOR.createFromParcel(data); } else { _arg2 = null; } android.os.Bundle _arg3; if ((0!=data.readInt())) { _arg3 = android.os.Bundle.CREATOR.createFromParcel(data); } else { _arg3 = null; } this.prepareFromUri(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); return true; } case TRANSACTION_play: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); this.play(_arg0, _arg1); reply.writeNoException(); return true; } case TRANSACTION_playFromMediaId: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); java.lang.String _arg2; _arg2 = data.readString(); android.os.Bundle _arg3; if ((0!=data.readInt())) { _arg3 = android.os.Bundle.CREATOR.createFromParcel(data); } else { _arg3 = null; } this.playFromMediaId(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); return true; } case TRANSACTION_playFromSearch: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); java.lang.String _arg2; _arg2 = data.readString(); android.os.Bundle _arg3; if ((0!=data.readInt())) { _arg3 = android.os.Bundle.CREATOR.createFromParcel(data); } else { _arg3 = null; } this.playFromSearch(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); return true; } case TRANSACTION_playFromUri: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); android.net.Uri _arg2; if ((0!=data.readInt())) { _arg2 = android.net.Uri.CREATOR.createFromParcel(data); } else { _arg2 = null; } android.os.Bundle _arg3; if ((0!=data.readInt())) { _arg3 = android.os.Bundle.CREATOR.createFromParcel(data); } else { _arg3 = null; } this.playFromUri(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); return true; } case TRANSACTION_skipToQueueItem: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); long _arg2; _arg2 = data.readLong(); this.skipToQueueItem(_arg0, _arg1, _arg2); reply.writeNoException(); return true; } case TRANSACTION_pause: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); this.pause(_arg0, _arg1); reply.writeNoException(); return true; } case TRANSACTION_stop: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); this.stop(_arg0, _arg1); reply.writeNoException(); return true; } case TRANSACTION_next: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); this.next(_arg0, _arg1); reply.writeNoException(); return true; } case TRANSACTION_previous: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); this.previous(_arg0, _arg1); reply.writeNoException(); return true; } case TRANSACTION_fastForward: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); this.fastForward(_arg0, _arg1); reply.writeNoException(); return true; } case TRANSACTION_rewind: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); this.rewind(_arg0, _arg1); reply.writeNoException(); return true; } case TRANSACTION_seekTo: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); long _arg2; _arg2 = data.readLong(); this.seekTo(_arg0, _arg1, _arg2); reply.writeNoException(); return true; } case TRANSACTION_rate: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); android.media.Rating _arg2; if ((0!=data.readInt())) { _arg2 = android.media.Rating.CREATOR.createFromParcel(data); } else { _arg2 = null; } this.rate(_arg0, _arg1, _arg2); reply.writeNoException(); return true; } case TRANSACTION_sendCustomAction: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); android.media.session.ISessionControllerCallback _arg1; _arg1 = android.media.session.ISessionControllerCallback.Stub.asInterface(data.readStrongBinder()); java.lang.String _arg2; _arg2 = data.readString(); android.os.Bundle _arg3; if ((0!=data.readInt())) { _arg3 = android.os.Bundle.CREATOR.createFromParcel(data); } else { _arg3 = null; } this.sendCustomAction(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); return true; } case TRANSACTION_getMetadata: { data.enforceInterface(descriptor); android.media.MediaMetadata _result = this.getMetadata(); reply.writeNoException(); if ((_result!=null)) { reply.writeInt(1); _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); } else { reply.writeInt(0); } return true; } case TRANSACTION_getPlaybackState: { data.enforceInterface(descriptor); android.media.session.PlaybackState _result = this.getPlaybackState(); reply.writeNoException(); if ((_result!=null)) { reply.writeInt(1); _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); } else { reply.writeInt(0); } return true; } case TRANSACTION_getQueue: { data.enforceInterface(descriptor); android.content.pm.ParceledListSlice _result = this.getQueue(); reply.writeNoException(); if ((_result!=null)) { reply.writeInt(1); _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); } else { reply.writeInt(0); } return true; } case TRANSACTION_getQueueTitle: { data.enforceInterface(descriptor); java.lang.CharSequence _result = this.getQueueTitle(); reply.writeNoException(); if ((_result!=null)) { reply.writeInt(1); android.text.TextUtils.writeToParcel(_result, reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); } else { reply.writeInt(0); } return true; } case TRANSACTION_getExtras: { data.enforceInterface(descriptor); android.os.Bundle _result = this.getExtras(); reply.writeNoException(); if ((_result!=null)) { reply.writeInt(1); _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); } else { reply.writeInt(0); } return true; } case TRANSACTION_getRatingType: { data.enforceInterface(descriptor); int _result = this.getRatingType(); reply.writeNoException(); reply.writeInt(_result); return true; } default: { return super.onTransact(code, data, reply, flags); } } } private static class Proxy implements android.media.session.ISessionController { private android.os.IBinder mRemote; Proxy(android.os.IBinder remote) { mRemote = remote; } @Override public android.os.IBinder asBinder() { return mRemote; } public java.lang.String getInterfaceDescriptor() { return DESCRIPTOR; } @Override public void sendCommand(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, java.lang.String command, android.os.Bundle args, android.os.ResultReceiver cb) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); _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); } mRemote.transact(Stub.TRANSACTION_sendCommand, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public boolean sendMediaButton(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, boolean asSystemService, android.view.KeyEvent mediaButton) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); _data.writeInt(((asSystemService)?(1):(0))); if ((mediaButton!=null)) { _data.writeInt(1); mediaButton.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_sendMediaButton, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } @Override public void registerCallbackListener(java.lang.String packageName, android.media.session.ISessionControllerCallback cb) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((cb!=null))?(cb.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_registerCallbackListener, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void unregisterCallbackListener(android.media.session.ISessionControllerCallback cb) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeStrongBinder((((cb!=null))?(cb.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_unregisterCallbackListener, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public boolean isTransportControlEnabled() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_isTransportControlEnabled, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } @Override public java.lang.String getPackageName() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); java.lang.String _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getPackageName, _data, _reply, 0); _reply.readException(); _result = _reply.readString(); } finally { _reply.recycle(); _data.recycle(); } return _result; } @Override public java.lang.String getTag() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); java.lang.String _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getTag, _data, _reply, 0); _reply.readException(); _result = _reply.readString(); } finally { _reply.recycle(); _data.recycle(); } return _result; } @Override public android.app.PendingIntent getLaunchPendingIntent() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); android.app.PendingIntent _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getLaunchPendingIntent, _data, _reply, 0); _reply.readException(); if ((0!=_reply.readInt())) { _result = android.app.PendingIntent.CREATOR.createFromParcel(_reply); } else { _result = null; } } finally { _reply.recycle(); _data.recycle(); } return _result; } @Override public long getFlags() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); long _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getFlags, _data, _reply, 0); _reply.readException(); _result = _reply.readLong(); } finally { _reply.recycle(); _data.recycle(); } return _result; } @Override public android.media.session.ParcelableVolumeInfo getVolumeAttributes() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); android.media.session.ParcelableVolumeInfo _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getVolumeAttributes, _data, _reply, 0); _reply.readException(); if ((0!=_reply.readInt())) { _result = android.media.session.ParcelableVolumeInfo.CREATOR.createFromParcel(_reply); } else { _result = null; } } finally { _reply.recycle(); _data.recycle(); } return _result; } @Override public void adjustVolume(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, boolean asSystemService, int direction, int flags) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); _data.writeInt(((asSystemService)?(1):(0))); _data.writeInt(direction); _data.writeInt(flags); mRemote.transact(Stub.TRANSACTION_adjustVolume, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void setVolumeTo(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, int value, int flags) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); _data.writeInt(value); _data.writeInt(flags); mRemote.transact(Stub.TRANSACTION_setVolumeTo, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } // These commands are for the TransportControls @Override public void prepare(java.lang.String packageName, android.media.session.ISessionControllerCallback caller) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_prepare, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void prepareFromMediaId(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, java.lang.String mediaId, android.os.Bundle extras) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); _data.writeString(mediaId); if ((extras!=null)) { _data.writeInt(1); extras.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_prepareFromMediaId, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void prepareFromSearch(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, java.lang.String string, android.os.Bundle extras) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); _data.writeString(string); if ((extras!=null)) { _data.writeInt(1); extras.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_prepareFromSearch, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void prepareFromUri(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, android.net.Uri uri, android.os.Bundle extras) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); 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); } mRemote.transact(Stub.TRANSACTION_prepareFromUri, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void play(java.lang.String packageName, android.media.session.ISessionControllerCallback caller) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_play, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void playFromMediaId(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, java.lang.String mediaId, android.os.Bundle extras) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); _data.writeString(mediaId); if ((extras!=null)) { _data.writeInt(1); extras.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_playFromMediaId, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void playFromSearch(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, java.lang.String string, android.os.Bundle extras) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); _data.writeString(string); if ((extras!=null)) { _data.writeInt(1); extras.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_playFromSearch, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void playFromUri(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, android.net.Uri uri, android.os.Bundle extras) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); 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); } mRemote.transact(Stub.TRANSACTION_playFromUri, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void skipToQueueItem(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, long id) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); _data.writeLong(id); mRemote.transact(Stub.TRANSACTION_skipToQueueItem, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void pause(java.lang.String packageName, android.media.session.ISessionControllerCallback caller) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_pause, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void stop(java.lang.String packageName, android.media.session.ISessionControllerCallback caller) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_stop, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void next(java.lang.String packageName, android.media.session.ISessionControllerCallback caller) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_next, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void previous(java.lang.String packageName, android.media.session.ISessionControllerCallback caller) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_previous, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void fastForward(java.lang.String packageName, android.media.session.ISessionControllerCallback caller) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_fastForward, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void rewind(java.lang.String packageName, android.media.session.ISessionControllerCallback caller) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_rewind, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void seekTo(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, long pos) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); _data.writeLong(pos); mRemote.transact(Stub.TRANSACTION_seekTo, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void rate(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, android.media.Rating rating) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); if ((rating!=null)) { _data.writeInt(1); rating.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_rate, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void sendCustomAction(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, java.lang.String action, android.os.Bundle args) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(packageName); _data.writeStrongBinder((((caller!=null))?(caller.asBinder()):(null))); _data.writeString(action); if ((args!=null)) { _data.writeInt(1); args.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_sendCustomAction, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public android.media.MediaMetadata getMetadata() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); android.media.MediaMetadata _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getMetadata, _data, _reply, 0); _reply.readException(); if ((0!=_reply.readInt())) { _result = android.media.MediaMetadata.CREATOR.createFromParcel(_reply); } else { _result = null; } } finally { _reply.recycle(); _data.recycle(); } return _result; } @Override public android.media.session.PlaybackState getPlaybackState() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); android.media.session.PlaybackState _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getPlaybackState, _data, _reply, 0); _reply.readException(); if ((0!=_reply.readInt())) { _result = android.media.session.PlaybackState.CREATOR.createFromParcel(_reply); } else { _result = null; } } finally { _reply.recycle(); _data.recycle(); } return _result; } @Override public android.content.pm.ParceledListSlice getQueue() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); android.content.pm.ParceledListSlice _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getQueue, _data, _reply, 0); _reply.readException(); if ((0!=_reply.readInt())) { _result = android.content.pm.ParceledListSlice.CREATOR.createFromParcel(_reply); } else { _result = null; } } finally { _reply.recycle(); _data.recycle(); } return _result; } @Override public java.lang.CharSequence getQueueTitle() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); java.lang.CharSequence _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getQueueTitle, _data, _reply, 0); _reply.readException(); if ((0!=_reply.readInt())) { _result = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(_reply); } else { _result = null; } } finally { _reply.recycle(); _data.recycle(); } return _result; } @Override public android.os.Bundle getExtras() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); android.os.Bundle _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getExtras, _data, _reply, 0); _reply.readException(); if ((0!=_reply.readInt())) { _result = android.os.Bundle.CREATOR.createFromParcel(_reply); } else { _result = null; } } finally { _reply.recycle(); _data.recycle(); } return _result; } @Override public int getRatingType() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); int _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getRatingType, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } } static final int TRANSACTION_sendCommand = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_sendMediaButton = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_registerCallbackListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_unregisterCallbackListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_isTransportControlEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); static final int TRANSACTION_getPackageName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); static final int TRANSACTION_getTag = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); static final int TRANSACTION_getLaunchPendingIntent = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); static final int TRANSACTION_getFlags = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8); static final int TRANSACTION_getVolumeAttributes = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9); static final int TRANSACTION_adjustVolume = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10); static final int TRANSACTION_setVolumeTo = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11); static final int TRANSACTION_prepare = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12); static final int TRANSACTION_prepareFromMediaId = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13); static final int TRANSACTION_prepareFromSearch = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14); static final int TRANSACTION_prepareFromUri = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15); static final int TRANSACTION_play = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16); static final int TRANSACTION_playFromMediaId = (android.os.IBinder.FIRST_CALL_TRANSACTION + 17); static final int TRANSACTION_playFromSearch = (android.os.IBinder.FIRST_CALL_TRANSACTION + 18); static final int TRANSACTION_playFromUri = (android.os.IBinder.FIRST_CALL_TRANSACTION + 19); static final int TRANSACTION_skipToQueueItem = (android.os.IBinder.FIRST_CALL_TRANSACTION + 20); static final int TRANSACTION_pause = (android.os.IBinder.FIRST_CALL_TRANSACTION + 21); static final int TRANSACTION_stop = (android.os.IBinder.FIRST_CALL_TRANSACTION + 22); static final int TRANSACTION_next = (android.os.IBinder.FIRST_CALL_TRANSACTION + 23); static final int TRANSACTION_previous = (android.os.IBinder.FIRST_CALL_TRANSACTION + 24); static final int TRANSACTION_fastForward = (android.os.IBinder.FIRST_CALL_TRANSACTION + 25); static final int TRANSACTION_rewind = (android.os.IBinder.FIRST_CALL_TRANSACTION + 26); static final int TRANSACTION_seekTo = (android.os.IBinder.FIRST_CALL_TRANSACTION + 27); static final int TRANSACTION_rate = (android.os.IBinder.FIRST_CALL_TRANSACTION + 28); static final int TRANSACTION_sendCustomAction = (android.os.IBinder.FIRST_CALL_TRANSACTION + 29); static final int TRANSACTION_getMetadata = (android.os.IBinder.FIRST_CALL_TRANSACTION + 30); static final int TRANSACTION_getPlaybackState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 31); static final int TRANSACTION_getQueue = (android.os.IBinder.FIRST_CALL_TRANSACTION + 32); static final int TRANSACTION_getQueueTitle = (android.os.IBinder.FIRST_CALL_TRANSACTION + 33); static final int TRANSACTION_getExtras = (android.os.IBinder.FIRST_CALL_TRANSACTION + 34); static final int TRANSACTION_getRatingType = (android.os.IBinder.FIRST_CALL_TRANSACTION + 35); } public void sendCommand(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, java.lang.String command, android.os.Bundle args, android.os.ResultReceiver cb) throws android.os.RemoteException; public boolean sendMediaButton(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, boolean asSystemService, android.view.KeyEvent mediaButton) throws android.os.RemoteException; public void registerCallbackListener(java.lang.String packageName, android.media.session.ISessionControllerCallback cb) throws android.os.RemoteException; public void unregisterCallbackListener(android.media.session.ISessionControllerCallback cb) throws android.os.RemoteException; public boolean isTransportControlEnabled() throws android.os.RemoteException; public java.lang.String getPackageName() throws android.os.RemoteException; public java.lang.String getTag() throws android.os.RemoteException; public android.app.PendingIntent getLaunchPendingIntent() throws android.os.RemoteException; public long getFlags() throws android.os.RemoteException; public android.media.session.ParcelableVolumeInfo getVolumeAttributes() throws android.os.RemoteException; public void adjustVolume(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, boolean asSystemService, int direction, int flags) throws android.os.RemoteException; public void setVolumeTo(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, int value, int flags) throws android.os.RemoteException; // These commands are for the TransportControls public void prepare(java.lang.String packageName, android.media.session.ISessionControllerCallback caller) throws android.os.RemoteException; public void prepareFromMediaId(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, java.lang.String mediaId, android.os.Bundle extras) throws android.os.RemoteException; public void prepareFromSearch(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, java.lang.String string, android.os.Bundle extras) throws android.os.RemoteException; public void prepareFromUri(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, android.net.Uri uri, android.os.Bundle extras) throws android.os.RemoteException; public void play(java.lang.String packageName, android.media.session.ISessionControllerCallback caller) throws android.os.RemoteException; public void playFromMediaId(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, java.lang.String mediaId, android.os.Bundle extras) throws android.os.RemoteException; public void playFromSearch(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, java.lang.String string, android.os.Bundle extras) throws android.os.RemoteException; public void playFromUri(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, android.net.Uri uri, android.os.Bundle extras) throws android.os.RemoteException; public void skipToQueueItem(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, long id) throws android.os.RemoteException; public void pause(java.lang.String packageName, android.media.session.ISessionControllerCallback caller) throws android.os.RemoteException; public void stop(java.lang.String packageName, android.media.session.ISessionControllerCallback caller) throws android.os.RemoteException; public void next(java.lang.String packageName, android.media.session.ISessionControllerCallback caller) throws android.os.RemoteException; public void previous(java.lang.String packageName, android.media.session.ISessionControllerCallback caller) throws android.os.RemoteException; public void fastForward(java.lang.String packageName, android.media.session.ISessionControllerCallback caller) throws android.os.RemoteException; public void rewind(java.lang.String packageName, android.media.session.ISessionControllerCallback caller) throws android.os.RemoteException; public void seekTo(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, long pos) throws android.os.RemoteException; public void rate(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, android.media.Rating rating) throws android.os.RemoteException; public void sendCustomAction(java.lang.String packageName, android.media.session.ISessionControllerCallback caller, java.lang.String action, android.os.Bundle args) throws android.os.RemoteException; public android.media.MediaMetadata getMetadata() throws android.os.RemoteException; public android.media.session.PlaybackState getPlaybackState() throws android.os.RemoteException; public android.content.pm.ParceledListSlice getQueue() throws android.os.RemoteException; public java.lang.CharSequence getQueueTitle() throws android.os.RemoteException; public android.os.Bundle getExtras() throws android.os.RemoteException; public int getRatingType() throws android.os.RemoteException; }