/* * This file is auto-generated. DO NOT MODIFY. * Original file: frameworks/base/core/java/android/bluetooth/IBluetoothHeadset.aidl */ package android.bluetooth; /** * API for Bluetooth Headset service * * {@hide} */ public interface IBluetoothHeadset extends android.os.IInterface { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements android.bluetooth.IBluetoothHeadset { private static final java.lang.String DESCRIPTOR = "android.bluetooth.IBluetoothHeadset"; /** Construct the stub at attach it to the interface. */ public Stub() { this.attachInterface(this, DESCRIPTOR); } /** * Cast an IBinder object into an android.bluetooth.IBluetoothHeadset interface, * generating a proxy if needed. */ public static android.bluetooth.IBluetoothHeadset 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.bluetooth.IBluetoothHeadset))) { return ((android.bluetooth.IBluetoothHeadset)iin); } return new android.bluetooth.IBluetoothHeadset.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_connect: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } boolean _result = this.connect(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_disconnect: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } boolean _result = this.disconnect(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_getConnectedDevices: { data.enforceInterface(DESCRIPTOR); java.util.List<android.bluetooth.BluetoothDevice> _result = this.getConnectedDevices(); reply.writeNoException(); reply.writeTypedList(_result); return true; } case TRANSACTION_getDevicesMatchingConnectionStates: { data.enforceInterface(DESCRIPTOR); int[] _arg0; _arg0 = data.createIntArray(); java.util.List<android.bluetooth.BluetoothDevice> _result = this.getDevicesMatchingConnectionStates(_arg0); reply.writeNoException(); reply.writeTypedList(_result); return true; } case TRANSACTION_getConnectionState: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } int _result = this.getConnectionState(_arg0); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_setPriority: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } int _arg1; _arg1 = data.readInt(); boolean _result = this.setPriority(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_getPriority: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } int _result = this.getPriority(_arg0); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_startVoiceRecognition: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } boolean _result = this.startVoiceRecognition(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_stopVoiceRecognition: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } boolean _result = this.stopVoiceRecognition(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_isAudioConnected: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } boolean _result = this.isAudioConnected(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_getBatteryUsageHint: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } int _result = this.getBatteryUsageHint(_arg0); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_createIncomingConnect: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } boolean _result = this.createIncomingConnect(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_acceptIncomingConnect: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } boolean _result = this.acceptIncomingConnect(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_rejectIncomingConnect: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } boolean _result = this.rejectIncomingConnect(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_cancelConnectThread: { data.enforceInterface(DESCRIPTOR); boolean _result = this.cancelConnectThread(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_connectHeadsetInternal: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } boolean _result = this.connectHeadsetInternal(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_disconnectHeadsetInternal: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } boolean _result = this.disconnectHeadsetInternal(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_setAudioState: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } int _arg1; _arg1 = data.readInt(); boolean _result = this.setAudioState(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_getAudioState: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } int _result = this.getAudioState(_arg0); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_startScoUsingVirtualVoiceCall: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } boolean _result = this.startScoUsingVirtualVoiceCall(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_stopScoUsingVirtualVoiceCall: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } boolean _result = this.stopScoUsingVirtualVoiceCall(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } } return super.onTransact(code, data, reply, flags); } private static class Proxy implements android.bluetooth.IBluetoothHeadset { 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 API public boolean connect(android.bluetooth.BluetoothDevice device) 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); if ((device!=null)) { _data.writeInt(1); device.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_connect, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean disconnect(android.bluetooth.BluetoothDevice device) 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); if ((device!=null)) { _data.writeInt(1); device.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_disconnect, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public java.util.List<android.bluetooth.BluetoothDevice> getConnectedDevices() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); java.util.List<android.bluetooth.BluetoothDevice> _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getConnectedDevices, _data, _reply, 0); _reply.readException(); _result = _reply.createTypedArrayList(android.bluetooth.BluetoothDevice.CREATOR); } finally { _reply.recycle(); _data.recycle(); } return _result; } public java.util.List<android.bluetooth.BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); java.util.List<android.bluetooth.BluetoothDevice> _result; try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeIntArray(states); mRemote.transact(Stub.TRANSACTION_getDevicesMatchingConnectionStates, _data, _reply, 0); _reply.readException(); _result = _reply.createTypedArrayList(android.bluetooth.BluetoothDevice.CREATOR); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int getConnectionState(android.bluetooth.BluetoothDevice device) 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); if ((device!=null)) { _data.writeInt(1); device.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_getConnectionState, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean setPriority(android.bluetooth.BluetoothDevice device, int priority) 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); if ((device!=null)) { _data.writeInt(1); device.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeInt(priority); mRemote.transact(Stub.TRANSACTION_setPriority, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int getPriority(android.bluetooth.BluetoothDevice device) 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); if ((device!=null)) { _data.writeInt(1); device.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_getPriority, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean startVoiceRecognition(android.bluetooth.BluetoothDevice device) 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); if ((device!=null)) { _data.writeInt(1); device.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_startVoiceRecognition, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean stopVoiceRecognition(android.bluetooth.BluetoothDevice device) 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); if ((device!=null)) { _data.writeInt(1); device.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_stopVoiceRecognition, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean isAudioConnected(android.bluetooth.BluetoothDevice device) 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); if ((device!=null)) { _data.writeInt(1); device.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_isAudioConnected, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } // APIs that can be made public in future public int getBatteryUsageHint(android.bluetooth.BluetoothDevice device) 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); if ((device!=null)) { _data.writeInt(1); device.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_getBatteryUsageHint, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } // Internal functions, not be made public public boolean createIncomingConnect(android.bluetooth.BluetoothDevice device) 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); if ((device!=null)) { _data.writeInt(1); device.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_createIncomingConnect, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean acceptIncomingConnect(android.bluetooth.BluetoothDevice device) 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); if ((device!=null)) { _data.writeInt(1); device.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_acceptIncomingConnect, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean rejectIncomingConnect(android.bluetooth.BluetoothDevice device) 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); if ((device!=null)) { _data.writeInt(1); device.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_rejectIncomingConnect, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean cancelConnectThread() 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_cancelConnectThread, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean connectHeadsetInternal(android.bluetooth.BluetoothDevice device) 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); if ((device!=null)) { _data.writeInt(1); device.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_connectHeadsetInternal, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean disconnectHeadsetInternal(android.bluetooth.BluetoothDevice device) 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); if ((device!=null)) { _data.writeInt(1); device.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_disconnectHeadsetInternal, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean setAudioState(android.bluetooth.BluetoothDevice device, int state) 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); if ((device!=null)) { _data.writeInt(1); device.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeInt(state); mRemote.transact(Stub.TRANSACTION_setAudioState, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int getAudioState(android.bluetooth.BluetoothDevice device) 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); if ((device!=null)) { _data.writeInt(1); device.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_getAudioState, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean startScoUsingVirtualVoiceCall(android.bluetooth.BluetoothDevice device) 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); if ((device!=null)) { _data.writeInt(1); device.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_startScoUsingVirtualVoiceCall, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean stopScoUsingVirtualVoiceCall(android.bluetooth.BluetoothDevice device) 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); if ((device!=null)) { _data.writeInt(1); device.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_stopScoUsingVirtualVoiceCall, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } } static final int TRANSACTION_connect = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_disconnect = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_getConnectedDevices = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_getDevicesMatchingConnectionStates = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_getConnectionState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); static final int TRANSACTION_setPriority = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); static final int TRANSACTION_getPriority = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); static final int TRANSACTION_startVoiceRecognition = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); static final int TRANSACTION_stopVoiceRecognition = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8); static final int TRANSACTION_isAudioConnected = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9); static final int TRANSACTION_getBatteryUsageHint = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10); static final int TRANSACTION_createIncomingConnect = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11); static final int TRANSACTION_acceptIncomingConnect = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12); static final int TRANSACTION_rejectIncomingConnect = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13); static final int TRANSACTION_cancelConnectThread = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14); static final int TRANSACTION_connectHeadsetInternal = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15); static final int TRANSACTION_disconnectHeadsetInternal = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16); static final int TRANSACTION_setAudioState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 17); static final int TRANSACTION_getAudioState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 18); static final int TRANSACTION_startScoUsingVirtualVoiceCall = (android.os.IBinder.FIRST_CALL_TRANSACTION + 19); static final int TRANSACTION_stopScoUsingVirtualVoiceCall = (android.os.IBinder.FIRST_CALL_TRANSACTION + 20); } // Public API public boolean connect(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; public boolean disconnect(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; public java.util.List<android.bluetooth.BluetoothDevice> getConnectedDevices() throws android.os.RemoteException; public java.util.List<android.bluetooth.BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) throws android.os.RemoteException; public int getConnectionState(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; public boolean setPriority(android.bluetooth.BluetoothDevice device, int priority) throws android.os.RemoteException; public int getPriority(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; public boolean startVoiceRecognition(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; public boolean stopVoiceRecognition(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; public boolean isAudioConnected(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; // APIs that can be made public in future public int getBatteryUsageHint(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; // Internal functions, not be made public public boolean createIncomingConnect(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; public boolean acceptIncomingConnect(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; public boolean rejectIncomingConnect(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; public boolean cancelConnectThread() throws android.os.RemoteException; public boolean connectHeadsetInternal(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; public boolean disconnectHeadsetInternal(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; public boolean setAudioState(android.bluetooth.BluetoothDevice device, int state) throws android.os.RemoteException; public int getAudioState(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; public boolean startScoUsingVirtualVoiceCall(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; public boolean stopScoUsingVirtualVoiceCall(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; }