Searched refs:pfds (Results 1 – 7 of 7) 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/services/core/java/com/android/server/ondeviceintelligence/ |
D | BundleUtil.java | 349 public static void validatePfdsReadOnly(Parcelable[] pfds) { 350 for (Parcelable pfd : pfds) {
|
/frameworks/base/services/core/jni/ |
D | com_android_server_pm_PackageManagerShellCommandDataLoader.cpp | 567 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/ |
D | OnDeviceIntelligenceService.java | 449 private static void tryClosePfds(Collection<ParcelFileDescriptor> pfds) { 450 pfds.forEach(pfd -> {
|
/frameworks/native/libs/input/ |
D | InputTransport.cpp | 471 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/ |
D | BugreportManagerTest.java | 719 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()
|