Home
last modified time | relevance | path

Searched refs:STDOUT_FILENO (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/compile/mclinker/lib/Support/
Draw_ostream.cpp24 #ifndef STDOUT_FILENO
25 #define STDOUT_FILENO 1 macro
94 static raw_fd_ostream S(STDOUT_FILENO, false); in outs()
/frameworks/native/cmds/bugreportz/
Dbugreportz.cpp41 android::base::WriteStringToFd(line, STDOUT_FILENO); in write_line()
90 if (!android::base::WriteFully(android::base::borrowed_fd(STDOUT_FILENO), buffer, in bugreportz_stream()
/frameworks/av/media/libaudioclient/tests/
Dtest_create_utils.cpp74 int outputFileFd = STDOUT_FILENO; in main()
122 if (outputFileFd >= 0 && outputFileFd != STDOUT_FILENO) { in main()
/frameworks/native/cmds/dumpstate/
DDumpstateUtil.cpp306 bool redirecting_to_fd = STDOUT_FILENO != fd; in RunCommandToFd()
346 TEMP_FAILURE_RETRY(dup2(devnull_fd, STDOUT_FILENO)); in RunCommandToFd()
357 if (i != STDIN_FILENO && i!= STDOUT_FILENO && i != STDERR_FILENO) { in RunCommandToFd()
363 TEMP_FAILURE_RETRY(dup2(STDERR_FILENO, STDOUT_FILENO)); in RunCommandToFd()
366 TEMP_FAILURE_RETRY(dup2(fd, STDOUT_FILENO)); in RunCommandToFd()
Ddumpstate.h77 bool verbose = false, int duration_fd = STDOUT_FILENO);
228 bool verbose_duration = false, int out_fd = STDOUT_FILENO);
246 long dumpsys_timeout_ms = 0, int out_fd = STDOUT_FILENO);
308 void DumpstateBoard(int out_fd = STDOUT_FILENO);
Ddumpstate.cpp136 bool verbose_duration = false, int out_fd = STDOUT_FILENO) { in RunCommand()
345 long dumpsysTimeoutMs = 0, int out_fd = STDOUT_FILENO) { in RunDumpsys()
795 DumpFileToFd(STDOUT_FILENO, "", "/proc/version"); in PrintHeader()
798 RunCommandToFd(STDOUT_FILENO, "", {"uptime", "-p"}, in PrintHeader()
1200 dumpsys.writeDumpHeader(STDOUT_FILENO, service, priority); in RunDumpsysTextByPriority()
1201 dumpsys.writeDumpFooter(STDOUT_FILENO, service, std::chrono::milliseconds(1)); in RunDumpsysTextByPriority()
1205 dumpsys.writeDumpHeader(STDOUT_FILENO, service, priority); in RunDumpsysTextByPriority()
1210 status = dumpsys.writeDump(STDOUT_FILENO, service, 60s, in RunDumpsysTextByPriority()
1214 status = dumpsys.writeDump(STDOUT_FILENO, service, service_timeout, in RunDumpsysTextByPriority()
1218 dumpsys.writeDumpFooter(STDOUT_FILENO, service, elapsed_seconds); in RunDumpsysTextByPriority()
[all …]
/frameworks/base/cmds/incident_helper/tests/
DKernelWakesParser_test.cpp71 ASSERT_EQ(NO_ERROR, parser.Parse(fd, STDOUT_FILENO)); in TEST_F()
109 ASSERT_EQ(NO_ERROR, parser.Parse(fd, STDOUT_FILENO)); in TEST_F()
DProcrankParser_test.cpp99 ASSERT_EQ(NO_ERROR, parser.Parse(fd, STDOUT_FILENO)); in TEST_F()
137 ASSERT_EQ(NO_ERROR, parser.Parse(fd, STDOUT_FILENO)); in TEST_F()
DBatteryTypeParser_test.cpp63 ASSERT_EQ(NO_ERROR, parser.Parse(fd, STDOUT_FILENO)); in TEST_F()
DSystemPropertiesParser_test.cpp89 ASSERT_EQ(NO_ERROR, parser.Parse(fd, STDOUT_FILENO)); in TEST_F()
DPageTypeInfoParser_test.cpp103 ASSERT_EQ(NO_ERROR, parser.Parse(fd, STDOUT_FILENO)); in TEST_F()
DEventLogTagsParser_test.cpp122 ASSERT_EQ(NO_ERROR, parser.Parse(fd, STDOUT_FILENO)); in TEST_F()
/frameworks/native/cmds/cmd/
Dmain.cpp31 return cmdMain(arguments, android::aout, android::aerr, STDIN_FILENO, STDOUT_FILENO, in main()
/frameworks/av/media/libeffects/factory/test/
DDumpConfig.cpp63 if (EffectDumpEffects(STDOUT_FILENO) != 0) { in main()
/frameworks/native/libs/binder/
DStatic.cpp68 TextOutput& aout(*new FdTextOutput(STDOUT_FILENO));
/frameworks/base/cmds/incident_helper/src/
Dmain.cpp105 status_t err = parser->Parse(STDIN_FILENO, STDOUT_FILENO); in main()
/frameworks/native/cmds/installd/
Dview_compiler.cpp71 if (dup2(outfd, STDOUT_FILENO) < 0) { in view_compiler()
/frameworks/base/libs/hwui/tests/macrobench/
DTestSceneRunner.cpp185 proxy->dumpProfileInfo(STDOUT_FILENO, DumpFlags::JankStats); in doRun()
213 RenderProxy::dumpGraphicsMemory(STDOUT_FILENO, false); in run()
/frameworks/compile/mclinker/lib/Support/Windows/
DFileSystem.inc24 #ifndef STDOUT_FILENO
25 #define STDOUT_FILENO 1
/frameworks/base/tools/incident_report/
Dprinter.cpp30 :mOut(fd == STDOUT_FILENO ? stdout : fdopen(fd, "w")), in Out()
/frameworks/native/libs/binder/tests/
DbinderParcelUnitTest.cpp103 p.writeFileDescriptor(STDOUT_FILENO, false /*takeOwnership*/); in TEST()
111 EXPECT_EQ(ret[0], STDOUT_FILENO); in TEST()
/frameworks/native/libs/binder/tests/unit_fuzzers/
DIBinderFuzzFunctions.h53 int fd = STDOUT_FILENO;
/frameworks/base/libs/androidfw/
DPosixUtils.cpp93 if (dup2(stdout[1], STDOUT_FILENO) == -1) { in ExecuteBinary()
/frameworks/base/cmds/incident/
Dmain.cpp393 return listener->getExitCodeOrElse(stream_output(fds[0], STDOUT_FILENO)); in main()
402 return listener->getExitCodeOrElse(stream_output(fds[0], STDOUT_FILENO)); in main()
/frameworks/native/cmds/dumpsys/
Ddumpsys.cpp281 writeDumpHeader(STDOUT_FILENO, serviceName, priorityFlags); in main()
286 writeDump(STDOUT_FILENO, serviceName, std::chrono::milliseconds(timeoutArgMs), in main()
297 writeDumpFooter(STDOUT_FILENO, serviceName, elapsedDuration); in main()

12