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

Skip to content
Commit a5e75bcd authored by Jack He's avatar Jack He
Browse files

PhonePolicy: Gate CONNECT_OTHER_PROFILE per device

* When A2DP or HFP is connected for a device, PhonePolicy will try to
  connect to other profiles such as HFP, A2DP and PAN in case the remote
  device did not connect these profiles themselves.
* De-duping this effort by checking if PhonePolicy handler already has
  the CONNECT_OTHER_PROFILES message  works for a single device but
  won't work when multiple devices are connecting at the same time
  from the remote side. Only the first connected device's connection
  request with be honored and other devices' connection request might be
  dropped if the first device's connection request is still in progress
* Therefore, we need to create a HashSet to gate this message per
  BluetoothDevice

Bug: 79938868
Test: runtest -j40 bluetooth
Change-Id: I3865404c16b0243e610c8a94e3d32459107581a8
parent 4db84e96
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