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() 53 return pipefd[0]; in WritePolicyToPipe()
|
/frameworks/native/libs/binder/tests/ |
D | binderLibTest.cpp | 88 int pipefd[2]; in start_server_process() local 102 ret = pipe(pipefd); in start_server_process() 107 snprintf(strpipefd1, sizeof(strpipefd1), "%d", pipefd[1]); in start_server_process() 115 close(pipefd[0]); in start_server_process() 118 write(pipefd[1], &status, sizeof(status)); in start_server_process() 122 close(pipefd[1]); in start_server_process() 123 ret = read(pipefd[0], &status, sizeof(status)); in start_server_process() 125 close(pipefd[0]); in start_server_process() 696 int pipefd[2]; in TEST_F() local 700 ret = pipe2(pipefd, O_NONBLOCK); in TEST_F() [all …]
|
/frameworks/av/services/audiopolicy/tests/ |
D | audiopolicymanager_tests.cpp | 132 int pipefd[2]; in dumpToLog() local 133 ASSERT_NE(-1, pipe(pipefd)); in dumpToLog() 138 close(pipefd[1]); in dumpToLog() 141 while (read(pipefd[0], &buf, sizeof(buf)) > 0) { in dumpToLog() 150 close(pipefd[0]); in dumpToLog() 154 close(pipefd[0]); in dumpToLog() 155 ASSERT_EQ(NO_ERROR, mManager->dump(pipefd[1])); in dumpToLog() 156 close(pipefd[1]); in dumpToLog()
|