Home
last modified time | relevance | path

Searched refs:events (Results 1 – 21 of 21) sorted by relevance

/system/core/adb/
Dfdevent.c95 static void fdevent_subproc_event_func(int fd, unsigned events, void *userdata);
131 ev.events = 0; in fdevent_connect()
147 ev.events = 0; in fdevent_disconnect()
158 static void fdevent_update(fdevent *fde, unsigned events) in fdevent_update() argument
166 ev.events = 0; in fdevent_update()
169 if(events & FDE_READ) ev.events |= EPOLLIN; in fdevent_update()
170 if(events & FDE_WRITE) ev.events |= EPOLLOUT; in fdevent_update()
171 if(events & FDE_ERROR) ev.events |= (EPOLLERR | EPOLLHUP); in fdevent_update()
173 fde->state = (fde->state & FDE_STATEMASK) | events; in fdevent_update()
180 if(ev.events) { in fdevent_update()
[all …]
Dfdevent.h33 typedef void (*fd_func)(int fd, unsigned events, void *userdata);
57 void fdevent_set(fdevent *fde, unsigned events);
58 void fdevent_add(fdevent *fde, unsigned events);
59 void fdevent_del(fdevent *fde, unsigned events);
76 unsigned short events; member
Dsysdeps_win32.c86 void (*_fh_hook) ( FH f, int events, EventHook hook );
1347 fde->events |= hook->wanted; in event_hook_signal()
1377 event_looper_hook( EventLooper looper, int fd, int events ) in event_looper_hook() argument
1396 if ( (node->wanted & events) != events ) { in event_looper_hook()
1399 fd, node->wanted, events); in event_looper_hook()
1400 f->clazz->_fh_hook( f, events & ~node->wanted, node ); in event_looper_hook()
1401 node->wanted |= events; in event_looper_hook()
1404 events, fd, node->wanted); in event_looper_hook()
1409 event_looper_unhook( EventLooper looper, int fd, int events ) in event_looper_unhook() argument
1416 int events2 = events & node->wanted; in event_looper_unhook()
[all …]
Dadb_auth_client.c155 static void adb_auth_event(int fd, unsigned events, void *data) in adb_auth_event() argument
161 if (events & FDE_READ) { in adb_auth_event()
207 static void adb_auth_listener(int fd, unsigned events, void *data) in adb_auth_listener() argument
Dsysdeps.h184 typedef void (*fd_func)(int fd, unsigned events, void *userdata);
190 void fdevent_set(fdevent *fde, unsigned events);
191 void fdevent_add(fdevent *fde, unsigned events);
192 void fdevent_del(fdevent *fde, unsigned events);
203 unsigned short events; member
Djdwp_service.c235 jdwp_process_event( int socket, unsigned events, void* _proc ) in jdwp_process_event() argument
239 if (events & FDE_READ) { in jdwp_process_event()
313 if (events & FDE_WRITE) { in jdwp_process_event()
444 jdwp_control_event(int s, unsigned events, void* user);
510 jdwp_control_event( int s, unsigned events, void* _control ) in jdwp_control_event() argument
514 if (events & FDE_READ) { in jdwp_control_event()
Dtransport.c198 static void transport_socket_events(int fd, unsigned events, void *_t) in transport_socket_events() argument
201 D("transport_socket_events(fd=%d, events=%04x,...)\n", fd, events); in transport_socket_events()
202 if(events & FDE_READ){ in transport_socket_events()
/system/core/rootdir/
Dinit.trace.rc12 chown root shell /sys/kernel/debug/tracing/events/sched/sched_switch/enable
13 chown root shell /sys/kernel/debug/tracing/events/sched/sched_wakeup/enable
14 chown root shell /sys/kernel/debug/tracing/events/power/cpu_frequency/enable
15 chown root shell /sys/kernel/debug/tracing/events/power/cpu_idle/enable
16 chown root shell /sys/kernel/debug/tracing/events/power/clock_set_rate/enable
17 chown root shell /sys/kernel/debug/tracing/events/cpufreq_interactive/enable
23 chmod 0664 /sys/kernel/debug/tracing/events/sched/sched_switch/enable
24 chmod 0664 /sys/kernel/debug/tracing/events/sched/sched_wakeup/enable
25 chmod 0664 /sys/kernel/debug/tracing/events/power/cpu_frequency/enable
26 chmod 0664 /sys/kernel/debug/tracing/events/power/cpu_idle/enable
[all …]
/system/core/libcutils/
Dabort_socket.c74 pfd[0].events = POLLOUT; in asocket_connect()
77 pfd[1].events = POLLIN; in asocket_connect()
126 pfd[0].events = POLLIN; in asocket_accept()
129 pfd[1].events = POLLIN; in asocket_accept()
171 pfd[0].events = POLLIN; in asocket_read()
174 pfd[1].events = POLLIN; in asocket_read()
217 pfd[0].events = POLLOUT; in asocket_write()
220 pfd[1].events = POLLIN; in asocket_write()
/system/bluetooth/tools/
Dpipetest.c27 static void print_events(int events) { in print_events() argument
28 if (events & POLLIN) printf("POLLIN "); in print_events()
29 if (events & POLLPRI) printf("POLLPRI "); in print_events()
30 if (events & POLLOUT) printf("POLLOUT "); in print_events()
31 if (events & POLLERR) printf("POLLERR "); in print_events()
32 if (events & POLLHUP) printf("POLLHUP "); in print_events()
33 if (events & POLLNVAL) printf("POLLNVAL "); in print_events()
110 pfd.events = 0; in thread_poll()
120 pfd.events = POLLIN; in thread_pollin()
131 pfd.events = POLLIN; in thread_pollin_rand_delay()
Dasocket_test.c69 static void print_events(int events) { in print_events() argument
70 if (events & POLLIN) printf("POLLIN "); in print_events()
71 if (events & POLLPRI) printf("POLLPRI "); in print_events()
72 if (events & POLLOUT) printf("POLLOUT "); in print_events()
73 if (events & POLLERR) printf("POLLERR "); in print_events()
74 if (events & POLLHUP) printf("POLLHUP "); in print_events()
75 if (events & POLLNVAL) printf("POLLNVAL "); in print_events()
329 pfd.events = 0; in thread_poll()
346 pfd.events = POLLIN; in thread_pollin()
Dsocktest.c68 static void print_events(int events) { in print_events() argument
69 if (events & POLLIN) printf("POLLIN "); in print_events()
70 if (events & POLLPRI) printf("POLLPRI "); in print_events()
71 if (events & POLLOUT) printf("POLLOUT "); in print_events()
72 if (events & POLLERR) printf("POLLERR "); in print_events()
73 if (events & POLLHUP) printf("POLLHUP "); in print_events()
74 if (events & POLLNVAL) printf("POLLNVAL "); in print_events()
343 pfd.events = 0; in thread_poll()
360 pfd.events = POLLIN; in thread_pollin()
/system/core/debuggerd/
Dgetevent.c70 ufds[nfds].events = POLLIN; in open_device()
167 ufds[0].events = POLLIN; in init_getevent()
Ddebuggerd.c201 pollfds[0].events = POLLIN; in read_request()
/system/core/init/
Dueventd.c89 ufd.events = POLLIN; in ueventd_main()
Dinit.c969 ufds[fd_count].events = POLLIN; in main()
976 ufds[fd_count].events = POLLIN; in main()
983 ufds[fd_count].events = POLLIN; in main()
Dreadme.txt106 of events and used to cause an action to occur.
/system/netd/
DMDnsSdListener.cpp551 mPollFds[0].events = POLLIN; in run()
613 mPollFds[0].events = POLLIN; in rescan()
622 mPollFds[i].events = POLLIN; in rescan()
/system/core/toolbox/
Dgetevent.c380 ufds[nfds].events = POLLIN; in open_device()
591 ufds[0].events = POLLIN; in getevent_main()
/system/core/libnetutils/
Ddhcpclient.c421 pfd.events = POLLIN; in dhcp_init_ifc()
/system/core/sh/
DTOUR52 events occur. The intent is to improve modularity by isolating