Home
last modified time | relevance | path

Searched refs:pipe_read (Results 1 – 6 of 6) sorted by relevance

/system/core/debuggerd/client/
Ddebuggerd_client_test.cpp73 unique_fd pipe_read, pipe_write; in TEST() local
74 ASSERT_TRUE(Pipe(&pipe_read, &pipe_write)); in TEST()
78 ASSERT_EQ(PIPE_SIZE, fcntl(pipe_read.get(), F_SETPIPE_SZ, PIPE_SIZE)); in TEST()
90 ASSERT_TRUE(android::base::ReadFdToString(pipe_read.get(), &result)); in TEST()
108 unique_fd pipe_read, pipe_write; in TEST() local
109 ASSERT_TRUE(Pipe(&pipe_read, &pipe_write)); in TEST()
116 TEMP_FAILURE_RETRY(read(pipe_read.get(), &dummy, sizeof(dummy))); in TEST()
120 pipe_read.reset(); in TEST()
Ddebuggerd_client.cpp131 unique_fd pipe_read, pipe_write; in debuggerd_trigger_dump() local
132 if (!Pipe(&pipe_read, &pipe_write)) { in debuggerd_trigger_dump()
147 if (fcntl(pipe_read.get(), F_SETPIPE_SZ, pipe_buffer_size) != pipe_buffer_size) { in debuggerd_trigger_dump()
217 .fd = pipe_read.get(), .events = POLLIN, .revents = 0, in debuggerd_trigger_dump()
234 rc = TEMP_FAILURE_RETRY(read(pipe_read.get(), buf, sizeof(buf))); in debuggerd_trigger_dump()
/system/core/debuggerd/handler/
Ddebuggerd_fallback.cpp252 unique_fd pipe_read, pipe_write; in trace_handler() local
253 if (!Pipe(&pipe_read, &pipe_write)) { in trace_handler()
281 bool success = forward_output(pipe_read.get(), output_fd, tid); in trace_handler()
/system/core/adb/daemon/
Dservices.cpp131 unique_fd pipe_read, pipe_write; in spin_service() local
132 if (!Pipe(&pipe_read, &pipe_write)) { in spin_service()
137 fdevent_run_on_main_thread([fd = pipe_read.release()]() { in spin_service()
/system/core/adb/
Dadb.cpp498 unique_handle pipe_read(pipe_read_raw); in _create_anonymous_pipe() local
503 if (!_make_handle_noninheritable(pipe_read.get())) { in _create_anonymous_pipe()
507 *pipe_read_out = std::move(pipe_read); in _create_anonymous_pipe()
860 unique_fd pipe_read, pipe_write; in launch_server()
861 if (!Pipe(&pipe_read, &pipe_write)) { in launch_server()
873 pipe_read.reset(); in launch_server()
891 int ret = adb_read(pipe_read.get(), temp, 3); in launch_server()
893 pipe_read.reset(); in launch_server()
/system/vold/
DUtils.cpp346 android::base::unique_fd pipe_read, pipe_write; in ForkExecvp() local
347 if (!android::base::Pipe(&pipe_read, &pipe_write)) { in ForkExecvp()
360 pipe_read.reset(); in ForkExecvp()
376 auto st = ReadLinesFromFdAndLog(output, std::move(pipe_read)); in ForkExecvp()