Home
last modified time | relevance | path

Searched refs:mockIDevice (Results 1 – 6 of 6) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/device/
DMockDeviceManager.java73 IDevice mockIDevice = mock(IDevice.class); in setNumDevicesInternal() local
74 when(mockIDevice.getSerialNumber()).thenReturn("serial" + i); in setNumDevicesInternal()
75 when(mockDevice.getIDevice()).thenReturn(mockIDevice); in setNumDevicesInternal()
88 IDevice mockIDevice = mock(idevicetype); in setNumDevicesCustomRealNoRecovery() local
89 when(mockIDevice.getSerialNumber()).thenReturn("serial" + i); in setNumDevicesCustomRealNoRecovery()
94 new TestDevice(mockIDevice, stateMonitor, allocationMonitor) { in setNumDevicesCustomRealNoRecovery()
112 IDevice mockIDevice = mock(idevicetype); in setNumDevicesCustom() local
113 when(mockIDevice.getSerialNumber()).thenReturn("serial" + i); in setNumDevicesCustom()
114 when(mockDevice.getIDevice()).thenReturn(mockIDevice); in setNumDevicesCustom()
134 IDevice mockIDevice = idevice; in setNumDevicesStub() local
[all …]
DDeviceManagerTest.java482 IDevice mockIDevice = mock(IDevice.class); in testFreeDevice_noop() local
483 when(testDevice.getIDevice()).thenReturn(mockIDevice); in testFreeDevice_noop()
484 when(mockIDevice.isEmulator()).thenReturn(Boolean.FALSE); in testFreeDevice_noop()
/tools/tradefederation/core/javatests/com/android/tradefed/cluster/
DClusterHostUtilTest.java209 IDevice mockIDevice = Mockito.mock(IDevice.class); in testSupportedRunTargetMatchPattern() local
210 when(mockIDevice.getProperty("bar")).thenReturn("zzz"); in testSupportedRunTargetMatchPattern()
226 mockIDevice); in testSupportedRunTargetMatchPattern()
/tools/tradefederation/core/javatests/com/android/tradefed/command/
DCommandSchedulerFuncTest.java292 IDevice mockIDevice = new StubDevice("serial"); in testBatteryLowLevel() local
293 when(mockDevice.getIDevice()).thenReturn(mockIDevice); in testBatteryLowLevel()
332 IDevice mockIDevice = new StubDevice("serial"); in testBatteryLowLevel_interruptible() local
334 when(mockDevice.getIDevice()).thenReturn(mockIDevice); in testBatteryLowLevel_interruptible()
DCommandSchedulerTest.java394 IDevice mockIDevice = mock(IDevice.class);
399 when(mockDevice.getIDevice()).thenReturn(mockIDevice);
1546 IDevice mockIDevice = mock(IDevice.class); in testExecCommand_versioning() local
1551 when(mockDevice.getIDevice()).thenReturn(mockIDevice); in testExecCommand_versioning()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DInstrumentationFileTestTest.java80 IDevice mockIDevice = mock(IDevice.class); in setUp() local
82 when(mMockTestDevice.getIDevice()).thenReturn(mockIDevice); in setUp()