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

Commit 3a56c287 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 8146528 from 8d4dce79 to tm-release

Change-Id: I1640ae4595542f68bc03ac5d4980ce3bf8028fb2
parents 07e29e3e 8d4dce79
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -795,7 +795,8 @@ public class BluetoothRouteManager extends StateMachine {

        if (bluetoothLeAudio != null) {
            if (mDeviceManager.isLeAudioCommunicationDevice()) {
                for (BluetoothDevice device : bluetoothLeAudio.getActiveDevices()) {
                for (BluetoothDevice device : bluetoothAdapter.getActiveDevices(
                        BluetoothProfile.LE_AUDIO)) {
                    if (device != null) {
                        leAudioActiveDevice = device;
                        activeDevices++;
+2 −1
Original line number Diff line number Diff line
@@ -423,7 +423,8 @@ public class BluetoothDeviceManagerTest extends TelecomTestCase {
        verify(mAdapter, never()).setActiveDevice(nullable(BluetoothDevice.class),
                eq(BluetoothAdapter.ACTIVE_DEVICE_PHONE_CALL));

        when(mBluetoothLeAudio.getActiveDevices()).thenReturn(Arrays.asList(device5, device6));
        when(mAdapter.getActiveDevices(eq(BluetoothProfile.LE_AUDIO)))
                .thenReturn(Arrays.asList(device5, device6));

        receiverUnderTest.onReceive(mContext,
                buildConnectionActionIntent(BluetoothHeadset.STATE_DISCONNECTED, device5,
+1 −1
Original line number Diff line number Diff line
@@ -207,7 +207,7 @@ public class BluetoothRouteManagerTest extends TelecomTestCase {
                .thenReturn(Arrays.asList(hearingAidDevices));
        when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.HEARING_AID)))
                .thenReturn(Arrays.asList(hearingAidActiveDevice, null));
        when(mBluetoothLeAudio.getActiveDevices())
        when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.LE_AUDIO)))
                .thenReturn(Arrays.asList(leAudioDevice, null));
    }

+1 −1
Original line number Diff line number Diff line
@@ -315,7 +315,7 @@ public class BluetoothRouteTransitionTests extends TelecomTestCase {
            if (mParams.hearingAidBtDevices.contains(mParams.messageDevice)) {
                when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.HEARING_AID)))
                    .thenReturn(Arrays.asList(null, null));
                when(mBluetoothLeAudio.getActiveDevices())
                when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.LE_AUDIO)))
                    .thenReturn(mParams.leAudioDevices.stream()
                       .filter(device -> device != mParams.messageDevice)
                       .collect(Collectors.toList()));