Home
last modified time | relevance | path

Searched refs:StubDevice (Results 1 – 25 of 57) sorted by relevance

123

/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/
DPythonBinaryHostTestTest.java21 import com.android.tradefed.device.StubDevice;
144 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRun()
180 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRun_failWithIncludeFilters()
242 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRun_withIncludeFilters()
303 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRun_withExcludeFilters()
344 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRun_withAdbPath()
389 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRun_withSharedLibInHostTestsDir()
434 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRun_withSharedLib()
464 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRunFail_exception()
519 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRunFail_failureOnly()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DManagedDeviceListTest.java67 ITestDevice d = mManagedDeviceList.findOrCreate(new StubDevice("foo")); in testFindOrCreate()
72 assertEquals(d, mManagedDeviceList.findOrCreate(new StubDevice("foo"))); in testFindOrCreate()
82 assertNull(mManagedDeviceList.findOrCreate(new StubDevice("????"))); in testFindOrCreate_invalidSerial()
90 IManagedTestDevice d = mManagedDeviceList.findOrCreate(new StubDevice("foo")); in testAllocate()
107 IManagedTestDevice d = mManagedDeviceList.findOrCreate(new StubDevice("foo")); in testHandleDeviceEvent()
DDeviceSelectionOptionsTest.java312 IDevice emulatorDevice = new StubDevice("emulator", true);
319 IDevice emulatorDevice = new StubDevice("emulator", true);
637 IDevice gceDevice = new StubDevice("stub-device:0");
648 IDevice gceDevice = new StubDevice("stub-device:0");
DDeviceStateMonitorTest.java260 IDevice mFakeDevice = new StubDevice("serial") { in testWaitForBootComplete()
278 IDevice mFakeDevice = new StubDevice("serial") { in testWaitForBoot_becomeComplete()
311 IDevice mFakeDevice = new StubDevice("serial") { in testWaitForBoot_timeout()
/tools/tradefederation/core/src/com/android/tradefed/device/
DDeviceSelectionOptions.java48 LOCAL_EMULATOR(StubDevice.class),
223 && (!(device instanceof StubDevice) || (device instanceof FastbootDevice))) { in getSerials()
505 if (device instanceof StubDevice || device instanceof FastbootDevice) { in matches()
528 && (!(device instanceof StubDevice) || (device instanceof FastbootDevice))) { in matches()
574 if (device.isEmulator() && (device instanceof StubDevice) && !stubEmulatorRequested()) { in checkDeviceTypeRequested()
DDeviceManager.java495 addAvailableDevice(new StubDevice(String.format("%s-%d", EMULATOR_SERIAL_PREFIX, port), in addEmulators()
572 public static class FastbootDevice extends StubDevice {
686 ideviceToReturn = new StubDevice(ideviceToReturn.getSerialNumber(), true); in freeDevice()
854 IManagedTestDevice tcpDevice = mManagedDeviceList.findOrCreate(new StubDevice(ipAndPort)); in connectToTcpDevice()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4TestTest.java31 import com.android.tradefed.device.StubDevice;
180 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRunDeviceTests()
203 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRunDeviceTests_assumptionFailure()
286 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRunDeviceTests_asUser()
352 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRunDeviceTests_crashedInstrumentation()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DTestInvocation.java38 import com.android.tradefed.device.StubDevice;
533 if (device.getIDevice() instanceof StubDevice) { in takeBugreport()
580 if (testDevice.getIDevice() instanceof StubDevice) { in logDeviceBatteryLevel()
834 if (!(context.getDevice(deviceName).getIDevice() instanceof StubDevice)) { in invoke()
949 if (!(context.getDevice(deviceName).getIDevice() instanceof StubDevice)) { in invoke()
1136 if (fds.getKey().getIDevice() instanceof StubDevice) { in handleAndLogReleaseState()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DTestInvocationMultiTest.java32 import com.android.tradefed.device.StubDevice;
136 EasyMock.expect(mDevice1.getIDevice()).andStubReturn(new StubDevice("serial1")); in makeTwoDeviceContext()
147 EasyMock.expect(mDevice2.getIDevice()).andStubReturn(new StubDevice("serial2")); in makeTwoDeviceContext()
258 EasyMock.expect(mDevice1.getIDevice()).andStubReturn(new StubDevice("serial1")); in testResolveDynamicFails()
260 EasyMock.expect(mDevice2.getIDevice()).andStubReturn(new StubDevice("serial1")); in testResolveDynamicFails()
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterCommandSchedulerTest.java47 import com.android.tradefed.device.StubDevice;
623 EasyMock.expect(mockTestDevice.getIDevice()).andReturn(new StubDevice(DEVICE_SERIAL));
696 EasyMock.expect(mockTestDevice.getIDevice()).andReturn(new StubDevice(DEVICE_SERIAL));
764 EasyMock.expect(mockTestDevice.getIDevice()).andReturn(new StubDevice(DEVICE_SERIAL));
808 EasyMock.expect(mockTestDevice1.getIDevice()).andReturn(new StubDevice(DEVICE_SERIAL));
812 EasyMock.expect(mockTestDevice2.getIDevice()).andReturn(new StubDevice("s2"));
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandScheduler.java59 import com.android.tradefed.device.StubDevice;
719 if (!(device.getIDevice() instanceof StubDevice)) { in stopInvocation()
809 if (device.getIDevice() instanceof StubDevice) { in createReleaseMap()
833 if (badDevice != null && !(badDevice.getIDevice() instanceof StubDevice)) { in createReleaseMap()
839 if (badDevice != null && !(badDevice.getIDevice() instanceof StubDevice)) { in createReleaseMap()
1612 if (allocatedDevice.getIDevice() instanceof StubDevice) { in allocateDevices()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DRootTargetPreparer.java23 import com.android.tradefed.device.StubDevice;
55 if (device.getIDevice() instanceof StubDevice) { in setUp()
70 if (device.getIDevice() instanceof StubDevice) { in tearDown()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DTargetSetupErrorTest.java23 import com.android.tradefed.device.StubDevice;
72 StubDevice.class.getName(), in testSerialization_withIDevice()
76 new StubDevice("serial")); in testSerialization_withIDevice()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DFilePullerDeviceMetricCollector.java21 import com.android.tradefed.device.StubDevice;
151 if (device.getIDevice() instanceof StubDevice) { in pullMetricFile()
208 if (device.getIDevice() instanceof StubDevice) { in pullMetricDirectory()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/binary/
DExecutableHostTest.java24 import com.android.tradefed.device.StubDevice;
109 if (!(getTestInfo().getDevice().getIDevice() instanceof StubDevice)) { in runBinary()
156 if (!(getTestInfo().getDevice().getIDevice() instanceof StubDevice)) { in runBinary()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DStubDevice.java46 public class StubDevice implements IDevice, Serializable { class
53 public StubDevice(String serial) { in StubDevice() method in StubDevice
57 public StubDevice(String serial, boolean isEmulator) { in StubDevice() method in StubDevice
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DITestSuite.java35 import com.android.tradefed.device.StubDevice;
623 if (!(device.getIDevice() instanceof StubDevice)) { in run()
841 if (bugreportNeeded && !(device.getIDevice() instanceof StubDevice)) { in runPreModuleCheck()
889 if (bugreportNeeded && !(device.getIDevice() instanceof StubDevice)) { in runPostModuleCheck()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandSchedulerFuncTest.java37 import com.android.tradefed.device.StubDevice;
274 IDevice mockIDevice = new StubDevice("serial"); in testBatteryLowLevel()
316 IDevice mockIDevice = new StubDevice("serial"); in testBatteryLowLevel_interruptible()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DVmRemoteDevice.java18 import com.android.tradefed.device.StubDevice;
21 public class VmRemoteDevice extends StubDevice {
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/suite/module/
DCarModuleController.java20 import com.android.tradefed.device.StubDevice;
32 if (device.getIDevice() instanceof StubDevice) { in shouldRun()
DNativeBridgeModuleController.java20 import com.android.tradefed.device.StubDevice;
38 if (device.getIDevice() instanceof StubDevice) { in shouldRun()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/module/
DDeviceFeatureModuleController.java21 import com.android.tradefed.device.StubDevice;
34 if (device.getIDevice() instanceof StubDevice) { in shouldRun()
DMinSdkModuleController.java21 import com.android.tradefed.device.StubDevice;
43 if (device.getIDevice() instanceof StubDevice) { in shouldRun()
DMinApiLevelModuleController.java22 import com.android.tradefed.device.StubDevice;
39 if (device.getIDevice() instanceof StubDevice) { in shouldRun()
DMainlineTestModuleController.java22 import com.android.tradefed.device.StubDevice;
62 if (device.getIDevice() instanceof StubDevice) { in shouldRun()

123