Searched refs:device2 (Results 1 – 4 of 4) sorted by relevance
136 final MediaDevice device2 = mock(MediaDevice.class); in getMediaDeviceById_idExist_shouldReturnMediaDevice() local138 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() local154 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() local187 mLocalMediaManager.mMediaDeviceCallback.onDeviceAdded(device2); in onDeviceAdded_mediaDeviceNotExistAndPhoneDeviceExistInList_addMediaDevice()212 final MediaDevice device2 = mock(MediaDevice.class); in onDeviceListAdded_phoneDeviceNotExistInList_addPhoneDeviceAndDevicesList() local214 devices.add(device2); in onDeviceListAdded_phoneDeviceNotExistInList_addPhoneDeviceAndDevicesList()[all …]
235 final BluetoothMediaDevice device2 = mock(BluetoothMediaDevice.class); in onBluetoothStateChanged_bluetoothStateIsOff_callOnDeviceListRemoved() local239 mMediaManager.mMediaDevices.add(device2); in onBluetoothStateChanged_bluetoothStateIsOff_callOnDeviceListRemoved()242 when(device2.getCachedDevice()).thenReturn(cachedDevice2); in onBluetoothStateChanged_bluetoothStateIsOff_callOnDeviceListRemoved()
74 const VkJsonDevice& device2 = instance2.devices.at(0); in main() local76 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()
6383 InputDevice* device2 = new InputDevice(mFakeContext, SECOND_DEVICE_ID, DEVICE_GENERATION, in TEST_F() local6399 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()