Home
last modified time | relevance | path

Searched refs:device1 (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DLocalMediaManagerTest.java214 final MediaDevice device1 = mock(MediaDevice.class); in getMediaDeviceById_idExist_shouldReturnMediaDevice() local
216 mLocalMediaManager.mMediaDevices.add(device1); in getMediaDeviceById_idExist_shouldReturnMediaDevice()
219 when(device1.getId()).thenReturn(TEST_DEVICE_ID_1); in getMediaDeviceById_idExist_shouldReturnMediaDevice()
229 final MediaDevice device1 = mock(MediaDevice.class); in getMediaDeviceById_idNotExist_shouldReturnNull() local
231 mLocalMediaManager.mMediaDevices.add(device1); in getMediaDeviceById_idNotExist_shouldReturnNull()
234 when(device1.getId()).thenReturn(TEST_DEVICE_ID_1); in getMediaDeviceById_idNotExist_shouldReturnNull()
244 final MediaDevice device1 = mock(MediaDevice.class); in getMediaDeviceById_idIsNull_shouldReturnNull() local
246 mLocalMediaManager.mMediaDevices.add(device1); in getMediaDeviceById_idIsNull_shouldReturnNull()
249 when(device1.getId()).thenReturn(null); in getMediaDeviceById_idIsNull_shouldReturnNull()
260 final MediaDevice device1 = mock(MediaDevice.class); in onDeviceListAdded_addDevicesList() local
[all …]
/frameworks/av/services/audioflinger/sounddose/tests/
Dsounddosemanager_tests.cpp306 media::ISoundDose::AudioDeviceCategory device1; in TEST_F() local
307 device1.address = "dev1"; in TEST_F()
308 device1.csdCompatible = false; in TEST_F()
309 device1.internalAudioType = AUDIO_DEVICE_OUT_BLUETOOTH_A2DP; in TEST_F()
310 const AudioDeviceTypeAddr dev1Adt{AUDIO_DEVICE_OUT_BLUETOOTH_A2DP, device1.address}; in TEST_F()
316 mSoundDoseManager->setAudioDeviceCategory(device1); in TEST_F()
320 media::ISoundDose::AudioDeviceCategory device1; in TEST_F() local
321 device1.address = "dev1"; in TEST_F()
322 device1.csdCompatible = true; in TEST_F()
323 device1.internalAudioType = AUDIO_DEVICE_OUT_BLUETOOTH_A2DP; in TEST_F()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DLogicalDisplayMapperTest.java256 DisplayDevice device1 = createDisplayDevice(TYPE_INTERNAL, 600, 800, 0); in testDisplayDeviceAdd_TwoInternalOneDefault() local
260 LogicalDisplay display1 = add(device1); in testDisplayDeviceAdd_TwoInternalOneDefault()
261 assertEquals(info(display1).address, info(device1).address); in testDisplayDeviceAdd_TwoInternalOneDefault()
271 DisplayDevice device1 = createDisplayDevice(TYPE_INTERNAL, 600, 800, in testDisplayDeviceAdd_TwoInternalBothDefault() local
276 LogicalDisplay display1 = add(device1); in testDisplayDeviceAdd_TwoInternalBothDefault()
277 assertEquals(info(display1).address, info(device1).address); in testDisplayDeviceAdd_TwoInternalBothDefault()
307 DisplayDevice device1 = createDisplayDevice(TYPE_INTERNAL, 600, 800, in testDisplayDeviceAddAndRemove_SwitchDefault() local
312 LogicalDisplay display1 = add(device1); in testDisplayDeviceAddAndRemove_SwitchDefault()
313 assertEquals(info(display1).address, info(device1).address); in testDisplayDeviceAddAndRemove_SwitchDefault()
322 mDisplayDeviceRepo.onDisplayDeviceEvent(device1, DISPLAY_DEVICE_EVENT_REMOVED); in testDisplayDeviceAddAndRemove_SwitchDefault()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/companion/virtual/
DVirtualDeviceManagerServiceMockingTest.java80 VirtualDeviceImpl device1 = mock(VirtualDeviceImpl.class); in onAuthenticationPrompt_twoDevices_showToastWhereUidIsRunningIsCalledOnBoth() local
82 when(device1.getDeviceId()).thenReturn(DEVICE_ID_1); in onAuthenticationPrompt_twoDevices_showToastWhereUidIsRunningIsCalledOnBoth()
84 mVdms.addVirtualDevice(device1); in onAuthenticationPrompt_twoDevices_showToastWhereUidIsRunningIsCalledOnBoth()
89 verify(device1).showToastWhereUidIsRunning(eq(UID_1), in onAuthenticationPrompt_twoDevices_showToastWhereUidIsRunningIsCalledOnBoth()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/bluetooth/
DBluetoothRepositoryImplTest.kt90 val device1 = in <lambda>() constant
99 val status = fetchConnectionStatus(currentDevices = listOf(device1, device2)) in <lambda>()
121 val device1 = in <lambda>() constant
132 val status = fetchConnectionStatus(currentDevices = listOf(device1, device2)) in <lambda>()
142 val device1 = in <lambda>() constant
153 val status = fetchConnectionStatus(currentDevices = listOf(device1, device2)) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bluetooth/qsdialog/
DDeviceItemInteractorTest.kt58 @Mock private lateinit var device1: BluetoothDevice in <lambda>() variable in com.android.systemui.bluetooth.qsdialog.DeviceItemInteractorTest
101 `when`(cachedDevice1.device).thenReturn(device1) in <lambda>()
173 createFactory({ cachedDevice -> cachedDevice.device == device1 }, deviceItem1), in <lambda>()
196 `when`(adapter.mostRecentlyConnectedDevices).thenReturn(listOf(device2, device1)) in <lambda>()
199 createFactory({ cachedDevice -> cachedDevice.device == device1 }, deviceItem1), in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImplTest.java280 CachedBluetoothDevice device1 = createBluetoothDevice( in isBluetoothAudioProfileOnly_noneConnected_false() local
285 mBluetoothControllerImpl.onDeviceAdded(device1); in isBluetoothAudioProfileOnly_noneConnected_false()
338 CachedBluetoothDevice device1 = createBluetoothDevice( in isBluetoothAudioProfileOnly_multipleAudioOnlyProfilesConnected_true() local
345 mBluetoothControllerImpl.onDeviceAdded(device1); in isBluetoothAudioProfileOnly_multipleAudioOnlyProfilesConnected_true()
356 CachedBluetoothDevice device1 = createBluetoothDevice( in isBluetoothAudioProfileOnly_leAudioAndOtherProfileConnected_false() local
361 mBluetoothControllerImpl.onDeviceAdded(device1); in isBluetoothAudioProfileOnly_leAudioAndOtherProfileConnected_false()