Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65589121 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

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
parent f2298a1c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -30,8 +30,8 @@ interface IBluetoothHearingAid {
    List<BluetoothDevice> getConnectedDevices();
    List<BluetoothDevice> 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<BluetoothDevice> getActiveDevices();
    boolean setPriority(in BluetoothDevice device, int priority);
    int getPriority(in BluetoothDevice device);
    void adjustVolume(int direction);