Lines Matching refs:motionEntry

273     const MotionEntry& motionEntry = static_cast<const MotionEntry&>(*eventEntry);  in createDispatchEntry()  local
275 PointerCoords pointerCoords[motionEntry.pointerCount]; in createDispatchEntry()
284 for (uint32_t pointerIndex = 0; pointerIndex < motionEntry.pointerCount; pointerIndex++) { in createDispatchEntry()
285 const PointerProperties& pointerProperties = motionEntry.pointerProperties[pointerIndex]; in createDispatchEntry()
293 pointerCoords[pointerIndex].copyFrom(motionEntry.pointerCoords[pointerIndex]); in createDispatchEntry()
304 new MotionEntry(motionEntry.id, motionEntry.eventTime, motionEntry.deviceId, in createDispatchEntry()
305 motionEntry.source, motionEntry.displayId, motionEntry.policyFlags, in createDispatchEntry()
306 motionEntry.action, motionEntry.actionButton, motionEntry.flags, in createDispatchEntry()
307 motionEntry.metaState, motionEntry.buttonState, in createDispatchEntry()
308 motionEntry.classification, motionEntry.edgeFlags, in createDispatchEntry()
309 motionEntry.xPrecision, motionEntry.yPrecision, in createDispatchEntry()
310 motionEntry.xCursorPosition, motionEntry.yCursorPosition, in createDispatchEntry()
311 motionEntry.downTime, motionEntry.pointerCount, in createDispatchEntry()
312 motionEntry.pointerProperties, pointerCoords, 0 /* xOffset */, in createDispatchEntry()
315 if (motionEntry.injectionState) { in createDispatchEntry()
316 combinedMotionEntry->injectionState = motionEntry.injectionState; in createDispatchEntry()
688 bool InputDispatcher::shouldPruneInboundQueueLocked(const MotionEntry& motionEntry) { in shouldPruneInboundQueueLocked() argument
689 const bool isPointerDownEvent = motionEntry.action == AMOTION_EVENT_ACTION_DOWN && in shouldPruneInboundQueueLocked()
690 (motionEntry.source & AINPUT_SOURCE_CLASS_POINTER); in shouldPruneInboundQueueLocked()
697 int32_t displayId = motionEntry.displayId; in shouldPruneInboundQueueLocked()
699 motionEntry.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X)); in shouldPruneInboundQueueLocked()
701 motionEntry.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_Y)); in shouldPruneInboundQueueLocked()
906 const MotionEntry& motionEntry = static_cast<const MotionEntry&>(entry); in dropInboundEventLocked() local
907 if (motionEntry.source & AINPUT_SOURCE_CLASS_POINTER) { in dropInboundEventLocked()
1403 const MotionEntry& motionEntry = static_cast<const MotionEntry&>(entry); in getTargetDisplayId() local
1404 displayId = motionEntry.displayId; in getTargetDisplayId()
2175 const MotionEntry& motionEntry = static_cast<const MotionEntry&>(eventEntry); in pokeUserActivityLocked() local
2176 if (motionEntry.action == AMOTION_EVENT_ACTION_CANCEL) { in pokeUserActivityLocked()
2180 if (MotionEvent::isTouchEvent(motionEntry.source, motionEntry.action)) { in pokeUserActivityLocked()
2342 const MotionEntry& motionEntry = static_cast<const MotionEntry&>(*newEntry); in enqueueDispatchEntryLocked() local
2359 dispatchEntry->resolvedAction = motionEntry.action; in enqueueDispatchEntryLocked()
2360 dispatchEntry->resolvedEventId = motionEntry.id; in enqueueDispatchEntryLocked()
2363 !connection->inputState.isHovering(motionEntry.deviceId, motionEntry.source, in enqueueDispatchEntryLocked()
2364 motionEntry.displayId)) { in enqueueDispatchEntryLocked()
2373 dispatchEntry->resolvedFlags = motionEntry.flags; in enqueueDispatchEntryLocked()
2381 if (!connection->inputState.trackMotion(motionEntry, dispatchEntry->resolvedAction, in enqueueDispatchEntryLocked()
2394 : motionEntry.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()
2497 MotionEntry* motionEntry = static_cast<MotionEntry*>(eventEntry); in startDispatchCycleLocked() local
2500 const PointerCoords* usingCoords = motionEntry->pointerCoords; in startDispatchCycleLocked()
2505 if ((motionEntry->source & AINPUT_SOURCE_CLASS_POINTER) && in startDispatchCycleLocked()
2513 for (uint32_t i = 0; i < motionEntry->pointerCount; i++) { in startDispatchCycleLocked()
2514 scaledCoords[i] = motionEntry->pointerCoords[i]; in startDispatchCycleLocked()
2526 for (uint32_t i = 0; i < motionEntry->pointerCount; i++) { in startDispatchCycleLocked()
2533 std::array<uint8_t, 32> hmac = getSignature(*motionEntry, *dispatchEntry); in startDispatchCycleLocked()
2539 motionEntry->deviceId, motionEntry->source, in startDispatchCycleLocked()
2540 motionEntry->displayId, std::move(hmac), in startDispatchCycleLocked()
2542 motionEntry->actionButton, in startDispatchCycleLocked()
2544 motionEntry->edgeFlags, motionEntry->metaState, in startDispatchCycleLocked()
2545 motionEntry->buttonState, in startDispatchCycleLocked()
2546 motionEntry->classification, xScale, yScale, in startDispatchCycleLocked()
2547 xOffset, yOffset, motionEntry->xPrecision, in startDispatchCycleLocked()
2548 motionEntry->yPrecision, in startDispatchCycleLocked()
2549 motionEntry->xCursorPosition, in startDispatchCycleLocked()
2550 motionEntry->yCursorPosition, in startDispatchCycleLocked()
2551 motionEntry->downTime, motionEntry->eventTime, in startDispatchCycleLocked()
2552 motionEntry->pointerCount, in startDispatchCycleLocked()
2553 motionEntry->pointerProperties, usingCoords); in startDispatchCycleLocked()
2554 reportTouchEventForStatistics(*motionEntry); in startDispatchCycleLocked()
2617 const MotionEntry& motionEntry, const DispatchEntry& dispatchEntry) const { in getSignature() argument
2622 VerifiedMotionEvent verifiedEvent = verifiedMotionEventFromMotionEntry(motionEntry); in getSignature()
4776 MotionEntry* motionEntry = static_cast<MotionEntry*>(dispatchEntry->eventEntry); in doDispatchCycleFinishedLockedInterruptible() local
4777 restartEvent = afterMotionEventLockedInterruptible(connection, dispatchEntry, motionEntry, in doDispatchCycleFinishedLockedInterruptible()
4988 MotionEntry* motionEntry, bool handled) { in afterMotionEventLockedInterruptible() argument
5023 void InputDispatcher::reportTouchEventForStatistics(const MotionEntry& motionEntry) in reportTouchEventForStatistics() argument
5025 const bool reportForStatistics = (motionEntry.source == AINPUT_SOURCE_TOUCHSCREEN) && in reportTouchEventForStatistics()
5026 !(motionEntry.isSynthesized()) && !mInputFilterEnabled; in reportTouchEventForStatistics()
5037 const float latencyMicros = nanoseconds_to_microseconds(now() - motionEntry.eventTime); in reportTouchEventForStatistics()