Home
last modified time | relevance | path

Searched refs:cachedDevice2 (Results 1 – 3 of 3) sorted by relevance

/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
H A DCachedBluetoothDeviceManagerTest.java151 assertThat(cachedDevice2).isNotNull(); in addDevice_validCachedDevices_devicesAdded()
155 assertThat(devices).contains(cachedDevice2); in addDevice_validCachedDevices_devicesAdded()
225 assertThat(cachedDevice2).isNotNull(); in addDevice_addDuplicatedDevice_duplicateDeviceShouldNotAdded()
283 assertThat(cachedDevice2).isNotNull(); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
316 cachedDevice1.setSubDevice(cachedDevice2); in clearNonBondedDevices_nonBondedSubDevice()
334 cachedDevice2.setHearingAidInfo( in onDeviceUnpaired_unpairHearingAidMainDevice()
336 cachedDevice1.setSubDevice(cachedDevice2); in onDeviceUnpaired_unpairHearingAidMainDevice()
351 cachedDevice1.setSubDevice(cachedDevice2); in onDeviceUnpaired_unpairSubDevice()
531 cachedDevice2.setGroupId(1); in onDeviceUnpaired_unpairCsipMainDevice()
554 cachedDevice2.setGroupId(1); in onDeviceUnpaired_unpairCsipSubDevice()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
H A DBluetoothTileTest.kt167 val cachedDevice2 = mock<CachedBluetoothDevice>() regex
169 whenever(cachedDevice2.device).thenReturn(btDevice)
171 whenever(cachedDevice2.minBatteryLevelWithMemberDevices).thenReturn(25)
172 addConnectedDevice(cachedDevice2)
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
H A DLocalMediaManagerTest.java562 final CachedBluetoothDevice cachedDevice2 = mock(CachedBluetoothDevice.class); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice() local
569 when(device2.getCachedDevice()).thenReturn(cachedDevice2); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice()
571 when(cachedDevice2.getDevice()).thenReturn(bluetoothDevice2); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice()
573 when(cachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(true); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice()
590 final CachedBluetoothDevice cachedDevice2 = mock(CachedBluetoothDevice.class); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice() local
597 when(device2.getCachedDevice()).thenReturn(cachedDevice2); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()
599 when(cachedDevice2.getDevice()).thenReturn(bluetoothDevice2); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()
601 when(cachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(false); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()