Lines Matching refs:EventEntry
107 const std::unique_ptr<trace::EventTrackerInterface>& getTraceTracker(const EventEntry& entry) { in getTraceTracker()
109 case EventEntry::Type::MOTION: { in getTraceTracker()
114 case EventEntry::Type::KEY: { in getTraceTracker()
400 std::shared_ptr<const EventEntry> eventEntry, in createDispatchEntry()
420 ALOG_ASSERT(eventEntry->type == EventEntry::Type::MOTION); in createDispatchEntry()
513 const EventEntry& eventEntry = *dispatchEntry.eventEntry; in shouldReportFinishedEvent()
522 const EventEntry::Type& inputEventEntryType = eventEntry.type; in shouldReportFinishedEvent()
523 if (inputEventEntryType == EventEntry::Type::KEY) { in shouldReportFinishedEvent()
528 } else if (inputEventEntryType == EventEntry::Type::MOTION) { in shouldReportFinishedEvent()
559 bool isUserActivityEvent(const EventEntry& eventEntry) { in isUserActivityEvent()
561 case EventEntry::Type::CONFIGURATION_CHANGED: in isUserActivityEvent()
562 case EventEntry::Type::DEVICE_RESET: in isUserActivityEvent()
563 case EventEntry::Type::DRAG: in isUserActivityEvent()
564 case EventEntry::Type::FOCUS: in isUserActivityEvent()
565 case EventEntry::Type::POINTER_CAPTURE_CHANGED: in isUserActivityEvent()
566 case EventEntry::Type::SENSOR: in isUserActivityEvent()
567 case EventEntry::Type::TOUCH_MODE_CHANGED: in isUserActivityEvent()
569 case EventEntry::Type::KEY: in isUserActivityEvent()
570 case EventEntry::Type::MOTION: in isUserActivityEvent()
646 const EventEntry& entry) { in verifyTargetedInjection()
677 std::optional<nsecs_t> getDownTime(const EventEntry& eventEntry) { in getDownTime()
678 if (eventEntry.type == EventEntry::Type::KEY) { in getDownTime()
681 } else if (eventEntry.type == EventEntry::Type::MOTION) { in getDownTime()
846 int32_t getUserActivityEventType(const EventEntry& eventEntry) { in getUserActivityEventType()
848 case EventEntry::Type::KEY: { in getUserActivityEventType()
851 case EventEntry::Type::MOTION: { in getUserActivityEventType()
1156 case EventEntry::Type::CONFIGURATION_CHANGED: { in dispatchOnceInnerLocked()
1164 case EventEntry::Type::DEVICE_RESET: { in dispatchOnceInnerLocked()
1172 case EventEntry::Type::FOCUS: { in dispatchOnceInnerLocked()
1181 case EventEntry::Type::TOUCH_MODE_CHANGED: { in dispatchOnceInnerLocked()
1189 case EventEntry::Type::POINTER_CAPTURE_CHANGED: { in dispatchOnceInnerLocked()
1197 case EventEntry::Type::DRAG: { in dispatchOnceInnerLocked()
1205 case EventEntry::Type::KEY: { in dispatchOnceInnerLocked()
1218 case EventEntry::Type::MOTION: { in dispatchOnceInnerLocked()
1243 case EventEntry::Type::SENSOR: { in dispatchOnceInnerLocked()
1276 bool InputDispatcher::isStaleEvent(nsecs_t currentTime, const EventEntry& entry) { in isStaleEvent()
1329 bool InputDispatcher::enqueueInboundEventLocked(std::unique_ptr<EventEntry> newEntry) { in enqueueInboundEventLocked()
1332 const EventEntry& entry = *(mInboundQueue.back()); in enqueueInboundEventLocked()
1336 case EventEntry::Type::KEY: { in enqueueInboundEventLocked()
1349 mPendingEvent->type == EventEntry::Type::KEY) { in enqueueInboundEventLocked()
1362 case EventEntry::Type::MOTION: { in enqueueInboundEventLocked()
1390 case EventEntry::Type::FOCUS: { in enqueueInboundEventLocked()
1394 case EventEntry::Type::TOUCH_MODE_CHANGED: in enqueueInboundEventLocked()
1395 case EventEntry::Type::CONFIGURATION_CHANGED: in enqueueInboundEventLocked()
1396 case EventEntry::Type::DEVICE_RESET: in enqueueInboundEventLocked()
1397 case EventEntry::Type::SENSOR: in enqueueInboundEventLocked()
1398 case EventEntry::Type::POINTER_CAPTURE_CHANGED: in enqueueInboundEventLocked()
1399 case EventEntry::Type::DRAG: { in enqueueInboundEventLocked()
1408 void InputDispatcher::addRecentEventLocked(std::shared_ptr<const EventEntry> entry) { in addRecentEventLocked()
1410 if (entry->type != EventEntry::Type::SENSOR) { in addRecentEventLocked()
1485 void InputDispatcher::dropInboundEventLocked(const EventEntry& entry, DropReason dropReason) { in dropInboundEventLocked()
1522 case EventEntry::Type::KEY: { in dropInboundEventLocked()
1531 case EventEntry::Type::MOTION: { in dropInboundEventLocked()
1548 case EventEntry::Type::SENSOR: { in dropInboundEventLocked()
1551 case EventEntry::Type::POINTER_CAPTURE_CHANGED: in dropInboundEventLocked()
1552 case EventEntry::Type::DRAG: { in dropInboundEventLocked()
1555 case EventEntry::Type::FOCUS: in dropInboundEventLocked()
1556 case EventEntry::Type::TOUCH_MODE_CHANGED: in dropInboundEventLocked()
1557 case EventEntry::Type::CONFIGURATION_CHANGED: in dropInboundEventLocked()
1558 case EventEntry::Type::DEVICE_RESET: { in dropInboundEventLocked()
1589 std::shared_ptr<const EventEntry> entry = mInboundQueue.front(); in drainInboundQueueLocked()
1603 void InputDispatcher::releaseInboundEventLocked(std::shared_ptr<const EventEntry> entry) { in releaseInboundEventLocked()
1705 [](const std::shared_ptr<const EventEntry>& event) { in enqueueFocusEventLocked()
1706 return event->type == EventEntry::Type::FOCUS; in enqueueFocusEventLocked()
2000 std::shared_ptr<const EventEntry> entry = *it; in flushSensor()
2001 if (entry->type == EventEntry::Type::SENSOR) { in flushSensor()
2146 std::shared_ptr<const EventEntry> eventEntry, in dispatchEventLocked()
2208 ui::LogicalDisplayId InputDispatcher::getTargetDisplayId(const EventEntry& entry) { in getTargetDisplayId()
2211 case EventEntry::Type::KEY: { in getTargetDisplayId()
2216 case EventEntry::Type::MOTION: { in getTargetDisplayId()
2221 case EventEntry::Type::TOUCH_MODE_CHANGED: in getTargetDisplayId()
2222 case EventEntry::Type::POINTER_CAPTURE_CHANGED: in getTargetDisplayId()
2223 case EventEntry::Type::FOCUS: in getTargetDisplayId()
2224 case EventEntry::Type::CONFIGURATION_CHANGED: in getTargetDisplayId()
2225 case EventEntry::Type::DEVICE_RESET: in getTargetDisplayId()
2226 case EventEntry::Type::SENSOR: in getTargetDisplayId()
2227 case EventEntry::Type::DRAG: { in getTargetDisplayId()
2267 nsecs_t currentTime, const EventEntry& entry, nsecs_t& nextWakeupTime, in findFocusedWindowTargetLocked()
2349 if (entry.type == EventEntry::Type::KEY) { in findFocusedWindowTargetLocked()
3271 void InputDispatcher::pokeUserActivityLocked(const EventEntry& eventEntry) { in pokeUserActivityLocked()
3302 case EventEntry::Type::MOTION: { in pokeUserActivityLocked()
3316 case EventEntry::Type::KEY: { in pokeUserActivityLocked()
3351 std::shared_ptr<const EventEntry> eventEntry, in prepareDispatchCycleLocked()
3377 LOG_ALWAYS_FATAL_IF(eventEntry->type != EventEntry::Type::MOTION, in prepareDispatchCycleLocked()
3420 std::shared_ptr<const EventEntry> eventEntry, const InputTarget& inputTarget) { in enqueueDispatchEntryAndStartDispatchCycleLocked()
3437 std::shared_ptr<const EventEntry> eventEntry, in enqueueDispatchEntryLocked()
3439 const bool isKeyOrMotion = eventEntry->type == EventEntry::Type::KEY || in enqueueDispatchEntryLocked()
3440 eventEntry->type == EventEntry::Type::MOTION; in enqueueDispatchEntryLocked()
3457 case EventEntry::Type::KEY: { in enqueueDispatchEntryLocked()
3467 case EventEntry::Type::MOTION: { in enqueueDispatchEntryLocked()
3574 std::unique_ptr<EventEntry> cancelEvent = in enqueueDispatchEntryLocked()
3611 case EventEntry::Type::FOCUS: in enqueueDispatchEntryLocked()
3612 case EventEntry::Type::TOUCH_MODE_CHANGED: in enqueueDispatchEntryLocked()
3613 case EventEntry::Type::POINTER_CAPTURE_CHANGED: in enqueueDispatchEntryLocked()
3614 case EventEntry::Type::DRAG: { in enqueueDispatchEntryLocked()
3617 case EventEntry::Type::SENSOR: { in enqueueDispatchEntryLocked()
3621 case EventEntry::Type::CONFIGURATION_CHANGED: in enqueueDispatchEntryLocked()
3622 case EventEntry::Type::DEVICE_RESET: { in enqueueDispatchEntryLocked()
3657 void InputDispatcher::processInteractionsLocked(const EventEntry& entry, in processInteractionsLocked()
3662 if (entry.type == EventEntry::Type::KEY) { in processInteractionsLocked()
3669 } else if (entry.type == EventEntry::Type::MOTION) { in processInteractionsLocked()
3744 const EventEntry& eventEntry = *(dispatchEntry.eventEntry); in publishMotionEvent()
3801 const EventEntry& eventEntry = *(dispatchEntry->eventEntry); in startDispatchCycleLocked()
3803 case EventEntry::Type::KEY: { in startDispatchCycleLocked()
3827 case EventEntry::Type::MOTION: { in startDispatchCycleLocked()
3841 case EventEntry::Type::FOCUS: { in startDispatchCycleLocked()
3849 case EventEntry::Type::TOUCH_MODE_CHANGED: { in startDispatchCycleLocked()
3859 case EventEntry::Type::POINTER_CAPTURE_CHANGED: { in startDispatchCycleLocked()
3869 case EventEntry::Type::DRAG: { in startDispatchCycleLocked()
3878 case EventEntry::Type::CONFIGURATION_CHANGED: in startDispatchCycleLocked()
3879 case EventEntry::Type::DEVICE_RESET: in startDispatchCycleLocked()
3880 case EventEntry::Type::SENSOR: { in startDispatchCycleLocked()
4187 std::vector<std::unique_ptr<EventEntry>> cancelationEvents = in synthesizeCancelationEventsForConnectionLocked()
4211 std::unique_ptr<EventEntry> cancelationEventEntry = std::move(cancelationEvents[i]); in synthesizeCancelationEventsForConnectionLocked()
4215 case EventEntry::Type::KEY: { in synthesizeCancelationEventsForConnectionLocked()
4231 case EventEntry::Type::MOTION: { in synthesizeCancelationEventsForConnectionLocked()
4266 case EventEntry::Type::FOCUS: in synthesizeCancelationEventsForConnectionLocked()
4267 case EventEntry::Type::TOUCH_MODE_CHANGED: in synthesizeCancelationEventsForConnectionLocked()
4268 case EventEntry::Type::POINTER_CAPTURE_CHANGED: in synthesizeCancelationEventsForConnectionLocked()
4269 case EventEntry::Type::DRAG: { in synthesizeCancelationEventsForConnectionLocked()
4274 case EventEntry::Type::CONFIGURATION_CHANGED: in synthesizeCancelationEventsForConnectionLocked()
4275 case EventEntry::Type::DEVICE_RESET: in synthesizeCancelationEventsForConnectionLocked()
4276 case EventEntry::Type::SENSOR: { in synthesizeCancelationEventsForConnectionLocked()
4304 std::vector<std::unique_ptr<EventEntry>> downEvents = in synthesizePointerDownEventsForConnectionLocked()
4324 for (std::unique_ptr<EventEntry>& downEventEntry : downEvents) { in synthesizePointerDownEventsForConnectionLocked()
4327 case EventEntry::Type::MOTION: { in synthesizePointerDownEventsForConnectionLocked()
4354 case EventEntry::Type::KEY: in synthesizePointerDownEventsForConnectionLocked()
4355 case EventEntry::Type::FOCUS: in synthesizePointerDownEventsForConnectionLocked()
4356 case EventEntry::Type::TOUCH_MODE_CHANGED: in synthesizePointerDownEventsForConnectionLocked()
4357 case EventEntry::Type::CONFIGURATION_CHANGED: in synthesizePointerDownEventsForConnectionLocked()
4358 case EventEntry::Type::DEVICE_RESET: in synthesizePointerDownEventsForConnectionLocked()
4359 case EventEntry::Type::POINTER_CAPTURE_CHANGED: in synthesizePointerDownEventsForConnectionLocked()
4360 case EventEntry::Type::SENSOR: in synthesizePointerDownEventsForConnectionLocked()
4361 case EventEntry::Type::DRAG: { in synthesizePointerDownEventsForConnectionLocked()
4812 std::queue<std::unique_ptr<EventEntry>> injectedEntries; in injectInputEvent()
5079 void InputDispatcher::setInjectionResult(const EventEntry& entry, in setInjectionResult()
5140 void InputDispatcher::incrementPendingForegroundDispatches(const EventEntry& entry) { in incrementPendingForegroundDispatches()
5146 void InputDispatcher::decrementPendingForegroundDispatches(const EventEntry& entry) { in decrementPendingForegroundDispatches()
5976 for (const std::shared_ptr<const EventEntry>& entry : mRecentQueue) { in dumpDispatchStateLocked()
5999 for (const std::shared_ptr<const EventEntry>& entry : mInboundQueue) { in dumpDispatchStateLocked()
6401 if (dispatchEntry.eventEntry->type == EventEntry::Type::KEY) { in doDispatchCycleFinishedCommand()
6633 std::shared_ptr<const EventEntry> eventEntry = dispatchEntry->eventEntry; in afterKeyEventLockedInterruptable()
7064 const EventEntry& entry, const sp<android::gui::WindowInfoHandle>& windowHandle) const { in shouldDropInput()