Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DLocalMediaManagerTest.java136 final MediaDevice device2 = mock(MediaDevice.class); in getMediaDeviceById_idExist_shouldReturnMediaDevice() local
138 mLocalMediaManager.mMediaDevices.add(device2); in getMediaDeviceById_idExist_shouldReturnMediaDevice()
141 when(device2.getId()).thenReturn(TEST_DEVICE_ID_2); in getMediaDeviceById_idExist_shouldReturnMediaDevice()
152 final MediaDevice device2 = mock(MediaDevice.class); in getMediaDeviceById_idNotExist_shouldReturnNull() local
154 mLocalMediaManager.mMediaDevices.add(device2); in getMediaDeviceById_idNotExist_shouldReturnNull()
157 when(device2.getId()).thenReturn(TEST_DEVICE_ID_2); in getMediaDeviceById_idNotExist_shouldReturnNull()
180 final MediaDevice device2 = mock(MediaDevice.class); in onDeviceAdded_mediaDeviceNotExistAndPhoneDeviceExistInList_addMediaDevice() local
187 mLocalMediaManager.mMediaDeviceCallback.onDeviceAdded(device2); in onDeviceAdded_mediaDeviceNotExistAndPhoneDeviceExistInList_addMediaDevice()
212 final MediaDevice device2 = mock(MediaDevice.class); in onDeviceListAdded_phoneDeviceNotExistInList_addPhoneDeviceAndDevicesList() local
214 devices.add(device2); in onDeviceListAdded_phoneDeviceNotExistInList_addPhoneDeviceAndDevicesList()
[all …]
DBluetoothMediaManagerTest.java235 final BluetoothMediaDevice device2 = mock(BluetoothMediaDevice.class); in onBluetoothStateChanged_bluetoothStateIsOff_callOnDeviceListRemoved() local
239 mMediaManager.mMediaDevices.add(device2); in onBluetoothStateChanged_bluetoothStateIsOff_callOnDeviceListRemoved()
242 when(device2.getCachedDevice()).thenReturn(cachedDevice2); in onBluetoothStateChanged_bluetoothStateIsOff_callOnDeviceListRemoved()
/frameworks/native/vulkan/vkjson/
Dvkjson_unittest.cc74 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/
DInputReader_test.cpp6383 InputDevice* device2 = new InputDevice(mFakeContext, SECOND_DEVICE_ID, DEVICE_GENERATION, in TEST_F() local
6399 MultiTouchInputMapper* mapper2 = new MultiTouchInputMapper(device2); in TEST_F()
6400 device2->addMapper(mapper2); in TEST_F()
6401 device2->configure(ARBITRARY_TIME, mFakePolicy->getReaderConfiguration(), 0 /*changes*/); in TEST_F()
6402 device2->reset(ARBITRARY_TIME); in TEST_F()
6422 device2->configure(ARBITRARY_TIME, mFakePolicy->getReaderConfiguration(), in TEST_F()