Home
last modified time | relevance | path

Searched refs:stdout (Results 1 – 25 of 206) sorted by relevance

123456789

/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DProgressTracker.kt26 private val stdout: PrintWriter = PrintWriter(System.out), constant in com.android.tools.metalava.ProgressTracker
38 stdout.println() in progress()
43 stdout.print(now) in progress()
44 stdout.print(" CPU: ") in progress()
45 stdout.println(getCpuStats()) in progress()
47 stdout.print(now) in progress()
48 stdout.print(" MEM: ") in progress()
49 stdout.println(getMemoryStats()) in progress()
53 stdout.print(now) in progress()
54 stdout.print(" ") in progress()
[all …]
/tools/repohooks/rh/
Dutils.py59 def __init__(self, args=None, returncode=None, stdout=None, stderr=None): argument
61 args=args, returncode=returncode, stdout=stdout, stderr=stderr)
86 def __init__(self, returncode, cmd, stdout=None, stderr=None, msg=None): argument
87 super().__init__(returncode, cmd, stdout, stderr=stderr)
92 self._stdout = stdout
97 def stdout(self): member in CalledProcessError
101 @stdout.setter
102 def stdout(self, value): member in CalledProcessError
111 def stringify(self, stdout=True, stderr=True): argument
126 if stdout and self.stdout:
[all …]
Dgit.py35 branch = result.stdout.strip()
40 return result.stdout.strip()
51 current_branch = result.stdout.strip().replace('refs/heads/', '')
58 full_upstream = result.stdout.strip()
64 remote = result.stdout.strip()
75 return result.stdout.strip()
89 return rh.utils.run(cmd, capture_output=True).stdout
103 return rh.utils.run(cmd, capture_output=True).stdout
145 diff = rh.utils.run(cmd, cwd=path, capture_output=True).stdout
175 return rh.utils.run(cmd, capture_output=True).stdout.split()
[all …]
Dutils_unittest.py123 0, ['true'], stdout='STDOUT', stderr='STDERR')
126 assert e.stdout == 'STDOUT'
129 e.stdout = 'STDout'
133 assert e.stdout == 'STDout'
144 self.assertIsNone(ret.stdout)
150 self.assertEqual('hi\n', ret.stdout)
156 self.assertIsNone(ret.stdout)
162 self.assertEqual('ß', ret.stdout)
168 self.assertEqual('ß', ret.stdout)
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/
DOptionsTest.kt28 val (executionEnvironment, stdout, stderr) = ExecutionEnvironment.forTest() in runTest() constant
33 return Pair(stdout, stderr) in runTest()
40 val (stdout, stderr) = runTest(args) in Test invalid value() constant
41 assertEquals("", stdout.toString()) in Test invalid value()
59 val (stdout, stderr) = runTest(args) in Test help() constant
101 stdout.toString() in Test help()
109 val (stdout, stderr) = runTest(args) in Test version() constant
118 stdout.toString() in Test version()
/tools/test/connectivity/acts/framework/tests/
Dacts_job_test.py37 stdout=None, argument
42 self._stdout = bytes(stdout,
43 'utf-8') if stdout is not None else bytes()
64 return_value=FakePopen(stdout='TEST\n'))
68 self.assertTrue(result.stdout.startswith('TEST'))
76 self.assertEqual(len(result.stdout), 0)
78 self.assertFalse(result.stdout)
104 return_value=FakePopen(stdout='TEST\n'))
108 self.assertTrue(result.stdout.startswith('TEST'))
112 return_value=FakePopen(stdout='TEST\n'))
Dacts_adb_test.py25 def __init__(self, exit_status=0, stderr='', stdout=''): argument
28 self.stdout = stdout
55 mock_job = MockJob(exit_status=0, stderr='DEADBEEF', stdout='FEEDACAB')
62 mock_job = MockJob(exit_status=0, stderr='DEADBEEF', stdout='')
69 mock_job = MockJob(exit_status=1, stderr='', stdout='foo')
87 stdout='')
/tools/acloud/internal/lib/
Dssh.py59 stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
86 stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
124 stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
130 stdout, _ = process.communicate()
131 if stdout:
133 print(stdout.strip(), file=sys.stderr)
136 logger.debug(stdout.strip())
142 if constants.ERROR_MSG_SSO_INVALID in stdout:
146 if constants.ERROR_MSG_VNC_NOT_SUPPORT in stdout:
148 if constants.ERROR_MSG_WEBRTC_NOT_SUPPORT in stdout:
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/ap_lib/
Dap_get_interface.py50 interfaces_all = output.stdout.split('\n')
61 interfaces_virtual = output.stdout.split('\n')
88 lines = output.stdout.split('\n')
112 if 'Channel 06' in output.stdout and 'Channel 36' not in output.stdout:
114 elif 'Channel 36' in output.stdout and 'Channel 06' not in output.stdout:
149 interfaces_all = output.stdout.split('\n')
170 if 'RUNNING' in output.stdout:
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/cli/common/
DExecutionEnvironment.kt36 val stdout: PrintWriter = PrintWriter(OutputStreamWriter(System.out)), constant in com.android.tools.metalava.cli.common.ExecutionEnvironment
59 val stdout = PrintWriter(stdoutString) in isUnderTest() constant
63 stdout = stdout, in isUnderTest()
67 stdout = stdout, in isUnderTest()
DMetalavaCommand.kt68 private val stdout = executionEnvironment.stdout constant in com.android.tools.metalava.cli.common.MetalavaCommand
159 stdout.println("\n$commandName version: ${Version.VERSION}") in process()
161 stdout.flush() in process()
177 if (e.stdout.isNotBlank()) { in process()
178 stdout.println("\n${prefix}${e.stdout}") in process()
210 stdout = e.command.getFormattedHelp(), in processThrowCliException()
215 stdout = e.message ?: "", in processThrowCliException()
316 val CliktCommand.stdout: PrintWriter constant
317 get() = executionEnvironment.stdout
DMetalavaConsole.kt23 private val stdout = executionEnvironment.stdout constant
33 stdout.print(text) in print()
/tools/test/connectivity/acts/framework/acts/controllers/
Dfastboot.py25 def __init__(self, cmd, stdout, stderr, ret_code): argument
28 self.stdout = stdout
34 " stderr: %s") % (self.cmd, self.ret_code, self.stdout,
67 ret, out, err = result.exit_status, result.stdout, result.stderr
76 stdout=out,
81 return job.run(' '.join((self.fastboot_str, ) + args), **kwargs).stdout
/tools/repohooks/tools/
Dclang-format.py89 (result.stdout and result.returncode)):
91 if opts.fix and result.stdout and result.returncode:
92 result = rh.utils.run(['git', 'apply'], input=result.stdout,
112 stdout = result.stdout
113 if stdout.rstrip('\n') == 'no modified files to format':
119 for line in stdout.splitlines():
125 result = rh.utils.run(['git', 'apply'], input=stdout, check=False)
Dgoogle-java-format.py75 diff = rh.utils.run(diff_cmd, capture_output=True).stdout
83 stdout = rh.utils.run(cmd, input=diff, capture_output=True).stdout
84 if stdout:
/tools/asuite/adevice/tests/
Dwhole_program_tests.rs33 let mut stdout = Vec::new(); in adevice_status() localVariable
41 &mut stdout, in adevice_status()
46 let stdout_str = String::from_utf8(stdout).unwrap(); in adevice_status()
83 let mut stdout = Vec::new(); in lost_and_found_should_not_be_cleaned() localVariable
89 &mut stdout, in lost_and_found_should_not_be_cleaned()
95 let stdout_str = String::from_utf8(stdout).unwrap(); in lost_and_found_should_not_be_cleaned()
119 let mut stdout = Vec::new(); in update_should_clean_stale_files() localVariable
125 &mut stdout, in update_should_clean_stale_files()
171 let mut stdout = Vec::new(); in update_big_fs_change() localVariable
177 &mut stdout, in update_big_fs_change()
/tools/test/connectivity/acts/framework/acts/controllers/adb_lib/
Derror.py23 def __init__(self, cmd, stdout, stderr, ret_code): argument
26 self.stdout = stdout
32 ) % (self.cmd, self.ret_code, self.stdout, self.stderr)
/tools/test/connectivity/acts_tests/tests/meta/
DActsUnitTest.py44 stdout=subprocess.PIPE,
49 stdout, _ = test_process.communicate(timeout=TIMEOUT)
55 stdout, _ = test_process.communicate()
64 stdout.decode('utf-8', errors='replace')))
70 stdout.decode('utf-8', errors='replace')))
/tools/asuite/atest/metrics/
Dmetrics_utils_unittest.py42 sys.stdout = capture_output
44 sys.stdout = sys.__stdout__
64 sys.stdout = capture_output
66 sys.stdout = sys.__stdout__
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DRunUtilTest.java98 OutputStream stdout, OutputStream stderr, ProcessBuilder processBuilder) { in createRunnableResult() argument
99 RunnableResult real = super.createRunnableResult(stdout, stderr, processBuilder); in createRunnableResult()
133 File stdout = FileUtil.createTempFile("stdout_", ".txt"); in uploadCache() local
134 FileUtil.copyFile(actionResult.stdOut(), stdout); in uploadCache() local
142 ExecutableActionResult.create(actionResult.exitCode(), stdout, stderr)); in uploadCache() local
356 File stdout = FileUtil.createTempFile("stdout-test", "txt"); in testRunTimedCmdWithInput_failed() local
361 VERY_LONG_TIMEOUT_MS, null, stdout, stderr, "blahggggwarggg"); in testRunTimedCmdWithInput_failed()
370 FileUtil.deleteFile(stdout); in testRunTimedCmdWithInput_failed()
531 File stdout = null; in testRuntimedCmd_withFileOutputStream() local
536 stdout = FileUtil.createTempFile("stdout_subprocess_", ".txt"); in testRuntimedCmd_withFileOutputStream()
[all …]
/tools/external_updater/
Dgit_utils.py71 text=True).stdout
80 text=True).stdout
94 text=True).stdout.strip()
103 text=True).stdout.strip()
118 text=True).stdout
126 text=True).stdout.splitlines()
139 text=True).stdout.splitlines()
169 text=True).stdout
249 stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
257 text=True).stdout
[all …]
/tools/security/remote_provisioning/attestation_testing/
Dattestation_test_host.py15 subprocess.call('adb logcat -c', shell=True, stdout=devnull)
16 subprocess.call('adb install -r ' + APK_DIR, shell=True, stdout=devnull)
18 shell=True, stdout=devnull)
38 subprocess.call('adb uninstall com.google.attestationexample', shell=True, stdout=devnull)
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/cli/common/
DBaseOptionGroupTest.kt53 val (executionEnvironment, stdout, stderr) = ExecutionEnvironment.forTest() in createOptions() constant
60 stdout = removeBoilerplate(stdout.toString()), in createOptions()
76 val stdout: String, in removeBoilerplate() constant in com.android.tools.metalava.cli.common.BaseOptionGroupTest.Result
82 runTest { Assert.assertEquals(expectedHelp, stdout) } in removeBoilerplate()
/tools/test/connectivity/acts/framework/acts/libs/proc/
Djob.py54 def stdout(self): member in Result
73 stdout=bytes(), argument
92 self._raw_stdout = stdout
138 stdout=subprocess.PIPE,
153 stdout=out,
194 stdout=subprocess.PIPE,
/tools/asuite/adevice/src/
Dadevice.rs120 stdout: &mut impl Write, in adevice()
160 writeln!(stdout, " * Checking for files to push to device")?; in adevice()
203 stdout, in adevice()
252 writeln!(stdout, "\n * Updating {} files on device.", all_cmds.len())?; in adevice()
309 stdout: &mut impl Write, in get_update_commands()
340 print_status(stdout, status_per_file)?; in get_update_commands()
344 shadow_apk_check(stdout, status_per_file)?; in get_update_commands()
458 fn print_status(stdout: &mut impl Write, files: &HashMap<PathBuf, PushState>) -> Result<()> { in print_status()
467 print_files_in_state(stdout, files, state)?; in print_status()
510 match package_from_aapt_dump_output(aapt_output.stdout) { in is_apk_installed()
[all …]

123456789