Home
last modified time | relevance | path

Searched refs:write_fd (Results 1 – 8 of 8) sorted by relevance

/system/tools/aidl/tests/
Daidl_test_client_file_descriptors.cpp116 unique_fd write_fd; in ConfirmFileDescriptors() local
118 if (!DoPipe(&read_fd, &write_fd)) { in ConfirmFileDescriptors()
122 status = s->RepeatFileDescriptor(write_fd, &return_fd); in ConfirmFileDescriptors()
176 unique_fd write_fd; in ConfirmParcelFileDescriptors() local
178 if (!DoPipe(&read_fd, &write_fd)) { in ConfirmParcelFileDescriptors()
184 status = s->RepeatParcelFileDescriptor(ParcelFileDescriptor(std::move(write_fd)), &return_fd); in ConfirmParcelFileDescriptors()
/system/connectivity/wificond/tests/
Dshell_utils.cpp65 unique_fd write_fd(fds[1]); in RunShellCommand() local
75 dup2(write_fd.get(), 1); // Replace existing stdout with the pipe. in RunShellCommand()
77 write_fd.reset(); in RunShellCommand()
84 write_fd.reset(); // Close this or we never get HUP from child. in RunShellCommand()
/system/extras/tests/fstest/
Drecovery_test.cpp57 int write_fd = open(test_file_, O_CREAT | O_WRONLY, 0666); in verify_write() local
58 ASSERT_TRUE(write_fd); in verify_write()
59 ASSERT_EQ(write(write_fd, "TEST", 4), 4); in verify_write()
60 close(write_fd); in verify_write()
/system/libhwbinder/vts/performance/
DPerfTest.h62 Pipe(int read_fd, int write_fd) : fd_read_{read_fd}, fd_write_{write_fd} {} in Pipe() argument
/system/extras/simpleperf/
Dcmd_record_test.cpp502 int write_fd = pipefd[1]; in TEST() local
509 std::to_string(write_fd), "sleep", "1000000"})); in TEST()
511 close(write_fd); in TEST()
546 int write_fd = pipefd[1]; in TEST() local
550 exit(RunRecordCmd({"--start_profiling_fd", std::to_string(write_fd)}) ? 0 : 1); in TEST()
553 close(write_fd); in TEST()
/system/testing/gtest_extras/
DIsolate.cpp192 android::base::unique_fd read_fd, write_fd; in LaunchTests() local
193 if (!Pipe(&read_fd, &write_fd)) { in LaunchTests()
208 if (dup2(write_fd, STDOUT_FILENO) == -1) { in LaunchTests()
211 if (dup2(write_fd, STDERR_FILENO) == -1) { in LaunchTests()
/system/core/adb/
Dfdevent_test.cpp36 FdHandler(int read_fd, int write_fd, bool use_new_callback) in FdHandler() argument
37 : read_fd_(read_fd), write_fd_(write_fd) { in FdHandler()
/system/core/adb/client/
Dcommandline.cpp445 int stdin_fd, write_fd; member
553 if (!WriteFdExactly(args->write_fd, buffer_ptr, r)) { in stdin_read_thread_loop()
619 args->write_fd = fd; in RemoteShell()
623 args->protocol = std::make_unique<ShellProtocol>(args->write_fd); in RemoteShell()