/* * This file is auto-generated. DO NOT MODIFY. * Original file: frameworks/base/core/java/android/bluetooth/IBluetooth.aidl */ package android.bluetooth; /** * System private API for talking with the Bluetooth service. * * {@hide} */ public interface IBluetooth extends android.os.IInterface { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements android.bluetooth.IBluetooth { private static final java.lang.String DESCRIPTOR = "android.bluetooth.IBluetooth"; /** Construct the stub at attach it to the interface. */ public Stub() { this.attachInterface(this, DESCRIPTOR); } /** * Cast an IBinder object into an android.bluetooth.IBluetooth interface, * generating a proxy if needed. */ public static android.bluetooth.IBluetooth 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.IBluetooth))) { return ((android.bluetooth.IBluetooth)iin); } return new android.bluetooth.IBluetooth.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_isEnabled: { data.enforceInterface(DESCRIPTOR); boolean _result = this.isEnabled(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_getBluetoothState: { data.enforceInterface(DESCRIPTOR); int _result = this.getBluetoothState(); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_enable: { data.enforceInterface(DESCRIPTOR); boolean _result = this.enable(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_disable: { data.enforceInterface(DESCRIPTOR); boolean _arg0; _arg0 = (0!=data.readInt()); boolean _result = this.disable(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_getAddress: { data.enforceInterface(DESCRIPTOR); java.lang.String _result = this.getAddress(); reply.writeNoException(); reply.writeString(_result); return true; } case TRANSACTION_getName: { data.enforceInterface(DESCRIPTOR); java.lang.String _result = this.getName(); reply.writeNoException(); reply.writeString(_result); return true; } case TRANSACTION_setName: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.setName(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_getUuids: { data.enforceInterface(DESCRIPTOR); android.os.ParcelUuid[] _result = this.getUuids(); reply.writeNoException(); reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); return true; } case TRANSACTION_getScanMode: { data.enforceInterface(DESCRIPTOR); int _result = this.getScanMode(); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_setScanMode: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); int _arg1; _arg1 = data.readInt(); boolean _result = this.setScanMode(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_getDiscoverableTimeout: { data.enforceInterface(DESCRIPTOR); int _result = this.getDiscoverableTimeout(); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_setDiscoverableTimeout: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); boolean _result = this.setDiscoverableTimeout(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_startDiscovery: { data.enforceInterface(DESCRIPTOR); boolean _result = this.startDiscovery(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_cancelDiscovery: { data.enforceInterface(DESCRIPTOR); boolean _result = this.cancelDiscovery(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_isDiscovering: { data.enforceInterface(DESCRIPTOR); boolean _result = this.isDiscovering(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_readOutOfBandData: { data.enforceInterface(DESCRIPTOR); byte[] _result = this.readOutOfBandData(); reply.writeNoException(); reply.writeByteArray(_result); return true; } case TRANSACTION_getAdapterConnectionState: { data.enforceInterface(DESCRIPTOR); int _result = this.getAdapterConnectionState(); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_getProfileConnectionState: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); int _result = this.getProfileConnectionState(_arg0); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_changeApplicationBluetoothState: { data.enforceInterface(DESCRIPTOR); boolean _arg0; _arg0 = (0!=data.readInt()); android.bluetooth.IBluetoothStateChangeCallback _arg1; _arg1 = android.bluetooth.IBluetoothStateChangeCallback.Stub.asInterface(data.readStrongBinder()); android.os.IBinder _arg2; _arg2 = data.readStrongBinder(); boolean _result = this.changeApplicationBluetoothState(_arg0, _arg1, _arg2); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_createBond: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.createBond(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_createBondOutOfBand: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); byte[] _arg1; _arg1 = data.createByteArray(); byte[] _arg2; _arg2 = data.createByteArray(); boolean _result = this.createBondOutOfBand(_arg0, _arg1, _arg2); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_cancelBondProcess: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.cancelBondProcess(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_removeBond: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.removeBond(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_listBonds: { data.enforceInterface(DESCRIPTOR); java.lang.String[] _result = this.listBonds(); reply.writeNoException(); reply.writeStringArray(_result); return true; } case TRANSACTION_getBondState: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); int _result = this.getBondState(_arg0); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_setDeviceOutOfBandData: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); byte[] _arg1; _arg1 = data.createByteArray(); byte[] _arg2; _arg2 = data.createByteArray(); boolean _result = this.setDeviceOutOfBandData(_arg0, _arg1, _arg2); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_getRemoteName: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String _result = this.getRemoteName(_arg0); reply.writeNoException(); reply.writeString(_result); return true; } case TRANSACTION_getRemoteAlias: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String _result = this.getRemoteAlias(_arg0); reply.writeNoException(); reply.writeString(_result); return true; } case TRANSACTION_setRemoteAlias: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); java.lang.String _arg1; _arg1 = data.readString(); boolean _result = this.setRemoteAlias(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_getRemoteClass: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); int _result = this.getRemoteClass(_arg0); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_getRemoteUuids: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); android.os.ParcelUuid[] _result = this.getRemoteUuids(_arg0); reply.writeNoException(); reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); return true; } case TRANSACTION_fetchRemoteUuids: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); android.os.ParcelUuid _arg1; if ((0!=data.readInt())) { _arg1 = android.os.ParcelUuid.CREATOR.createFromParcel(data); } else { _arg1 = null; } android.bluetooth.IBluetoothCallback _arg2; _arg2 = android.bluetooth.IBluetoothCallback.Stub.asInterface(data.readStrongBinder()); boolean _result = this.fetchRemoteUuids(_arg0, _arg1, _arg2); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_getRemoteServiceChannel: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); android.os.ParcelUuid _arg1; if ((0!=data.readInt())) { _arg1 = android.os.ParcelUuid.CREATOR.createFromParcel(data); } else { _arg1 = null; } int _result = this.getRemoteServiceChannel(_arg0, _arg1); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_setPin: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); byte[] _arg1; _arg1 = data.createByteArray(); boolean _result = this.setPin(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_setPasskey: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); int _arg1; _arg1 = data.readInt(); boolean _result = this.setPasskey(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_setPairingConfirmation: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); boolean _arg1; _arg1 = (0!=data.readInt()); boolean _result = this.setPairingConfirmation(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_setRemoteOutOfBandData: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.setRemoteOutOfBandData(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_cancelPairingUserInput: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.cancelPairingUserInput(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_setTrust: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); boolean _arg1; _arg1 = (0!=data.readInt()); boolean _result = this.setTrust(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_getTrustState: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.getTrustState(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_isBluetoothDock: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.isBluetoothDock(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_addRfcommServiceRecord: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); android.os.ParcelUuid _arg1; if ((0!=data.readInt())) { _arg1 = android.os.ParcelUuid.CREATOR.createFromParcel(data); } else { _arg1 = null; } int _arg2; _arg2 = data.readInt(); android.os.IBinder _arg3; _arg3 = data.readStrongBinder(); int _result = this.addRfcommServiceRecord(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_removeServiceRecord: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); this.removeServiceRecord(_arg0); reply.writeNoException(); return true; } case TRANSACTION_allowIncomingProfileConnect: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } boolean _arg1; _arg1 = (0!=data.readInt()); boolean _result = this.allowIncomingProfileConnect(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_connectHeadset: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.connectHeadset(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_disconnectHeadset: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.disconnectHeadset(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_notifyIncomingConnection: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); boolean _result = this.notifyIncomingConnection(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_connectInputDevice: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } boolean _result = this.connectInputDevice(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_disconnectInputDevice: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } boolean _result = this.disconnectInputDevice(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_getConnectedInputDevices: { data.enforceInterface(DESCRIPTOR); java.util.List<android.bluetooth.BluetoothDevice> _result = this.getConnectedInputDevices(); reply.writeNoException(); reply.writeTypedList(_result); return true; } case TRANSACTION_getInputDevicesMatchingConnectionStates: { data.enforceInterface(DESCRIPTOR); int[] _arg0; _arg0 = data.createIntArray(); java.util.List<android.bluetooth.BluetoothDevice> _result = this.getInputDevicesMatchingConnectionStates(_arg0); reply.writeNoException(); reply.writeTypedList(_result); return true; } case TRANSACTION_getInputDeviceConnectionState: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } int _result = this.getInputDeviceConnectionState(_arg0); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_setInputDevicePriority: { 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.setInputDevicePriority(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_getInputDevicePriority: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } int _result = this.getInputDevicePriority(_arg0); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_isTetheringOn: { data.enforceInterface(DESCRIPTOR); boolean _result = this.isTetheringOn(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_setBluetoothTethering: { data.enforceInterface(DESCRIPTOR); boolean _arg0; _arg0 = (0!=data.readInt()); this.setBluetoothTethering(_arg0); reply.writeNoException(); return true; } case TRANSACTION_getPanDeviceConnectionState: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } int _result = this.getPanDeviceConnectionState(_arg0); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_getConnectedPanDevices: { data.enforceInterface(DESCRIPTOR); java.util.List<android.bluetooth.BluetoothDevice> _result = this.getConnectedPanDevices(); reply.writeNoException(); reply.writeTypedList(_result); return true; } case TRANSACTION_getPanDevicesMatchingConnectionStates: { data.enforceInterface(DESCRIPTOR); int[] _arg0; _arg0 = data.createIntArray(); java.util.List<android.bluetooth.BluetoothDevice> _result = this.getPanDevicesMatchingConnectionStates(_arg0); reply.writeNoException(); reply.writeTypedList(_result); return true; } case TRANSACTION_connectPanDevice: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } boolean _result = this.connectPanDevice(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_disconnectPanDevice: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } boolean _result = this.disconnectPanDevice(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_registerAppConfiguration: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothHealthAppConfiguration _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothHealthAppConfiguration.CREATOR.createFromParcel(data); } else { _arg0 = null; } android.bluetooth.IBluetoothHealthCallback _arg1; _arg1 = android.bluetooth.IBluetoothHealthCallback.Stub.asInterface(data.readStrongBinder()); boolean _result = this.registerAppConfiguration(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_unregisterAppConfiguration: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothHealthAppConfiguration _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothHealthAppConfiguration.CREATOR.createFromParcel(data); } else { _arg0 = null; } boolean _result = this.unregisterAppConfiguration(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_connectChannelToSource: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } android.bluetooth.BluetoothHealthAppConfiguration _arg1; if ((0!=data.readInt())) { _arg1 = android.bluetooth.BluetoothHealthAppConfiguration.CREATOR.createFromParcel(data); } else { _arg1 = null; } boolean _result = this.connectChannelToSource(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_connectChannelToSink: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } android.bluetooth.BluetoothHealthAppConfiguration _arg1; if ((0!=data.readInt())) { _arg1 = android.bluetooth.BluetoothHealthAppConfiguration.CREATOR.createFromParcel(data); } else { _arg1 = null; } int _arg2; _arg2 = data.readInt(); boolean _result = this.connectChannelToSink(_arg0, _arg1, _arg2); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_disconnectChannel: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } android.bluetooth.BluetoothHealthAppConfiguration _arg1; if ((0!=data.readInt())) { _arg1 = android.bluetooth.BluetoothHealthAppConfiguration.CREATOR.createFromParcel(data); } else { _arg1 = null; } int _arg2; _arg2 = data.readInt(); boolean _result = this.disconnectChannel(_arg0, _arg1, _arg2); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_getMainChannelFd: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } android.bluetooth.BluetoothHealthAppConfiguration _arg1; if ((0!=data.readInt())) { _arg1 = android.bluetooth.BluetoothHealthAppConfiguration.CREATOR.createFromParcel(data); } else { _arg1 = null; } android.os.ParcelFileDescriptor _result = this.getMainChannelFd(_arg0, _arg1); 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_getConnectedHealthDevices: { data.enforceInterface(DESCRIPTOR); java.util.List<android.bluetooth.BluetoothDevice> _result = this.getConnectedHealthDevices(); reply.writeNoException(); reply.writeTypedList(_result); return true; } case TRANSACTION_getHealthDevicesMatchingConnectionStates: { data.enforceInterface(DESCRIPTOR); int[] _arg0; _arg0 = data.createIntArray(); java.util.List<android.bluetooth.BluetoothDevice> _result = this.getHealthDevicesMatchingConnectionStates(_arg0); reply.writeNoException(); reply.writeTypedList(_result); return true; } case TRANSACTION_getHealthDeviceConnectionState: { data.enforceInterface(DESCRIPTOR); android.bluetooth.BluetoothDevice _arg0; if ((0!=data.readInt())) { _arg0 = android.bluetooth.BluetoothDevice.CREATOR.createFromParcel(data); } else { _arg0 = null; } int _result = this.getHealthDeviceConnectionState(_arg0); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_sendConnectionStateChange: { 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(); int _arg2; _arg2 = data.readInt(); int _arg3; _arg3 = data.readInt(); this.sendConnectionStateChange(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); return true; } } return super.onTransact(code, data, reply, flags); } private static class Proxy implements android.bluetooth.IBluetooth { 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 boolean isEnabled() 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_isEnabled, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int getBluetoothState() 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_getBluetoothState, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean enable() 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_enable, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean disable(boolean persistSetting) 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(((persistSetting)?(1):(0))); mRemote.transact(Stub.TRANSACTION_disable, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public java.lang.String getAddress() 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_getAddress, _data, _reply, 0); _reply.readException(); _result = _reply.readString(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public java.lang.String getName() 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_getName, _data, _reply, 0); _reply.readException(); _result = _reply.readString(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean setName(java.lang.String name) 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(name); mRemote.transact(Stub.TRANSACTION_setName, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public android.os.ParcelUuid[] getUuids() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); android.os.ParcelUuid[] _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getUuids, _data, _reply, 0); _reply.readException(); _result = _reply.createTypedArray(android.os.ParcelUuid.CREATOR); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int getScanMode() 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_getScanMode, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean setScanMode(int mode, int duration) 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(mode); _data.writeInt(duration); mRemote.transact(Stub.TRANSACTION_setScanMode, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int getDiscoverableTimeout() 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_getDiscoverableTimeout, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean setDiscoverableTimeout(int timeout) 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(timeout); mRemote.transact(Stub.TRANSACTION_setDiscoverableTimeout, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean startDiscovery() 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_startDiscovery, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean cancelDiscovery() 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_cancelDiscovery, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean isDiscovering() 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_isDiscovering, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public byte[] readOutOfBandData() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); byte[] _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_readOutOfBandData, _data, _reply, 0); _reply.readException(); _result = _reply.createByteArray(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int getAdapterConnectionState() 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_getAdapterConnectionState, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int getProfileConnectionState(int profile) 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(profile); mRemote.transact(Stub.TRANSACTION_getProfileConnectionState, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean changeApplicationBluetoothState(boolean on, android.bluetooth.IBluetoothStateChangeCallback callback, android.os.IBinder b) 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(((on)?(1):(0))); _data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null))); _data.writeStrongBinder(b); mRemote.transact(Stub.TRANSACTION_changeApplicationBluetoothState, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean createBond(java.lang.String address) 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(address); mRemote.transact(Stub.TRANSACTION_createBond, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean createBondOutOfBand(java.lang.String address, byte[] hash, byte[] randomizer) 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(address); _data.writeByteArray(hash); _data.writeByteArray(randomizer); mRemote.transact(Stub.TRANSACTION_createBondOutOfBand, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean cancelBondProcess(java.lang.String address) 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(address); mRemote.transact(Stub.TRANSACTION_cancelBondProcess, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean removeBond(java.lang.String address) 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(address); mRemote.transact(Stub.TRANSACTION_removeBond, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public java.lang.String[] listBonds() 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_listBonds, _data, _reply, 0); _reply.readException(); _result = _reply.createStringArray(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int getBondState(java.lang.String address) 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.writeString(address); mRemote.transact(Stub.TRANSACTION_getBondState, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean setDeviceOutOfBandData(java.lang.String address, byte[] hash, byte[] randomizer) 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(address); _data.writeByteArray(hash); _data.writeByteArray(randomizer); mRemote.transact(Stub.TRANSACTION_setDeviceOutOfBandData, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public java.lang.String getRemoteName(java.lang.String address) 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); _data.writeString(address); mRemote.transact(Stub.TRANSACTION_getRemoteName, _data, _reply, 0); _reply.readException(); _result = _reply.readString(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public java.lang.String getRemoteAlias(java.lang.String address) 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); _data.writeString(address); mRemote.transact(Stub.TRANSACTION_getRemoteAlias, _data, _reply, 0); _reply.readException(); _result = _reply.readString(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean setRemoteAlias(java.lang.String address, java.lang.String name) 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(address); _data.writeString(name); mRemote.transact(Stub.TRANSACTION_setRemoteAlias, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int getRemoteClass(java.lang.String address) 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.writeString(address); mRemote.transact(Stub.TRANSACTION_getRemoteClass, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public android.os.ParcelUuid[] getRemoteUuids(java.lang.String address) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); android.os.ParcelUuid[] _result; try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(address); mRemote.transact(Stub.TRANSACTION_getRemoteUuids, _data, _reply, 0); _reply.readException(); _result = _reply.createTypedArray(android.os.ParcelUuid.CREATOR); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean fetchRemoteUuids(java.lang.String address, android.os.ParcelUuid uuid, android.bluetooth.IBluetoothCallback callback) 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(address); if ((uuid!=null)) { _data.writeInt(1); uuid.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_fetchRemoteUuids, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int getRemoteServiceChannel(java.lang.String address, android.os.ParcelUuid uuid) 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.writeString(address); if ((uuid!=null)) { _data.writeInt(1); uuid.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_getRemoteServiceChannel, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean setPin(java.lang.String address, byte[] pin) 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(address); _data.writeByteArray(pin); mRemote.transact(Stub.TRANSACTION_setPin, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean setPasskey(java.lang.String address, int passkey) 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(address); _data.writeInt(passkey); mRemote.transact(Stub.TRANSACTION_setPasskey, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean setPairingConfirmation(java.lang.String address, boolean confirm) 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(address); _data.writeInt(((confirm)?(1):(0))); mRemote.transact(Stub.TRANSACTION_setPairingConfirmation, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean setRemoteOutOfBandData(java.lang.String addres) 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(addres); mRemote.transact(Stub.TRANSACTION_setRemoteOutOfBandData, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean cancelPairingUserInput(java.lang.String address) 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(address); mRemote.transact(Stub.TRANSACTION_cancelPairingUserInput, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean setTrust(java.lang.String address, boolean value) 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(address); _data.writeInt(((value)?(1):(0))); mRemote.transact(Stub.TRANSACTION_setTrust, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean getTrustState(java.lang.String address) 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(address); mRemote.transact(Stub.TRANSACTION_getTrustState, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean isBluetoothDock(java.lang.String address) 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(address); mRemote.transact(Stub.TRANSACTION_isBluetoothDock, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int addRfcommServiceRecord(java.lang.String serviceName, android.os.ParcelUuid uuid, int channel, android.os.IBinder b) 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.writeString(serviceName); if ((uuid!=null)) { _data.writeInt(1); uuid.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeInt(channel); _data.writeStrongBinder(b); mRemote.transact(Stub.TRANSACTION_addRfcommServiceRecord, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public void removeServiceRecord(int handle) 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(handle); mRemote.transact(Stub.TRANSACTION_removeServiceRecord, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public boolean allowIncomingProfileConnect(android.bluetooth.BluetoothDevice device, boolean value) 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(((value)?(1):(0))); mRemote.transact(Stub.TRANSACTION_allowIncomingProfileConnect, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean connectHeadset(java.lang.String address) 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(address); mRemote.transact(Stub.TRANSACTION_connectHeadset, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean disconnectHeadset(java.lang.String address) 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(address); mRemote.transact(Stub.TRANSACTION_disconnectHeadset, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean notifyIncomingConnection(java.lang.String address) 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(address); mRemote.transact(Stub.TRANSACTION_notifyIncomingConnection, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } // HID profile APIs public boolean connectInputDevice(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_connectInputDevice, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean disconnectInputDevice(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_disconnectInputDevice, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public java.util.List<android.bluetooth.BluetoothDevice> getConnectedInputDevices() 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_getConnectedInputDevices, _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> getInputDevicesMatchingConnectionStates(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_getInputDevicesMatchingConnectionStates, _data, _reply, 0); _reply.readException(); _result = _reply.createTypedArrayList(android.bluetooth.BluetoothDevice.CREATOR); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int getInputDeviceConnectionState(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_getInputDeviceConnectionState, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean setInputDevicePriority(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_setInputDevicePriority, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int getInputDevicePriority(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_getInputDevicePriority, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean isTetheringOn() 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_isTetheringOn, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public void setBluetoothTethering(boolean value) 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(((value)?(1):(0))); mRemote.transact(Stub.TRANSACTION_setBluetoothTethering, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public int getPanDeviceConnectionState(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_getPanDeviceConnectionState, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public java.util.List<android.bluetooth.BluetoothDevice> getConnectedPanDevices() 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_getConnectedPanDevices, _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> getPanDevicesMatchingConnectionStates(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_getPanDevicesMatchingConnectionStates, _data, _reply, 0); _reply.readException(); _result = _reply.createTypedArrayList(android.bluetooth.BluetoothDevice.CREATOR); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean connectPanDevice(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_connectPanDevice, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean disconnectPanDevice(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_disconnectPanDevice, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } // HDP profile APIs public boolean registerAppConfiguration(android.bluetooth.BluetoothHealthAppConfiguration config, android.bluetooth.IBluetoothHealthCallback callback) 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 ((config!=null)) { _data.writeInt(1); config.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_registerAppConfiguration, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean unregisterAppConfiguration(android.bluetooth.BluetoothHealthAppConfiguration config) 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 ((config!=null)) { _data.writeInt(1); config.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_unregisterAppConfiguration, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean connectChannelToSource(android.bluetooth.BluetoothDevice device, android.bluetooth.BluetoothHealthAppConfiguration config) 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); } if ((config!=null)) { _data.writeInt(1); config.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_connectChannelToSource, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean connectChannelToSink(android.bluetooth.BluetoothDevice device, android.bluetooth.BluetoothHealthAppConfiguration config, int channelType) 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); } if ((config!=null)) { _data.writeInt(1); config.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeInt(channelType); mRemote.transact(Stub.TRANSACTION_connectChannelToSink, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean disconnectChannel(android.bluetooth.BluetoothDevice device, android.bluetooth.BluetoothHealthAppConfiguration config, int id) 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); } if ((config!=null)) { _data.writeInt(1); config.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeInt(id); mRemote.transact(Stub.TRANSACTION_disconnectChannel, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public android.os.ParcelFileDescriptor getMainChannelFd(android.bluetooth.BluetoothDevice device, android.bluetooth.BluetoothHealthAppConfiguration config) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); android.os.ParcelFileDescriptor _result; try { _data.writeInterfaceToken(DESCRIPTOR); if ((device!=null)) { _data.writeInt(1); device.writeToParcel(_data, 0); } else { _data.writeInt(0); } if ((config!=null)) { _data.writeInt(1); config.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_getMainChannelFd, _data, _reply, 0); _reply.readException(); if ((0!=_reply.readInt())) { _result = android.os.ParcelFileDescriptor.CREATOR.createFromParcel(_reply); } else { _result = null; } } finally { _reply.recycle(); _data.recycle(); } return _result; } public java.util.List<android.bluetooth.BluetoothDevice> getConnectedHealthDevices() 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_getConnectedHealthDevices, _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> getHealthDevicesMatchingConnectionStates(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_getHealthDevicesMatchingConnectionStates, _data, _reply, 0); _reply.readException(); _result = _reply.createTypedArrayList(android.bluetooth.BluetoothDevice.CREATOR); } finally { _reply.recycle(); _data.recycle(); } return _result; } public int getHealthDeviceConnectionState(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_getHealthDeviceConnectionState, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public void sendConnectionStateChange(android.bluetooth.BluetoothDevice device, int profile, int state, int prevState) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); if ((device!=null)) { _data.writeInt(1); device.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeInt(profile); _data.writeInt(state); _data.writeInt(prevState); mRemote.transact(Stub.TRANSACTION_sendConnectionStateChange, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } } static final int TRANSACTION_isEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_getBluetoothState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_enable = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_disable = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_getAddress = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); static final int TRANSACTION_getName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); static final int TRANSACTION_setName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); static final int TRANSACTION_getUuids = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); static final int TRANSACTION_getScanMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8); static final int TRANSACTION_setScanMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9); static final int TRANSACTION_getDiscoverableTimeout = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10); static final int TRANSACTION_setDiscoverableTimeout = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11); static final int TRANSACTION_startDiscovery = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12); static final int TRANSACTION_cancelDiscovery = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13); static final int TRANSACTION_isDiscovering = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14); static final int TRANSACTION_readOutOfBandData = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15); static final int TRANSACTION_getAdapterConnectionState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16); static final int TRANSACTION_getProfileConnectionState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 17); static final int TRANSACTION_changeApplicationBluetoothState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 18); static final int TRANSACTION_createBond = (android.os.IBinder.FIRST_CALL_TRANSACTION + 19); static final int TRANSACTION_createBondOutOfBand = (android.os.IBinder.FIRST_CALL_TRANSACTION + 20); static final int TRANSACTION_cancelBondProcess = (android.os.IBinder.FIRST_CALL_TRANSACTION + 21); static final int TRANSACTION_removeBond = (android.os.IBinder.FIRST_CALL_TRANSACTION + 22); static final int TRANSACTION_listBonds = (android.os.IBinder.FIRST_CALL_TRANSACTION + 23); static final int TRANSACTION_getBondState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 24); static final int TRANSACTION_setDeviceOutOfBandData = (android.os.IBinder.FIRST_CALL_TRANSACTION + 25); static final int TRANSACTION_getRemoteName = (android.os.IBinder.FIRST_CALL_TRANSACTION + 26); static final int TRANSACTION_getRemoteAlias = (android.os.IBinder.FIRST_CALL_TRANSACTION + 27); static final int TRANSACTION_setRemoteAlias = (android.os.IBinder.FIRST_CALL_TRANSACTION + 28); static final int TRANSACTION_getRemoteClass = (android.os.IBinder.FIRST_CALL_TRANSACTION + 29); static final int TRANSACTION_getRemoteUuids = (android.os.IBinder.FIRST_CALL_TRANSACTION + 30); static final int TRANSACTION_fetchRemoteUuids = (android.os.IBinder.FIRST_CALL_TRANSACTION + 31); static final int TRANSACTION_getRemoteServiceChannel = (android.os.IBinder.FIRST_CALL_TRANSACTION + 32); static final int TRANSACTION_setPin = (android.os.IBinder.FIRST_CALL_TRANSACTION + 33); static final int TRANSACTION_setPasskey = (android.os.IBinder.FIRST_CALL_TRANSACTION + 34); static final int TRANSACTION_setPairingConfirmation = (android.os.IBinder.FIRST_CALL_TRANSACTION + 35); static final int TRANSACTION_setRemoteOutOfBandData = (android.os.IBinder.FIRST_CALL_TRANSACTION + 36); static final int TRANSACTION_cancelPairingUserInput = (android.os.IBinder.FIRST_CALL_TRANSACTION + 37); static final int TRANSACTION_setTrust = (android.os.IBinder.FIRST_CALL_TRANSACTION + 38); static final int TRANSACTION_getTrustState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 39); static final int TRANSACTION_isBluetoothDock = (android.os.IBinder.FIRST_CALL_TRANSACTION + 40); static final int TRANSACTION_addRfcommServiceRecord = (android.os.IBinder.FIRST_CALL_TRANSACTION + 41); static final int TRANSACTION_removeServiceRecord = (android.os.IBinder.FIRST_CALL_TRANSACTION + 42); static final int TRANSACTION_allowIncomingProfileConnect = (android.os.IBinder.FIRST_CALL_TRANSACTION + 43); static final int TRANSACTION_connectHeadset = (android.os.IBinder.FIRST_CALL_TRANSACTION + 44); static final int TRANSACTION_disconnectHeadset = (android.os.IBinder.FIRST_CALL_TRANSACTION + 45); static final int TRANSACTION_notifyIncomingConnection = (android.os.IBinder.FIRST_CALL_TRANSACTION + 46); static final int TRANSACTION_connectInputDevice = (android.os.IBinder.FIRST_CALL_TRANSACTION + 47); static final int TRANSACTION_disconnectInputDevice = (android.os.IBinder.FIRST_CALL_TRANSACTION + 48); static final int TRANSACTION_getConnectedInputDevices = (android.os.IBinder.FIRST_CALL_TRANSACTION + 49); static final int TRANSACTION_getInputDevicesMatchingConnectionStates = (android.os.IBinder.FIRST_CALL_TRANSACTION + 50); static final int TRANSACTION_getInputDeviceConnectionState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 51); static final int TRANSACTION_setInputDevicePriority = (android.os.IBinder.FIRST_CALL_TRANSACTION + 52); static final int TRANSACTION_getInputDevicePriority = (android.os.IBinder.FIRST_CALL_TRANSACTION + 53); static final int TRANSACTION_isTetheringOn = (android.os.IBinder.FIRST_CALL_TRANSACTION + 54); static final int TRANSACTION_setBluetoothTethering = (android.os.IBinder.FIRST_CALL_TRANSACTION + 55); static final int TRANSACTION_getPanDeviceConnectionState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 56); static final int TRANSACTION_getConnectedPanDevices = (android.os.IBinder.FIRST_CALL_TRANSACTION + 57); static final int TRANSACTION_getPanDevicesMatchingConnectionStates = (android.os.IBinder.FIRST_CALL_TRANSACTION + 58); static final int TRANSACTION_connectPanDevice = (android.os.IBinder.FIRST_CALL_TRANSACTION + 59); static final int TRANSACTION_disconnectPanDevice = (android.os.IBinder.FIRST_CALL_TRANSACTION + 60); static final int TRANSACTION_registerAppConfiguration = (android.os.IBinder.FIRST_CALL_TRANSACTION + 61); static final int TRANSACTION_unregisterAppConfiguration = (android.os.IBinder.FIRST_CALL_TRANSACTION + 62); static final int TRANSACTION_connectChannelToSource = (android.os.IBinder.FIRST_CALL_TRANSACTION + 63); static final int TRANSACTION_connectChannelToSink = (android.os.IBinder.FIRST_CALL_TRANSACTION + 64); static final int TRANSACTION_disconnectChannel = (android.os.IBinder.FIRST_CALL_TRANSACTION + 65); static final int TRANSACTION_getMainChannelFd = (android.os.IBinder.FIRST_CALL_TRANSACTION + 66); static final int TRANSACTION_getConnectedHealthDevices = (android.os.IBinder.FIRST_CALL_TRANSACTION + 67); static final int TRANSACTION_getHealthDevicesMatchingConnectionStates = (android.os.IBinder.FIRST_CALL_TRANSACTION + 68); static final int TRANSACTION_getHealthDeviceConnectionState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 69); static final int TRANSACTION_sendConnectionStateChange = (android.os.IBinder.FIRST_CALL_TRANSACTION + 70); } public boolean isEnabled() throws android.os.RemoteException; public int getBluetoothState() throws android.os.RemoteException; public boolean enable() throws android.os.RemoteException; public boolean disable(boolean persistSetting) throws android.os.RemoteException; public java.lang.String getAddress() throws android.os.RemoteException; public java.lang.String getName() throws android.os.RemoteException; public boolean setName(java.lang.String name) throws android.os.RemoteException; public android.os.ParcelUuid[] getUuids() throws android.os.RemoteException; public int getScanMode() throws android.os.RemoteException; public boolean setScanMode(int mode, int duration) throws android.os.RemoteException; public int getDiscoverableTimeout() throws android.os.RemoteException; public boolean setDiscoverableTimeout(int timeout) throws android.os.RemoteException; public boolean startDiscovery() throws android.os.RemoteException; public boolean cancelDiscovery() throws android.os.RemoteException; public boolean isDiscovering() throws android.os.RemoteException; public byte[] readOutOfBandData() throws android.os.RemoteException; public int getAdapterConnectionState() throws android.os.RemoteException; public int getProfileConnectionState(int profile) throws android.os.RemoteException; public boolean changeApplicationBluetoothState(boolean on, android.bluetooth.IBluetoothStateChangeCallback callback, android.os.IBinder b) throws android.os.RemoteException; public boolean createBond(java.lang.String address) throws android.os.RemoteException; public boolean createBondOutOfBand(java.lang.String address, byte[] hash, byte[] randomizer) throws android.os.RemoteException; public boolean cancelBondProcess(java.lang.String address) throws android.os.RemoteException; public boolean removeBond(java.lang.String address) throws android.os.RemoteException; public java.lang.String[] listBonds() throws android.os.RemoteException; public int getBondState(java.lang.String address) throws android.os.RemoteException; public boolean setDeviceOutOfBandData(java.lang.String address, byte[] hash, byte[] randomizer) throws android.os.RemoteException; public java.lang.String getRemoteName(java.lang.String address) throws android.os.RemoteException; public java.lang.String getRemoteAlias(java.lang.String address) throws android.os.RemoteException; public boolean setRemoteAlias(java.lang.String address, java.lang.String name) throws android.os.RemoteException; public int getRemoteClass(java.lang.String address) throws android.os.RemoteException; public android.os.ParcelUuid[] getRemoteUuids(java.lang.String address) throws android.os.RemoteException; public boolean fetchRemoteUuids(java.lang.String address, android.os.ParcelUuid uuid, android.bluetooth.IBluetoothCallback callback) throws android.os.RemoteException; public int getRemoteServiceChannel(java.lang.String address, android.os.ParcelUuid uuid) throws android.os.RemoteException; public boolean setPin(java.lang.String address, byte[] pin) throws android.os.RemoteException; public boolean setPasskey(java.lang.String address, int passkey) throws android.os.RemoteException; public boolean setPairingConfirmation(java.lang.String address, boolean confirm) throws android.os.RemoteException; public boolean setRemoteOutOfBandData(java.lang.String addres) throws android.os.RemoteException; public boolean cancelPairingUserInput(java.lang.String address) throws android.os.RemoteException; public boolean setTrust(java.lang.String address, boolean value) throws android.os.RemoteException; public boolean getTrustState(java.lang.String address) throws android.os.RemoteException; public boolean isBluetoothDock(java.lang.String address) throws android.os.RemoteException; public int addRfcommServiceRecord(java.lang.String serviceName, android.os.ParcelUuid uuid, int channel, android.os.IBinder b) throws android.os.RemoteException; public void removeServiceRecord(int handle) throws android.os.RemoteException; public boolean allowIncomingProfileConnect(android.bluetooth.BluetoothDevice device, boolean value) throws android.os.RemoteException; public boolean connectHeadset(java.lang.String address) throws android.os.RemoteException; public boolean disconnectHeadset(java.lang.String address) throws android.os.RemoteException; public boolean notifyIncomingConnection(java.lang.String address) throws android.os.RemoteException; // HID profile APIs public boolean connectInputDevice(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; public boolean disconnectInputDevice(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; public java.util.List<android.bluetooth.BluetoothDevice> getConnectedInputDevices() throws android.os.RemoteException; public java.util.List<android.bluetooth.BluetoothDevice> getInputDevicesMatchingConnectionStates(int[] states) throws android.os.RemoteException; public int getInputDeviceConnectionState(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; public boolean setInputDevicePriority(android.bluetooth.BluetoothDevice device, int priority) throws android.os.RemoteException; public int getInputDevicePriority(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; public boolean isTetheringOn() throws android.os.RemoteException; public void setBluetoothTethering(boolean value) throws android.os.RemoteException; public int getPanDeviceConnectionState(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; public java.util.List<android.bluetooth.BluetoothDevice> getConnectedPanDevices() throws android.os.RemoteException; public java.util.List<android.bluetooth.BluetoothDevice> getPanDevicesMatchingConnectionStates(int[] states) throws android.os.RemoteException; public boolean connectPanDevice(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; public boolean disconnectPanDevice(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; // HDP profile APIs public boolean registerAppConfiguration(android.bluetooth.BluetoothHealthAppConfiguration config, android.bluetooth.IBluetoothHealthCallback callback) throws android.os.RemoteException; public boolean unregisterAppConfiguration(android.bluetooth.BluetoothHealthAppConfiguration config) throws android.os.RemoteException; public boolean connectChannelToSource(android.bluetooth.BluetoothDevice device, android.bluetooth.BluetoothHealthAppConfiguration config) throws android.os.RemoteException; public boolean connectChannelToSink(android.bluetooth.BluetoothDevice device, android.bluetooth.BluetoothHealthAppConfiguration config, int channelType) throws android.os.RemoteException; public boolean disconnectChannel(android.bluetooth.BluetoothDevice device, android.bluetooth.BluetoothHealthAppConfiguration config, int id) throws android.os.RemoteException; public android.os.ParcelFileDescriptor getMainChannelFd(android.bluetooth.BluetoothDevice device, android.bluetooth.BluetoothHealthAppConfiguration config) throws android.os.RemoteException; public java.util.List<android.bluetooth.BluetoothDevice> getConnectedHealthDevices() throws android.os.RemoteException; public java.util.List<android.bluetooth.BluetoothDevice> getHealthDevicesMatchingConnectionStates(int[] states) throws android.os.RemoteException; public int getHealthDeviceConnectionState(android.bluetooth.BluetoothDevice device) throws android.os.RemoteException; public void sendConnectionStateChange(android.bluetooth.BluetoothDevice device, int profile, int state, int prevState) throws android.os.RemoteException; }