diff options
author | Jaikumar Ganesh <jaikumar@google.com> | 2011-04-01 16:33:09 -0700 |
---|---|---|
committer | Jaikumar Ganesh <jaikumar@google.com> | 2011-06-24 11:31:43 -0700 |
commit | 2ea1e85dcb57d17f5782dbafa1d25eb51c630e4b (patch) | |
tree | 490a07dffcd15d712020f52d5e446c2cf58ec929 /core/java/android/bluetooth/IBluetooth.aidl | |
parent | 7096b660548a15938b2c2fcfda7aa41ec16c4a72 (diff) | |
download | frameworks_base-2ea1e85dcb57d17f5782dbafa1d25eb51c630e4b.zip frameworks_base-2ea1e85dcb57d17f5782dbafa1d25eb51c630e4b.tar.gz frameworks_base-2ea1e85dcb57d17f5782dbafa1d25eb51c630e4b.tar.bz2 |
Implement APIs for Bluetooth Health profile.
This first patch implements all the APIs.
The APIs wil be made public soon. The data specification
API will be submited in another patchset.
Change-Id: I2462683b7e07380e2c42474b0036b34d03b4bed1
Diffstat (limited to 'core/java/android/bluetooth/IBluetooth.aidl')
-rw-r--r-- | core/java/android/bluetooth/IBluetooth.aidl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/java/android/bluetooth/IBluetooth.aidl b/core/java/android/bluetooth/IBluetooth.aidl index d25f5d0..28b09b6 100644 --- a/core/java/android/bluetooth/IBluetooth.aidl +++ b/core/java/android/bluetooth/IBluetooth.aidl @@ -18,7 +18,9 @@ package android.bluetooth; import android.bluetooth.IBluetoothCallback; import android.bluetooth.BluetoothDevice; +import android.bluetooth.BluetoothHealthAppConfiguration; import android.os.ParcelUuid; +import android.os.ParcelFileDescriptor; /** * System private API for talking with the Bluetooth service. @@ -98,5 +100,17 @@ interface IBluetooth boolean connectPanDevice(in BluetoothDevice device); boolean disconnectPanDevice(in BluetoothDevice device); + // HDP profile APIs + boolean registerAppConfiguration(in BluetoothHealthAppConfiguration config); + boolean unregisterAppConfiguration(in BluetoothHealthAppConfiguration config); + boolean connectChannelToSource(in BluetoothDevice device, in BluetoothHealthAppConfiguration config); + boolean connectChannelToSink(in BluetoothDevice device, in BluetoothHealthAppConfiguration config, + int channelType); + boolean disconnectChannel(in BluetoothDevice device, in BluetoothHealthAppConfiguration config, in ParcelFileDescriptor fd); + ParcelFileDescriptor getMainChannelFd(in BluetoothDevice device, in BluetoothHealthAppConfiguration config); + List<BluetoothDevice> getConnectedHealthDevices(); + List<BluetoothDevice> getHealthDevicesMatchingConnectionStates(in int[] states); + int getHealthDeviceConnectionState(in BluetoothDevice device); + void sendConnectionStateChange(in BluetoothDevice device, int state, int prevState); } |