Searched refs:events (Results 1 - 25 of 42) sorted by relevance

12

/system/core/adb/
H A Dfdevent.h22 /* events that may be observed */
28 /* features that may be set (via the events set/add/del interface) */
33 typedef void (*fd_func)(int fd, unsigned events, void *userdata);
55 /* Change which events should cause notifications
57 void fdevent_set(fdevent *fde, unsigned events);
58 void fdevent_add(fdevent *fde, unsigned events);
59 void fdevent_del(fdevent *fde, unsigned events);
63 /* loop forever, handling events.
75 uint16_t events; member in struct:fdevent
H A Dfdevent.cpp84 static void fdevent_subproc_event_func(int fd, unsigned events, void *userdata);
92 .events = 0,
126 ev.events = 0;
142 ev.events = 0;
146 ** were actively monitoring events, but let's
153 static void fdevent_update(fdevent *fde, unsigned events) argument
161 ev.events = 0;
164 if(events & FDE_READ) ev.events |= EPOLLIN;
165 if(events
201 struct epoll_event events[256]; local
276 fdevent_update(fdevent *fde, unsigned events) argument
364 unsigned events; local
505 unsigned events = fde->events; local
626 fdevent_set(fdevent *fde, unsigned events) argument
652 fdevent_add(fdevent *fde, unsigned events) argument
658 fdevent_del(fdevent *fde, unsigned events) argument
[all...]
H A Dadb_auth_client.cpp172 static void adb_auth_event(int fd, unsigned events, void *data) argument
177 if (events & FDE_READ) {
230 static void adb_auth_listener(int fd, unsigned events, void *data) argument
H A Dsysdeps_win32.cpp1357 fde->events |= hook->wanted;
1387 event_looper_hook( EventLooper looper, int fd, int events )
1406 if ( (node->wanted & events) != events ) {
1409 fd, node->wanted, events);
1410 f->clazz->_fh_hook( f, events & ~node->wanted, node );
1411 node->wanted |= events;
1413 D("event_looper_hook: ignoring events %x for %d wanted=%x)\n",
1414 events, fd, node->wanted);
1419 event_looper_unhook( EventLooper looper, int fd, int events )
1624 int events = fde->state & FDE_EVENTMASK; local
1633 int events = fde->state & FDE_EVENTMASK; local
1639 fdevent_update(fdevent *fde, unsigned events) argument
1888 fdevent_set(fdevent *fde, unsigned events) argument
1914 fdevent_add(fdevent *fde, unsigned events) argument
1920 fdevent_del(fdevent *fde, unsigned events) argument
1937 unsigned events = fde->events; local
1962 _fh_file_hook( FH f, int events, EventHook hook ) argument
2081 _fh_socket_hook( FH f, int events, EventHook hook ) argument
2137 _fh_socketpair_hook( FH fh, int events, EventHook hook ) argument
[all...]
H A Djdwp_service.cpp255 jdwp_process_event( int socket, unsigned events, void* _proc ) argument
259 if (events & FDE_READ) {
333 if (events & FDE_WRITE) {
464 jdwp_control_event(int s, unsigned events, void* user);
530 jdwp_control_event( int s, unsigned events, void* _control ) argument
534 if (events & FDE_READ) {
H A Dsysdeps.h203 typedef void (*fd_func)(int fd, unsigned events, void *userdata);
209 void fdevent_set(fdevent *fde, unsigned events);
210 void fdevent_add(fdevent *fde, unsigned events);
211 void fdevent_del(fdevent *fde, unsigned events);
/system/core/rootdir/
H A Dinit.trace.rc13 chown root shell /sys/kernel/debug/tracing/events/sched/sched_switch/enable
14 chown root shell /sys/kernel/debug/tracing/events/sched/sched_wakeup/enable
15 chown root shell /sys/kernel/debug/tracing/events/power/cpu_frequency/enable
16 chown root shell /sys/kernel/debug/tracing/events/power/cpu_idle/enable
17 chown root shell /sys/kernel/debug/tracing/events/power/clock_set_rate/enable
18 chown root shell /sys/kernel/debug/tracing/events/cpufreq_interactive/enable
25 chmod 0664 /sys/kernel/debug/tracing/events/sched/sched_switch/enable
26 chmod 0664 /sys/kernel/debug/tracing/events/sched/sched_wakeup/enable
27 chmod 0664 /sys/kernel/debug/tracing/events/power/cpu_frequency/enable
28 chmod 0664 /sys/kernel/debug/tracing/events/powe
[all...]
/system/bt/osi/src/
H A Dreactor.c49 int fd; // the file descriptor to monitor for events.
92 event.events = EPOLLIN;
155 event.events |= (EPOLLIN | EPOLLRDHUP);
157 event.events |= EPOLLOUT;
178 event.events |= (EPOLLIN | EPOLLRDHUP);
180 event.events |= EPOLLOUT;
236 struct epoll_event events[MAX_EVENTS]; local
244 ret = epoll_wait(reactor->epoll_fd, events, MAX_EVENTS, -1);
257 if (events[j].data.ptr == NULL) {
264 reactor_object_t *object = (reactor_object_t *)events[
[all...]
/system/core/include/utils/
H A DLooper.h39 * a bitmask of the poll events that were triggered (typically EVENT_INPUT),
45 typedef int (*Looper_callbackFunc)(int fd, int events, void* data);
106 * a bitmask of the poll events that were triggered (typically EVENT_INPUT),
112 virtual int handleEvent(int fd, int events, void* data) = 0;
124 virtual int handleEvent(int fd, int events, void* data);
131 * A polling loop that supports monitoring file descriptor events, optionally
169 * Flags for file descriptor events that a looper can monitor.
171 * These flag bits can be combined to monitor multiple events at once.
227 * pollOnce() is prepared to handle callback-less events itself.
238 * Waits for events t
423 int events; member in struct:android::Looper::Request
432 int events; member in struct:android::Looper::Response
[all...]
/system/core/libutils/
H A DLooper.cpp55 int SimpleLooperCallback::handleEvent(int fd, int events, void* data) { argument
56 return mCallback(fd, events, data);
65 // Maximum number of file descriptors for which to retrieve poll events each iteration.
155 eventItem.events = EPOLLIN;
168 ALOGE("Error adding epoll events for fd %d while rebuilding epoll set, errno=%d",
192 int events = response.events;
196 "fd=%d, events=0x%x, data=%p",
197 this, ident, fd, events, data);
200 if (outEvents != NULL) *outEvents = events;
[all...]
/system/bt/stack/rfcomm/
H A Dport_rfc.c154 UINT32 events = 0; local
162 events |= port_get_signal_changes (p_port, old_signals, p_port->peer_ctrl.modem_signal);
165 events |= PORT_EV_CONNECT_ERR;
168 events |= PORT_EV_ERR;
170 if ((p_port->p_callback != NULL) && events)
171 p_port->p_callback (events, p_port->inx);
662 /* execute call back function only if the application is registered for events */
707 /* execute call back function only if the application is registered for events */
832 UINT32 events = 0; local
886 events |
932 UINT32 events = 0; local
991 UINT32 events = 0; local
1047 UINT32 events = 0; local
[all...]
H A Dport_utils.c406 ** events to be send to the user based on the user's specified
451 UINT32 events = 0; local
455 events |= PORT_EV_DSR;
458 events |= PORT_EV_DSRS;
463 events |= PORT_EV_CTS;
466 events |= PORT_EV_CTSS;
470 events |= PORT_EV_RING;
474 events |= PORT_EV_RLSD;
477 events |= PORT_EV_RLSDS;
480 return (p_port->ev_mask & events);
[all...]
H A Dport_api.c93 ** mask - specifies events to be enabled. A value
94 ** of zero disables all events.
97 ** connection up/down events.
294 /* Do not report any events to the client any more. */
317 ** function which will be called when one of the events
457 ** mask - Bitmask of the events the host is interested in
823 UINT32 events; local
865 /* Need to take care of the case when we could not deliver events */
869 events = PORT_EV_RXCHAR;
873 events |
902 UINT32 events; local
1150 UINT32 events; local
[all...]
/system/core/healthd/
H A Dhealthd.cpp140 ev.events = EPOLLIN | EPOLLWAKEUP;
248 "register for uevent events failed\n");
278 struct epoll_event events[eventct]; local
286 nevents = epoll_wait(epollfd, events, eventct, timeout);
296 if (events[n].data.ptr)
297 (*(void (*)(int))events[n].data.ptr)(events[n].events);
/system/core/libutils/tests/
H A DLooper_test.cpp56 void setCallback(const sp<Looper>& looper, int fd, int events) { argument
57 looper->addFd(fd, 0, events, staticHandler, this);
63 virtual int handler(int fd, int events) = 0;
66 static int staticHandler(int fd, int events, void* data) { argument
67 return static_cast<CallbackHandler*>(data)->handler(fd, events);
77 int events; member in class:android::StubCallbackHandler
80 callbackCount(0), fd(-1), events(-1) {
84 virtual int handler(int fd, int events) { argument
87 this->events = events;
346 int events; local
[all...]
/system/core/lmkd/
H A Dlmkd.c64 /* default to old in-kernel interface if no memory pressure events */
402 static void ctrl_data_handler(uint32_t events) { argument
403 if (events & EPOLLHUP) {
407 } else if (events & EPOLLIN) {
412 static void ctrl_connect_handler(uint32_t events __unused) {
432 epev.events = EPOLLIN;
644 static void mp_event(uint32_t events __unused) {
719 epev.events = EPOLLIN;
768 epev.events = EPOLLIN;
783 ALOGE("Kernel does not support memory pressure events o
796 struct epoll_event events[maxevents]; local
[all...]
/system/vold/bench/
H A Dbenchgen.py56 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/bt/btif/src/
H A Dbtif_sock_thread.c63 #define print_events(events) do { \
64 APPL_TRACE_DEBUG("print poll event:%x", events); \
65 if (events & POLLIN) APPL_TRACE_DEBUG( " POLLIN "); \
66 if (events & POLLPRI) APPL_TRACE_DEBUG( " POLLPRI "); \
67 if (events & POLLOUT) APPL_TRACE_DEBUG( " POLLOUT "); \
68 if (events & POLLERR) APPL_TRACE_DEBUG( " POLLERR "); \
69 if (events & POLLHUP) APPL_TRACE_DEBUG( " POLLHUP "); \
70 if (events & POLLNVAL) APPL_TRACE_DEBUG(" POLLNVAL "); \
71 if (events & POLLRDHUP) APPL_TRACE_DEBUG(" POLLRDHUP"); \
452 ps->pfd.events
[all...]
/system/bt/doc/
H A Dpower_management.md6 various `bta/sys` events via a callback. The actual state switching calls are
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/
H A Dueventd.cpp71 ufd.events = POLLIN;
/system/core/debuggerd/
H A Dgetevent.cpp83 ufds[nfds].events = POLLIN;
172 ufds[0].events = POLLIN;
/system/bt/udrv/ulinux/
H A Duipc.c185 pfd.events = POLLIN;
261 /* check pending events in read task */
386 pfd.events = POLLIN;
523 /* check pending task events */
783 pfd.events = POLLIN|POLLHUP;
/system/extras/simpleperf/
H A Devent_fd.cpp177 poll_fd->events = POLLIN;
/system/extras/tests/suspend_stress/
H A Dsuspend_stress.cpp111 ev.events = EPOLLIN | EPOLLWAKEUP;
/system/extras/perfprofd/quipper/
H A Dperf_reader.h127 // Stores a list of unique filenames found in MMAP/MMAP2 events into
132 // Uses build id events to populate |filenames_to_build_ids|.
141 // If a program using PerfReader calls events(), it could work with the
142 // resulting events by importing kernel/perf_internals.h. This would also
144 // However, there is no easy way to work with the sample info within events.
160 const std::vector<malloced_unique_ptr<event_t>>& events() const { function in class:quipper::PerfReader
258 // Replaces existing filenames in MMAP/MMAP2 events based on |filename_map|.

Completed in 287 milliseconds

12