Merge "[Audiosharing] Check profile readiness before adding source" into main

This commit is contained in:
Yiyi Shen
2024-12-11 08:04:04 +00:00
committed by Android (Google) Code Review
2 changed files with 42 additions and 4 deletions

View File

@@ -308,6 +308,9 @@ public class BluetoothDevicePairingDetailBaseTest {
shadowOf(Looper.getMainLooper()).idle();
when(mCachedBluetoothDevice.isConnected()).thenReturn(true);
when(mCachedBluetoothDevice.isConnectedLeAudioDevice()).thenReturn(true);
when(mCachedBluetoothDevice.isConnectedLeAudioBroadcastAssistantDevice()).thenReturn(true);
when(mCachedBluetoothDevice.isConnectedVolumeControlDevice()).thenReturn(true);
mFragment.onProfileConnectionStateChanged(mCachedBluetoothDevice,
BluetoothAdapter.STATE_CONNECTED, BluetoothProfile.LE_AUDIO_BROADCAST_ASSISTANT);