Home
last modified time | relevance | path

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

12

/packages/modules/adb/daemon/
Dshell_service_test.cpp96 int ReadShellProtocol(borrowed_fd fd, std::string* stdout, std::string* stderr) { in ReadShellProtocol() argument
98 stdout->clear(); in ReadShellProtocol()
105 stdout->append(protocol->data(), protocol->data_length()); in ReadShellProtocol()
181 std::string stdout, stderr; in TEST_F() local
182 EXPECT_EQ(24, ReadShellProtocol(command_fd_, &stdout, &stderr)); in TEST_F()
183 ExpectLinesEqual(stdout, {"foo", "baz"}); in TEST_F()
195 std::string stdout, stderr; in TEST_F() local
196 EXPECT_EQ(50, ReadShellProtocol(command_fd_, &stdout, &stderr)); in TEST_F()
197 ExpectLinesEqual(stdout, {"foo", "bar", "baz"}); in TEST_F()
220 std::string stdout, stderr; in TEST_F() local
[all …]
/packages/apps/Car/libs/car-ui-lib/tests/apitest/
Dgit_utils.py24 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
25 stdout, stderr = result.communicate()
28 raise Exception("Git error: "+str(stdout)+str(stderr))
30 return 'car-ui-lib' in str(stdout)
/packages/apps/Car/libs/car-ui-lib/tests/tools/
Dquick_rro.py74 result = subprocess.Popen(command_args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
75 stdout, stderr = result.communicate()
77 stdout = str(stdout)
82 if len(stdout) > 0:
83 err += '\n' + stdout.strip()
88 return stdout
/packages/services/Car/tests/BugReportApp/utils/
Dbugreport_app_tester_test.py36 self._mock_popen.stdout.read.return_value = '\n \n asd\r\n\r\nqwe 123 $\n\n'
41 self._mock_popen.stdout.read.return_value = ''
47 self._mock_popen.stdout = SimpleMagicMock()
49 self._mock_popen.stdout.read = SimpleMagicMock(return_value='blah')
69 self._mock_popen.stdout.read.return_value = '123 789'
Dbugreport_app_tester.py153 raw = popen.stdout.read()
179 popen = subprocess.Popen(full_cmd, stdout=subprocess.PIPE)
326 sys.stdout.write('Remaining time %.0f seconds\r' % remaining)
327 sys.stdout.flush()
/packages/modules/adb/client/
Dcommandline.cpp85 fprintf(stdout, "%s\n", adb_version().c_str()); in help()
87 fprintf(stdout, in help()
403 fwrite(buf.data(), 1, len, stdout); in copy_to_file()
404 fflush(stdout); in copy_to_file()
850 fflush(stdout); in adb_sideload_legacy()
981 fflush(stdout); in adb_sideload_install()
1134 fwrite(buf, 1, sizeof(buf) - bytes_left, stdout); in adb_root()
1135 fflush(stdout); in adb_root()
1227 fwrite(buf.data(), 1, bytes, stdout); in write_zeros()
1228 fflush(stdout); in write_zeros()
[all …]
Dline_printer.cpp57 setvbuf(stdout, nullptr, _IONBF, 0); in LinePrinter()
67 fwrite(s.data(), 1, s.size(), stdout); in Out()
119 fflush(stdout); in Print()
Dadb_install.cpp255 fputs(buf, stdout); in install_app_streamed()
682 fputs(buf, stdout); in install_multiple_app_streamed()
796 fprintf(stdout, "Created parent session ID %d.\n", parent_session_id); in install_multi_package()
860 fprintf(stdout, "Created child session ID %d.\n", session_id); in install_multi_package()
960 fputs(buf, stdout); in install_multi_package()
Dcommandline.h72 OnStream(stdout_str_, stdout, buffer, length); in OnStdout()
Dmain.cpp92 if (setvbuf(stdout, nullptr, _IONBF, 0) == -1) { in adb_server_main()
/packages/modules/adb/
Dtest_device.py90 self.assertEqual(abb.stdout, cmd.stdout)
293 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
372 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
377 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
457 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
459 remote_pid = sleep_proc.stdout.readline().strip().decode("utf8")
489 stdout=subprocess.PIPE,
491 stdout, stderr = proc.communicate(input)
492 self.assertEqual(input.splitlines(), stdout.splitlines())
513 stdout=subprocess.PIPE)
[all …]
Dtest_adb.py125 stdout=subprocess.PIPE,
186 stdout=subprocess.PIPE,
193 stdout=subprocess.PIPE,
241 stdout=subprocess.PIPE,
248 args=(proc.stdout, stdout_event))
463 stdout=subprocess.PIPE,
671 stdout=subprocess.PIPE,
Dbenchmark_device.py90 subprocess.check_call(cmd, stdout=devnull)
/packages/apps/Car/Dialer/tests/
Dcheckresources.py6 stdout=subprocess.PIPE,
9 stdout, stderr = process.communicate() variable
11 lines = stdout.decode('utf-8').split('\n')
/packages/modules/Virtualization/vm/src/
Drun.rs44 let stdout = if daemonize { None } else { Some(&stdout_file) }; in command_run() localVariable
45 let vm = virt_manager.startVm(&config_file, stdout).context("Failed to start VM")?; in command_run()
105 let stdout_fd = io::stdout().as_raw_fd(); in duplicate_stdout()
/packages/apps/Test/connectivity/sl4n/rapidjson/example/prettyauto/
Dprettyauto.cpp22 _setmode(_fileno(stdout), _O_BINARY); // NEW in main()
34 FileWriteStream os(stdout, writeBuffer, sizeof(writeBuffer)); in main()
/packages/modules/NetworkStack/tests/hostdriven/host/src/com/android/networkstack/hosttests/
DNetworkStackHostTests.kt97 assertTrue(amResult?.stdout?.trim()?.startsWith("Restart the system") ?: false, in applyUpdateAndCheckNetworkStackRegistered()
157 cmdResult.stdout?.trim()?.let { in waitForDumpsys()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DDialogUiTest.java365 StringBuffer stdout = new StringBuffer(); in runShellCommand() local
367 stdout.append(new String(buf, 0, bytesRead)); in runShellCommand()
370 return stdout.toString(); in runShellCommand()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkWatchlistTest.java143 ParcelFileDescriptor stdout = fileDescriptors[0]; in saveResourceToFile() local
148 consumeFile(stdout); in saveResourceToFile()
/packages/apps/Traceur/src/com/android/traceur/
DAtraceUtils.java166 BufferedReader stdout = new BufferedReader( in atraceListCategories() local
175 while ((line = stdout.readLine()) != null) { in atraceListCategories()
/packages/apps/Test/connectivity/sl4n/rapidjson/example/condense/
Dcondense.cpp22 FileWriteStream os(stdout, writeBuffer, sizeof(writeBuffer)); in main()
/packages/apps/Test/connectivity/sl4n/rapidjson/example/pretty/
Dpretty.cpp20 FileWriteStream os(stdout, writeBuffer, sizeof(writeBuffer)); in main()
/packages/modules/common/tools/
Dconv_classpaths_proto.py55 default=sys.stdout.buffer)
/packages/apps/Test/connectivity/sl4n/rapidjson/example/capitalize/
Dcapitalize.cpp55 FileWriteStream os(stdout, writeBuffer, sizeof(writeBuffer)); in main()
/packages/modules/Virtualization/virtmanager/src/
Dcrosvm.rs131 command.stdout(log_fd); in run_vm()

12