Lines Matching refs:dispatchEntry

320     std::unique_ptr<DispatchEntry> dispatchEntry =  in createDispatchEntry()  local
327 return dispatchEntry; in createDispatchEntry()
2316 std::unique_ptr<DispatchEntry> dispatchEntry = in enqueueDispatchEntryLocked() local
2321 EventEntry* newEntry = dispatchEntry->eventEntry; in enqueueDispatchEntryLocked()
2326 dispatchEntry->resolvedEventId = keyEntry.id; in enqueueDispatchEntryLocked()
2327 dispatchEntry->resolvedAction = keyEntry.action; in enqueueDispatchEntryLocked()
2328 dispatchEntry->resolvedFlags = keyEntry.flags; in enqueueDispatchEntryLocked()
2330 if (!connection->inputState.trackKey(keyEntry, dispatchEntry->resolvedAction, in enqueueDispatchEntryLocked()
2331 dispatchEntry->resolvedFlags)) { in enqueueDispatchEntryLocked()
2347 dispatchEntry->resolvedEventId = DEFAULT_RESOLVED_EVENT_ID; in enqueueDispatchEntryLocked()
2349 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_OUTSIDE; in enqueueDispatchEntryLocked()
2351 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_HOVER_EXIT; in enqueueDispatchEntryLocked()
2353 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_HOVER_ENTER; in enqueueDispatchEntryLocked()
2355 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_CANCEL; in enqueueDispatchEntryLocked()
2357 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_DOWN; in enqueueDispatchEntryLocked()
2359 dispatchEntry->resolvedAction = motionEntry.action; in enqueueDispatchEntryLocked()
2360 dispatchEntry->resolvedEventId = motionEntry.id; in enqueueDispatchEntryLocked()
2362 if (dispatchEntry->resolvedAction == AMOTION_EVENT_ACTION_HOVER_MOVE && in enqueueDispatchEntryLocked()
2370 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_HOVER_ENTER; in enqueueDispatchEntryLocked()
2373 dispatchEntry->resolvedFlags = motionEntry.flags; in enqueueDispatchEntryLocked()
2374 if (dispatchEntry->targetFlags & InputTarget::FLAG_WINDOW_IS_OBSCURED) { in enqueueDispatchEntryLocked()
2375 dispatchEntry->resolvedFlags |= AMOTION_EVENT_FLAG_WINDOW_IS_OBSCURED; in enqueueDispatchEntryLocked()
2377 if (dispatchEntry->targetFlags & InputTarget::FLAG_WINDOW_IS_PARTIALLY_OBSCURED) { in enqueueDispatchEntryLocked()
2378 dispatchEntry->resolvedFlags |= AMOTION_EVENT_FLAG_WINDOW_IS_PARTIALLY_OBSCURED; in enqueueDispatchEntryLocked()
2381 if (!connection->inputState.trackMotion(motionEntry, dispatchEntry->resolvedAction, in enqueueDispatchEntryLocked()
2382 dispatchEntry->resolvedFlags)) { in enqueueDispatchEntryLocked()
2391 dispatchEntry->resolvedEventId = in enqueueDispatchEntryLocked()
2392 dispatchEntry->resolvedEventId == DEFAULT_RESOLVED_EVENT_ID in enqueueDispatchEntryLocked()
2395 if (ATRACE_ENABLED() && dispatchEntry->resolvedEventId != motionEntry.id) { in enqueueDispatchEntryLocked()
2398 motionEntry.id, dispatchEntry->resolvedEventId); in enqueueDispatchEntryLocked()
2402 dispatchPointerDownOutsideFocus(motionEntry.source, dispatchEntry->resolvedAction, in enqueueDispatchEntryLocked()
2419 if (dispatchEntry->hasForegroundTarget()) { in enqueueDispatchEntryLocked()
2424 connection->outboundQueue.push_back(dispatchEntry.release()); in enqueueDispatchEntryLocked()
2468 DispatchEntry* dispatchEntry = connection->outboundQueue.front(); in startDispatchCycleLocked() local
2469 dispatchEntry->deliveryTime = currentTime; in startDispatchCycleLocked()
2472 dispatchEntry->timeoutTime = currentTime + timeout; in startDispatchCycleLocked()
2476 EventEntry* eventEntry = dispatchEntry->eventEntry; in startDispatchCycleLocked()
2480 std::array<uint8_t, 32> hmac = getSignature(*keyEntry, *dispatchEntry); in startDispatchCycleLocked()
2485 .publishKeyEvent(dispatchEntry->seq, dispatchEntry->resolvedEventId, in startDispatchCycleLocked()
2488 dispatchEntry->resolvedAction, in startDispatchCycleLocked()
2489 dispatchEntry->resolvedFlags, keyEntry->keyCode, in startDispatchCycleLocked()
2506 !(dispatchEntry->targetFlags & InputTarget::FLAG_ZERO_COORDS)) { in startDispatchCycleLocked()
2507 float globalScaleFactor = dispatchEntry->globalScaleFactor; in startDispatchCycleLocked()
2508 xScale = dispatchEntry->windowXScale; in startDispatchCycleLocked()
2509 yScale = dispatchEntry->windowYScale; in startDispatchCycleLocked()
2510 xOffset = dispatchEntry->xOffset * xScale; in startDispatchCycleLocked()
2511 yOffset = dispatchEntry->yOffset * yScale; in startDispatchCycleLocked()
2525 if (dispatchEntry->targetFlags & InputTarget::FLAG_ZERO_COORDS) { in startDispatchCycleLocked()
2533 std::array<uint8_t, 32> hmac = getSignature(*motionEntry, *dispatchEntry); in startDispatchCycleLocked()
2537 .publishMotionEvent(dispatchEntry->seq, in startDispatchCycleLocked()
2538 dispatchEntry->resolvedEventId, in startDispatchCycleLocked()
2541 dispatchEntry->resolvedAction, in startDispatchCycleLocked()
2543 dispatchEntry->resolvedFlags, in startDispatchCycleLocked()
2559 status = connection->inputPublisher.publishFocusEvent(dispatchEntry->seq, in startDispatchCycleLocked()
2605 dispatchEntry)); in startDispatchCycleLocked()
2607 connection->waitQueue.push_back(dispatchEntry); in startDispatchCycleLocked()
2609 mAnrTracker.insert(dispatchEntry->timeoutTime, in startDispatchCycleLocked()
2617 const MotionEntry& motionEntry, const DispatchEntry& dispatchEntry) const { in getSignature()
2618 int32_t actionMasked = dispatchEntry.resolvedAction & AMOTION_EVENT_ACTION_MASK; in getSignature()
2624 verifiedEvent.flags = dispatchEntry.resolvedFlags & VERIFIED_MOTION_EVENT_FLAGS; in getSignature()
2631 const KeyEntry& keyEntry, const DispatchEntry& dispatchEntry) const { in getSignature()
2633 verifiedEvent.flags = dispatchEntry.resolvedFlags & VERIFIED_KEY_EVENT_FLAGS; in getSignature()
2634 verifiedEvent.action = dispatchEntry.resolvedAction; in getSignature()
2683 DispatchEntry* dispatchEntry = queue.front(); in drainDispatchQueue() local
2685 releaseDispatchEntry(dispatchEntry); in drainDispatchQueue()
2689 void InputDispatcher::releaseDispatchEntry(DispatchEntry* dispatchEntry) { in releaseDispatchEntry() argument
2690 if (dispatchEntry->hasForegroundTarget()) { in releaseDispatchEntry()
2691 decrementPendingForegroundDispatches(dispatchEntry->eventEntry); in releaseDispatchEntry()
2693 delete dispatchEntry; in releaseDispatchEntry()
4762 DispatchEntry* dispatchEntry = *dispatchEntryIt; in doDispatchCycleFinishedLockedInterruptible() local
4763 const nsecs_t eventDuration = finishTime - dispatchEntry->deliveryTime; in doDispatchCycleFinishedLockedInterruptible()
4766 ns2ms(eventDuration), dispatchEntry->eventEntry->getDescription().c_str()); in doDispatchCycleFinishedLockedInterruptible()
4771 if (dispatchEntry->eventEntry->type == EventEntry::Type::KEY) { in doDispatchCycleFinishedLockedInterruptible()
4772 KeyEntry* keyEntry = static_cast<KeyEntry*>(dispatchEntry->eventEntry); in doDispatchCycleFinishedLockedInterruptible()
4774 afterKeyEventLockedInterruptible(connection, dispatchEntry, keyEntry, handled); in doDispatchCycleFinishedLockedInterruptible()
4775 } else if (dispatchEntry->eventEntry->type == EventEntry::Type::MOTION) { in doDispatchCycleFinishedLockedInterruptible()
4776 MotionEntry* motionEntry = static_cast<MotionEntry*>(dispatchEntry->eventEntry); in doDispatchCycleFinishedLockedInterruptible()
4777 restartEvent = afterMotionEventLockedInterruptible(connection, dispatchEntry, motionEntry, in doDispatchCycleFinishedLockedInterruptible()
4789 dispatchEntry = *dispatchEntryIt; in doDispatchCycleFinishedLockedInterruptible()
4791 mAnrTracker.erase(dispatchEntry->timeoutTime, in doDispatchCycleFinishedLockedInterruptible()
4798 connection->outboundQueue.push_front(dispatchEntry); in doDispatchCycleFinishedLockedInterruptible()
4801 releaseDispatchEntry(dispatchEntry); in doDispatchCycleFinishedLockedInterruptible()
4810 DispatchEntry* dispatchEntry, in afterKeyEventLockedInterruptible() argument
4828 if (handled || !dispatchEntry->hasForegroundTarget()) { in afterKeyEventLockedInterruptible()
4987 DispatchEntry* dispatchEntry, in afterMotionEventLockedInterruptible() argument