Home
last modified time | relevance | path

Searched refs:runUtil (Results 1 – 22 of 22) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/invoker/
DRemoteInvocationExecution.java126 IRunUtil runUtil = new RunUtil(); in runTests() local
139 boolean res = startDevice(listener, i, info, options, runUtil, null); in runTests()
150 new StartDeviceThread(listener, i, info, options, runUtil, token); in runTests()
187 info, options, runUtil, 120000L, "mkdir", "-p", mRemoteTradefedDir); in runTests()
202 runUtil, in runTests()
217 info, options, runUtil, 120000L, "ls", "-l", mRemoteTradefedDir); in runTests()
230 runUtil, in runTests()
264 runUtil, in runTests()
275 resetAdb(info, options, runUtil); in runTests()
276 runRemote(listener, context, configFile, info, options, runUtil, config, globalConfig); in runTests()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DMultiUserSetupUtil.java41 IRunUtil runUtil, in prepareRemoteUser() argument
48 remoteInstance, options, runUtil, timeoutMs, createUserCommand.split(" ")); in prepareRemoteUser()
60 IRunUtil runUtil, in addExtraCvdUser() argument
68 remoteInstance, options, runUtil, timeoutMs, createUserCommand.split(" ")); in addExtraCvdUser()
85 IRunUtil runUtil, in setupNetworkInterface() argument
98 remoteInstance, options, runUtil, timeoutMs, mtapCommand.split(" ")); in setupNetworkInterface()
106 remoteInstance, options, runUtil, timeoutMs, wtapCommand.split(" ")); in setupNetworkInterface()
119 IRunUtil runUtil, in prepareRemoteHomeDir() argument
130 runUtil, in prepareRemoteHomeDir()
140 remoteInstance, options, runUtil, timeoutMs, chownUser); in prepareRemoteHomeDir()
[all …]
DGceManager.java342 GceAvdInfo gceAvd, TestDeviceOptions options, IRunUtil runUtil) throws IOException { in getBugreportzWithSsh() argument
343 String output = remoteSshCommandExec(gceAvd, options, runUtil, "bugreportz"); in getBugreportzWithSsh()
352 gceAvd, options, runUtil, REMOTE_FILE_OP_TIMEOUT, remoteFilePath, localTmpFile)) { in getBugreportzWithSsh()
371 GceAvdInfo gceAvd, TestDeviceOptions options, IRunUtil runUtil) throws IOException { in getNestedDeviceSshBugreportz() argument
376 output = remoteSshCommandExec(gceAvd, options, runUtil, "adb", "shell", "bugreportz"); in getNestedDeviceSshBugreportz()
389 remoteSshCommandExec(gceAvd, options, runUtil, "adb", "pull", deviceFilePath); in getNestedDeviceSshBugreportz()
394 gceAvd, options, runUtil, REMOTE_FILE_OP_TIMEOUT, remoteFilePath, localTmpFile)) { in getNestedDeviceSshBugreportz()
416 IRunUtil runUtil, in logNestedRemoteFile() argument
419 logNestedRemoteFile(logger, gceAvd, options, runUtil, remoteFilePath, type, null); in logNestedRemoteFile()
439 IRunUtil runUtil, in logNestedRemoteFile() argument
[all …]
DRemoteFileUtil.java47 IRunUtil runUtil, in fetchRemoteFile() argument
57 remoteInstance, options, runUtil, timeout, remoteFilePath, localFile)) { in fetchRemoteFile()
82 IRunUtil runUtil, in fetchRemoteFile() argument
90 runUtil, in fetchRemoteFile()
114 IRunUtil runUtil, in pushFileToRemote() argument
122 runUtil, in pushFileToRemote()
133 IRunUtil runUtil, in internalScpExec() argument
147 CommandResult resScp = runUtil.runTimedCmd(timeout, scpCmd.toArray(new String[0])); in internalScpExec()
DCommonLogRemoteFileUtil.java100 IRunUtil runUtil) { in fetchCommonFiles() argument
113 runUtil, in fetchCommonFiles()
126 LogRemoteFile(testLogger, gceAvd, options, runUtil, file, LogDataType.TEXT, null); in fetchCommonFiles()
146 IRunUtil runUtil, in LogRemoteFile() argument
151 testLogger, gceAvd, options, runUtil, fileToRetrieve, logType, baseName); in LogRemoteFile()
DRemoteSshUtil.java44 IRunUtil runUtil, in remoteSshCommandExec() argument
56 return runUtil.runTimedCmd(timeoutMs, stdout, stderr, sshCmd.toArray(new String[0])); in remoteSshCommandExec()
73 IRunUtil runUtil, in remoteSshCommandExec() argument
77 remoteInstance, options, runUtil, timeoutMs, null, null, command); in remoteSshCommandExec()
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DSandboxConfigUtil.java57 String classpath, IRunUtil runUtil, String[] args, DumpCmd dump, File globalConfig) in dumpConfigForVersion() argument
63 runUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in dumpConfigForVersion()
64 runUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in dumpConfigForVersion()
69 runUtil.setEnvVariable( in dumpConfigForVersion()
71 runUtil.setEnvVariablePriority(EnvPriority.SET); in dumpConfigForVersion()
88 CommandResult result = runUtil.runTimedCmd(DUMP_TIMEOUT, mCmdArgs.toArray(new String[0])); in dumpConfigForVersion()
120 File rootDir, IRunUtil runUtil, String[] args, DumpCmd dump, File globalConfig) in dumpConfigForVersion() argument
126 return dumpConfigForVersion(classpath, runUtil, args, dump, globalConfig); in dumpConfigForVersion()
DISandbox.java93 String[] args, IKeyStoreClient keyStoreClient, IRunUtil runUtil, File globalConfig); in createThinLauncherConfig() argument
DTradefedSandbox.java414 String[] args, IKeyStoreClient keyStoreClient, IRunUtil runUtil, File globalConfig) { in createThinLauncherConfig() argument
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DPythonUnitTestRunner.java93 IRunUtil runUtil = getRunUtil(); in run() local
94 runUtil.setEnvVariable(PYTHONPATH, mPythonPath); in run()
96 doRunTest(listener, runUtil, module); in run()
119 IRunUtil runUtil = RunUtil.getDefault(); in getPythonBinary() local
120 CommandResult c = runUtil.runTimedCmd(1000, "which", "python"); in getPythonBinary()
125 c = runUtil.runTimedCmd(1000, pythonBin, "--version"); in getPythonBinary()
193 void doRunTest(ITestInvocationListener listener, IRunUtil runUtil, String pyModule) { in doRunTest() argument
202 CommandResult c = runUtil.runTimedCmd(mTestTimeout, cmd); in doRunTest()
DHostGTest.java90 RunUtil runUtil = new RunUtil(); in executeHostGTestCommand() local
99 runUtil.setEnvVariable("GTEST_SHARD_INDEX", Integer.toString(getShardIndex())); in executeHostGTestCommand()
100 runUtil.setEnvVariable("GTEST_TOTAL_SHARDS", Integer.toString(getShardCount())); in executeHostGTestCommand()
104 runUtil.setRedirectStderrToStdout(true); in executeHostGTestCommand()
111 result = runUtil.runTimedCmd(timeoutMs, stream, null, cmds); in executeHostGTestCommand()
DSubprocessTfLauncher.java135 protected void setRunUtil(IRunUtil runUtil) { in setRunUtil() argument
136 mRunUtil = runUtil; in setRunUtil()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DRunUtilFuncTest.java161 RunUtil runUtil = new RunUtil(); in testUnsetEnvVariable() local
162 runUtil.setEnvVariable("bar", "foo"); in testUnsetEnvVariable()
166 runUtil.runTimedCmdRetry(SHORT_TIMEOUT_MS, SHORT_TIMEOUT_MS, 3, "printenv", "bar"); in testUnsetEnvVariable()
176 runUtil.unsetEnvVariable("bar"); in testUnsetEnvVariable()
178 result = runUtil.runTimedCmd(SHORT_TIMEOUT_MS, "printenv", "bar"); in testUnsetEnvVariable()
188 RunUtil runUtil = new RunUtil(); in testRunTimedCmd_timeout() local
190 CommandResult result = runUtil.runTimedCmd(VERY_SHORT_TIMEOUT_MS, command); in testRunTimedCmd_timeout()
DRunUtilTest.java154 RunUtil runUtil = new RunUtil(interrupter); in testRunTimed_interrupted() local
160 runUtil.runTimed(VERY_SHORT_TIMEOUT_MS, runnable, true); in testRunTimed_interrupted()
241 RunUtil runUtil = new RunUtil() { in testRunEscalatingTimedRetry_timeout() local
270 assertFalse(runUtil.runEscalatingTimedRetry(1, 1, 512, maxTime, mockRunnable)); in testRunEscalatingTimedRetry_timeout()
430 RunUtil runUtil = new RunUtil(interrupter); in testSetInterruptibleInFuture() local
433 runUtil.setInterruptibleInFuture(thread, 123L); in testSetInterruptibleInFuture()
/tools/tradefederation/core/src/com/android/tradefed/testtype/binary/
DExecutableHostTest.java101 IRunUtil runUtil = createRunUtil(); in runBinary() local
103 runUtil.setRedirectStderrToStdout(true); in runBinary()
106 runUtil.setEnvVariable(ANDROID_SERIAL, mDevice.getSerialNumber()); in runBinary()
114 runUtil.runTimedCmd(mTimeoutPerBinaryMs, command.toArray(new String[0])); in runBinary()
/tools/tradefederation/core/src/com/android/tradefed/device/
DRemoteAndroidDevice.java277 IRunUtil runUtil = getRunUtil(); in adbConnect() local
279 runUtil = new RunUtil(); in adbConnect()
280 runUtil.setEnvVariable("ADB_TRACE", "1"); in adbConnect()
283 runUtil.runTimedCmd( in adbConnect()
DFastbootHelper.java45 public FastbootHelper(final IRunUtil runUtil, final String fastbootPath) { in FastbootHelper() argument
46 if (runUtil == null) { in FastbootHelper()
52 mRunUtil = runUtil; in FastbootHelper()
DIDeviceManager.java111 void launchEmulator(ITestDevice device, long bootTimeout, IRunUtil runUtil, in launchEmulator() argument
DNativeDevice.java1828 IRunUtil runUtil = null; in doFastbootCommand() local
1830 runUtil = new RunUtil(); in doFastbootCommand()
1831 runUtil.setEnvVariable("TMPDIR", fastbootTmpDir.getAbsolutePath()); in doFastbootCommand()
1833 runUtil = getRunUtil(); in doFastbootCommand()
1840 result = runUtil.runTimedCmd(timeout, fullCmd); in doFastbootCommand()
DDeviceManager.java692 public void launchEmulator(ITestDevice device, long bootTimeout, IRunUtil runUtil, in launchEmulator() argument
710 Process p = runUtil.runCmdInBackground(fullArgs, emulatorOutput); in launchEmulator()
/tools/tradefederation/core/src/com/android/tradefed/config/
DSandboxConfigurationFactory.java111 String[] args, IKeyStoreClient keyStoreClient, ISandbox sandbox, IRunUtil runUtil) in createConfigurationFromArgs() argument
117 runUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in createConfigurationFromArgs()
124 runUtil, in createConfigurationFromArgs()
138 config = sandbox.createThinLauncherConfig(args, keyStoreClient, runUtil, globalConfig); in createConfigurationFromArgs()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DMockDeviceManager.java344 public void launchEmulator(ITestDevice device, long bootTimeout, IRunUtil runUtil, in launchEmulator() argument