Lines Matching refs:motion
104 uint32_t pointerCount = msg.body.motion.pointerCount; in initializeMotionEvent()
108 pointerProperties[i] = msg.body.motion.pointers[i].properties; in initializeMotionEvent()
109 pointerCoords[i] = msg.body.motion.pointers[i].coords; in initializeMotionEvent()
113 transform.set({msg.body.motion.dsdx, msg.body.motion.dtdx, msg.body.motion.tx, in initializeMotionEvent()
114 msg.body.motion.dtdy, msg.body.motion.dsdy, msg.body.motion.ty, 0, 0, 1}); in initializeMotionEvent()
116 displayTransform.set({msg.body.motion.dsdxRaw, msg.body.motion.dtdxRaw, msg.body.motion.txRaw, in initializeMotionEvent()
117 msg.body.motion.dtdyRaw, msg.body.motion.dsdyRaw, msg.body.motion.tyRaw, in initializeMotionEvent()
119 event.initialize(msg.body.motion.eventId, msg.body.motion.deviceId, msg.body.motion.source, in initializeMotionEvent()
120 ui::LogicalDisplayId{msg.body.motion.displayId}, msg.body.motion.hmac, in initializeMotionEvent()
121 msg.body.motion.action, msg.body.motion.actionButton, msg.body.motion.flags, in initializeMotionEvent()
122 msg.body.motion.edgeFlags, msg.body.motion.metaState, in initializeMotionEvent()
123 msg.body.motion.buttonState, msg.body.motion.classification, transform, in initializeMotionEvent()
124 msg.body.motion.xPrecision, msg.body.motion.yPrecision, in initializeMotionEvent()
125 msg.body.motion.xCursorPosition, msg.body.motion.yCursorPosition, in initializeMotionEvent()
126 displayTransform, msg.body.motion.downTime, msg.body.motion.eventTime, in initializeMotionEvent()
131 uint32_t pointerCount = msg.body.motion.pointerCount; in addSample()
134 pointerCoords[i] = msg.body.motion.pointers[i].coords; in addSample()
137 event.setMetaState(event.getMetaState() | msg.body.motion.metaState); in addSample()
138 event.addSample(msg.body.motion.eventTime, pointerCoords); in addSample()
278 ssize_t batchIndex = findBatch(mMsg.body.motion.deviceId, mMsg.body.motion.source); in consume()
287 } else if (isPointerEvent(mMsg.body.motion.source) && in consume()
288 mMsg.body.motion.action == AMOTION_EVENT_ACTION_CANCEL) { in consume()
316 if (mMsg.body.motion.action == AMOTION_EVENT_ACTION_MOVE || in consume()
317 mMsg.body.motion.action == AMOTION_EVENT_ACTION_HOVER_MOVE) { in consume()
460 if (!mResampleTouch || !isPointerEvent(msg.body.motion.source)) { in updateTouchState()
464 int32_t deviceId = msg.body.motion.deviceId; in updateTouchState()
465 int32_t source = msg.body.motion.source; in updateTouchState()
470 switch (msg.body.motion.action & AMOTION_EVENT_ACTION_MASK) { in updateTouchState()
497 touchState.lastResample.idBits.clearBit(msg.body.motion.getActionId()); in updateTouchState()
508 touchState.lastResample.idBits.clearBit(msg.body.motion.getActionId()); in updateTouchState()
547 nsecs_t eventTime = msg.body.motion.eventTime; in rewriteMessage()
548 for (uint32_t i = 0; i < msg.body.motion.pointerCount; i++) { in rewriteMessage()
549 uint32_t id = msg.body.motion.pointers[i].properties.id; in rewriteMessage()
553 PointerCoords& msgCoords = msg.body.motion.pointers[i].coords; in rewriteMessage()
810 return head.body.motion.source; in getPendingBatchSource()
821 if (head.body.motion.deviceId == deviceId && head.body.motion.source == source) { in findBatch()
840 uint32_t pointerCount = msg->body.motion.pointerCount; in canAddSample()
841 if (head.body.motion.pointerCount != pointerCount || in canAddSample()
842 head.body.motion.action != msg->body.motion.action) { in canAddSample()
846 if (head.body.motion.pointers[i].properties != msg->body.motion.pointers[i].properties) { in canAddSample()
856 while (index < numSamples && batch.samples[index].body.motion.eventTime <= time) { in findSampleNoLaterThan()
885 out = out + "action=" + MotionEvent::actionToString(msg.body.motion.action); in dump()
886 for (uint32_t i = 0; i < msg.body.motion.pointerCount; i++) { in dump()
887 const float x = msg.body.motion.pointers[i].coords.getX(); in dump()
888 const float y = msg.body.motion.pointers[i].coords.getY(); in dump()