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

Commit 15cd8b09 authored by Jack He's avatar Jack He
Browse files

Add intent handler for HF battery indicator (2/2)

* Modify HeadsetStateMachine to send integer indicator id and value
* Add handler for BluetoothHeadset.ACTION_HF_INDICATORS_VALUE_CHANGED
* Process indicator #2, Battery Level indicator
* Only works with HFP 1.7+ device
* Add unit test for onHfIndicatorValueChanged()
* Change RemoteDevices.mDevices to final as it should never be
  re-assigned
* Move construction of RemoteDevices in AdapterService onCreate() to
  guarantee that mReceiver in RemoteDevices is registered when
  mRemoteDevices is not null in AdapterService

Bug: 35874078
Test: make, PTS test, unit tests
runtest -c com.android.bluetooth.btservice.RemoteDevicesTest bluetooth
Change-Id: I9c37f92a9071a5f3ee288612daa0ec8d7f2fde8c
Merged-In: I9c37f92a9071a5f3ee288612daa0ec8d7f2fde8c

(cherry picked from commit 0b319f1d)
parent e97b1205
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment