AudioService: BT dual mode support
Add support for mode selection per audio profile for connected
Bluetooth devices.
The modes are retrieved from BluetoothDevice.getPreferredAudioProfiles()
and used to enable or disable a particular device for use by routing
strategies associated to full duplex or playback only operations.
The BT Stack will ensure that the supported modes/profiles for a given dual
mode device are consistent (for instance LE Audio and A2DP cannot be
enabled at the same time for OUTPUT_ONLY mode).
Bug: 265077417
Test: connect dual mode Bluetooth headset and switch profiles
Change-Id: I8d360d47092f13a0fd44a8534dab4dfa54027ef7
5 files changed