Lines Matching refs:eventEntry
271 dump += entry.eventEntry->getDescription(); in dumpQueue()
275 ns2ms(currentTime - entry.eventEntry->eventTime)); in dumpQueue()
324 std::shared_ptr<EventEntry> eventEntry, in createDispatchEntry() argument
326 if (eventEntry->type == EventEntry::Type::MOTION) { in createDispatchEntry()
327 const MotionEntry& motionEntry = static_cast<const MotionEntry&>(*eventEntry); in createDispatchEntry()
333 return std::make_unique<DispatchEntry>(eventEntry, inputTargetFlags, identityTransform, in createDispatchEntry()
342 return std::make_unique<DispatchEntry>(eventEntry, inputTargetFlags, transform, in createDispatchEntry()
348 ALOG_ASSERT(eventEntry->type == EventEntry::Type::MOTION); in createDispatchEntry()
349 const MotionEntry& motionEntry = static_cast<const MotionEntry&>(*eventEntry); in createDispatchEntry()
481 const EventEntry& eventEntry = *dispatchEntry.eventEntry; in shouldReportFinishedEvent() local
482 const int32_t& inputEventId = eventEntry.id; in shouldReportFinishedEvent()
491 if (eventEntry.isSynthesized()) { in shouldReportFinishedEvent()
494 const EventEntry::Type& inputEventEntryType = eventEntry.type; in shouldReportFinishedEvent()
496 const KeyEntry& keyEntry = static_cast<const KeyEntry&>(eventEntry); in shouldReportFinishedEvent()
501 const MotionEntry& motionEntry = static_cast<const MotionEntry&>(eventEntry); in shouldReportFinishedEvent()
1698 std::shared_ptr<EventEntry> eventEntry, in dispatchEventLocked() argument
1705 updateInteractionTokensLocked(*eventEntry, inputTargets); in dispatchEventLocked()
1707 ALOG_ASSERT(eventEntry->dispatchInProgress); // should already have been set to true in dispatchEventLocked()
1709 pokeUserActivityLocked(*eventEntry); in dispatchEventLocked()
1715 prepareDispatchCycleLocked(currentTime, connection, eventEntry, inputTarget); in dispatchEventLocked()
2739 void InputDispatcher::pokeUserActivityLocked(const EventEntry& eventEntry) { in pokeUserActivityLocked() argument
2740 if (eventEntry.type == EventEntry::Type::FOCUS || in pokeUserActivityLocked()
2741 eventEntry.type == EventEntry::Type::POINTER_CAPTURE_CHANGED || in pokeUserActivityLocked()
2742 eventEntry.type == EventEntry::Type::DRAG) { in pokeUserActivityLocked()
2747 int32_t displayId = getTargetDisplayId(eventEntry); in pokeUserActivityLocked()
2760 switch (eventEntry.type) { in pokeUserActivityLocked()
2762 const MotionEntry& motionEntry = static_cast<const MotionEntry&>(eventEntry); in pokeUserActivityLocked()
2773 const KeyEntry& keyEntry = static_cast<const KeyEntry&>(eventEntry); in pokeUserActivityLocked()
2787 NamedEnum::string(eventEntry.type).c_str()); in pokeUserActivityLocked()
2794 commandEntry->eventTime = eventEntry.eventTime; in pokeUserActivityLocked()
2802 std::shared_ptr<EventEntry> eventEntry, in prepareDispatchCycleLocked() argument
2807 connection->getInputChannelName().c_str(), eventEntry->id); in prepareDispatchCycleLocked()
2830 LOG_ALWAYS_FATAL_IF(eventEntry->type != EventEntry::Type::MOTION, in prepareDispatchCycleLocked()
2832 NamedEnum::string(eventEntry->type).c_str()); in prepareDispatchCycleLocked()
2834 const MotionEntry& originalMotionEntry = static_cast<const MotionEntry&>(*eventEntry); in prepareDispatchCycleLocked()
2853 enqueueDispatchEntriesLocked(currentTime, connection, eventEntry, inputTarget); in prepareDispatchCycleLocked()
2858 std::shared_ptr<EventEntry> eventEntry, in enqueueDispatchEntriesLocked() argument
2863 connection->getInputChannelName().c_str(), eventEntry->id); in enqueueDispatchEntriesLocked()
2870 enqueueDispatchEntryLocked(connection, eventEntry, inputTarget, in enqueueDispatchEntriesLocked()
2872 enqueueDispatchEntryLocked(connection, eventEntry, inputTarget, in enqueueDispatchEntriesLocked()
2874 enqueueDispatchEntryLocked(connection, eventEntry, inputTarget, in enqueueDispatchEntriesLocked()
2876 enqueueDispatchEntryLocked(connection, eventEntry, inputTarget, in enqueueDispatchEntriesLocked()
2878 enqueueDispatchEntryLocked(connection, eventEntry, inputTarget, in enqueueDispatchEntriesLocked()
2880 enqueueDispatchEntryLocked(connection, eventEntry, inputTarget, in enqueueDispatchEntriesLocked()
2890 std::shared_ptr<EventEntry> eventEntry, in enqueueDispatchEntryLocked() argument
2908 createDispatchEntry(inputTarget, eventEntry, inputTargetFlags); in enqueueDispatchEntryLocked()
2912 EventEntry& newEntry = *(dispatchEntry->eventEntry); in enqueueDispatchEntryLocked()
3138 const EventEntry& eventEntry = *(dispatchEntry->eventEntry); in startDispatchCycleLocked() local
3139 switch (eventEntry.type) { in startDispatchCycleLocked()
3141 const KeyEntry& keyEntry = static_cast<const KeyEntry&>(eventEntry); in startDispatchCycleLocked()
3158 const MotionEntry& motionEntry = static_cast<const MotionEntry&>(eventEntry); in startDispatchCycleLocked()
3216 const FocusEntry& focusEntry = static_cast<const FocusEntry&>(eventEntry); in startDispatchCycleLocked()
3226 static_cast<const PointerCaptureChangedEntry&>(eventEntry); in startDispatchCycleLocked()
3234 const DragEntry& dragEntry = static_cast<const DragEntry&>(eventEntry); in startDispatchCycleLocked()
3246 NamedEnum::string(eventEntry.type).c_str()); in startDispatchCycleLocked()
3386 decrementPendingForegroundDispatches(*(dispatchEntry->eventEntry)); in releaseDispatchEntry()
5572 oldestEntry->eventEntry->getDescription().c_str()); in onAnrLocked()
5773 ns2ms(eventDuration), dispatchEntry->eventEntry->getDescription().c_str()); in doDispatchCycleFinishedLockedInterruptible()
5776 mLatencyTracker.trackFinishedEvent(dispatchEntry->eventEntry->id, in doDispatchCycleFinishedLockedInterruptible()
5783 if (dispatchEntry->eventEntry->type == EventEntry::Type::KEY) { in doDispatchCycleFinishedLockedInterruptible()
5784 KeyEntry& keyEntry = static_cast<KeyEntry&>(*(dispatchEntry->eventEntry)); in doDispatchCycleFinishedLockedInterruptible()
5787 } else if (dispatchEntry->eventEntry->type == EventEntry::Type::MOTION) { in doDispatchCycleFinishedLockedInterruptible()
5788 MotionEntry& motionEntry = static_cast<MotionEntry&>(*(dispatchEntry->eventEntry)); in doDispatchCycleFinishedLockedInterruptible()