/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | RunUtilFuncTest.java | 111 CLog.d(result.getStdout()); in testRunTimedCmd_repeatedOutput() 112 assertEquals("hello\n", result.getStdout()); in testRunTimedCmd_repeatedOutput() 125 assertTrue(result.getStdout().isEmpty()); in testRunTimedCmd_noTimeout() 155 result.getStatus(), result.getStdout(), result.getStderr()), in testRunTimedCmd_largeOutput() 158 assertTrue(result.getStdout().length() == dataSize); in testRunTimedCmd_largeOutput() 177 result.getStatus(), result.getStdout(), result.getStderr()), in testUnsetEnvVariable() 180 assertEquals("foo", result.getStdout().trim()); in testUnsetEnvVariable() 187 assertEquals("", result.getStdout().trim()); in testUnsetEnvVariable() 202 result.getStatus(), result.getStdout(), result.getStderr()), in testRunTimedCmd_timeout() 205 assertEquals("", result.getStdout()); in testRunTimedCmd_timeout() [all …]
|
D | RunUtilTest.java | 218 assertEquals("", result.getStdout()); in testRunTimedCmd_failed() 363 assertEquals("", result.getStdout()); in testRunTimedCmdWithInput_failed() 384 assertEquals("", result.getStdout()); in testRunTimedCmd_timeout() 549 result.getStdout(), "redirected to " + stdoutStream.getClass().getSimpleName()); in testRuntimedCmd_withFileOutputStream() 575 assertEquals("TEST STDOUT\n", result.getStdout()); in testRuntimedCmd_regularOutput_fileNull() 606 result.getStdout(), "redirected to " + stdoutStream.getClass().getSimpleName()); in testRuntimedCmd_notWritable() 653 assertNotNull(result.getStdout()); in testUnsetPriority() 655 assertEquals("\n", result.getStdout()); in testUnsetPriority() 670 assertNotNull(result.getStdout()); in testUnsetPriority_inverted() 672 assertEquals(expected + "\n", result.getStdout()); in testUnsetPriority_inverted() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | FastbootHelper.java | 77 fastbootResult.getStdout(), fastbootResult.getStderr()); in isFastbootAvailable() 91 fastbootResult.getStdout()); in getDevices() 92 return parseDevices(fastbootResult.getStdout(), false); in getDevices() 109 CLog.v("fastboot devices returned\n %s", fastbootResult.getStdout()); in getBootloaderAndFastbootdDevices() 110 Set<String> fastboot = parseDevices(fastbootResult.getStdout(), false); in getBootloaderAndFastbootdDevices() 111 Set<String> fastbootd = parseDevices(fastbootResult.getStdout(), true); in getBootloaderAndFastbootdDevices() 197 return fastbootResult.getStdout(); in executeCommand()
|
D | WifiHelper.java | 220 result.getStatus(), result.getStdout(), result.getStderr()); in enableWifi() 235 enableOutput.getStdout(), enableOutput.getStderr()); in enableWifiV2() 446 && !statusOutput.getStdout().contains("Wifi is disabled")) { in isWifiEnabledV2() 527 return WifiCommandUtil.parseWifiInfo(statusOutput.getStdout()); in getWifiInfoV2() 550 && statusOutput.getStdout().contains("Wifi is connected")) { in checkConnectivityV2() 643 connectOutput.getStdout(), connectOutput.getStderr()); in connectToNetworkV2() 661 listOutput.getStdout(), listOutput.getStderr()); in getScanResults() 666 WifiCommandUtil.parseScanResults(listOutput.getStdout()); in getScanResults() 670 CLog.d("Scan results is not available yet. Scan Results:\n%s", listOutput.getStdout()); in getScanResults()
|
D | MicrodroidHelper.java | 52 return result.getStdout().trim(); in runOnMicrodroid() 69 return result.getStdout().trim(); in tryRunOnMicrodroid()
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/ |
D | AndroidDebugBridgeWrapper.java | 93 Matcher m = VERSION_PATTERN.matcher(res.getStdout()); in getAdbVersion() 103 Matcher revision = REVISION_PATTERN.matcher(res.getStdout()); in getAdbVersion() 108 Matcher subVersion = SUB_VERSION_PATTERN.matcher(res.getStdout()); in getAdbVersion() 113 Matcher installPath = PATH_PATTERN.matcher(res.getStdout()); in getAdbVersion() 122 res.getStdout(), res.getStderr()); in getAdbVersion()
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/sync/ |
D | IncrementalImageFuncTest.java | 177 CLog.e("stdout: %s, stderr: %s", whichOutput.getStdout(), whichOutput.getStderr()); in testBlockCompareUpdate() 210 CLog.e("stdout: %s, stderr: %s", mapOutput.getStdout(), mapOutput.getStderr()); in testBlockCompareUpdate() 230 CLog.d("stdout: %s", fastbootResult.getStdout()); in testBlockCompareUpdate() 236 CLog.d("stdout: %s, stderr: %s", psOutput.getStdout(), psOutput.getStderr()); in testBlockCompareUpdate() 274 String.format("%s\n%s", result.getStdout(), result.getStderr())); in blockCompare() 307 CLog.d("Stdout: %s", result.getStdout()); in inspectCowPatches() 321 CLog.d("stdout: %s, stderr: %s", lsOutput.getStdout(), lsOutput.getStderr()); in listMappingAndCompare() 326 String[] lineArray = lsOutput.getStdout().split("\n"); in listMappingAndCompare() 358 CLog.d("stdout: %s, stderr: %s", md5Output.getStdout(), md5Output.getStderr()); in listMappingAndCompare() 362 String md5device = md5Output.getStdout().trim().split("\\s+")[0]; in listMappingAndCompare() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/connection/ |
D | AdbTcpConnection.java | 135 && result.getStdout().contains(ADB_SUCCESS_CONNECT_TAG)) { in adbTcpConnect() 138 result.getStatus(), result.getStdout()); in adbTcpConnect() 146 && result.getStdout().contains(ADB_CONN_REFUSED)) { in adbTcpConnect() 152 result.getStatus(), result.getStdout(), result.getStderr()); in adbTcpConnect() 179 && resultConfirmation.getStdout().contains(ADB_ALREADY_CONNECTED_TAG)) { in confirmAdbTcpConnect() 180 CLog.d("adb connect confirmed:\nstdout: %s\n", resultConfirmation.getStdout()); in confirmAdbTcpConnect() 186 resultConfirmation.getStdout(), in confirmAdbTcpConnect()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | GCSBucketUtil.java | 193 res.getStdout(), in copy() 292 res.getStdout(), in makeBucket() 331 res.getStdout(), in ls() 334 return Arrays.asList(res.getStdout().split("\n")); in ls() 438 res.getStdout(), in stat() 441 return GCSFileMetadata.parseStat(res.getStdout()); in stat() 477 Matcher matcher = md5Pattern.matcher(res.getStdout()); in md5Hash() 487 res.getStdout(), in md5Hash() 520 return res.getStdout(); in pullContents() 597 res.getStdout(), in remove() [all …]
|
D | AaptParser.java | 196 if (!CommandStatus.SUCCESS.equals(result.getStatus()) || !p.parse(result.getStdout())) { in parse() 199 toolName(aaptVersion), apkFile.getAbsoluteFile(), result.getStdout()); in parse() 216 || !p.parseXmlTree(result.getStdout())) { in parse() 219 toolName(aaptVersion), apkFile.getAbsoluteFile(), result.getStdout()); in parse()
|
D | NativeCodeCoverageFlusher.java | 131 } else if (result.getStdout().trim().isEmpty()) { in findSignalHandlingPids() 136 long sigCgt = Long.parseUnsignedLong(result.getStdout().trim(), 16); in findSignalHandlingPids()
|
/tools/tradefederation/core/src/com/android/tradefed/util/image/ |
D | IncrementalImageUtil.java | 262 CLog.d("stdout: %s, stderr: %s", whichOutput.getStdout(), whichOutput.getStderr()); in isSnapshotSupported() 263 if (!whichOutput.getStdout().contains("/system/bin/snapshotctl")) { in isSnapshotSupported() 267 CLog.d("stdout: %s, stderr: %s", helpOutput.getStdout(), helpOutput.getStderr()); in isSnapshotSupported() 269 if (helpOutput.getStdout().contains("apply-update") in isSnapshotSupported() 274 if (helpOutput.getStdout().contains("map-snapshots") in isSnapshotSupported() 305 CLog.d("stdout: %s, stderr: %s", dumpOutput.getStdout(), dumpOutput.getStderr()); in isSnapshotInUse() 306 if (dumpOutput.getStdout().contains("Using snapuserd: 0")) { in isSnapshotInUse() 424 CLog.d("stdout: %s, stderr: %s", listSnapshots.getStdout(), listSnapshots.getStderr()); in internalUpdateDevice() 429 CLog.d("stdout: %s, stderr: %s", mapOutput.getStdout(), mapOutput.getStderr()); in internalUpdateDevice() 436 mapOutput.getStdout(), mapOutput.getStderr()), in internalUpdateDevice() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | HostOrchestratorUtil.java | 87 CLog.e("Failed pulling cvd logs via Host Orchestrator: %s", commandRes.getStdout()); in pullCvdHostLogs() 126 CLog.e("Failed getting cvd status via Host Orchestrator: %s", curlRes.getStdout()); in powerwashGce() 129 String cvdGroup = parseCvdOutput(curlRes.getStdout(), "group"); in powerwashGce() 130 String cvdName = parseCvdOutput(curlRes.getStdout(), "name"); in powerwashGce() 143 CLog.e("Failed powerwashing cvd via Host Orchestrator: %s", curlRes.getStdout()); in powerwashGce() 237 commandRes.getStdout(), in curlCommandExecution() 239 if (commandRes.getStdout().contains(UNSUPPORTED_API_RESPONSE)) { in curlCommandExecution()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | VideoMultimeterTest.java | 183 CLog.i("Starting calibration: " + cr.getStdout()); in doCalibration() 191 if (cr.getStdout().contains("calib0")) { in doCalibration() 222 CLog.i("Stopping measurement: " + cr.getStdout()); in setupTestEnv() 230 final String response = mDebugWithoutHardware ? "OK" : cr.getStdout(); in setupTestEnv() 235 CLog.e("Failed to set calibration values: " + cr.getStdout()); in setupTestEnv() 255 CLog.i("Starting measurement: " + cr.getStdout()); in doMeasurement() 261 CLog.i("Stopping measurement: " + cr.getStdout()); in doMeasurement() 262 if (cr == null || !cr.getStdout().contains("OK")) { in doMeasurement() 265 CLog.i("Retry - Stopping measurement: " + cr.getStdout()); in doMeasurement() 279 String frameNum = cr.getStdout(); in getResult() [all …]
|
/tools/tradefederation/core/test_framework/com/android/tradefed/util/ |
D | AdbUtils.java | 67 pathResult.getStdout(), in updateAdb() 75 pathResult.getStdout().trim()); in updateAdb() 80 CLog.d("%s", versionRes.getStdout()); in updateAdb()
|
D | PythonVirtualenvHelper.java | 119 result.getStdout(), in getPackageInstallLocation() 122 String stdout = result.getStdout(); in getPackageInstallLocation()
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/util/ |
D | TargetFileUtils.java | 78 commandResult.getStdout(), in getPermission() 82 return commandResult.getStdout().trim(); in getPermission() 159 command, result.getStdout(), result.getStderr()); in findFile() 162 findedFiles = new ArrayList<>(Arrays.asList(result.getStdout().split("\n"))); in findFile()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | RunCommandTargetPreparer.java | 138 cmd, result.getStdout(), result.getStderr()), in setUp() 144 cmd, result.getStdout(), result.getStderr()); in setUp() 149 cmd, result.getStdout(), result.getStderr()); in setUp() 187 cmd, result.getStdout(), result.getStderr()); in tearDown() 191 cmd, result.getStdout(), result.getStderr()); in tearDown()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/rust/ |
D | RustBinaryHostTest.java | 202 collectTestLines(listResult.getStdout().split("\n"), foundTests); in countTests() 208 listResult.getStdout(), in countTests() 249 result.getExitCode(), result.getStdout(), result.getStderr()); in runTest() 267 if (result.getStdout().length() > 0) { in runTest() 268 FileUtil.writeToFile(result.getStdout(), resultFile); in runTest() 275 parser.addOutput(result.getStdout().getBytes(), 0, result.getStdout().length()); in runTest()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | TestDeviceShellFuncTest.java | 124 assertEquals(devicePath.trim(), outputResult.getStdout().trim()); in testExecuteShellCommandV2_basic() 134 assertEquals(contents.trim(), contentsOutputResult.getStdout().trim()); in testExecuteShellCommandV2_basic() 154 assertEquals(contents, result.getStdout()); in testExecuteShellCommand_pipeStdin()
|
/tools/tradefederation/core/javatests/com/android/tradefed/monitoring/collector/ |
D | DeviceWifiResourceMetricCollectorTest.java | 99 public String getStdout() { in setup() 121 public String getStdout() { in testGetDeviceResourceMetrics_noWifi() 152 public String getStdout() { in testGetDeviceResourceMetrics_success()
|
/tools/tradefederation/core/src/com/android/tradefed/monitoring/collector/ |
D | ResourceMetricUtil.java | 55 if (result.getStatus().equals(CommandStatus.SUCCESS) && result.getStdout() != null) { in GetCommandResponse() 56 return Optional.of(result.getStdout()); in GetCommandResponse()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/adb/ |
D | AdbStopServerPreparer.java | 111 result.getStdout(), result.getStderr()), in setUp() 131 CLog.d("Restart adb - stdout: %s\nstderr: %s", restart.getStdout(), restart.getStderr()); in tearDown() 203 String uid = uidRes.getStdout().trim(); in findAdbLog()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | PythonVirtualenvPreparer.java | 97 CLog.d("Stdout: %s", c.getStdout()); in installDeps() 146 c.getStatus(), c.getStdout(), c.getStderr()); in startVirtualenv() 187 String stdout = result.getStdout(); // should start with 'virtualenv <version> from' in checkVirtualenvVersion()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | RemoteInvocationExecution.java | 192 CLog.e("Command stdout: %s, stderr: %s", cr.getStdout(), cr.getStderr()); in runTests() 226 CLog.d("stdout: %s", listRemoteDir.getStdout()); in runTests() 338 CLog.w("Command stdout: %s, stderr: %s", cr.getStdout(), cr.getStderr()); in runTests() 405 CLog.e("Error running the remote command: %s", resultRemoteExecution.getStdout()); in runRemote() 570 CLog.d("ps -ef: stdout: %s\nstderr: %s\n", psRes.getStdout(), psRes.getStderr()); in isStillRunning() 571 stillRunning = psRes.getStdout().contains(configFile.getName()); in isStillRunning() 627 CLog.d("remote adb prob: %s", probAdb.getStdout()); in resetAdb() 633 CLog.d("version adb: %s", versionAdb.getStdout()); in resetAdb() 646 String folder = tmpDirFolder.getStdout().trim(); in collectAdbLogs() 655 String uidString = uid.getStdout().trim(); in collectAdbLogs()
|