OSDN Git Service

Final IBluetoothHearingAid.aidl improvements
authorJakub Pawlowski <jpawlowski@google.com>
Wed, 14 Feb 2018 22:04:56 +0000 (14:04 -0800)
committerJakub Pawlowski <jpawlowski@google.com>
Wed, 14 Feb 2018 22:16:03 +0000 (14:16 -0800)
Use HiSyncId instead of CustomerId for unique hearing aid id, use proper
data type for it (64bit).
Make setVolume, adjustVolume return void, like for AVRCP.

Bug: 69623109
Test: compliance with the spec
Change-Id: I5fd51514793052d4ee2c3f9029eb75491145cc25

binder/android/bluetooth/IBluetoothHearingAid.aidl

index 778c4dc..891a7c0 100644 (file)
@@ -32,10 +32,12 @@ interface IBluetoothHearingAid {
     int getConnectionState(in BluetoothDevice device);
     boolean setPriority(in BluetoothDevice device, int priority);
     int getPriority(in BluetoothDevice device);
-    boolean adjustVolume(int direction);
-    boolean setVolume(int volume);
+    void adjustVolume(int direction);
+    void setVolume(int volume);
     int getVolume();
-    int getClientId(in BluetoothDevice device);
+
+    const int HI_SYNC_ID_INVALID = 0;
+    long getHiSyncId(in BluetoothDevice device);
 
     const int SIDE_LEFT = 0;
     const int SIDE_RIGHT = 1;