Home
last modified time | relevance | path

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

/frameworks/base/cmds/incidentd/src/
DFdBuffer.cpp56 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/
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/services/core/java/com/android/server/ondeviceintelligence/
DBundleUtil.java349 public static void validatePfdsReadOnly(Parcelable[] pfds) {
350 for (Parcelable pfd : pfds) {
/frameworks/base/services/core/jni/
Dcom_android_server_pm_PackageManagerShellCommandDataLoader.cpp567 struct pollfd pfds[2] = {{fd, POLLIN, 0}, {mEventFd, POLLIN, 0}}; in waitForData() local
569 int res = poll(pfds, std::size(pfds), pollTimeoutMs); in waitForData()
589 if (pfds[1].revents == POLLIN) { in waitForData()
594 if (pfds[0].revents == POLLIN) { in waitForData()
/frameworks/base/core/java/android/service/ondeviceintelligence/
DOnDeviceIntelligenceService.java449 private static void tryClosePfds(Collection<ParcelFileDescriptor> pfds) {
450 pfds.forEach(pfd -> {
/frameworks/native/libs/input/
DInputTransport.cpp471 struct pollfd pfds = {.fd = fd.get(), .events = POLLIN}; in probablyHasInput() local
472 if (::poll(&pfds, /*nfds=*/1, /*timeout=*/0) <= 0) { in probablyHasInput()
483 return (pfds.revents & POLLIN) != 0; in probablyHasInput()
490 struct pollfd pfds = {.fd = fd.get(), .events = POLLIN}; in waitForMessage() local
496 ret = ::poll(&pfds, /*nfds=*/1, /*timeout=*/remaining.count()); in waitForMessage()
/frameworks/base/core/tests/bugreports/src/com/android/os/bugreports/tests/
DBugreportManagerTest.java719 private static void assertFdsAreClosed(ParcelFileDescriptor... pfds) { in assertFdsAreClosed() argument
720 for (int i = 0; i < pfds.length; i++) { in assertFdsAreClosed()
721 assertFdIsClosed(pfds[i]); in assertFdsAreClosed()