From: Hansong Zhang Date: Wed, 28 Mar 2018 23:43:21 +0000 (-0700) Subject: Hearing Aid: change get/set active device (1/3) X-Git-Tag: android-x86-9.0-r1~98^2~6^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=8d5f67935053e76958ff6ddd773b5e8484ea802f;p=android-x86%2Fsystem-bt.git Hearing Aid: change get/set active device (1/3) * setActiveDevice() returns false in error case, e.g. when the device is not connected * add getActiveDevices() instead of isActiveDevice(), which returns a list that must have two elements: left and right, or empty list on error Test: manual Bug: 69623109 Change-Id: I6f872dd88422e9d7e5187603d3ad33628726e1ca (cherry picked from commit 8618b30c9907e89d06dee51b532667e40ece3a72) --- diff --git a/binder/android/bluetooth/IBluetoothHearingAid.aidl b/binder/android/bluetooth/IBluetoothHearingAid.aidl index 245026722..ad1419229 100644 --- a/binder/android/bluetooth/IBluetoothHearingAid.aidl +++ b/binder/android/bluetooth/IBluetoothHearingAid.aidl @@ -30,8 +30,8 @@ interface IBluetoothHearingAid { List getConnectedDevices(); List getDevicesMatchingConnectionStates(in int[] states); int getConnectionState(in BluetoothDevice device); - void setActiveDevice(in BluetoothDevice device); - boolean isActiveDevice(in BluetoothDevice device); + boolean setActiveDevice(in BluetoothDevice device); + List getActiveDevices(); boolean setPriority(in BluetoothDevice device, int priority); int getPriority(in BluetoothDevice device); void adjustVolume(int direction);