Searched refs:pfds (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/cmds/incidentd/src/ |
D | FdBuffer.cpp | 56 struct pollfd pfds = {.fd = fd, .events = POLLIN}; in read() local 79 int count = TEMP_FAILURE_RETRY(poll(&pfds, 1, remainingTime)); in read() 88 if ((pfds.revents & POLLERR) != 0) { in read() 147 struct pollfd pfds[] = { in readProcessedDataInStream() local 185 int count = TEMP_FAILURE_RETRY(poll(pfds, 3, remainingTime)); in readProcessedDataInStream() 197 if ((pfds[i].revents & POLLERR) != 0) { in readProcessedDataInStream() 208 if (cirSize != BUFFER_SIZE && pfds[0].fd != -1) { in readProcessedDataInStream() 222 pfds[0].fd = -1; // reach EOF so don't have to poll pfds[0]. in readProcessedDataInStream() 230 if (cirSize > 0 && pfds[1].fd != -1) { in readProcessedDataInStream() 249 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/core/tests/bugreports/src/com/android/os/bugreports/tests/ |
D | BugreportManagerTest.java | 442 private static void assertFdsAreClosed(ParcelFileDescriptor... pfds) { in assertFdsAreClosed() argument 443 for (int i = 0; i < pfds.length; i++) { in assertFdsAreClosed() 444 assertFdIsClosed(pfds[i]); in assertFdsAreClosed()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_pm_PackageManagerShellCommandDataLoader.cpp | 569 struct pollfd pfds[2] = {{fd, POLLIN, 0}, {mEventFd, POLLIN, 0}}; in waitForData() local 571 int res = poll(pfds, std::size(pfds), pollTimeoutMs); in waitForData() 591 if (pfds[1].revents == POLLIN) { in waitForData() 596 if (pfds[0].revents == POLLIN) { in waitForData()
|