Searched refs:pipefd (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/cmds/idmap2/tests/ |
D | FileUtilsTests.cpp | 72 int pipefd[2]; in TEST() local 73 ASSERT_EQ(pipe2(pipefd, O_CLOEXEC), 0); in TEST() 75 ASSERT_EQ(write(pipefd[1], "foobar", 6), 6); in TEST() 76 close(pipefd[1]); in TEST() 78 auto data = ReadFile(pipefd[0]); in TEST() 81 close(pipefd[0]); in TEST()
|
/frameworks/av/services/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 | 87 int pipefd[2]; in start_server_process() local 101 ret = pipe(pipefd); in start_server_process() 106 snprintf(strpipefd1, sizeof(strpipefd1), "%d", pipefd[1]); in start_server_process() 114 close(pipefd[0]); in start_server_process() 117 write(pipefd[1], &status, sizeof(status)); in start_server_process() 121 close(pipefd[1]); in start_server_process() 122 ret = read(pipefd[0], &status, sizeof(status)); in start_server_process() 124 close(pipefd[0]); in start_server_process() 695 int pipefd[2]; in TEST_F() local 699 ret = pipe2(pipefd, O_NONBLOCK); in TEST_F() [all …]
|
/frameworks/av/services/audiopolicy/tests/ |
D | audiopolicymanager_tests.cpp | 135 int pipefd[2]; in dumpToLog() local 136 ASSERT_NE(-1, pipe(pipefd)); in dumpToLog() 141 close(pipefd[1]); in dumpToLog() 144 while (read(pipefd[0], &buf, sizeof(buf)) > 0) { in dumpToLog() 153 close(pipefd[0]); in dumpToLog() 157 close(pipefd[0]); in dumpToLog() 158 ASSERT_EQ(NO_ERROR, mManager->dump(pipefd[1])); in dumpToLog() 159 close(pipefd[1]); in dumpToLog()
|