Searched refs:c2pPipe (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/cmds/incidentd/tests/ |
D | FdBuffer_test.cpp | 42 ASSERT_NE(c2pPipe.init(), -1); in SetUp() 80 Fpipe c2pPipe; member in FdBufferTest 129 c2pPipe.readFd().reset(); in TEST_F() 131 write(c2pPipe.writeFd(), "poo", 3); in TEST_F() 136 c2pPipe.writeFd().reset(); in TEST_F() 138 status_t status = buffer.read(c2pPipe.readFd().get(), QUICK_TIMEOUT_MS); in TEST_F() 156 c2pPipe.readFd().reset(); in TEST_F() 157 ASSERT_TRUE(WriteStringToFd(HEAD, c2pPipe.writeFd())); in TEST_F() 158 ASSERT_TRUE(DoDataStream(p2cPipe.readFd(), c2pPipe.writeFd())); in TEST_F() 160 c2pPipe.writeFd().reset(); in TEST_F() [all …]
|
/frameworks/base/cmds/incidentd/src/ |
D | Section.cpp | 63 static pid_t fork_execute_incident_helper(const int id, Fpipe* p2cPipe, Fpipe* c2pPipe) { in fork_execute_incident_helper() argument 65 return fork_execute_cmd(const_cast<char**>(ihArgs), p2cPipe, c2pPipe); in fork_execute_incident_helper() 111 Fpipe c2pPipe; in Execute() local 113 if (!p2cPipe.init() || !c2pPipe.init()) { in Execute() 118 pid_t pid = fork_execute_incident_helper(this->id, &p2cPipe, &c2pPipe); in Execute() 127 std::move(c2pPipe.readFd()), in Execute() 178 Fpipe c2pPipe; in Execute() local 180 if (!p2cPipe.init() || !c2pPipe.init()) { in Execute() 185 pid_t pid = fork_execute_cmd((char* const*)GZIP, &p2cPipe, &c2pPipe); in Execute() 209 fd.get(), std::move(p2cPipe.writeFd()), std::move(c2pPipe.readFd()), this->timeoutMs, in Execute()
|