Searched refs:p2cPipe (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/cmds/incidentd/tests/ |
D | FdBuffer_test.cpp | 41 ASSERT_NE(p2cPipe.init(), -1); in SetUp() 79 Fpipe p2cPipe; member in FdBufferTest 155 p2cPipe.writeFd().reset(); in TEST_F() 158 ASSERT_TRUE(DoDataStream(p2cPipe.readFd(), c2pPipe.writeFd())); in TEST_F() 159 p2cPipe.readFd().reset(); in TEST_F() 164 p2cPipe.readFd().reset(); in TEST_F() 168 buffer.readProcessedDataInStream(tf.fd, std::move(p2cPipe.writeFd()), in TEST_F() 185 p2cPipe.writeFd().reset(); in TEST_F() 189 ASSERT_TRUE(ReadFdToString(p2cPipe.readFd(), &data)); in TEST_F() 192 p2cPipe.readFd().reset(); in TEST_F() [all …]
|
/frameworks/base/cmds/incidentd/src/ |
D | Section.cpp | 62 static pid_t fork_execute_incident_helper(const int id, Fpipe* p2cPipe, Fpipe* c2pPipe) { in fork_execute_incident_helper() argument 64 return fork_execute_cmd(const_cast<char**>(ihArgs), p2cPipe, c2pPipe); in fork_execute_incident_helper() 109 Fpipe p2cPipe; in Execute() local 112 if (!p2cPipe.init() || !c2pPipe.init()) { in Execute() 117 pid_t pid = fork_execute_incident_helper(this->id, &p2cPipe, &c2pPipe); in Execute() 125 status_t readStatus = buffer.readProcessedDataInStream(fd.get(), std::move(p2cPipe.writeFd()), in Execute() 176 Fpipe p2cPipe; in Execute() local 179 if (!p2cPipe.init() || !c2pPipe.init()) { in Execute() 184 pid_t pid = fork_execute_cmd((char* const*)GZIP, &p2cPipe, &c2pPipe); in Execute() 208 fd.get(), std::move(p2cPipe.writeFd()), std::move(c2pPipe.readFd()), this->timeoutMs, in Execute()
|