/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | RemoteInvocationExecution.java | 150 IRunUtil runUtil = new RunUtil(); in runTests() local 164 gceInfo, options, runUtil, 120000L, "mkdir", "-p", mRemoteTradefedDir); in runTests() 181 runUtil, in runTests() 198 gceInfo, options, runUtil, 120000L, "ls", "-l", mRemoteTradefedDir); in runTests() 211 runUtil, in runTests() 247 runUtil, in runTests() 260 resetAdb(gceInfo, options, runUtil); in runTests() 267 runUtil, in runTests() 270 collectAdbLogs(gceInfo, options, runUtil, listener); in runTests() 310 IRunUtil runUtil, in runRemote() argument [all …]
|
D | DelegatedInvocationExecution.java | 131 IRunUtil runUtil = createRunUtil(receiver.getSocketServerPort()); in runTests() local 136 runUtil.runTimedCmd( in runTests() 181 IRunUtil runUtil = new RunUtil(); in createRunUtil() local 183 runUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in createRunUtil() 184 runUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in createRunUtil() 185 runUtil.setEnvVariablePriority(EnvPriority.SET); in createRunUtil() 187 runUtil.setEnvVariable( in createRunUtil() 189 runUtil.setEnvVariable("PROTO_REPORTING_PORT", Integer.toString(port)); in createRunUtil() 190 return runUtil; in createRunUtil()
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | GceManager.java | 392 TestDeviceOptions options, IRunUtil runUtil, String instanceName) { in AcloudShutdown() argument 417 runUtil.runTimedCmd( in AcloudShutdown() 431 Process p = runUtil.runCmdInBackground(Redirect.DISCARD, gceArgs); in AcloudShutdown() 457 GceAvdInfo gceAvd, TestDeviceOptions options, IRunUtil runUtil) throws IOException { in getBugreportzWithSsh() argument 458 String output = remoteSshCommandExec(gceAvd, options, runUtil, "bugreportz"); in getBugreportzWithSsh() 467 gceAvd, options, runUtil, REMOTE_FILE_OP_TIMEOUT, remoteFilePath, localTmpFile)) { in getBugreportzWithSsh() 486 GceAvdInfo gceAvd, TestDeviceOptions options, IRunUtil runUtil) throws IOException { in getNestedDeviceSshBugreportz() argument 494 runUtil, in getNestedDeviceSshBugreportz() 506 remoteSshCommandExec(gceAvd, options, runUtil, "./bin/adb", "pull", deviceFilePath); in getNestedDeviceSshBugreportz() 511 gceAvd, options, runUtil, REMOTE_FILE_OP_TIMEOUT, remoteFilePath, localTmpFile)) { in getNestedDeviceSshBugreportz() [all …]
|
D | RemoteFileUtil.java | 48 IRunUtil runUtil, in fetchRemoteFile() argument 58 remoteInstance, options, runUtil, timeout, remoteFilePath, localFile)) { in fetchRemoteFile() 83 IRunUtil runUtil, in fetchRemoteFile() argument 91 runUtil, in fetchRemoteFile() 113 IRunUtil runUtil, in fetchRemoteDir() argument 121 runUtil, in fetchRemoteDir() 142 IRunUtil runUtil, in fetchRemoteDir() argument 153 runUtil, in fetchRemoteDir() 184 IRunUtil runUtil, in pushFileToRemote() argument 192 runUtil, in pushFileToRemote() [all …]
|
D | CommonLogRemoteFileUtil.java | 114 IRunUtil runUtil) { in fetchCommonFiles() argument 127 runUtil, in fetchCommonFiles() 140 LogRemoteFile(testLogger, gceAvd, options, runUtil, file, LogDataType.TEXT, null); in fetchCommonFiles() 156 IRunUtil runUtil) { in fetchTombstones() argument 170 gceAvd, options, runUtil, 60000, "ls", "-A1", pattern); in fetchTombstones() 182 runUtil, in fetchTombstones() 218 IRunUtil runUtil, in LogRemoteFile() argument 223 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() 121 File rootDir, IRunUtil runUtil, String[] args, DumpCmd dump, File globalConfig) in dumpConfigForVersion() argument 127 return dumpConfigForVersion(classpath, runUtil, args, dump, globalConfig); in dumpConfigForVersion()
|
D | ISandbox.java | 93 String[] args, IKeyStoreClient keyStoreClient, IRunUtil runUtil, File globalConfig); in createThinLauncherConfig() argument
|
/tools/tradefederation/core/src/com/android/tradefed/cluster/ |
D | ClusterCommandLauncher.java | 141 final IRunUtil runUtil = getRunUtil(); in run() local 142 runUtil.setWorkingDir(mRootDir); in run() 144 runUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in run() 146 runUtil.setEnvVariable(key, getEnvVar(key)); in run() 156 runSetupScripts(runUtil, stdoutFile, stderrFile); in run() 186 runUtil.setWorkingDir(testWorkDir); in run() 188 runUtil.runTimedCmd( in run() 217 final IRunUtil runUtil, final File stdoutFile, final File stderrFile) { in runSetupScripts() argument 227 runUtil.runTimedCmd( in runSetupScripts()
|
/tools/tradefederation/core/test_framework/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 | 91 RunUtil runUtil = new RunUtil(); in executeHostGTestCommand() local 100 runUtil.setEnvVariable("GTEST_SHARD_INDEX", Integer.toString(getShardIndex())); in executeHostGTestCommand() 101 runUtil.setEnvVariable("GTEST_TOTAL_SHARDS", Integer.toString(getShardCount())); in executeHostGTestCommand() 105 runUtil.setRedirectStderrToStdout(true); in executeHostGTestCommand() 112 result = runUtil.runTimedCmd(timeoutMs, stream, null, cmds); in executeHostGTestCommand()
|
D | ClangCodeCoverageListener.java | 100 public void setRunUtil(IRunUtil runUtil) { in setRunUtil() argument 101 mRunUtil = runUtil; in setRunUtil()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | LocalAndroidVirtualDeviceTest.java | 225 IRunUtil runUtil = EasyMock.createMock(IRunUtil.class); in mockAcloudCreate() local 226 runUtil.setEnvVariable(EasyMock.eq("TMPDIR"), EasyMock.eq(mTmpDir.getAbsolutePath())); in mockAcloudCreate() 249 runUtil.runTimedCmd( in mockAcloudCreate() 267 return runUtil; in mockAcloudCreate() 271 IRunUtil runUtil = EasyMock.createMock(IRunUtil.class); in mockAcloudDelete() local 272 runUtil.setEnvVariable(EasyMock.eq("TMPDIR"), EasyMock.eq(mTmpDir.getAbsolutePath())); in mockAcloudDelete() 278 runUtil.runTimedCmd( in mockAcloudDelete() 288 return runUtil; in mockAcloudDelete()
|
/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 | 157 RunUtil runUtil = new RunUtil(interrupter); in testRunTimed_interrupted() local 163 runUtil.runTimed(VERY_SHORT_TIMEOUT_MS, runnable, true); in testRunTimed_interrupted() 244 RunUtil runUtil = new RunUtil() { in testRunEscalatingTimedRetry_timeout() local 273 assertFalse(runUtil.runEscalatingTimedRetry(1, 1, 512, maxTime, mockRunnable)); in testRunEscalatingTimedRetry_timeout() 433 RunUtil runUtil = new RunUtil(interrupter); in testSetInterruptibleInFuture() local 436 runUtil.setInterruptibleInFuture(thread, 123L); in testSetInterruptibleInFuture()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | LocalAndroidVirtualDevice.java | 331 IRunUtil runUtil = createRunUtil(); in acloudCreate() local 333 runUtil.setEnvVariable(TMPDIR, getTmpDir().getAbsolutePath()); in acloudCreate() 353 CommandResult result = runUtil.runTimedCmd(timeout, command.toArray(new String[0])); in acloudCreate() 407 IRunUtil runUtil = createRunUtil(); in acloudDelete() local 408 runUtil.setEnvVariable(TMPDIR, getTmpDir().getAbsolutePath()); in acloudDelete() 421 runUtil.runTimedCmd(options.getGceCmdTimeout(), command.toArray(new String[0])); in acloudDelete()
|
D | RemoteAndroidDevice.java | 287 IRunUtil runUtil = getRunUtil(); in adbConnect() local 289 runUtil = new RunUtil(); in adbConnect() 290 runUtil.setEnvVariable("ADB_TRACE", "1"); in adbConnect() 293 runUtil.runTimedCmd( in adbConnect()
|
D | FastbootHelper.java | 48 public FastbootHelper(final IRunUtil runUtil, final String fastbootPath) { in FastbootHelper() argument 49 if (runUtil == null) { in FastbootHelper() 55 mRunUtil = runUtil; in FastbootHelper()
|
D | NativeDevice.java | 1921 IRunUtil runUtil = null; in doFastbootCommand() local 1923 runUtil = new RunUtil(); in doFastbootCommand() 1924 runUtil.setEnvVariable("TMPDIR", fastbootTmpDir.getAbsolutePath()); in doFastbootCommand() 1926 runUtil = getRunUtil(); in doFastbootCommand() 1933 result = runUtil.runTimedCmd(timeout, fullCmd); in doFastbootCommand()
|
D | DeviceManager.java | 745 public void launchEmulator(ITestDevice device, long bootTimeout, IRunUtil runUtil, in launchEmulator() argument 763 Process p = runUtil.runCmdInBackground(fullArgs, emulatorOutput); in launchEmulator()
|
D | IDeviceManager.java | 111 void launchEmulator(ITestDevice device, long bootTimeout, IRunUtil runUtil, in launchEmulator() argument
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | DeviceImageZipFlashingTargetPreparer.java | 110 IRunUtil runUtil = new RunUtil(); in performDeviceUpdate() local 111 runUtil.setEnvVariable(ANDROID_SERIAL_ENV, device.getSerialNumber()); in performDeviceUpdate() 112 runUtil.setWorkingDir(extractedImage); in performDeviceUpdate() 115 runUtil.runTimedCmd( in performDeviceUpdate()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/binary/ |
D | ExecutableHostTest.java | 105 IRunUtil runUtil = createRunUtil(); in runBinary() local 107 runUtil.setRedirectStderrToStdout(true); in runBinary() 110 runUtil.setEnvVariable(ANDROID_SERIAL, getTestInfo().getDevice().getSerialNumber()); in runBinary() 131 runUtil.runTimedCmd( in runBinary()
|
/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/src/com/android/tradefed/testtype/ |
D | SubprocessTfLauncher.java | 207 protected void setRunUtil(IRunUtil runUtil) { in setRunUtil() argument 208 mRunUtil = runUtil; in setRunUtil()
|