/system/core/adb/ |
D | fdevent.cpp | 65 pollfd.events = POLLRDHUP; in PollNode() 168 fde->events = 0; in fdevent_remove() 172 static void fdevent_update(fdevent* fde, unsigned events) { in fdevent_update() argument 176 if (events & FDE_READ) { in fdevent_update() 177 node.pollfd.events |= POLLIN; in fdevent_update() 179 node.pollfd.events &= ~POLLIN; in fdevent_update() 182 if (events & FDE_WRITE) { in fdevent_update() 183 node.pollfd.events |= POLLOUT; in fdevent_update() 185 node.pollfd.events &= ~POLLOUT; in fdevent_update() 187 fde->state = (fde->state & FDE_STATEMASK) | events; in fdevent_update() [all …]
|
D | fdevent.h | 31 typedef void (*fd_func)(int fd, unsigned events, void *userdata); 41 uint16_t events; member 69 void fdevent_set(fdevent *fde, unsigned events); 70 void fdevent_add(fdevent *fde, unsigned events); 71 void fdevent_del(fdevent *fde, unsigned events);
|
D | fdevent_test.cpp | 43 static void FdEventCallback(int fd, unsigned events, void* userdata) { in FdEventCallback() argument 45 ASSERT_EQ(0u, (events & ~(FDE_READ | FDE_WRITE))) << "unexpected events: " << events; in FdEventCallback() 46 if (events & FDE_READ) { in FdEventCallback() 53 if (events & FDE_WRITE) { in FdEventCallback() 146 static void InvalidFdEventCallback(int fd, unsigned events, void* userdata) { in InvalidFdEventCallback() argument 148 ASSERT_EQ(arg->expected_events, events); in InvalidFdEventCallback()
|
D | sysdeps_test.cpp | 127 pfd[0].events = POLLRDNORM; in TEST_F() 129 pfd[1].events = POLLWRNORM; in TEST_F() 153 pfd.events = POLLRDNORM; in TEST_F() 167 pfd[0].events = POLLRDNORM; in TEST_F() 169 pfd[1].events = POLLRDNORM; in TEST_F() 171 pfd[2].events = POLLWRNORM; in TEST_F() 188 pfd[0].events = POLLRDNORM; in TEST_F() 205 pfd.events = POLLIN; in TEST_F() 229 pfd.events = POLLIN; in TEST_F()
|
D | adb_auth_client.cpp | 177 static void adb_auth_event(int fd, unsigned events, void*) { in adb_auth_event() argument 181 if (events & FDE_READ) { in adb_auth_event() 228 static void adb_auth_listener(int fd, unsigned events, void* data) { in adb_auth_listener() argument
|
D | jdwp_service.cpp | 257 jdwp_process_event( int socket, unsigned events, void* _proc ) in jdwp_process_event() argument 261 if (events & FDE_READ) { in jdwp_process_event() 336 if (events & FDE_WRITE) { in jdwp_process_event() 455 jdwp_control_event(int s, unsigned events, void* user); 521 jdwp_control_event( int s, unsigned events, void* _control ) in jdwp_control_event() argument 525 if (events & FDE_READ) { in jdwp_control_event()
|
/system/core/libutils/ |
D | Looper.cpp | 57 int SimpleLooperCallback::handleEvent(int fd, int events, void* data) { in handleEvent() argument 58 return mCallback(fd, events, data); in handleEvent() 158 eventItem.events = EPOLLIN; in rebuildEpollLocked() 195 int events = response.events; in pollOnce() local 200 this, ident, fd, events, data); in pollOnce() 203 if (outEvents != NULL) *outEvents = events; in pollOnce() 292 uint32_t epollEvents = eventItems[i].events; in pollInner() 302 int events = 0; in pollInner() local 303 if (epollEvents & EPOLLIN) events |= EVENT_INPUT; in pollInner() 304 if (epollEvents & EPOLLOUT) events |= EVENT_OUTPUT; in pollInner() [all …]
|
/system/core/bootstat/ |
D | boot_event_record_store_test.cpp | 142 auto events = store.GetAllBootEvents(); in TEST_F() local 143 ASSERT_EQ(1U, events.size()); in TEST_F() 144 EXPECT_EQ("cenozoic", events[0].first); in TEST_F() 145 EXPECT_TRUE(FuzzUptimeEquals(uptime, events[0].second)); in TEST_F() 165 auto events = store.GetAllBootEvents(); in TEST_F() local 166 ASSERT_EQ(3U, events.size()); in TEST_F() 170 for (auto i = events.begin(); i != events.end(); ++i) { in TEST_F() 188 auto events = store.GetAllBootEvents(); in TEST_F() local 189 ASSERT_EQ(1U, events.size()); in TEST_F() 190 EXPECT_EQ("permian", events[0].first); in TEST_F() [all …]
|
D | README.md | 3 The bootstat command records boot events (e.g., `firmware_loaded`, 4 `boot_complete`) and the relative time at which these events occurred. The 22 ## Recording boot events ## 32 ## Logging boot events ## 34 To log the persisted boot events, call `bootstat` with the `-l` option. 38 bootstat logs all boot events recorded using the `-r` option to the EventLog 43 ## Printing boot events ## 45 To print the set of persisted boot events, call `bootstat` with the `-p` option. 48 Boot events:
|
D | bootstat.cpp | 46 auto events = boot_event_store.GetAllBootEvents(); in LogBootEvents() local 47 for (auto i = events.cbegin(); i != events.cend(); ++i) { in LogBootEvents() 57 auto events = boot_event_store.GetAllBootEvents(); in PrintBootEvents() local 58 for (auto i = events.cbegin(); i != events.cend(); ++i) { in PrintBootEvents()
|
D | boot_event_record_store.cpp | 141 std::vector<BootEventRecord> events; in GetAllBootEvents() local 163 events.push_back(record); in GetAllBootEvents() 166 return events; in GetAllBootEvents()
|
/system/bt/stack/rfcomm/ |
D | port_rfc.c | 156 UINT32 events = 0; in port_start_close() local 164 events |= port_get_signal_changes (p_port, old_signals, p_port->peer_ctrl.modem_signal); in port_start_close() 167 events |= PORT_EV_CONNECT_ERR; in port_start_close() 170 events |= PORT_EV_ERR; in port_start_close() 172 if ((p_port->p_callback != NULL) && events) in port_start_close() 173 p_port->p_callback (events, p_port->inx); in port_start_close() 833 UINT32 events = 0; in PORT_DataInd() local 887 events |= PORT_EV_RXFLAG; in PORT_DataInd() 906 if (events & PORT_EV_RXFLAG) in PORT_DataInd() 912 events |= PORT_EV_RXCHAR; in PORT_DataInd() [all …]
|
D | port_utils.c | 456 UINT32 events = 0; in port_get_signal_changes() local 460 events |= PORT_EV_DSR; in port_get_signal_changes() 463 events |= PORT_EV_DSRS; in port_get_signal_changes() 468 events |= PORT_EV_CTS; in port_get_signal_changes() 471 events |= PORT_EV_CTSS; in port_get_signal_changes() 475 events |= PORT_EV_RING; in port_get_signal_changes() 479 events |= PORT_EV_RLSD; in port_get_signal_changes() 482 events |= PORT_EV_RLSDS; in port_get_signal_changes() 485 return (p_port->ev_mask & events); in port_get_signal_changes()
|
D | port_api.c | 819 UINT32 events; in PORT_FlowControl() local 865 events = PORT_EV_RXCHAR; in PORT_FlowControl() 869 events |= PORT_EV_RXFLAG; in PORT_FlowControl() 872 events &= p_port->ev_mask; in PORT_FlowControl() 873 if (p_port->p_callback && events) in PORT_FlowControl() 875 p_port->p_callback (events, p_port->inx); in PORT_FlowControl() 898 UINT32 events; in PORT_FlowControl_MaxCredit() local 944 events = PORT_EV_RXCHAR; in PORT_FlowControl_MaxCredit() 948 events |= PORT_EV_RXFLAG; in PORT_FlowControl_MaxCredit() 951 events &= p_port->ev_mask; in PORT_FlowControl_MaxCredit() [all …]
|
/system/bt/osi/src/ |
D | reactor.c | 92 event.events = EPOLLIN; in reactor_new() 152 event.events |= (EPOLLIN | EPOLLRDHUP); in reactor_register() 154 event.events |= EPOLLOUT; in reactor_register() 175 event.events |= (EPOLLIN | EPOLLRDHUP); in reactor_change_registration() 177 event.events |= EPOLLOUT; in reactor_change_registration() 233 struct epoll_event events[MAX_EVENTS]; in run_reactor() local 240 OSI_NO_INTR(ret = epoll_wait(reactor->epoll_fd, events, MAX_EVENTS, -1)); in run_reactor() 251 if (events[j].data.ptr == NULL) { in run_reactor() 258 reactor_object_t *object = (reactor_object_t *)events[j].data.ptr; in run_reactor() 271 if (events[j].events & (EPOLLIN | EPOLLHUP | EPOLLRDHUP | EPOLLERR) && object->read_ready) in run_reactor() [all …]
|
/system/core/include/utils/ |
D | Looper.h | 45 typedef int (*Looper_callbackFunc)(int fd, int events, void* data); 112 virtual int handleEvent(int fd, int events, void* data) = 0; 124 virtual int handleEvent(int fd, int events, void* data); 317 int addFd(int fd, int ident, int events, Looper_callbackFunc callback, void* data); 318 int addFd(int fd, int ident, int events, const sp<LooperCallback>& callback, void* data); 423 int events; member 432 int events; member 476 void pushResponse(int events, const Request& request);
|
/system/core/healthd/ |
D | healthd.cpp | 152 ev.events = EPOLLIN; in healthd_register_event() 155 ev.events |= EPOLLWAKEUP; in healthd_register_event() 295 struct epoll_event events[eventct]; in healthd_mainloop() local 308 nevents = epoll_wait(epollfd, events, eventct, timeout); in healthd_mainloop() 317 if (events[n].data.ptr) in healthd_mainloop() 318 (*(void (*)(int))events[n].data.ptr)(events[n].events); in healthd_mainloop()
|
/system/core/lmkd/ |
D | lmkd.c | 389 static void ctrl_data_handler(uint32_t events) { in ctrl_data_handler() argument 390 if (events & EPOLLHUP) { in ctrl_data_handler() 394 } else if (events & EPOLLIN) { in ctrl_data_handler() 399 static void ctrl_connect_handler(uint32_t events __unused) { in ctrl_connect_handler() 420 epev.events = EPOLLIN; in ctrl_connect_handler() 632 static void mp_event(uint32_t events __unused) { in mp_event() 707 epev.events = EPOLLIN; in init_mp() 756 epev.events = EPOLLIN; in init() 784 struct epoll_event events[maxevents]; in mainloop() local 789 nevents = epoll_wait(epollfd, events, maxevents, -1); in mainloop() [all …]
|
/system/core/libutils/tests/ |
D | Looper_test.cpp | 56 void setCallback(const sp<Looper>& looper, int fd, int events) { in setCallback() argument 57 looper->addFd(fd, 0, events, staticHandler, this); in setCallback() 63 virtual int handler(int fd, int events) = 0; 66 static int staticHandler(int fd, int events, void* data) { in staticHandler() argument 67 return static_cast<CallbackHandler*>(data)->handler(fd, events); in staticHandler() 77 int events; member in android::StubCallbackHandler 80 callbackCount(0), fd(-1), events(-1) { in StubCallbackHandler() 84 virtual int handler(int fd, int events) { in handler() argument 87 this->events = events; in handler() 201 EXPECT_EQ(Looper::EVENT_INPUT, handler.events) in TEST_F() [all …]
|
/system/bt/btif/src/ |
D | btif_sock_thread.c | 58 #define print_events(events) do { \ argument 59 APPL_TRACE_DEBUG("print poll event:%x", events); \ 60 if (events & POLLIN) APPL_TRACE_DEBUG( " POLLIN "); \ 61 if (events & POLLPRI) APPL_TRACE_DEBUG( " POLLPRI "); \ 62 if (events & POLLOUT) APPL_TRACE_DEBUG( " POLLOUT "); \ 63 if (events & POLLERR) APPL_TRACE_DEBUG( " POLLERR "); \ 64 if (events & POLLHUP) APPL_TRACE_DEBUG( " POLLHUP "); \ 65 if (events & POLLNVAL) APPL_TRACE_DEBUG(" POLLNVAL "); \ 66 if (events & POLLRDHUP) APPL_TRACE_DEBUG(" POLLRDHUP"); \ 409 ps->pfd.events = flags2pevents(flags); in set_poll() [all …]
|
/system/vold/bench/ |
D | benchgen.py | 56 events = [] variable 125 events.append(Event(thread, time, call, args, ret)) 175 events = sorted(events, key=lambda e: e.time) variable 178 for e in events: 330 for e in events:
|
/system/core/debuggerd/ |
D | getevent.cpp | 83 ufds[nfds].events = POLLIN; in open_device() 172 ufds[0].events = POLLIN; in init_getevent()
|
/system/bt/doc/ |
D | power_management.md | 6 `bta/sys` events via a callback. The actual state switching calls are handled 13 The events fired to drive the state machine at the time of this writing are: 45 and what actions to take for the above events are defined in the 79 `bta_dm_pm_cback` with the bta sys module for incoming power management events, 84 events come in through `bta_dm_pm_cback`. 154 Essentially these messages eventually go through the same functions as events
|
/system/core/init/ |
D | ueventd.cpp | 70 ufd.events = POLLIN; in ueventd_main()
|
/system/extras/tests/mmc_tracepoints/ |
D | README | 4 adb shell echo 1 >/d/tracing/events/mmc/enable
|