Searched refs:pipefd (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/cmds/idmap2/tests/ |
D | FileUtilsTests.cpp | 71 int pipefd[2]; in TEST() local 72 ASSERT_EQ(pipe(pipefd), 0); in TEST() 74 ASSERT_EQ(write(pipefd[1], "foobar", 6), 6); in TEST() 75 close(pipefd[1]); in TEST() 77 auto data = ReadFile(pipefd[0]); in TEST() 80 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/av/services/audiopolicy/tests/ |
D | audiopolicymanager_tests.cpp | 168 int pipefd[2]; in dumpToLog() local 169 ASSERT_NE(-1, pipe(pipefd)); in dumpToLog() 174 close(pipefd[1]); in dumpToLog() 177 while (read(pipefd[0], &buf, sizeof(buf)) > 0) { in dumpToLog() 186 close(pipefd[0]); in dumpToLog() 190 close(pipefd[0]); in dumpToLog() 191 ASSERT_EQ(NO_ERROR, mManager->dump(pipefd[1])); in dumpToLog() 192 close(pipefd[1]); in dumpToLog()
|
/frameworks/native/libs/binder/tests/ |
D | binderLibTest.cpp | 83 int pipefd[2]; in start_server_process() local 97 ret = pipe(pipefd); in start_server_process() 102 snprintf(strpipefd1, sizeof(strpipefd1), "%d", pipefd[1]); in start_server_process() 109 close(pipefd[0]); in start_server_process() 112 write(pipefd[1], &status, sizeof(status)); in start_server_process() 116 close(pipefd[1]); in start_server_process() 117 ret = read(pipefd[0], &status, sizeof(status)); in start_server_process() 119 close(pipefd[0]); in start_server_process() 734 int pipefd[2]; in TEST_F() local 738 ret = pipe2(pipefd, O_NONBLOCK); in TEST_F() [all …]
|