/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | RemoteInvocationExecution.java | 126 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/ |
D | MultiUserSetupUtil.java | 41 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 …]
|
D | GceManager.java | 342 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 …]
|
D | RemoteFileUtil.java | 47 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()
|
D | CommonLogRemoteFileUtil.java | 100 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()
|
D | RemoteSshUtil.java | 44 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/ |
D | SandboxConfigUtil.java | 57 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()
|
D | ISandbox.java | 93 String[] args, IKeyStoreClient keyStoreClient, IRunUtil runUtil, File globalConfig); in createThinLauncherConfig() argument
|
D | TradefedSandbox.java | 414 String[] args, IKeyStoreClient keyStoreClient, IRunUtil runUtil, File globalConfig) { in createThinLauncherConfig() argument
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | PythonUnitTestRunner.java | 93 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()
|
D | HostGTest.java | 90 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()
|
D | SubprocessTfLauncher.java | 135 protected void setRunUtil(IRunUtil runUtil) { in setRunUtil() argument 136 mRunUtil = runUtil; in setRunUtil()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | RunUtilFuncTest.java | 161 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()
|
D | RunUtilTest.java | 154 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/ |
D | ExecutableHostTest.java | 101 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/ |
D | RemoteAndroidDevice.java | 277 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()
|
D | FastbootHelper.java | 45 public FastbootHelper(final IRunUtil runUtil, final String fastbootPath) { in FastbootHelper() argument 46 if (runUtil == null) { in FastbootHelper() 52 mRunUtil = runUtil; in FastbootHelper()
|
D | IDeviceManager.java | 111 void launchEmulator(ITestDevice device, long bootTimeout, IRunUtil runUtil, in launchEmulator() argument
|
D | NativeDevice.java | 1828 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()
|
D | DeviceManager.java | 692 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/ |
D | SandboxConfigurationFactory.java | 111 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/ |
D | MockDeviceManager.java | 344 public void launchEmulator(ITestDevice device, long bootTimeout, IRunUtil runUtil, in launchEmulator() argument
|