Searched refs:mockIDevice (Results 1 – 6 of 6) sorted by relevance
73 IDevice mockIDevice = mock(IDevice.class); in setNumDevicesInternal() local74 when(mockIDevice.getSerialNumber()).thenReturn("serial" + i); in setNumDevicesInternal()75 when(mockDevice.getIDevice()).thenReturn(mockIDevice); in setNumDevicesInternal()88 IDevice mockIDevice = mock(idevicetype); in setNumDevicesCustomRealNoRecovery() local89 when(mockIDevice.getSerialNumber()).thenReturn("serial" + i); in setNumDevicesCustomRealNoRecovery()94 new TestDevice(mockIDevice, stateMonitor, allocationMonitor) { in setNumDevicesCustomRealNoRecovery()112 IDevice mockIDevice = mock(idevicetype); in setNumDevicesCustom() local113 when(mockIDevice.getSerialNumber()).thenReturn("serial" + i); in setNumDevicesCustom()114 when(mockDevice.getIDevice()).thenReturn(mockIDevice); in setNumDevicesCustom()134 IDevice mockIDevice = idevice; in setNumDevicesStub() local[all …]
482 IDevice mockIDevice = mock(IDevice.class); in testFreeDevice_noop() local483 when(testDevice.getIDevice()).thenReturn(mockIDevice); in testFreeDevice_noop()484 when(mockIDevice.isEmulator()).thenReturn(Boolean.FALSE); in testFreeDevice_noop()
209 IDevice mockIDevice = Mockito.mock(IDevice.class); in testSupportedRunTargetMatchPattern() local210 when(mockIDevice.getProperty("bar")).thenReturn("zzz"); in testSupportedRunTargetMatchPattern()226 mockIDevice); in testSupportedRunTargetMatchPattern()
292 IDevice mockIDevice = new StubDevice("serial"); in testBatteryLowLevel() local293 when(mockDevice.getIDevice()).thenReturn(mockIDevice); in testBatteryLowLevel()332 IDevice mockIDevice = new StubDevice("serial"); in testBatteryLowLevel_interruptible() local334 when(mockDevice.getIDevice()).thenReturn(mockIDevice); in testBatteryLowLevel_interruptible()
394 IDevice mockIDevice = mock(IDevice.class);399 when(mockDevice.getIDevice()).thenReturn(mockIDevice);1546 IDevice mockIDevice = mock(IDevice.class); in testExecCommand_versioning() local1551 when(mockDevice.getIDevice()).thenReturn(mockIDevice); in testExecCommand_versioning()
80 IDevice mockIDevice = mock(IDevice.class); in setUp() local82 when(mMockTestDevice.getIDevice()).thenReturn(mockIDevice); in setUp()