Home
last modified time | relevance | path

Searched refs:pfds (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/cmds/incidentd/src/
DFdBuffer.cpp48 struct pollfd pfds = {.fd = fd, .events = POLLIN}; in read() local
71 int count = TEMP_FAILURE_RETRY(poll(&pfds, 1, remainingTime)); in read()
80 if ((pfds.revents & POLLERR) != 0) { in read()
139 struct pollfd pfds[] = { in readProcessedDataInStream() local
177 int count = TEMP_FAILURE_RETRY(poll(pfds, 3, remainingTime)); in readProcessedDataInStream()
189 if ((pfds[i].revents & POLLERR) != 0) { in readProcessedDataInStream()
200 if (cirSize != BUFFER_SIZE && pfds[0].fd != -1) { in readProcessedDataInStream()
214 pfds[0].fd = -1; // reach EOF so don't have to poll pfds[0]. in readProcessedDataInStream()
222 if (cirSize > 0 && pfds[1].fd != -1) { in readProcessedDataInStream()
241 if (cirSize == 0 && pfds[0].fd == -1 && pfds[1].fd != -1) { in readProcessedDataInStream()
[all …]
/frameworks/native/libs/vr/libpdx_uds/
Dchannel_event_set.cpp117 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/core/tests/bugreports/src/android/server/bugreports/
DBugreportManagerTest.java325 private static void assertFdsAreClosed(ParcelFileDescriptor... pfds) { in assertFdsAreClosed() argument
326 for (int i = 0; i < pfds.length; i++) { in assertFdsAreClosed()
327 assertFdIsClosed(pfds[i]); in assertFdsAreClosed()