Home
last modified time | relevance | path

Searched refs:mRunUtil (Results 1 – 14 of 14) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DRunHostCommandTargetPreparerTest.java48 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()
105 mRunUtil.setWorkingDir(EasyMock.anyObject()); in testSetUp_withWorkDir()
106 EasyMock.expect(mRunUtil.runTimedCmd(10L, commandArray)).andReturn(result); in testSetUp_withWorkDir()
109 EasyMock.replay(mRunUtil, mDevice); in testSetUp_withWorkDir()
111 EasyMock.verify(mRunUtil, mDevice); in testSetUp_withWorkDir()
[all …]
DPythonVirtualenvPreparerTest.java48 mPreparer.mRunUtil = mMockRunUtil; in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DRunUtilTest.java54 private RunUtil mRunUtil; field in RunUtilTest
66 mRunUtil = new RunUtil(new CommandInterrupter()); in setUp()
118 mRunUtil.runTimed(SHORT_TIMEOUT_MS, mockRunnable, true)); in testRunTimed()
131 mRunUtil.runTimed(SHORT_TIMEOUT_MS, mockRunnable, true)); in testRunTimed_failed()
146 mRunUtil.runTimed(VERY_LONG_TIMEOUT_MS, mockRunnable, true)); in testRunTimed_exception()
185 CommandResult result = mRunUtil.runTimedCmd(VERY_SHORT_TIMEOUT_MS, command); in testRunTimedCmd_timeout()
279 mRunUtil.allowInterrupt(true); in testInterrupt()
281 mRunUtil.interrupt(Thread.currentThread(), message); in testInterrupt()
296 mRunUtil.allowInterrupt(false); in testInterrupt_delayed()
297 mRunUtil.interrupt(Thread.currentThread(), message); in testInterrupt_delayed()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DSubprocessTfLauncher.java99 protected IRunUtil mRunUtil = new RunUtil(); field in SubprocessTfLauncher
136 mRunUtil = runUtil; in setRunUtil()
141 return mRunUtil; in getRunUtil()
179 mRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in preRun()
180 mRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in preRun()
181 mRunUtil.unsetEnvVariable(ANDROID_SERIAL_VAR); in preRun()
198 mRunUtil.setEnvVariablePriority(EnvPriority.SET); in preRun()
199 mRunUtil.setEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE, mGlobalConfig); in preRun()
272 CommandResult result = mRunUtil.runTimedCmd(mMaxTfRunTime, stdout, in run()
DPythonUnitTestRunner.java74 private IRunUtil mRunUtil; field in PythonUnitTestRunner
81 if (mRunUtil == null) { in getRunUtil()
82 mRunUtil = new RunUtil(); in getRunUtil()
84 return mRunUtil; in getRunUtil()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DPythonVirtualenvPreparer.java57 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()
DRunHostCommandTargetPreparer.java95 private IRunUtil mRunUtil; field in RunHostCommandTargetPreparer
262 if (mRunUtil == null) { in getRunUtil()
263 mRunUtil = new RunUtil(); in getRunUtil()
265 return mRunUtil; in getRunUtil()
/tools/tradefederation/core/src/com/android/tradefed/device/
DFastbootHelper.java37 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/sandbox/
DTradefedSandbox.java84 private IRunUtil mRunUtil; field in TradefedSandbox
111 mRunUtil.allowInterrupt(false); in run()
113 mRunUtil.runTimedCmd(timeout, mStdout, mStderr, mCmdArgs.toArray(new String[0])); in run()
196 mRunUtil = createRunUtil(); in prepareEnvironment()
197 mRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in prepareEnvironment()
198 mRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in prepareEnvironment()
322 createClasspath(mRootFolder), mRunUtil, args, mode, mGlobalConfig); in prepareConfiguration()
336 mRunUtil, in prepareConfiguration()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/adb/
DAdbStopServerPreparer.java62 private IRunUtil mRunUtil; field in AdbStopServerPreparer
150 if (mRunUtil == null) { in getRunUtil()
151 mRunUtil = createRunUtil(); in getRunUtil()
153 return mRunUtil; in getRunUtil()
/tools/tradefederation/core/src/com/android/tradefed/testtype/python/
DPythonBinaryHostTest.java102 private IRunUtil mRunUtil; field in PythonBinaryHostTest
260 if (mRunUtil == null) { in getRunUtil()
261 mRunUtil = new RunUtil(); in getRunUtil()
263 return mRunUtil; in getRunUtil()
/tools/tradefederation/core/src/com/android/tradefed/util/
DBundletoolUtil.java51 private IRunUtil mRunUtil; field in BundletoolUtil
55 mRunUtil = new RunUtil(); in BundletoolUtil()
178 return mRunUtil; in getRunUtil()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DAtraceCollector.java132 private IRunUtil mRunUtil = RunUtil.getDefault(); field in AtraceCollector
209 mRunUtil.runTimedCmd(mLogProcessingTimeoutMilliseconds, commandLineArr); in postProcess()
289 mRunUtil = util; in setRunUtil()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DRemoteInvocationExecution.java692 private IRunUtil mRunUtil; field in RemoteInvocationExecution.StartDeviceThread
711 mRunUtil = runUtil; in StartDeviceThread()
718 mFinalResult = startDevice(mListener, mUserId, mInfo, mOptions, mRunUtil, mToken); in run()