Lines Matching refs:event

654     RawEvent* event = buffer;
677 event->when = now;
678 event->deviceId = device->id == mBuiltInKeyboardId ? BUILT_IN_KEYBOARD_ID : device->id;
679 event->type = DEVICE_REMOVED;
680 event += 1;
699 event->when = now;
700 event->deviceId = device->id == mBuiltInKeyboardId ? 0 : device->id;
701 event->type = DEVICE_ADDED;
702 event += 1;
711 event->when = now;
712 event->type = FINISHED_DEVICE_SCAN;
713 event += 1;
719 // Grab the next input event.
727 ALOGW("Received unexpected epoll event 0x%08x for INotify.", eventItem.events);
742 ALOGW("Received unexpected epoll event 0x%08x for wake read pipe.",
750 ALOGW("Received unexpected epoll event 0x%08x for unknown device id %d.",
761 ALOGW("could not get event, removed? (fd: %d size: %d bufferSize: %d "
768 ALOGW("could not get event (errno=%d)", errno);
771 ALOGE("could not get event (wrong size: %d)", readSize);
784 // when an input event was actually generated than the kernel
809 // Use the time specified in the event instead of the current time
811 // event dispatch latency from the time the event is enqueued onto
814 // The event's timestamp fortuitously uses the same monotonic clock
815 // time base as the rest of Android. The kernel event device driver
820 event->when = nsecs_t(iev.time.tv_sec) * 1000000000LL
822 ALOGV("event time %lld, now %lld", event->when, now);
834 // Invalid input event timestamps can result in ANRs, crashes and
839 if (event->when >= now + 10 * 1000000000LL) {
842 if (event->when > time) {
843 ALOGW("An input event from %s has a timestamp that appears to "
846 "event time %lld, current time %lld, call time %lld. "
848 device->path.string(), event->when, time, now);
849 event->when = time;
853 "event time %lld, current time %lld, call time %lld.",
854 event->when, time, now);
858 event->when = now;
860 event->deviceId = deviceId;
861 event->type = iev.type;
862 event->code = iev.code;
863 event->value = iev.value;
864 event += 1;
868 // The result buffer is full. Reset the pending event index
875 ALOGI("Removing device %s due to epoll hang-up event.",
880 ALOGW("Received unexpected epoll event 0x%08x for device %s.",
900 if (event != buffer || awoken) {
907 // a kernel wake lock. However, once the last pending event has been read, the device
948 return event - buffer;
1025 ALOGI("ignoring event id %s driver %s\n", devicePath, item.string());
1265 // clock to use to input event timestamps. The standard kernel behavior was to
1469 struct inotify_event *event;
1473 if(res < (int)sizeof(*event)) {
1476 ALOGW("could not get event, %s\n", strerror(errno));
1479 //printf("got %d bytes of event information\n", res);
1485 while(res >= (int)sizeof(*event)) {
1486 event = (struct inotify_event *)(event_buf + event_pos);
1487 //printf("%d: %08x \"%s\"\n", event->wd, event->mask, event->len ? event->name : "");
1488 if(event->len) {
1489 strcpy(filename, event->name);
1490 if(event->mask & IN_CREATE) {
1493 ALOGI("Removing device '%s' due to inotify event\n", devname);
1497 event_size = sizeof(*event) + event->len;
1577 // Acquire and release the lock to ensure that the event hub has not deadlocked.