Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManagerTest.java150 CachedBluetoothDevice cachedDevice2 = mCachedDeviceManager.addDevice(mDevice2); in addDevice_validCachedDevices_devicesAdded() local
151 assertThat(cachedDevice2).isNotNull(); in addDevice_validCachedDevices_devicesAdded()
155 assertThat(devices).contains(cachedDevice2); in addDevice_validCachedDevices_devicesAdded()
158 assertThat(mCachedDeviceManager.findDevice(mDevice2)).isEqualTo(cachedDevice2); in addDevice_validCachedDevices_devicesAdded()
169 CachedBluetoothDevice cachedDevice2 = mCachedDeviceManager.addDevice(mDevice2); in addDevice_sameHiSyncId_validSubDevice() local
171 assertThat(cachedDevice1.getSubDevice()).isEqualTo(cachedDevice2); in addDevice_sameHiSyncId_validSubDevice()
182 CachedBluetoothDevice cachedDevice2 = mCachedDeviceManager.addDevice(mDevice2); in addDevice_differentHiSyncId_validSubDevice() local
195 CachedBluetoothDevice cachedDevice2 = mCachedDeviceManager.addDevice(mDevice2); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded() local
199 assertThat(devices).doesNotContain(cachedDevice2); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded()
210 CachedBluetoothDevice cachedDevice2 = mCachedDeviceManager.addDevice(mDevice2); in addDevice_differentHiSyncId_validCachedDevices_bothAdded() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bluetooth/qsdialog/
DDeviceItemInteractorTest.kt56 @Mock private lateinit var cachedDevice2: CachedBluetoothDevice in <lambda>() variable in com.android.systemui.bluetooth.qsdialog.DeviceItemInteractorTest
99 `when`(deviceItem2.cachedBluetoothDevice).thenReturn(cachedDevice2) in <lambda>()
102 `when`(cachedDevice2.device).thenReturn(device2) in <lambda>()
104 .thenReturn(listOf(cachedDevice1, cachedDevice2)) in <lambda>()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DLocalMediaManagerTest.java561 final CachedBluetoothDevice cachedDevice2 = mock(CachedBluetoothDevice.class); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice() local
568 when(device2.getCachedDevice()).thenReturn(cachedDevice2); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice()
570 when(cachedDevice2.getDevice()).thenReturn(bluetoothDevice2); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice()
572 when(cachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(true); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice()
589 final CachedBluetoothDevice cachedDevice2 = mock(CachedBluetoothDevice.class); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice() local
596 when(device2.getCachedDevice()).thenReturn(cachedDevice2); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()
598 when(cachedDevice2.getDevice()).thenReturn(bluetoothDevice2); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()
600 when(cachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(false); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DBluetoothTileTest.kt176 val cachedDevice2 = mock<CachedBluetoothDevice>() in testSecondaryLabel_whenBatteryMetadataUnavailable_isBluetoothBatteryLevelState() constant
178 whenever(cachedDevice2.device).thenReturn(btDevice) in testSecondaryLabel_whenBatteryMetadataUnavailable_isBluetoothBatteryLevelState()
180 whenever(cachedDevice2.minBatteryLevelWithMemberDevices).thenReturn(25) in testSecondaryLabel_whenBatteryMetadataUnavailable_isBluetoothBatteryLevelState()
181 addConnectedDevice(cachedDevice2) in testSecondaryLabel_whenBatteryMetadataUnavailable_isBluetoothBatteryLevelState()