Home
last modified time | relevance | path

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

/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
H A DCachedBluetoothDeviceManagerTest.java124 assertThat(cachedDevice2).isNotNull(); in addDevice_validCachedDevices_devicesAdded()
128 assertThat(devices).contains(cachedDevice2); in addDevice_validCachedDevices_devicesAdded()
172 assertThat(devices).doesNotContain(cachedDevice2); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded()
187 assertThat(devices).contains(cachedDevice2); in addDevice_differentHiSyncId_validCachedDevices_bothAdded()
198 assertThat(cachedDevice2).isNotNull(); in addDevice_addDuplicatedDevice_duplicateDeviceShouldNotAdded()
256 assertThat(cachedDevice2).isNotNull(); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
263 assertThat(devices).contains(cachedDevice2); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
289 cachedDevice1.setSubDevice(cachedDevice2); in clearNonBondedDevices_nonBondedSubDevice()
306 cachedDevice2.setHiSyncId(HISYNCID1); in onDeviceUnpaired_unpairMainDevice()
307 cachedDevice1.setSubDevice(cachedDevice2); in onDeviceUnpaired_unpairMainDevice()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
H A DSavedBluetoothDeviceUpdaterTest.java233 final CachedBluetoothDevice cachedDevice2 = mock(CachedBluetoothDevice.class); in forceUpdate_deviceNotContain_removePreference() local
237 when(cachedDevice2.getDevice()).thenReturn(device2); in forceUpdate_deviceNotContain_removePreference()
238 when(cachedDevice2.getAddress()).thenReturn("04:52:C7:0B:D8:3S"); in forceUpdate_deviceNotContain_removePreference()
239 when(mDeviceManager.findDevice(device2)).thenReturn(cachedDevice2); in forceUpdate_deviceNotContain_removePreference()
249 verify(mBluetoothDeviceUpdater).removePreference(cachedDevice2); in forceUpdate_deviceNotContain_removePreference()
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
H A DLocalMediaManagerTest.java741 final CachedBluetoothDevice cachedDevice2 = mock(CachedBluetoothDevice.class); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice() local
748 when(device2.getCachedDevice()).thenReturn(cachedDevice2); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice()
750 when(cachedDevice2.getDevice()).thenReturn(bluetoothDevice2); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice()
752 when(cachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(true); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice()
769 final CachedBluetoothDevice cachedDevice2 = mock(CachedBluetoothDevice.class); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice() local
776 when(device2.getCachedDevice()).thenReturn(cachedDevice2); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()
778 when(cachedDevice2.getDevice()).thenReturn(bluetoothDevice2); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()
780 when(cachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(false); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()