Home
last modified time | relevance | path

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

/system/core/adb/
Dsysdeps_test.cpp131 pfd[0].revents = -1; in TEST_F()
132 pfd[1].revents = -1; in TEST_F()
134 EXPECT_EQ(0, pfd[0].revents); in TEST_F()
135 EXPECT_EQ(POLLWRNORM, pfd[1].revents); in TEST_F()
140 pfd[0].revents = -1; in TEST_F()
142 EXPECT_EQ(POLLRDNORM, pfd[0].revents); in TEST_F()
143 pfd[0].revents = -1; in TEST_F()
144 pfd[1].revents = -1; in TEST_F()
146 EXPECT_EQ(POLLRDNORM, pfd[0].revents); in TEST_F()
147 EXPECT_EQ(POLLWRNORM, pfd[1].revents); in TEST_F()
[all …]
Dfdevent.cpp248 if (pollfd.revents != 0) { in fdevent_process()
249 D("for fd %d, revents = %x", pollfd.fd, pollfd.revents); in fdevent_process()
252 if (pollfd.revents & POLLIN) { in fdevent_process()
255 if (pollfd.revents & POLLOUT) { in fdevent_process()
258 if (pollfd.revents & (POLLERR | POLLHUP | POLLNVAL)) { in fdevent_process()
264 if (pollfd.revents & POLLRDHUP) { in fdevent_process()
Dsysdeps_win32.cpp673 fds[i].revents = POLLNVAL; in adb_poll()
697 original[i]->revents = sockets[i].revents; in adb_poll()
705 if (fds[i].revents != 0) { in adb_poll()
Dservices.cpp391 } else if (rc > 0 && (pfd.revents & POLLHUP) != 0) { in wait_for_state()
Dsysdeps.h301 short revents; member
/system/core/debuggerd/
Dgetevent.cpp205 if (ufds[0].revents & POLLIN) { in get_event()
209 if (ufds[i].revents) { in get_event()
210 if (ufds[i].revents & POLLIN) { in get_event()
Ddebuggerd.cpp201 pollfds[0].revents = 0; in read_request()
/system/core/init/
Dueventd.cpp74 ufd.revents = 0; in ueventd_main()
79 if (ufd.revents & POLLIN) { in ueventd_main()
Dproperty_service.cpp259 ufds[0].revents = 0; in handle_property_set_fd()
/system/bt/btif/src/
Dbtif_sock_thread.c410 ps->pfd.revents = 0; in set_poll()
509 if(pfds[i].revents) in process_data_sock()
516 print_events(pfds[i].revents); in process_data_sock()
517 if(IS_READ(pfds[i].revents)) in process_data_sock()
521 if(IS_WRITE(pfds[i].revents)) in process_data_sock()
525 if(IS_EXCEPTION(pfds[i].revents)) in process_data_sock()
582 if(pfds[0].revents) //cmd fd always is the first one in sock_poll_thread()
Dbtif_pan.c789 ufd.revents = 0; in btu_exec_tap_fd_read()
793 if (ret <= 0 || IS_EXCEPTION(ufd.revents)) in btu_exec_tap_fd_read()
/system/netd/server/
DMDnsSdListener.cpp615 if (mPollFds[i].revents != 0) { in run()
618 i, mPollFds[i].revents); in run()
621 mPollFds[i].revents = 0; in run()
624 if (VDBG) ALOGD("controlSocket shows revent= %d", mPollFds[0].revents); in run()
625 switch (mPollFds[0].revents) { in run()
635 mPollFds[0].revents = 0; in run()
/system/vold/
Dvdc.cpp131 if (!(poll_sock.revents & POLLIN)) { in do_monitor()
/system/bt/udrv/ulinux/
Duipc.c415 __FUNCTION__, pfd.fd, pfd.revents, ret); in uipc_flush_ch_locked()
416 if (pfd.revents & (POLLERR|POLLHUP)) in uipc_flush_ch_locked()
768 if (pfd.revents & (POLLHUP|POLLNVAL) ) in UIPC_Read()
/system/bt/service/ipc/
Dlinux_ipc_host.cpp93 if (pfds_[kFdIpc].revents && !OnMessage()) { in EventLoop()
98 pfds_[kFdGatt].revents && in EventLoop()
/system/core/toolbox/
Dgetevent.c658 if(ufds[0].revents & POLLIN) { in getevent_main()
662 if(ufds[i].revents) { in getevent_main()
663 if(ufds[i].revents & POLLIN) { in getevent_main()
/system/core/liblog/
Dlogd_reader.c309 if (!(p.revents & POLLIN)) { in send_log_msg()
653 if ((ret > 0) && !(p.revents & POLLIN)) { in logdPoll()
/system/core/logwrapper/
Dlogwrap.c358 if (poll_fds[0].revents & POLLIN) { in parent()
408 if (poll_fds[0].revents & POLLHUP) { in parent()
/system/core/logd/tests/
Dlogd_test.cpp57 .revents = 0 in my_android_logger_get_statistics()
61 if ((ret <= 0) || !(p.revents & POLLIN)) { in my_android_logger_get_statistics()
/system/core/adf/libadfhwc/
Dadfhwc.cpp222 if (fds[i].revents & (POLLIN | POLLPRI)) in adf_event_thread()
/system/bt/vendor_libs/linux/
Dbt_vendor_linux.c204 if (fds[0].revents & POLLIN) { in bt_vendor_wait_hcidev()
/system/core/logd/
Dmain.cpp406 if ((ret == 0) || !(p.revents & POLLIN)) { in main()
/system/core/libnetutils/
Ddhcpclient.c424 pfd.revents = 0; in dhcp_init_ifc()
/system/bt/btif/co/
Dbta_hh_co.c216 if (pfds[0].revents & POLLIN) { in btif_hh_poll_event_thread()
/system/core/libsync/tests/
Dsync_test.cpp395 ASSERT_TRUE(fds.revents & POLLERR); in TEST()