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

Commit eaa7253d authored by Eric Laurent's avatar Eric Laurent
Browse files

AudioDeviceInventory: improve BT device switch time

Add an argument to AudioSystem.setDeviceConnectionState()
to indicate that a device disconnection is part of a disconnect/connect
sequence corresponding to a switch betwen two devices of the same type
(same profile for Bluetooth devices).
This is currently only used for Bluetooth devices.
This tells the audio policy manager that some of the rerouting operations
that normally happen when a device is disconnected can be skipped.

Flag: com.android.media.audio.optimize_bt_device_switch
Bug: 373867402
Test: Bluetooth audio use cases regression
Change-Id: I7848fd541bf4baa529907426034c0dc10ced3773
parent 079754df
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