/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/ |
D | PythonBinaryHostTestTest.java | 21 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/ |
D | ManagedDeviceListTest.java | 67 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()
|
D | DeviceSelectionOptionsTest.java | 312 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");
|
D | DeviceStateMonitorTest.java | 260 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/ |
D | DeviceSelectionOptions.java | 48 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()
|
D | DeviceManager.java | 495 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/ |
D | BaseHostJUnit4TestTest.java | 31 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/ |
D | TestInvocation.java | 38 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/ |
D | TestInvocationMultiTest.java | 32 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/ |
D | ClusterCommandSchedulerTest.java | 47 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/ |
D | CommandScheduler.java | 59 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/ |
D | RootTargetPreparer.java | 23 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/ |
D | TargetSetupErrorTest.java | 23 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/ |
D | FilePullerDeviceMetricCollector.java | 21 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/ |
D | ExecutableHostTest.java | 24 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/ |
D | StubDevice.java | 46 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/ |
D | ITestSuite.java | 35 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/ |
D | CommandSchedulerFuncTest.java | 37 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/ |
D | VmRemoteDevice.java | 18 import com.android.tradefed.device.StubDevice; 21 public class VmRemoteDevice extends StubDevice {
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/suite/module/ |
D | CarModuleController.java | 20 import com.android.tradefed.device.StubDevice; 32 if (device.getIDevice() instanceof StubDevice) { in shouldRun()
|
D | NativeBridgeModuleController.java | 20 import com.android.tradefed.device.StubDevice; 38 if (device.getIDevice() instanceof StubDevice) { in shouldRun()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/module/ |
D | DeviceFeatureModuleController.java | 21 import com.android.tradefed.device.StubDevice; 34 if (device.getIDevice() instanceof StubDevice) { in shouldRun()
|
D | MinSdkModuleController.java | 21 import com.android.tradefed.device.StubDevice; 43 if (device.getIDevice() instanceof StubDevice) { in shouldRun()
|
D | MinApiLevelModuleController.java | 22 import com.android.tradefed.device.StubDevice; 39 if (device.getIDevice() instanceof StubDevice) { in shouldRun()
|
D | MainlineTestModuleController.java | 22 import com.android.tradefed.device.StubDevice; 62 if (device.getIDevice() instanceof StubDevice) { in shouldRun()
|