Home
last modified time | relevance | path

Searched refs:POLLIN (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/native/libs/vr/libpdx_uds/
Dchannel_event_set.cpp117 std::array<pollfd, 3> pfds = {{{pollin_event_fd_.Get(), POLLIN, 0}, in PollPendingEvents()
118 {pollhup_event_fd_.Get(), POLLIN, 0}, in PollPendingEvents()
130 ((pfds[0].revents & POLLIN) ? EPOLLIN : 0) | in PollPendingEvents()
131 ((pfds[1].revents & POLLIN) ? EPOLLHUP : 0) | in PollPendingEvents()
145 {pollhup_event_fd_.Get(), POLLIN}}; in GetEventSources()
Dservice_framework_tests.cpp647 pollfd pfd{client->event_fd(), POLLIN, 0}; in TEST_F()
655 ASSERT_TRUE((POLLIN & pfd.revents) != 0); in TEST_F()
668 pollfd pfd{client->event_fd(), POLLIN, 0}; in TEST_F()
/frameworks/native/cmds/lshal/
DPipeRelay.cpp59 pfd[0] = {.fd = rfd.get(), .events = POLLIN}; in thread()
70 if (pfd[0].revents & POLLIN) { in thread()
93 if ((pfd[0].revents & POLLIN) == 0) { in thread()
/frameworks/base/core/java/com/android/internal/os/
DZygoteServer.java19 import static android.system.OsConstants.POLLIN;
432 pollFDs[pollIndex].events = (short) POLLIN; in runSelectLoop()
441 pollFDs[pollIndex].events = (short) POLLIN; in runSelectLoop()
452 pollFDs[pollIndex].events = (short) POLLIN; in runSelectLoop()
504 if ((pollFDs[pollIndex].revents & POLLIN) == 0) { in runSelectLoop()
DZygoteConnection.java21 import static android.system.OsConstants.POLLIN;
583 fds[0].events = (short) POLLIN; in handleParentProc()
596 if ((fds[0].revents & POLLIN) != 0) { in handleParentProc()
/frameworks/native/libs/binder/
DRpcTransportTipcAndroid.cpp47 pollfd pfd{.fd = mSocket.fd.get(), .events = static_cast<int16_t>(POLLIN), .revents = 0}; in pollRead()
65 if (pfd.revents & POLLIN) { in pollRead()
125 POLLIN, altPoll); in interruptableReadFully()
DUtilsHost.cpp128 if (pfd->revents & POLLIN) { in execute()
148 *outPollFd = {.fd = ret.outPipe.get(), .events = POLLIN}; in execute()
152 *errPollFd = {.fd = ret.errPipe.get(), .events = POLLIN}; in execute()
DRpcTransportRaw.cpp82 return interruptableReadOrWrite(mSocket, fdTrigger, iovs, niovs, recv, "recvmsg", POLLIN, in interruptableReadFully()
DRpcTransportTls.cpp197 return handlePoll(POLLIN | additionalEvent, fd, fdTrigger, fnString, altPoll); in pollForSslError()
364 "SSL_write", POLLIN, altPoll); in interruptableWriteFully()
/frameworks/base/cmds/incidentd/src/
DFdBuffer.cpp56 struct pollfd pfds = {.fd = fd, .events = POLLIN}; in read()
148 {.fd = fd, .events = POLLIN}, in readProcessedDataInStream()
150 {.fd = fromFd.get(), .events = POLLIN}, in readProcessedDataInStream()
/frameworks/rs/
DrsThreadIO.cpp111 p[0].events = POLLIN; in playCoreCommands()
114 p[1].events = POLLIN; in playCoreCommands()
DrsFifoSocket.cpp94 p.events = POLLIN; in isEmpty()
/frameworks/base/core/jni/
Dcom_android_internal_os_ZygoteCommandBuffer.cpp418 fd_structs[ZYGOTE_IDX].events = POLLIN; in com_android_internal_os_ZygoteCommandBuffer_nativeForkRepeatedly()
420 fd_structs[SESSION_IDX].events = POLLIN; in com_android_internal_os_ZygoteCommandBuffer_nativeForkRepeatedly()
469 if ((fd_structs[SESSION_IDX].revents & POLLIN) != 0) { in com_android_internal_os_ZygoteCommandBuffer_nativeForkRepeatedly()
477 } else if (poll_res == 0 || (fd_structs[ZYGOTE_IDX].revents & POLLIN) == 0) { in com_android_internal_os_ZygoteCommandBuffer_nativeForkRepeatedly()
/frameworks/av/media/mtp/
DMtpFfsHandle.cpp291 mPollFds[0].events = POLLIN; in start()
293 mPollFds[1].events = POLLIN; in start()
320 if (mPollFds[0].revents & POLLIN) { in waitEvents()
326 if (mPollFds[1].revents & POLLIN) { in waitEvents()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbAlsaMidiDevice.java204 pollfd.events = (short) OsConstants.POLLIN; in openLocked()
241 } else if ((pfd.revents & OsConstants.POLLIN) != 0) { in openLocked()
/frameworks/base/native/android/
Dsensor.cpp267 pfd.events = POLLIN; in ASensorEventQueue_hasEvents()
275 if (pfd.revents != POLLIN) in ASensorEventQueue_hasEvents()
/frameworks/native/services/vr/bufferhubd/
Dbuffer_hub.cpp317 const auto status = service_->ModifyChannelEvents(channel_id_, 0, POLLIN); in SignalAvailable()
330 const auto status = service_->ModifyChannelEvents(channel_id_, POLLIN, 0); in ClearAvailable()
/frameworks/native/cmds/dumpstate/
DDumpstateInternal.cpp167 pollfd fds[] = { { .fd = fd, .events = POLLIN } }; in DumpFileFromFdToFd()
/frameworks/base/services/core/jni/
Dcom_android_server_pm_PackageManagerShellCommandDataLoader.cpp567 struct pollfd pfds[2] = {{fd, POLLIN, 0}, {mEventFd, POLLIN, 0}}; in waitForData()
589 if (pfds[1].revents == POLLIN) { in waitForData()
594 if (pfds[0].revents == POLLIN) { in waitForData()
/frameworks/av/media/codec2/vndk/
DC2Fence.cpp642 pfd.events = POLLIN; in waitEvent()
657 if (pfd.revents & ~POLLIN) { in waitEvent()
/frameworks/native/libs/input/
DInputTransport.cpp471 struct pollfd pfds = {.fd = fd.get(), .events = POLLIN}; in probablyHasInput()
483 return (pfds.revents & POLLIN) != 0; in probablyHasInput()
490 struct pollfd pfds = {.fd = fd.get(), .events = POLLIN}; in waitForMessage()
/frameworks/native/libs/binder/tests/
DbinderDriverInterfaceTest.cpp138 pfd.events = POLLIN; in binderWaitForReadData()
/frameworks/base/media/native/midi/
Damidi.cpp329 struct pollfd checkFds[1] = { { mPort->ufd, POLLIN, 0 } }; in receive()
/frameworks/native/cmds/dumpsys/
Ddumpsys.cpp502 struct pollfd pfd = {.fd = serviceDumpFd, .events = POLLIN}; in writeDump()
/frameworks/native/libs/vr/libbufferhub/
Dbuffer_hub-test.cpp50 pollfd p = {buffer->event_fd(), POLLIN, 0}; in PollBufferEvent()
641 pollfd p = {fd, POLLIN, 0}; in PollFd()

12