/* * This file is auto-generated. DO NOT MODIFY. * Original file: frameworks/base/media/java/android/media/IAudioService.aidl */ package android.media; /** * {@hide} */ public interface IAudioService extends android.os.IInterface { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements android.media.IAudioService { private static final java.lang.String DESCRIPTOR = "android.media.IAudioService"; /** Construct the stub at attach it to the interface. */ public Stub() { this.attachInterface(this, DESCRIPTOR); } /** * Cast an IBinder object into an android.media.IAudioService interface, * generating a proxy if needed. */ public static android.media.IAudioService asInterface(android.os.IBinder obj) { if ((obj==null)) { return null; } android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR); if (((iin!=null)&&(iin instanceof android.media.IAudioService))) { return ((android.media.IAudioService)iin); } return new android.media.IAudioService.Stub.Proxy(obj); } 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 { switch (code) { case INTERFACE_TRANSACTION: { reply.writeString(DESCRIPTOR); return true; } case TRANSACTION_adjustVolume: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); int _arg1; _arg1 = data.readInt(); this.adjustVolume(_arg0, _arg1); reply.writeNoException(); return true; } case TRANSACTION_adjustSuggestedStreamVolume: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); int _arg1; _arg1 = data.readInt(); int _arg2; _arg2 = data.readInt(); this.adjustSuggestedStreamVolume(_arg0, _arg1, _arg2); reply.writeNoException(); return true; } case TRANSACTION_adjustStreamVolume: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); int _arg1; _arg1 = data.readInt(); int _arg2; _arg2 = data.readInt(); this.adjustStreamVolume(_arg0, _arg1, _arg2); reply.writeNoException(); return true; } case TRANSACTION_setStreamVolume: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); int _arg1; _arg1 = data.readInt(); int _arg2; _arg2 = data.readInt(); this.setStreamVolume(_arg0, _arg1, _arg2); reply.writeNoException(); return true; } case TRANSACTION_setStreamSolo: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); boolean _arg1; _arg1 = (0!=data.readInt()); android.os.IBinder _arg2; _arg2 = data.readStrongBinder(); this.setStreamSolo(_arg0, _arg1, _arg2); reply.writeNoException(); return true; } case TRANSACTION_setStreamMute: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); boolean _arg1; _arg1 = (0!=data.readInt()); android.os.IBinder _arg2; _arg2 = data.readStrongBinder(); this.setStreamMute(_arg0, _arg1, _arg2); reply.writeNoException(); return true; } case TRANSACTION_isStreamMute: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); boolean _result = this.isStreamMute(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_getStreamVolume: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); int _result = this.getStreamVolume(_arg0); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_getStreamMaxVolume: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); int _result = this.getStreamMaxVolume(_arg0); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_getLastAudibleStreamVolume: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); int _result = this.getLastAudibleStreamVolume(_arg0); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_setRingerMode: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); this.setRingerMode(_arg0); reply.writeNoException(); return true; } case TRANSACTION_getRingerMode: { data.enforceInterface(DESCRIPTOR); int _result = this.getRingerMode(); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_setVibrateSetting: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); int _arg1; _arg1 = data.readInt(); this.setVibrateSetting(_arg0, _arg1); reply.writeNoException(); return true; } case TRANSACTION_getVibrateSetting: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); int _result = this.getVibrateSetting(_arg0); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_shouldVibrate: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); boolean _result = this.shouldVibrate(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_setMode: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); android.os.IBinder _arg1; _arg1 = data.readStrongBinder(); this.setMode(_arg0, _arg1); reply.writeNoException(); return true; } case TRANSACTION_getMode: { data.enforceInterface(DESCRIPTOR); int _result = this.getMode(); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_playSoundEffect: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); this.playSoundEffect(_arg0); return true; } case TRANSACTION_playSoundEffectVolume: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); float _arg1; _arg1 = data.readFloat(); this.playSoundEffectVolume(_arg0, _arg1); return true; } case TRANSACTION_loadSoundEffects: { data.enforceInterface(DESCRIPTOR); boolean _result = this.loadSoundEffects(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_unloadSoundEffects: { data.enforceInterface(DESCRIPTOR); this.unloadSoundEffects(); return true; } case TRANSACTION_reloadAudioSettings: { data.enforceInterface(DESCRIPTOR); this.reloadAudioSettings(); return true; } case TRANSACTION_setSpeakerphoneOn: { data.enforceInterface(DESCRIPTOR); boolean _arg0; _arg0 = (0!=data.readInt()); this.setSpeakerphoneOn(_arg0); reply.writeNoException(); return true; } case TRANSACTION_isSpeakerphoneOn: { data.enforceInterface(DESCRIPTOR); boolean _result = this.isSpeakerphoneOn(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_setBluetoothScoOn: { data.enforceInterface(DESCRIPTOR); boolean _arg0; _arg0 = (0!=data.readInt()); this.setBluetoothScoOn(_arg0); reply.writeNoException(); return true; } case TRANSACTION_isBluetoothScoOn: { data.enforceInterface(DESCRIPTOR); boolean _result = this.isBluetoothScoOn(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_requestAudioFocus: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); int _arg1; _arg1 = data.readInt(); android.os.IBinder _arg2; _arg2 = data.readStrongBinder(); android.media.IAudioFocusDispatcher _arg3; _arg3 = android.media.IAudioFocusDispatcher.Stub.asInterface(data.readStrongBinder()); java.lang.String _arg4; _arg4 = data.readString(); java.lang.String _arg5; _arg5 = data.readString(); int _result = this.requestAudioFocus(_arg0, _arg1, _arg2, _arg3, _arg4, _arg5); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_abandonAudioFocus: { data.enforceInterface(DESCRIPTOR); android.media.IAudioFocusDispatcher _arg0; _arg0 = android.media.IAudioFocusDispatcher.Stub.asInterface(data.readStrongBinder()); java.lang.String _arg1; _arg1 = data.readString(); int _result = this.abandonAudioFocus(_arg0, _arg1); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_unregisterAudioFocusClient: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); this.unregisterAudioFocusClient(_arg0); reply.writeNoException(); return true; } case TRANSACTION_registerMediaButtonIntent: { data.enforceInterface(DESCRIPTOR); android.app.PendingIntent _arg0; if ((0!=data.readInt())) { _arg0 = android.app.PendingIntent.CREATOR.createFromParcel(data); } else { _arg0 = null; } android.content.ComponentName _arg1; if ((0!=data.readInt())) { _arg1 = android.content.ComponentName.CREATOR.createFromParcel(data); } else { _arg1 = null; } this.registerMediaButtonIntent(_arg0, _arg1); return true; } case TRANSACTION_unregisterMediaButtonIntent: { data.enforceInterface(DESCRIPTOR); android.app.PendingIntent _arg0; if ((0!=data.readInt())) { _arg0 = android.app.PendingIntent.CREATOR.createFromParcel(data); } else { _arg0 = null; } android.content.ComponentName _arg1; if ((0!=data.readInt())) { _arg1 = android.content.ComponentName.CREATOR.createFromParcel(data); } else { _arg1 = null; } this.unregisterMediaButtonIntent(_arg0, _arg1); return true; } case TRANSACTION_registerRemoteControlClient: { data.enforceInterface(DESCRIPTOR); android.app.PendingIntent _arg0; if ((0!=data.readInt())) { _arg0 = android.app.PendingIntent.CREATOR.createFromParcel(data); } else { _arg0 = null; } android.media.IRemoteControlClient _arg1; _arg1 = android.media.IRemoteControlClient.Stub.asInterface(data.readStrongBinder()); java.lang.String _arg2; _arg2 = data.readString(); this.registerRemoteControlClient(_arg0, _arg1, _arg2); return true; } case TRANSACTION_unregisterRemoteControlClient: { data.enforceInterface(DESCRIPTOR); android.app.PendingIntent _arg0; if ((0!=data.readInt())) { _arg0 = android.app.PendingIntent.CREATOR.createFromParcel(data); } else { _arg0 = null; } android.media.IRemoteControlClient _arg1; _arg1 = android.media.IRemoteControlClient.Stub.asInterface(data.readStrongBinder()); this.unregisterRemoteControlClient(_arg0, _arg1); return true; } case TRANSACTION_registerRemoteControlDisplay: { data.enforceInterface(DESCRIPTOR); android.media.IRemoteControlDisplay _arg0; _arg0 = android.media.IRemoteControlDisplay.Stub.asInterface(data.readStrongBinder()); this.registerRemoteControlDisplay(_arg0); return true; } case TRANSACTION_unregisterRemoteControlDisplay: { data.enforceInterface(DESCRIPTOR); android.media.IRemoteControlDisplay _arg0; _arg0 = android.media.IRemoteControlDisplay.Stub.asInterface(data.readStrongBinder()); this.unregisterRemoteControlDisplay(_arg0); return true; } case TRANSACTION_remoteControlDisplayUsesBitmapSize: { data.enforceInterface(DESCRIPTOR); android.media.IRemoteControlDisplay _arg0; _arg0 = android.media.IRemoteControlDisplay.Stub.asInterface(data.readStrongBinder()); int _arg1; _arg1 = data.readInt(); int _arg2; _arg2 = data.readInt(); this.remoteControlDisplayUsesBitmapSize(_arg0, _arg1, _arg2); return true; } case TRANSACTION_startBluetoothSco: { data.enforceInterface(DESCRIPTOR); android.os.IBinder _arg0; _arg0 = data.readStrongBinder(); this.startBluetoothSco(_arg0); reply.writeNoException(); return true; } case TRANSACTION_stopBluetoothSco: { data.enforceInterface(DESCRIPTOR); android.os.IBinder _arg0; _arg0 = data.readStrongBinder(); this.stopBluetoothSco(_arg0); reply.writeNoException(); return true; } } return super.onTransact(code, data, reply, flags); } private static class Proxy implements android.media.IAudioService { private android.os.IBinder mRemote; Proxy(android.os.IBinder remote) { mRemote = remote; } public android.os.IBinder asBinder() { return mRemote; } public java.lang.String getInterfaceDescriptor() { return DESCRIPTOR; } public void adjustVolume(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.writeInt(direction); _data.writeInt(flags); mRemote.transact(Stub.TRANSACTION_adjustVolume, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void adjustSuggestedStreamVolume(int direction, int suggestedStreamType, 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.writeInt(direction); _data.writeInt(suggestedStreamType); _data.writeInt(flags); mRemote.transact(Stub.TRANSACTION_adjustSuggestedStreamVolume, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void adjustStreamVolume(int streamType, 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.writeInt(streamType); _data.writeInt(direction); _data.writeInt(flags); mRemote.transact(Stub.TRANSACTION_adjustStreamVolume, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void setStreamVolume(int streamType, int index, 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.writeInt(streamType); _data.writeInt(index); _data.writeInt(flags); mRemote.transact(Stub.TRANSACTION_setStreamVolume, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void setStreamSolo(int streamType, boolean state, android.os.IBinder 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.writeInt(streamType); _data.writeInt(((state)?(1):(0))); _data.writeStrongBinder(cb); mRemote.transact(Stub.TRANSACTION_setStreamSolo, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void setStreamMute(int streamType, boolean state, android.os.IBinder 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.writeInt(streamType); _data.writeInt(((state)?(1):(0))); _data.writeStrongBinder(cb); mRemote.transact(Stub.TRANSACTION_setStreamMute, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public boolean isStreamMute(int streamType) 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.writeInt(streamType); mRemote.transact(Stub.TRANSACTION_isStreamMute, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int getStreamVolume(int streamType) 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); _data.writeInt(streamType); mRemote.transact(Stub.TRANSACTION_getStreamVolume, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int getStreamMaxVolume(int streamType) 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); _data.writeInt(streamType); mRemote.transact(Stub.TRANSACTION_getStreamMaxVolume, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int getLastAudibleStreamVolume(int streamType) 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); _data.writeInt(streamType); mRemote.transact(Stub.TRANSACTION_getLastAudibleStreamVolume, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public void setRingerMode(int ringerMode) 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.writeInt(ringerMode); mRemote.transact(Stub.TRANSACTION_setRingerMode, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public int getRingerMode() 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_getRingerMode, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public void setVibrateSetting(int vibrateType, int vibrateSetting) 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.writeInt(vibrateType); _data.writeInt(vibrateSetting); mRemote.transact(Stub.TRANSACTION_setVibrateSetting, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public int getVibrateSetting(int vibrateType) 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); _data.writeInt(vibrateType); mRemote.transact(Stub.TRANSACTION_getVibrateSetting, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean shouldVibrate(int vibrateType) 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.writeInt(vibrateType); mRemote.transact(Stub.TRANSACTION_shouldVibrate, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public void setMode(int mode, android.os.IBinder 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.writeInt(mode); _data.writeStrongBinder(cb); mRemote.transact(Stub.TRANSACTION_setMode, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public int getMode() 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_getMode, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public void playSoundEffect(int effectType) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(effectType); mRemote.transact(Stub.TRANSACTION_playSoundEffect, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void playSoundEffectVolume(int effectType, float volume) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(effectType); _data.writeFloat(volume); mRemote.transact(Stub.TRANSACTION_playSoundEffectVolume, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public boolean loadSoundEffects() 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_loadSoundEffects, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public void unloadSoundEffects() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_unloadSoundEffects, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void reloadAudioSettings() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_reloadAudioSettings, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void setSpeakerphoneOn(boolean on) 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.writeInt(((on)?(1):(0))); mRemote.transact(Stub.TRANSACTION_setSpeakerphoneOn, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public boolean isSpeakerphoneOn() 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_isSpeakerphoneOn, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public void setBluetoothScoOn(boolean on) 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.writeInt(((on)?(1):(0))); mRemote.transact(Stub.TRANSACTION_setBluetoothScoOn, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public boolean isBluetoothScoOn() 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_isBluetoothScoOn, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int requestAudioFocus(int mainStreamType, int durationHint, android.os.IBinder cb, android.media.IAudioFocusDispatcher l, java.lang.String clientId, java.lang.String callingPackageName) 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); _data.writeInt(mainStreamType); _data.writeInt(durationHint); _data.writeStrongBinder(cb); _data.writeStrongBinder((((l!=null))?(l.asBinder()):(null))); _data.writeString(clientId); _data.writeString(callingPackageName); mRemote.transact(Stub.TRANSACTION_requestAudioFocus, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int abandonAudioFocus(android.media.IAudioFocusDispatcher l, java.lang.String clientId) 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); _data.writeStrongBinder((((l!=null))?(l.asBinder()):(null))); _data.writeString(clientId); mRemote.transact(Stub.TRANSACTION_abandonAudioFocus, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public void unregisterAudioFocusClient(java.lang.String clientId) 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(clientId); mRemote.transact(Stub.TRANSACTION_unregisterAudioFocusClient, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void registerMediaButtonIntent(android.app.PendingIntent pi, android.content.ComponentName c) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); if ((pi!=null)) { _data.writeInt(1); pi.writeToParcel(_data, 0); } else { _data.writeInt(0); } if ((c!=null)) { _data.writeInt(1); c.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_registerMediaButtonIntent, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void unregisterMediaButtonIntent(android.app.PendingIntent pi, android.content.ComponentName c) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); if ((pi!=null)) { _data.writeInt(1); pi.writeToParcel(_data, 0); } else { _data.writeInt(0); } if ((c!=null)) { _data.writeInt(1); c.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_unregisterMediaButtonIntent, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void registerRemoteControlClient(android.app.PendingIntent mediaIntent, android.media.IRemoteControlClient rcClient, java.lang.String callingPackageName) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); if ((mediaIntent!=null)) { _data.writeInt(1); mediaIntent.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeStrongBinder((((rcClient!=null))?(rcClient.asBinder()):(null))); _data.writeString(callingPackageName); mRemote.transact(Stub.TRANSACTION_registerRemoteControlClient, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void unregisterRemoteControlClient(android.app.PendingIntent mediaIntent, android.media.IRemoteControlClient rcClient) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); if ((mediaIntent!=null)) { _data.writeInt(1); mediaIntent.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeStrongBinder((((rcClient!=null))?(rcClient.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_unregisterRemoteControlClient, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void registerRemoteControlDisplay(android.media.IRemoteControlDisplay rcd) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeStrongBinder((((rcd!=null))?(rcd.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_registerRemoteControlDisplay, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void unregisterRemoteControlDisplay(android.media.IRemoteControlDisplay rcd) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeStrongBinder((((rcd!=null))?(rcd.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_unregisterRemoteControlDisplay, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void remoteControlDisplayUsesBitmapSize(android.media.IRemoteControlDisplay rcd, int w, int h) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeStrongBinder((((rcd!=null))?(rcd.asBinder()):(null))); _data.writeInt(w); _data.writeInt(h); mRemote.transact(Stub.TRANSACTION_remoteControlDisplayUsesBitmapSize, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void startBluetoothSco(android.os.IBinder 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); mRemote.transact(Stub.TRANSACTION_startBluetoothSco, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void stopBluetoothSco(android.os.IBinder 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); mRemote.transact(Stub.TRANSACTION_stopBluetoothSco, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } } static final int TRANSACTION_adjustVolume = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_adjustSuggestedStreamVolume = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_adjustStreamVolume = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_setStreamVolume = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_setStreamSolo = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); static final int TRANSACTION_setStreamMute = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); static final int TRANSACTION_isStreamMute = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); static final int TRANSACTION_getStreamVolume = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); static final int TRANSACTION_getStreamMaxVolume = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8); static final int TRANSACTION_getLastAudibleStreamVolume = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9); static final int TRANSACTION_setRingerMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10); static final int TRANSACTION_getRingerMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11); static final int TRANSACTION_setVibrateSetting = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12); static final int TRANSACTION_getVibrateSetting = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13); static final int TRANSACTION_shouldVibrate = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14); static final int TRANSACTION_setMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15); static final int TRANSACTION_getMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16); static final int TRANSACTION_playSoundEffect = (android.os.IBinder.FIRST_CALL_TRANSACTION + 17); static final int TRANSACTION_playSoundEffectVolume = (android.os.IBinder.FIRST_CALL_TRANSACTION + 18); static final int TRANSACTION_loadSoundEffects = (android.os.IBinder.FIRST_CALL_TRANSACTION + 19); static final int TRANSACTION_unloadSoundEffects = (android.os.IBinder.FIRST_CALL_TRANSACTION + 20); static final int TRANSACTION_reloadAudioSettings = (android.os.IBinder.FIRST_CALL_TRANSACTION + 21); static final int TRANSACTION_setSpeakerphoneOn = (android.os.IBinder.FIRST_CALL_TRANSACTION + 22); static final int TRANSACTION_isSpeakerphoneOn = (android.os.IBinder.FIRST_CALL_TRANSACTION + 23); static final int TRANSACTION_setBluetoothScoOn = (android.os.IBinder.FIRST_CALL_TRANSACTION + 24); static final int TRANSACTION_isBluetoothScoOn = (android.os.IBinder.FIRST_CALL_TRANSACTION + 25); static final int TRANSACTION_requestAudioFocus = (android.os.IBinder.FIRST_CALL_TRANSACTION + 26); static final int TRANSACTION_abandonAudioFocus = (android.os.IBinder.FIRST_CALL_TRANSACTION + 27); static final int TRANSACTION_unregisterAudioFocusClient = (android.os.IBinder.FIRST_CALL_TRANSACTION + 28); static final int TRANSACTION_registerMediaButtonIntent = (android.os.IBinder.FIRST_CALL_TRANSACTION + 29); static final int TRANSACTION_unregisterMediaButtonIntent = (android.os.IBinder.FIRST_CALL_TRANSACTION + 30); static final int TRANSACTION_registerRemoteControlClient = (android.os.IBinder.FIRST_CALL_TRANSACTION + 31); static final int TRANSACTION_unregisterRemoteControlClient = (android.os.IBinder.FIRST_CALL_TRANSACTION + 32); static final int TRANSACTION_registerRemoteControlDisplay = (android.os.IBinder.FIRST_CALL_TRANSACTION + 33); static final int TRANSACTION_unregisterRemoteControlDisplay = (android.os.IBinder.FIRST_CALL_TRANSACTION + 34); static final int TRANSACTION_remoteControlDisplayUsesBitmapSize = (android.os.IBinder.FIRST_CALL_TRANSACTION + 35); static final int TRANSACTION_startBluetoothSco = (android.os.IBinder.FIRST_CALL_TRANSACTION + 36); static final int TRANSACTION_stopBluetoothSco = (android.os.IBinder.FIRST_CALL_TRANSACTION + 37); } public void adjustVolume(int direction, int flags) throws android.os.RemoteException; public void adjustSuggestedStreamVolume(int direction, int suggestedStreamType, int flags) throws android.os.RemoteException; public void adjustStreamVolume(int streamType, int direction, int flags) throws android.os.RemoteException; public void setStreamVolume(int streamType, int index, int flags) throws android.os.RemoteException; public void setStreamSolo(int streamType, boolean state, android.os.IBinder cb) throws android.os.RemoteException; public void setStreamMute(int streamType, boolean state, android.os.IBinder cb) throws android.os.RemoteException; public boolean isStreamMute(int streamType) throws android.os.RemoteException; public int getStreamVolume(int streamType) throws android.os.RemoteException; public int getStreamMaxVolume(int streamType) throws android.os.RemoteException; public int getLastAudibleStreamVolume(int streamType) throws android.os.RemoteException; public void setRingerMode(int ringerMode) throws android.os.RemoteException; public int getRingerMode() throws android.os.RemoteException; public void setVibrateSetting(int vibrateType, int vibrateSetting) throws android.os.RemoteException; public int getVibrateSetting(int vibrateType) throws android.os.RemoteException; public boolean shouldVibrate(int vibrateType) throws android.os.RemoteException; public void setMode(int mode, android.os.IBinder cb) throws android.os.RemoteException; public int getMode() throws android.os.RemoteException; public void playSoundEffect(int effectType) throws android.os.RemoteException; public void playSoundEffectVolume(int effectType, float volume) throws android.os.RemoteException; public boolean loadSoundEffects() throws android.os.RemoteException; public void unloadSoundEffects() throws android.os.RemoteException; public void reloadAudioSettings() throws android.os.RemoteException; public void setSpeakerphoneOn(boolean on) throws android.os.RemoteException; public boolean isSpeakerphoneOn() throws android.os.RemoteException; public void setBluetoothScoOn(boolean on) throws android.os.RemoteException; public boolean isBluetoothScoOn() throws android.os.RemoteException; public int requestAudioFocus(int mainStreamType, int durationHint, android.os.IBinder cb, android.media.IAudioFocusDispatcher l, java.lang.String clientId, java.lang.String callingPackageName) throws android.os.RemoteException; public int abandonAudioFocus(android.media.IAudioFocusDispatcher l, java.lang.String clientId) throws android.os.RemoteException; public void unregisterAudioFocusClient(java.lang.String clientId) throws android.os.RemoteException; public void registerMediaButtonIntent(android.app.PendingIntent pi, android.content.ComponentName c) throws android.os.RemoteException; public void unregisterMediaButtonIntent(android.app.PendingIntent pi, android.content.ComponentName c) throws android.os.RemoteException; public void registerRemoteControlClient(android.app.PendingIntent mediaIntent, android.media.IRemoteControlClient rcClient, java.lang.String callingPackageName) throws android.os.RemoteException; public void unregisterRemoteControlClient(android.app.PendingIntent mediaIntent, android.media.IRemoteControlClient rcClient) throws android.os.RemoteException; public void registerRemoteControlDisplay(android.media.IRemoteControlDisplay rcd) throws android.os.RemoteException; public void unregisterRemoteControlDisplay(android.media.IRemoteControlDisplay rcd) throws android.os.RemoteException; public void remoteControlDisplayUsesBitmapSize(android.media.IRemoteControlDisplay rcd, int w, int h) throws android.os.RemoteException; public void startBluetoothSco(android.os.IBinder cb) throws android.os.RemoteException; public void stopBluetoothSco(android.os.IBinder cb) throws android.os.RemoteException; }