Searched refs:write_fd (Results 1 – 8 of 8) sorted by relevance
/system/tools/aidl/tests/ |
D | aidl_test_client_file_descriptors.cpp | 67 unique_fd write_fd; in TEST_F() local 68 DoPipe(&read_fd, &write_fd); in TEST_F() 71 auto status = service->RepeatFileDescriptor(std::move(write_fd), &return_fd); in TEST_F() 100 unique_fd write_fd; in TEST_F() local 101 DoPipe(&read_fd, &write_fd); in TEST_F() 105 service->RepeatParcelFileDescriptor(ParcelFileDescriptor(std::move(write_fd)), &return_fd); in TEST_F()
|
/system/connectivity/wificond/tests/ |
D | shell_utils.cpp | 65 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/ |
D | recovery_test.cpp | 57 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/ |
D | PerfTest.h | 62 Pipe(int read_fd, int write_fd) : fd_read_{read_fd}, fd_write_{write_fd} {} in Pipe() argument
|
/system/testing/gtest_extras/ |
D | Isolate.cpp | 197 static bool Pipe(int* read_fd, int* write_fd) { in Pipe() argument 216 *write_fd = pipefd[1]; in Pipe() 222 int read_fd, write_fd; in LaunchTests() local 223 if (!Pipe(&read_fd, &write_fd)) { in LaunchTests() 238 if (dup2(write_fd, STDOUT_FILENO) == -1) { in LaunchTests() 241 if (dup2(write_fd, STDERR_FILENO) == -1) { in LaunchTests() 244 close(write_fd); in LaunchTests() 260 close(write_fd); in LaunchTests()
|
/system/core/adb/fdevent/ |
D | fdevent_test.cpp | 36 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/extras/simpleperf/ |
D | cmd_record_test.cpp | 556 int write_fd = pipefd[1]; in TEST() local 563 RecordCmd()->Run({"-o", tmpfile.path, "--start_profiling_fd", std::to_string(write_fd), "-e", in TEST() 566 close(write_fd); in TEST() 600 int write_fd = pipefd[1]; in TEST() local 604 exit(RunRecordCmd({"--start_profiling_fd", std::to_string(write_fd)}) ? 0 : 1); in TEST() 607 close(write_fd); in TEST()
|
/system/core/adb/client/ |
D | commandline.cpp | 461 int stdin_fd, write_fd; member 569 if (!WriteFdExactly(args->write_fd, buffer_ptr, r)) { in stdin_read_thread_loop() 635 args->write_fd = fd; in RemoteShell() 639 args->protocol = std::make_unique<ShellProtocol>(args->write_fd); in RemoteShell()
|