Searched refs:pfds (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/cmds/incidentd/src/ |
D | FdBuffer.cpp | 42 struct pollfd pfds = {.fd = fd, .events = POLLIN}; in read() local 61 int count = poll(&pfds, 1, remainingTime); in read() 70 if ((pfds.revents & POLLERR) != 0) { in read() 125 struct pollfd pfds[] = { in readProcessedDataInStream() local 159 int count = poll(pfds, 3, remainingTime); in readProcessedDataInStream() 171 if ((pfds[i].revents & POLLERR) != 0) { in readProcessedDataInStream() 182 if (cirSize != BUFFER_SIZE && pfds[0].fd != -1) { in readProcessedDataInStream() 196 pfds[0].fd = -1; // reach EOF so don't have to poll pfds[0]. in readProcessedDataInStream() 204 if (cirSize > 0 && pfds[1].fd != -1) { in readProcessedDataInStream() 223 if (cirSize == 0 && pfds[0].fd == -1 && pfds[1].fd != -1) { in readProcessedDataInStream() [all …]
|
/frameworks/native/libs/vr/libpdx_uds/ |
D | channel_event_set.cpp | 117 std::array<pollfd, 3> pfds = {{{pollin_event_fd_.Get(), POLLIN, 0}, in PollPendingEvents() local 120 if (RETRY_EINTR(poll(pfds.data(), pfds.size(), timeout_ms)) < 0) { in PollPendingEvents() 130 ((pfds[0].revents & POLLIN) ? EPOLLIN : 0) | in PollPendingEvents() 131 ((pfds[1].revents & POLLIN) ? EPOLLHUP : 0) | in PollPendingEvents() 132 ((pfds[2].revents & (POLLHUP | POLLRDHUP)) ? EPOLLHUP : 0); in PollPendingEvents()
|
/frameworks/base/libs/common_time/ |
D | common_time_server.cpp | 208 struct pollfd pfds[2]; in runStateMachine_l() local 216 pfds[eventCnt].fd = mWakeupThreadFD; in runStateMachine_l() 217 pfds[eventCnt].events = POLLIN; in runStateMachine_l() 218 pfds[eventCnt].revents = 0; in runStateMachine_l() 224 pfds[eventCnt].fd = mSocket; in runStateMachine_l() 225 pfds[eventCnt].events = POLLIN; in runStateMachine_l() 226 pfds[eventCnt].revents = 0; in runStateMachine_l() 237 rc = poll(pfds, eventCnt, timeout); in runStateMachine_l() 258 if (pfds[0].revents) in runStateMachine_l() 363 if ((mSocket >= 0) && (eventCnt > 1) && (pfds[1].revents)) { in runStateMachine_l()
|