Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DManagedDeviceListTest.java61 ITestDevice d = mManagedDeviceList.findOrCreate(new StubDevice("foo")); in testFindOrCreate()
66 assertEquals(d, mManagedDeviceList.findOrCreate(new StubDevice("foo"))); in testFindOrCreate()
75 assertNull(mManagedDeviceList.findOrCreate(new StubDevice("????"))); in testFindOrCreate_invalidSerial()
84 IManagedTestDevice d = mManagedDeviceList.findOrCreate(new StubDevice("foo")); in testAllocate()
100 IManagedTestDevice d = mManagedDeviceList.findOrCreate(new StubDevice("foo")); in testHandleDeviceEvent()
DDeviceSelectionOptionsTest.java312 IDevice emulatorDevice = new StubDevice("emulator", true);
319 IDevice emulatorDevice = new StubDevice("emulator", true);
630 IDevice gceDevice = new StubDevice("stub-device:0");
641 IDevice gceDevice = new StubDevice("stub-device:0");
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/
DPythonBinaryHostTestTest.java21 import com.android.tradefed.device.StubDevice;
105 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRun()
145 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRun_withAdbPath()
175 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRunFail_exception()
220 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRunFail_failureOnly()
/tools/tradefederation/core/src/com/android/tradefed/device/
DDeviceSelectionOptions.java48 LOCAL_EMULATOR(StubDevice.class),
221 && (!(device instanceof StubDevice) || (device instanceof FastbootDevice))) { in getSerials()
497 && (!(device instanceof StubDevice) || (device instanceof FastbootDevice))) { in matches()
522 && (!(device instanceof StubDevice) || (device instanceof FastbootDevice))) { in matches()
568 if (device.isEmulator() && (device instanceof StubDevice) && !stubEmulatorRequested()) { in checkDeviceTypeRequested()
DStubDevice.java47 public class StubDevice implements IDevice { class
52 public StubDevice(String serial) { in StubDevice() method in StubDevice
56 public StubDevice(String serial, boolean isEmulator) { in StubDevice() method in StubDevice
DManagedTestDeviceFactory.java127 } else if (idevice instanceof StubDevice) { in createDevice()
139 if (idevice instanceof StubDevice) { in checkFrameworkSupport()
/tools/tradefederation/core/src/com/android/tradefed/testtype/binary/
DExecutableHostTest.java26 import com.android.tradefed.device.StubDevice;
105 if (!(mDevice.getIDevice() instanceof StubDevice)) { in runBinary()
126 if (!(mDevice.getIDevice() instanceof StubDevice)) { in runBinary()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DVmRemoteDevice.java18 import com.android.tradefed.device.StubDevice;
21 public class VmRemoteDevice extends StubDevice {
DManagedRemoteDevice.java23 import com.android.tradefed.device.StubDevice;
94 if (!(getIDevice() instanceof StubDevice)) { in postInvocationTearDown()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4TestTest.java30 import com.android.tradefed.device.StubDevice;
174 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRunDeviceTests()
235 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRunDeviceTests_asUser()
305 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testRunDeviceTests_crashedInstrumentation()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/module/
DCarModuleController.java20 import com.android.tradefed.device.StubDevice;
32 if (device.getIDevice() instanceof StubDevice) { in shouldRun()
DMinSdkModuleController.java21 import com.android.tradefed.device.StubDevice;
43 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/invoker/shard/token/
DTelephonyTokenProvider.java20 import com.android.tradefed.device.StubDevice;
30 if (device.getIDevice() instanceof StubDevice) { in hasToken()
/tools/tradefederation/core/src/com/android/tradefed/testtype/host/
DPrettyTestEventLogger.java21 import com.android.tradefed.device.StubDevice;
81 if (!(device.getIDevice() instanceof StubDevice)) { in logOnAllDevices()
/tools/tradefederation/core/src/com/android/tradefed/build/
DBootstrapBuildProvider.java23 import com.android.tradefed.device.StubDevice;
106 if (!(device.getIDevice() instanceof StubDevice)) { in getBuild()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DBootstrapBuildProviderTest.java22 import com.android.tradefed.device.StubDevice;
71 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testGetBuild_stubDevice()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DTestInvocation.java29 import com.android.tradefed.device.StubDevice;
490 if (device.getIDevice() instanceof StubDevice) { in takeBugreport()
537 if (testDevice.getIDevice() instanceof StubDevice) { in logDeviceBatteryLevel()
671 if (!(context.getDevice(deviceName).getIDevice() instanceof StubDevice)) { in invoke()
765 if (!(context.getDevice(deviceName).getIDevice() instanceof StubDevice)) { in invoke()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/module/
DCarModuleControllerTest.java23 import com.android.tradefed.device.StubDevice;
60 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testStubDevice()
DNativeBridgeModuleControllerTest.java23 import com.android.tradefed.device.StubDevice;
57 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new StubDevice("serial")); in testStubDevice()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DVersionedTfLauncher.java24 import com.android.tradefed.device.StubDevice;
87 } else if (!(device.getIDevice() instanceof StubDevice)) { in preRun()
/tools/tradefederation/core/src/com/android/tradefed/device/recovery/
DUsbResetMultiDeviceRecovery.java31 import com.android.tradefed.device.StubDevice;
110 if (iDevice instanceof StubDevice && !(iDevice instanceof DeviceManager.FastbootDevice)) { in shouldReset()
DRunConfigDeviceRecovery.java31 import com.android.tradefed.device.StubDevice;
73 if (device.getIDevice() instanceof StubDevice in recoverDevices()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/retry/
DResultsPlayer.java20 import com.android.tradefed.device.StubDevice;
62 if (device.getIDevice() instanceof StubDevice) { in run()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/recovery/
DUsbResetMultiDeviceRecoveryTest.java32 import com.android.tradefed.device.StubDevice;
87 when(mDevice.getIDevice()).thenReturn(new StubDevice(SERIAL)); in testRecover_stub()

12