Home
last modified time | relevance | path

Searched refs:read_fd (Results 1 – 7 of 7) sorted by relevance

/system/tools/aidl/tests/
Daidl_test_client_file_descriptors.cpp115 unique_fd read_fd; in ConfirmFileDescriptors() local
118 if (!DoPipe(&read_fd, &write_fd)) { in ConfirmFileDescriptors()
136 DoRead(FdByName(read_fd), "ReturnString"); in ConfirmFileDescriptors()
175 unique_fd read_fd; in ConfirmParcelFileDescriptors() local
178 if (!DoPipe(&read_fd, &write_fd)) { in ConfirmParcelFileDescriptors()
197 DoRead(FdByName(read_fd), "ReturnString"); in ConfirmParcelFileDescriptors()
/system/connectivity/wificond/tests/
Dshell_utils.cpp64 unique_fd read_fd(fds[0]); in RunShellCommand() local
66 fcntl(read_fd.get(), F_SETFL, O_CLOEXEC | O_NONBLOCK); in RunShellCommand()
76 read_fd.reset(); in RunShellCommand()
87 shell_output.fd = read_fd.get(); in RunShellCommand()
/system/extras/tests/fstest/
Drecovery_test.cpp65 int read_fd = open(test_file_, O_RDONLY); in verify_read() local
66 ASSERT_TRUE(read_fd); in verify_read()
67 ASSERT_EQ(read(read_fd, read_buff, sizeof(read_buff)), 4); in verify_read()
69 close(read_fd); in verify_read()
/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.cpp501 int read_fd = pipefd[0]; in TEST() local
505 android::base::ReadFully(read_fd, data, 7); in TEST()
512 close(read_fd); in TEST()
545 int read_fd = pipefd[0]; in TEST() local
549 close(read_fd); in TEST()
555 ASSERT_TRUE(android::base::ReadFdToString(read_fd, &s)); in TEST()
556 close(read_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()
196 if (fcntl(read_fd.get(), F_SETFL, O_NONBLOCK) == -1) { in LaunchTests()
205 read_fd.reset(); in LaunchTests()
220 Test* test = new Test(tests_[cur_test_index_], cur_test_index_, run_index, read_fd.release()); 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()