Searched refs:device2 (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
D | LocalMediaManagerTest.java | 197 final MediaDevice device2 = mock(MediaDevice.class); in getMediaDeviceById_idExist_shouldReturnMediaDevice() local 199 mLocalMediaManager.mMediaDevices.add(device2); in getMediaDeviceById_idExist_shouldReturnMediaDevice() 202 when(device2.getId()).thenReturn(TEST_DEVICE_ID_2); in getMediaDeviceById_idExist_shouldReturnMediaDevice() 213 final MediaDevice device2 = mock(MediaDevice.class); in getMediaDeviceById_idNotExist_shouldReturnNull() local 215 mLocalMediaManager.mMediaDevices.add(device2); in getMediaDeviceById_idNotExist_shouldReturnNull() 218 when(device2.getId()).thenReturn(TEST_DEVICE_ID_2); in getMediaDeviceById_idNotExist_shouldReturnNull() 229 final MediaDevice device2 = mock(MediaDevice.class); in getMediaDeviceById_idIsNull_shouldReturnNull() local 231 mLocalMediaManager.mMediaDevices.add(device2); in getMediaDeviceById_idIsNull_shouldReturnNull() 234 when(device2.getId()).thenReturn(null); in getMediaDeviceById_idIsNull_shouldReturnNull() 261 final MediaDevice device2 = mock(MediaDevice.class); in onDeviceAdded_mediaDeviceNotExistAndPhoneDeviceExistInList_addMediaDevice() local [all …]
|
/frameworks/native/vulkan/vkjson/ |
D | vkjson_unittest.cc | 74 const VkJsonDevice& device2 = instance2.devices.at(0); in main() local 76 EXPECT(!memcmp(&device.properties, &device2.properties, in main() 79 auto it = device2.formats.find(kv.first); in main() 80 EXPECT(it != device2.formats.end()); in main()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 2866 std::unique_ptr<InputDevice> device2 = in TEST_F() local 2880 device2->addMapper<KeyboardInputMapper>(SECOND_EVENTHUB_ID, AINPUT_SOURCE_KEYBOARD, in TEST_F() 2882 device2->configure(ARBITRARY_TIME, mFakePolicy->getReaderConfiguration(), 0 /*changes*/); in TEST_F() 2883 device2->reset(ARBITRARY_TIME); in TEST_F() 2894 device2->configure(ARBITRARY_TIME, mFakePolicy->getReaderConfiguration(), in TEST_F() 2896 ASSERT_FALSE(device2->isEnabled()); in TEST_F() 2905 device2->configure(ARBITRARY_TIME, mFakePolicy->getReaderConfiguration(), in TEST_F() 2910 ASSERT_TRUE(device2->isEnabled()); in TEST_F() 6847 std::unique_ptr<InputDevice> device2 = in TEST_F() local 6864 MultiTouchInputMapper& mapper2 = device2->addMapper<MultiTouchInputMapper>(SECOND_EVENTHUB_ID); in TEST_F() [all …]
|