/frameworks/native/libs/binder/ |
D | FdUtils.h | 42 int pipefd[2]; variable 48 if (pipe(pipefd) != 0) { 53 if (fcntl(pipefd[0], F_SETFD, FD_CLOEXEC) != 0 || 54 fcntl(pipefd[1], F_SETFD, FD_CLOEXEC) != 0) { 55 close(pipefd[0]); 56 close(pipefd[1]); 61 if (fcntl(pipefd[0], F_SETFL, O_NONBLOCK) != 0 || 62 fcntl(pipefd[1], F_SETFL, O_NONBLOCK) != 0) { 63 close(pipefd[0]); 64 close(pipefd[1]); [all …]
|
/frameworks/libs/binary_translation/tests/ndk_program_tests/ |
D | epoll_test.cc | 23 int pipefd[2]; in TEST() local 24 ASSERT_EQ(pipe(pipefd), 0); in TEST() 34 ASSERT_EQ(epoll_ctl(epfd, EPOLL_CTL_ADD, pipefd[0], &event), 0); in TEST() 38 ASSERT_EQ(epoll_ctl(epfd, EPOLL_CTL_ADD, pipefd[1], &event), 0); in TEST() 45 ASSERT_EQ(write(pipefd[1], &buf, 1), 1); in TEST() 47 ASSERT_EQ(epoll_ctl(epfd, EPOLL_CTL_DEL, pipefd[1], nullptr), 0); in TEST() 53 close(pipefd[0]); in TEST() 54 close(pipefd[1]); in TEST()
|
/frameworks/libs/binary_translation/tests/ndk_program_tests/arm/ |
D | syscall_test.cc | 61 int pipefd[2]; in TEST() local 62 ASSERT_EQ(pipe(pipefd), 0); in TEST() 64 register uint32_t r0 asm("r0") = pipefd[1]; in TEST() 79 close(pipefd[0]); in TEST() 80 close(pipefd[1]); in TEST()
|
/frameworks/av/media/module/minijail/ |
D | minijail.cpp | 34 int pipefd[2]; in WritePolicyToPipe() local 35 if (pipe(pipefd) == -1) { in WritePolicyToPipe() 40 base::unique_fd write_end(pipefd[1]); in WritePolicyToPipe() 55 return pipefd[0]; in WritePolicyToPipe()
|
/frameworks/native/libs/binder/tests/ |
D | binderLibTest.cpp | 139 int pipefd[2]; in start_server_process() local 153 ret = pipe(pipefd); in start_server_process() 158 snprintf(strpipefd1, sizeof(strpipefd1), "%d", pipefd[1]); in start_server_process() 166 close(pipefd[0]); in start_server_process() 169 write(pipefd[1], &status, sizeof(status)); in start_server_process() 173 close(pipefd[1]); in start_server_process() 174 ret = read(pipefd[0], &status, sizeof(status)); in start_server_process() 176 close(pipefd[0]); in start_server_process() 844 int pipefd[2]; in TEST_F() local 848 ret = pipe2(pipefd, O_NONBLOCK); in TEST_F() [all …]
|
/frameworks/av/media/codec2/hal/client/ |
D | GraphicsTracker.cpp | 190 int pipefd[2] = { -1, -1}; local 191 int ret = ::pipe2(pipefd, O_CLOEXEC | O_NONBLOCK); 193 mReadPipeFd.reset(pipefd[0]); 194 mWritePipeFd.reset(pipefd[1]);
|
/frameworks/av/services/audiopolicy/tests/ |
D | audiopolicymanager_tests.cpp | 247 int pipefd[2]; in dumpToLog() local 248 ASSERT_NE(-1, pipe(pipefd)); in dumpToLog() 253 close(pipefd[1]); in dumpToLog() 256 while (read(pipefd[0], &buf, sizeof(buf)) > 0) { in dumpToLog() 265 close(pipefd[0]); in dumpToLog() 269 close(pipefd[0]); in dumpToLog() 270 ASSERT_EQ(NO_ERROR, mManager->dump(pipefd[1])); in dumpToLog() 271 close(pipefd[1]); in dumpToLog()
|
/frameworks/libs/binary_translation/interpreter/riscv64/ |
D | interpreter_test.cc | 2114 int pipefd[2]; in TEST_F() local 2115 ASSERT_EQ(0, pipe(pipefd)); in TEST_F() 2125 SetXReg<10>(state_.cpu, pipefd[1]); in TEST_F() 2140 ssize_t read_size = read(pipefd[0], &buf, sizeof(buf)); in TEST_F() 2143 close(pipefd[0]); in TEST_F() 2144 close(pipefd[1]); in TEST_F()
|