OSDN Git Service

Hearing Aid: change get/set active device (1/3)
authorHansong Zhang <hsz@google.com>
Wed, 28 Mar 2018 23:43:21 +0000 (16:43 -0700)
committerHansong Zhang <hsz@google.com>
Thu, 29 Mar 2018 23:33:15 +0000 (16:33 -0700)
commit8618b30c9907e89d06dee51b532667e40ece3a72
treebc243de10ee62bacd86060d3cc2d24fde880d029
parent4c3b0b9e4b6111a125434034e5485a7b2e177734
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
binder/android/bluetooth/IBluetoothHearingAid.aidl