Home
last modified time | relevance | path

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

12

/system/core/toolbox/
Dnotify.c17 struct inotify_event *event; in notify_main() local
87 if(res < (int)sizeof(*event)) { in notify_main()
94 while(res >= (int)sizeof(*event)) { in notify_main()
96 event = (struct inotify_event *)(event_buf + event_pos); in notify_main()
98 …ntf("%s: %08x %08x \"%s\"\n", file_names[event->wd + id_offset], event->mask, event->cookie, event in notify_main()
100 …printf("%s: %08x \"%s\"\n", file_names[event->wd + id_offset], event->mask, event->len ? event->na… in notify_main()
102 printf("%d: %08x \"%s\"\n", event->wd, event->mask, event->len ? event->name : ""); in notify_main()
103 if(print_files && (event->mask & IN_MODIFY)) { in notify_main()
108 strcpy(filename, file_names[event->wd + id_offset]); in notify_main()
109 if(event->len) { in notify_main()
[all …]
Dsendevent.c54 struct input_event event; in sendevent_main() local
70 memset(&event, 0, sizeof(event)); in sendevent_main()
71 event.type = atoi(argv[2]); in sendevent_main()
72 event.code = atoi(argv[3]); in sendevent_main()
73 event.value = atoi(argv[4]); in sendevent_main()
74 ret = write(fd, &event, sizeof(event)); in sendevent_main()
75 if(ret < sizeof(event)) { in sendevent_main()
Dgetevent.c415 struct inotify_event *event; in read_notify() local
418 if(res < (int)sizeof(*event)) { in read_notify()
430 while(res >= (int)sizeof(*event)) { in read_notify()
431 event = (struct inotify_event *)(event_buf + event_pos); in read_notify()
433 if(event->len) { in read_notify()
434 strcpy(filename, event->name); in read_notify()
435 if(event->mask & IN_CREATE) { in read_notify()
442 event_size = sizeof(*event) + event->len; in read_notify()
500 struct input_event event; in getevent_main() local
640 res = read(ufds[i].fd, &event, sizeof(event)); in getevent_main()
[all …]
Dalarm.c178 int event; in alarm_main()
179 read(fd, &event, sizeof(event)); in alarm_main()
180 fprintf(stderr, "got %x\n", event); in alarm_main()
/system/core/debuggerd/
Dgetevent.c101 struct inotify_event *event; in read_notify() local
104 if(res < (int)sizeof(*event)) { in read_notify()
116 while(res >= (int)sizeof(*event)) { in read_notify()
117 event = (struct inotify_event *)(event_buf + event_pos); in read_notify()
119 if(event->len) { in read_notify()
120 strcpy(filename, event->name); in read_notify()
121 if(event->mask & IN_CREATE) { in read_notify()
128 event_size = sizeof(*event) + event->len; in read_notify()
191 int get_event(struct input_event* event, int timeout) in get_event() argument
208 res = read(ufds[i].fd, event, sizeof(*event)); in get_event()
[all …]
Dgetevent.h22 int get_event(struct input_event* event, int timeout);
DNOTICE166 8. Limitation of Liability. In no event and under no legal theory,
/system/extras/tests/framebuffer/
Dminui.h33 typedef struct event event; typedef
35 struct event struct
45 int ev_get(event *ev, unsigned dont_wait); argument
/system/core/libusbhost/
Dusbhost.c222 struct inotify_event* event; in usb_host_read_event() local
232 event = (struct inotify_event*)&event_buf[offset]; in usb_host_read_event()
234 wd = event->wd; in usb_host_read_event()
236 if ((event->mask & IN_CREATE) && !strcmp(event->name, "bus")) { in usb_host_read_event()
239 } else if ((event->mask & IN_DELETE) && !strcmp(event->name, "bus")) { in usb_host_read_event()
248 i = atoi(event->name); in usb_host_read_event()
249 snprintf(path, sizeof(path), USB_FS_DIR "/%s", event->name); in usb_host_read_event()
250 D("%s subdirectory %s: index: %d\n", (event->mask & IN_CREATE) ? in usb_host_read_event()
253 if (event->mask & IN_CREATE) { in usb_host_read_event()
260 } else if (event->mask & IN_DELETE) { in usb_host_read_event()
[all …]
/system/core/logcat/
Devent.logtags43 2720 sync (id|3),(event|1|5),(source|1|5),(account|1|5)
45 # This event is logged when the location service uploads location data.
47 # This event is logged when someone is deciding to force a garbage collection
49 # This event is logged on each tickle
57 # intrinsic event log times are wall-clock.
82 # HSM wifi event
84 # [15 - 0] HSM event (as defined in WifiStateTracker.java)
85 # Logged when an event is handled in a hierarchical state
DAndroid.mk6 LOCAL_SRC_FILES:= logcat.cpp event.logtags
/system/core/libsysutils/
DEventLogTags.logtags1 # See system/core/logcat/event.logtags for a description of the format of this file.
/system/bluetooth/bluez-clean-headers/bluetooth/
Dhci_lib.h27 int event; member
/system/core/charger/
Dcharger.c545 static void do_coldboot(struct charger *charger, DIR *d, const char *event, in do_coldboot() argument
555 write(fd, event, strlen(event)); in do_coldboot()
585 do_coldboot(charger, d2, event, follow_links, max_depth - 1); in do_coldboot()
592 const char *event) in coldboot() argument
596 LOGV("doing coldboot '%s' in '%s'\n", event, path); in coldboot()
599 snprintf(str, sizeof(str), "%s\n", event); in coldboot()
/system/core/adb/
Dsysdeps_win32.c104 HANDLE event; member
283 static void _fh_file_hook( FH f, int event, EventHook eventhook ); /* forward */
490 f->event = WSACreateEvent(); in _fh_socket_init()
501 CloseHandle( f->event ); in _fh_socket_close()
535 static void _fh_socket_hook( FH f, int event, EventHook hook ); /* forward */
1176 static void _fh_socketpair_hook( FH f, int event, EventHook hook ); /* forward */
2012 hook->h = fh->event; in _event_socket_start()
/system/core/init/
Dreadme.txt28 is used to determine when the action should occur. When an event
232 trigger <event>
233 Trigger an event. Used to queue an action from another
/system/core/run-as/
DNOTICE166 8. Limitation of Liability. In no event and under no legal theory,
/system/extras/libpagemap/
DNOTICE166 8. Limitation of Liability. In no event and under no legal theory,
/system/core/liblog/
DNOTICE166 8. Limitation of Liability. In no event and under no legal theory,
/system/core/netcfg/
DNOTICE166 8. Limitation of Liability. In no event and under no legal theory,
/system/core/logwrapper/
DNOTICE166 8. Limitation of Liability. In no event and under no legal theory,
/system/core/libctest/
DNOTICE166 8. Limitation of Liability. In no event and under no legal theory,
/system/extras/procmem/
DNOTICE166 8. Limitation of Liability. In no event and under no legal theory,
/system/core/libcutils/
DNOTICE166 8. Limitation of Liability. In no event and under no legal theory,
/system/extras/tests/cpueater/
DNOTICE166 8. Limitation of Liability. In no event and under no legal theory,

12