/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | RunUtilTest.java | 40 private RunUtil mRunUtil; field in RunUtilTest 54 mRunUtil = new RunUtil(); in setUp() 105 mRunUtil.runTimed(SHORT_TIMEOUT_MS, mockRunnable, true)); in testRunTimed() 117 mRunUtil.runTimed(SHORT_TIMEOUT_MS, mockRunnable, true)); in testRunTimed_failed() 130 mRunUtil.runTimed(SHORT_TIMEOUT_MS, mockRunnable, true)); in testRunTimed_exception() 150 CommandResult result = mRunUtil.runTimedCmd(VERY_SHORT_TIMEOUT_MS, command); in testRunTimedCmd_timeout() 241 mRunUtil.allowInterrupt(true); in testInterrupt() 242 mRunUtil.interrupt(Thread.currentThread(), message); in testInterrupt() 244 mRunUtil.sleep(1); in testInterrupt() 257 mRunUtil.allowInterrupt(false); in testInterrupt_delayed() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | RunHostCommandTargetPreparerTest.java | 48 private IRunUtil mRunUtil; field in RunHostCommandTargetPreparerTest 53 mRunUtil = EasyMock.createMock(IRunUtil.class); in setUp() 59 return mRunUtil; in setUp() 82 EasyMock.expect(mRunUtil.runTimedCmd(10L, commandArray)).andReturn(result); in testSetUp() 85 EasyMock.replay(mRunUtil, mDevice); in testSetUp() 87 EasyMock.verify(mRunUtil, mDevice); in testSetUp() 103 EasyMock.expect(mRunUtil.runTimedCmd(10L, commandArray)).andReturn(result); in testTearDown() 106 EasyMock.replay(mRunUtil, mDevice); in testTearDown() 108 EasyMock.verify(mRunUtil, mDevice); in testTearDown() 125 EasyMock.expect(mRunUtil.runCmdInBackground(Arrays.asList(commandArray), mockOut)) in testBgCommand() [all …]
|
D | PythonVirtualenvPreparerTest.java | 48 mPreparer.mRunUtil = mMockRunUtil; in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | FastbootHelper.java | 37 private IRunUtil mRunUtil; field in FastbootHelper 52 mRunUtil = runUtil; in FastbootHelper() 62 CommandResult fastbootResult = mRunUtil.runTimedCmdSilently(5000, mFastbootPath, "help"); in isFastbootAvailable() 85 mRunUtil.runTimedCmdSilently(FASTBOOT_CMD_TIMEOUT, mFastbootPath, "devices"); in getDevices() 122 final CommandResult fastbootResult = mRunUtil.runTimedCmd(FASTBOOT_CMD_TIMEOUT, in executeCommand()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | PythonVirtualenvPreparer.java | 57 IRunUtil mRunUtil = new RunUtil(); field in PythonVirtualenvPreparer 74 CommandResult c = mRunUtil.runTimedCmd(BASE_TIMEOUT * 5, mPip, in installDeps() 87 CommandResult c = mRunUtil.runTimedCmd(BASE_TIMEOUT * 5, mPip, in installDeps() 117 mRunUtil.runTimedCmd(BASE_TIMEOUT, "virtualenv", mVenvDir.getAbsolutePath()); in startVirtualenv() 136 mRunUtil.setWorkingDir(binDir); in activate() 138 mRunUtil.setEnvVariable(PATH, binDir + ":" + path); in activate()
|
D | SdkAvdPreparer.java | 121 private final IRunUtil mRunUtil; field in SdkAvdPreparer 140 mRunUtil = runUtil; in SdkAvdPreparer() 196 mRunUtil.setEnvVariable("ANDROID_SDK_ROOT", sdkBuild.getSdkDir().getAbsolutePath()); in launchEmulatorForAvd() 306 mRunUtil.setEnvVariable("ANDROID_SWT", getSWTDirPath(sdkBuild)); in getSdkTargets() 307 CommandResult result = mRunUtil.runTimedCmd(getAvdTimeoutMS(), in getSdkTargets() 338 mRunUtil.setEnvVariable("ANDROID_SDK_HOME", mSdkHome.getAbsolutePath()); in setAndroidSdkHome() 405 CommandResult result = mRunUtil.runTimedCmdWithInput(getAvdTimeoutMS(), in createAvdForTarget() 456 CommandResult result = mRunUtil.runTimedCmd(getAvdTimeoutMS(), "sh", "-c", cmd); in addHardwareOptions() 481 getDeviceManager().launchEmulator(device, mMaxBootTime * 60 * 1000, mRunUtil, in launchEmulator() 489 mRunUtil.sleep(2 * 1000); in launchEmulator()
|
/tools/tradefederation/core/src/com/android/tradefed/sandbox/ |
D | TradefedSandbox.java | 70 private IRunUtil mRunUtil; field in TradefedSandbox 87 mRunUtil.runTimedCmd(timeout, mStdout, mStderr, mCmdArgs.toArray(new String[0])); in run() 134 mRunUtil = createRunUtil(); in prepareEnvironment() 135 mRunUtil.unsetEnvVariable(TF_GLOBAL_CONFIG); in prepareEnvironment() 241 mRunUtil, in prepareConfiguration()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | PythonUnitTestRunner.java | 70 private IRunUtil mRunUtil; field in PythonUnitTestRunner 77 if (mRunUtil == null) { in getRunUtil() 78 mRunUtil = new RunUtil(); in getRunUtil() 80 return mRunUtil; in getRunUtil()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | AtraceCollector.java | 110 private IRunUtil mRunUtil = RunUtil.getDefault(); field in AtraceCollector 187 mRunUtil.runTimedCmd(mLogProcessingTimeoutMilliseconds, commandLineArr); in postProcess() 236 mRunUtil = util; in setRunUtil()
|