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

Commit 56a457bd authored by Hansong Zhang's avatar Hansong Zhang
Browse files

Hearing Aid: Add API for active device

Add setActiveDevice() and isActiveDevice() as it will be used in
Settings

Bug: 69623109
Test: compilation and instrumentation
Change-Id: Ifc92bab2306ed78cb6d203c5e1b0a5887730d24f
(cherry picked from commit a68d747b4e0c0b47c755a86fd9dd94b390205333)
parent 889fc366
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -30,6 +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 setPriority(in BluetoothDevice device, int priority);
    int getPriority(in BluetoothDevice device);
    void adjustVolume(int direction);