/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
D | LocalMediaManagerTest.java | 215 final MediaDevice device2 = mock(MediaDevice.class); in getMediaDeviceById_idExist_shouldReturnMediaDevice() local 217 mLocalMediaManager.mMediaDevices.add(device2); in getMediaDeviceById_idExist_shouldReturnMediaDevice() 220 when(device2.getId()).thenReturn(TEST_DEVICE_ID_2); in getMediaDeviceById_idExist_shouldReturnMediaDevice() 230 final MediaDevice device2 = mock(MediaDevice.class); in getMediaDeviceById_idNotExist_shouldReturnNull() local 232 mLocalMediaManager.mMediaDevices.add(device2); in getMediaDeviceById_idNotExist_shouldReturnNull() 235 when(device2.getId()).thenReturn(TEST_DEVICE_ID_2); in getMediaDeviceById_idNotExist_shouldReturnNull() 245 final MediaDevice device2 = mock(MediaDevice.class); in getMediaDeviceById_idIsNull_shouldReturnNull() local 247 mLocalMediaManager.mMediaDevices.add(device2); in getMediaDeviceById_idIsNull_shouldReturnNull() 250 when(device2.getId()).thenReturn(null); in getMediaDeviceById_idIsNull_shouldReturnNull() 261 final MediaDevice device2 = mock(MediaDevice.class); in onDeviceListAdded_addDevicesList() local [all …]
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | LogicalDisplayMapperTest.java | 257 DisplayDevice device2 = createDisplayDevice(TYPE_INTERNAL, 600, 800, in testDisplayDeviceAdd_TwoInternalOneDefault() local 264 LogicalDisplay display2 = add(device2); in testDisplayDeviceAdd_TwoInternalOneDefault() 265 assertEquals(info(display2).address, info(device2).address); in testDisplayDeviceAdd_TwoInternalOneDefault() 273 DisplayDevice device2 = createDisplayDevice(TYPE_INTERNAL, 600, 800, in testDisplayDeviceAdd_TwoInternalBothDefault() local 280 LogicalDisplay display2 = add(device2); in testDisplayDeviceAdd_TwoInternalBothDefault() 281 assertEquals(info(display2).address, info(device2).address); in testDisplayDeviceAdd_TwoInternalBothDefault() 309 DisplayDevice device2 = createDisplayDevice(TYPE_INTERNAL, 600, 800, in testDisplayDeviceAddAndRemove_SwitchDefault() local 316 LogicalDisplay display2 = add(device2); in testDisplayDeviceAddAndRemove_SwitchDefault() 317 assertEquals(info(display2).address, info(device2).address); in testDisplayDeviceAddAndRemove_SwitchDefault() 331 assertEquals(info(display1).address, info(device2).address); in testDisplayDeviceAddAndRemove_SwitchDefault() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/companion/virtual/ |
D | VirtualDeviceManagerServiceMockingTest.java | 81 VirtualDeviceImpl device2 = mock(VirtualDeviceImpl.class); in onAuthenticationPrompt_twoDevices_showToastWhereUidIsRunningIsCalledOnBoth() local 83 when(device2.getDeviceId()).thenReturn(DEVICE_ID_2); in onAuthenticationPrompt_twoDevices_showToastWhereUidIsRunningIsCalledOnBoth() 85 mVdms.addVirtualDevice(device2); in onAuthenticationPrompt_twoDevices_showToastWhereUidIsRunningIsCalledOnBoth() 92 verify(device2).showToastWhereUidIsRunning(eq(UID_1), in onAuthenticationPrompt_twoDevices_showToastWhereUidIsRunningIsCalledOnBoth()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/bluetooth/ |
D | BluetoothRepositoryImplTest.kt | 94 val device2 = in <lambda>() constant 99 val status = fetchConnectionStatus(currentDevices = listOf(device1, device2)) in <lambda>() 126 val device2 = in <lambda>() constant 132 val status = fetchConnectionStatus(currentDevices = listOf(device1, device2)) in <lambda>() 147 val device2 = in <lambda>() constant 153 val status = fetchConnectionStatus(currentDevices = listOf(device1, device2)) in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bluetooth/qsdialog/ |
D | DeviceItemInteractorTest.kt | 60 @Mock private lateinit var device2: BluetoothDevice in <lambda>() variable in com.android.systemui.bluetooth.qsdialog.DeviceItemInteractorTest 102 `when`(cachedDevice2.device).thenReturn(device2) in <lambda>() 174 createFactory({ cachedDevice -> cachedDevice.device == device2 }, deviceItem2) in <lambda>() 196 `when`(adapter.mostRecentlyConnectedDevices).thenReturn(listOf(device2, device1)) in <lambda>() 200 createFactory({ cachedDevice -> cachedDevice.device == device2 }, deviceItem2) in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BluetoothControllerImplTest.java | 282 CachedBluetoothDevice device2 = createBluetoothDevice( in isBluetoothAudioProfileOnly_noneConnected_false() local 286 mBluetoothControllerImpl.onDeviceAdded(device2); in isBluetoothAudioProfileOnly_noneConnected_false() 340 CachedBluetoothDevice device2 = createBluetoothDevice( in isBluetoothAudioProfileOnly_multipleAudioOnlyProfilesConnected_true() local 346 mBluetoothControllerImpl.onDeviceAdded(device2); in isBluetoothAudioProfileOnly_multipleAudioOnlyProfilesConnected_true() 358 CachedBluetoothDevice device2 = createBluetoothDevice( in isBluetoothAudioProfileOnly_leAudioAndOtherProfileConnected_false() local 362 mBluetoothControllerImpl.onDeviceAdded(device2); in isBluetoothAudioProfileOnly_leAudioAndOtherProfileConnected_false()
|
/frameworks/av/services/audioflinger/sounddose/tests/ |
D | sounddosemanager_tests.cpp | 335 media::ISoundDose::AudioDeviceCategory device2; in TEST_F() local 339 device2.address = "dev2"; in TEST_F() 340 device2.csdCompatible = true; in TEST_F() 341 device2.internalAudioType = AUDIO_DEVICE_OUT_BLUETOOTH_A2DP; in TEST_F() 343 std::vector<media::ISoundDose::AudioDeviceCategory> btDevices = {device1, device2}; in TEST_F()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 3860 std::shared_ptr<InputDevice> device2 = in TEST_F() local 3872 device2->addEmptyEventHubDevice(SECOND_EVENTHUB_ID); in TEST_F() 3874 device2->constructAndAddMapper<KeyboardInputMapper>(SECOND_EVENTHUB_ID, in TEST_F() 3879 device2->configure(ARBITRARY_TIME, mFakePolicy->getReaderConfiguration(), in TEST_F() 3881 unused += device2->reset(ARBITRARY_TIME); in TEST_F() 3892 unused += device2->configure(ARBITRARY_TIME, mFakePolicy->getReaderConfiguration(), in TEST_F() 3894 ASSERT_FALSE(device2->isEnabled()); in TEST_F() 3903 unused += device2->configure(ARBITRARY_TIME, mFakePolicy->getReaderConfiguration(), in TEST_F() 3908 ASSERT_TRUE(device2->isEnabled()); in TEST_F() 3974 std::shared_ptr<InputDevice> device2 = in TEST_F() local [all …]
|