AudioService: refactor BT profile management
Remove intent BluetoothAdapter.ACTION_STATE_CHANGED listener in AudioService and only manage BT profiles disconnection via the profile service listener in BtHelper. This removes possible race conditions between a disconnection received via the intent and a connection via the service listener. Also align BT Headset profile management on A2DP and LE Audio profile management in AudioDeviceBroker, AudioDeviceInventory and BtHelper. Process all profile related actions in AudioDeviceBroker message handler for proper serialization. Bug: 289681953 Test: make Change-Id: I7106b7516706c542be1fbdad65067b3b09de6a61
Loading
Please register or sign in to comment