Searched refs:cachedDevice2 (Results 1 – 4 of 4) sorted by relevance
150 CachedBluetoothDevice cachedDevice2 = mCachedDeviceManager.addDevice(mDevice2); in addDevice_validCachedDevices_devicesAdded() local151 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() local171 assertThat(cachedDevice1.getSubDevice()).isEqualTo(cachedDevice2); in addDevice_sameHiSyncId_validSubDevice()182 CachedBluetoothDevice cachedDevice2 = mCachedDeviceManager.addDevice(mDevice2); in addDevice_differentHiSyncId_validSubDevice() local195 CachedBluetoothDevice cachedDevice2 = mCachedDeviceManager.addDevice(mDevice2); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded() local199 assertThat(devices).doesNotContain(cachedDevice2); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded()210 CachedBluetoothDevice cachedDevice2 = mCachedDeviceManager.addDevice(mDevice2); in addDevice_differentHiSyncId_validCachedDevices_bothAdded() local[all …]
56 @Mock private lateinit var cachedDevice2: CachedBluetoothDevice in <lambda>() variable in com.android.systemui.bluetooth.qsdialog.DeviceItemInteractorTest99 `when`(deviceItem2.cachedBluetoothDevice).thenReturn(cachedDevice2) in <lambda>()102 `when`(cachedDevice2.device).thenReturn(device2) in <lambda>()104 .thenReturn(listOf(cachedDevice1, cachedDevice2)) in <lambda>()
561 final CachedBluetoothDevice cachedDevice2 = mock(CachedBluetoothDevice.class); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice() local568 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() local596 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()
176 val cachedDevice2 = mock<CachedBluetoothDevice>() in testSecondaryLabel_whenBatteryMetadataUnavailable_isBluetoothBatteryLevelState() constant178 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()