Lines Matching refs:motion

124                     body.motion.pointerCount > 0 && body.motion.pointerCount <= MAX_POINTERS;  in isValid()
126 ALOGE("Received invalid MOTION: pointerCount = %" PRIu32, body.motion.pointerCount); in isValid()
159 return sizeof(Header) + body.motion.size(); in size()
220 msg->body.motion.eventId = body.motion.eventId; in getSanitizedCopy()
222 msg->body.motion.pointerCount = body.motion.pointerCount; in getSanitizedCopy()
224 msg->body.motion.eventTime = body.motion.eventTime; in getSanitizedCopy()
226 msg->body.motion.deviceId = body.motion.deviceId; in getSanitizedCopy()
228 msg->body.motion.source = body.motion.source; in getSanitizedCopy()
230 msg->body.motion.displayId = body.motion.displayId; in getSanitizedCopy()
232 msg->body.motion.hmac = body.motion.hmac; in getSanitizedCopy()
234 msg->body.motion.action = body.motion.action; in getSanitizedCopy()
236 msg->body.motion.actionButton = body.motion.actionButton; in getSanitizedCopy()
238 msg->body.motion.flags = body.motion.flags; in getSanitizedCopy()
240 msg->body.motion.metaState = body.motion.metaState; in getSanitizedCopy()
242 msg->body.motion.buttonState = body.motion.buttonState; in getSanitizedCopy()
244 msg->body.motion.classification = body.motion.classification; in getSanitizedCopy()
246 msg->body.motion.edgeFlags = body.motion.edgeFlags; in getSanitizedCopy()
248 msg->body.motion.downTime = body.motion.downTime; in getSanitizedCopy()
250 msg->body.motion.dsdx = body.motion.dsdx; in getSanitizedCopy()
251 msg->body.motion.dtdx = body.motion.dtdx; in getSanitizedCopy()
252 msg->body.motion.dtdy = body.motion.dtdy; in getSanitizedCopy()
253 msg->body.motion.dsdy = body.motion.dsdy; in getSanitizedCopy()
254 msg->body.motion.tx = body.motion.tx; in getSanitizedCopy()
255 msg->body.motion.ty = body.motion.ty; in getSanitizedCopy()
258 msg->body.motion.xPrecision = body.motion.xPrecision; in getSanitizedCopy()
260 msg->body.motion.yPrecision = body.motion.yPrecision; in getSanitizedCopy()
262 msg->body.motion.xCursorPosition = body.motion.xCursorPosition; in getSanitizedCopy()
264 msg->body.motion.yCursorPosition = body.motion.yCursorPosition; in getSanitizedCopy()
266 msg->body.motion.dsdxRaw = body.motion.dsdxRaw; in getSanitizedCopy()
267 msg->body.motion.dtdxRaw = body.motion.dtdxRaw; in getSanitizedCopy()
268 msg->body.motion.dtdyRaw = body.motion.dtdyRaw; in getSanitizedCopy()
269 msg->body.motion.dsdyRaw = body.motion.dsdyRaw; in getSanitizedCopy()
270 msg->body.motion.txRaw = body.motion.txRaw; in getSanitizedCopy()
271 msg->body.motion.tyRaw = body.motion.tyRaw; in getSanitizedCopy()
274 for (size_t i = 0; i < body.motion.pointerCount; i++) { in getSanitizedCopy()
276 msg->body.motion.pointers[i].properties.id = body.motion.pointers[i].properties.id; in getSanitizedCopy()
277 msg->body.motion.pointers[i].properties.toolType = in getSanitizedCopy()
278 body.motion.pointers[i].properties.toolType, in getSanitizedCopy()
280 msg->body.motion.pointers[i].coords.bits = body.motion.pointers[i].coords.bits; in getSanitizedCopy()
281 const uint32_t count = BitSet64::count(body.motion.pointers[i].coords.bits); in getSanitizedCopy()
282 memcpy(&msg->body.motion.pointers[i].coords.values[0], in getSanitizedCopy()
283 &body.motion.pointers[i].coords.values[0], in getSanitizedCopy()
284 count * (sizeof(body.motion.pointers[i].coords.values[0]))); in getSanitizedCopy()
285 msg->body.motion.pointers[i].coords.isResampled = in getSanitizedCopy()
286 body.motion.pointers[i].coords.isResampled; in getSanitizedCopy()
625 msg.body.motion.eventId = eventId; in publishMotionEvent()
626 msg.body.motion.deviceId = deviceId; in publishMotionEvent()
627 msg.body.motion.source = source; in publishMotionEvent()
628 msg.body.motion.displayId = displayId.val(); in publishMotionEvent()
629 msg.body.motion.hmac = std::move(hmac); in publishMotionEvent()
630 msg.body.motion.action = action; in publishMotionEvent()
631 msg.body.motion.actionButton = actionButton; in publishMotionEvent()
632 msg.body.motion.flags = flags; in publishMotionEvent()
633 msg.body.motion.edgeFlags = edgeFlags; in publishMotionEvent()
634 msg.body.motion.metaState = metaState; in publishMotionEvent()
635 msg.body.motion.buttonState = buttonState; in publishMotionEvent()
636 msg.body.motion.classification = classification; in publishMotionEvent()
637 msg.body.motion.dsdx = transform.dsdx(); in publishMotionEvent()
638 msg.body.motion.dtdx = transform.dtdx(); in publishMotionEvent()
639 msg.body.motion.dtdy = transform.dtdy(); in publishMotionEvent()
640 msg.body.motion.dsdy = transform.dsdy(); in publishMotionEvent()
641 msg.body.motion.tx = transform.tx(); in publishMotionEvent()
642 msg.body.motion.ty = transform.ty(); in publishMotionEvent()
643 msg.body.motion.xPrecision = xPrecision; in publishMotionEvent()
644 msg.body.motion.yPrecision = yPrecision; in publishMotionEvent()
645 msg.body.motion.xCursorPosition = xCursorPosition; in publishMotionEvent()
646 msg.body.motion.yCursorPosition = yCursorPosition; in publishMotionEvent()
647 msg.body.motion.dsdxRaw = rawTransform.dsdx(); in publishMotionEvent()
648 msg.body.motion.dtdxRaw = rawTransform.dtdx(); in publishMotionEvent()
649 msg.body.motion.dtdyRaw = rawTransform.dtdy(); in publishMotionEvent()
650 msg.body.motion.dsdyRaw = rawTransform.dsdy(); in publishMotionEvent()
651 msg.body.motion.txRaw = rawTransform.tx(); in publishMotionEvent()
652 msg.body.motion.tyRaw = rawTransform.ty(); in publishMotionEvent()
653 msg.body.motion.downTime = downTime; in publishMotionEvent()
654 msg.body.motion.eventTime = eventTime; in publishMotionEvent()
655 msg.body.motion.pointerCount = pointerCount; in publishMotionEvent()
657 msg.body.motion.pointers[i].properties = pointerProperties[i]; in publishMotionEvent()
658 msg.body.motion.pointers[i].coords = pointerCoords[i]; in publishMotionEvent()