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.cpp209 unique_fd pipe_read, pipe_write; in debuggerd_trigger_dump() local
210 if (!Pipe(&pipe_read, &pipe_write)) { in debuggerd_trigger_dump()
225 if (fcntl(pipe_read.get(), F_SETPIPE_SZ, pipe_buffer_size) != pipe_buffer_size) { in debuggerd_trigger_dump()
295 .fd = pipe_read.get(), .events = POLLIN, .revents = 0, in debuggerd_trigger_dump()
312 rc = TEMP_FAILURE_RETRY(read(pipe_read.get(), buf, sizeof(buf))); in debuggerd_trigger_dump()
/system/core/debuggerd/handler/
Ddebuggerd_fallback.cpp253 unique_fd pipe_read, pipe_write; in trace_handler() local
254 if (!Pipe(&pipe_read, &pipe_write)) { in trace_handler()
282 bool success = forward_output(pipe_read.get(), output_fd, tid); in trace_handler()
/system/core/adb/daemon/
Dservices.cpp129 unique_fd pipe_read, pipe_write; in spin_service() local
130 if (!Pipe(&pipe_read, &pipe_write)) { in spin_service()
135 fdevent_run_on_main_thread([fd = pipe_read.release()]() { in spin_service()
/system/core/adb/
Dadb.cpp540 unique_handle pipe_read(pipe_read_raw); in _create_anonymous_pipe() local
545 if (!_make_handle_noninheritable(pipe_read.get())) { in _create_anonymous_pipe()
549 *pipe_read_out = std::move(pipe_read); in _create_anonymous_pipe()
902 unique_fd pipe_read, pipe_write; in launch_server()
903 if (!Pipe(&pipe_read, &pipe_write)) { in launch_server()
915 pipe_read.reset(); in launch_server()
933 int ret = adb_read(pipe_read.get(), temp, 3); in launch_server()
935 pipe_read.reset(); in launch_server()
/system/vold/
DUtils.cpp702 android::base::unique_fd pipe_read, pipe_write; in ForkExecvp() local
703 if (!android::base::Pipe(&pipe_read, &pipe_write)) { in ForkExecvp()
716 pipe_read.reset(); in ForkExecvp()
732 auto st = ReadLinesFromFdAndLog(output, std::move(pipe_read)); in ForkExecvp()