Lines Matching refs:body

78             return body.motion.pointerCount > 0  in isValid()
79 && body.motion.pointerCount <= MAX_POINTERS; in isValid()
90 return sizeof(Header) + body.key.size(); in size()
92 return sizeof(Header) + body.motion.size(); in size()
94 return sizeof(Header) + body.finished.size(); in size()
270 msg.body.key.seq = seq; in publishKeyEvent()
271 msg.body.key.deviceId = deviceId; in publishKeyEvent()
272 msg.body.key.source = source; in publishKeyEvent()
273 msg.body.key.action = action; in publishKeyEvent()
274 msg.body.key.flags = flags; in publishKeyEvent()
275 msg.body.key.keyCode = keyCode; in publishKeyEvent()
276 msg.body.key.scanCode = scanCode; in publishKeyEvent()
277 msg.body.key.metaState = metaState; in publishKeyEvent()
278 msg.body.key.repeatCount = repeatCount; in publishKeyEvent()
279 msg.body.key.downTime = downTime; in publishKeyEvent()
280 msg.body.key.eventTime = eventTime; in publishKeyEvent()
327 msg.body.motion.seq = seq; in publishMotionEvent()
328 msg.body.motion.deviceId = deviceId; in publishMotionEvent()
329 msg.body.motion.source = source; in publishMotionEvent()
330 msg.body.motion.action = action; in publishMotionEvent()
331 msg.body.motion.actionButton = actionButton; in publishMotionEvent()
332 msg.body.motion.flags = flags; in publishMotionEvent()
333 msg.body.motion.edgeFlags = edgeFlags; in publishMotionEvent()
334 msg.body.motion.metaState = metaState; in publishMotionEvent()
335 msg.body.motion.buttonState = buttonState; in publishMotionEvent()
336 msg.body.motion.xOffset = xOffset; in publishMotionEvent()
337 msg.body.motion.yOffset = yOffset; in publishMotionEvent()
338 msg.body.motion.xPrecision = xPrecision; in publishMotionEvent()
339 msg.body.motion.yPrecision = yPrecision; in publishMotionEvent()
340 msg.body.motion.downTime = downTime; in publishMotionEvent()
341 msg.body.motion.eventTime = eventTime; in publishMotionEvent()
342 msg.body.motion.pointerCount = pointerCount; in publishMotionEvent()
344 msg.body.motion.pointers[i].properties.copyFrom(pointerProperties[i]); in publishMotionEvent()
345 msg.body.motion.pointers[i].coords.copyFrom(pointerCoords[i]); in publishMotionEvent()
368 *outSeq = msg.body.finished.seq; in receiveFinishedSignal()
369 *outHandled = msg.body.finished.handled; in receiveFinishedSignal()
440 *outSeq = mMsg.body.key.seq; in consume()
450 ssize_t batchIndex = findBatch(mMsg.body.motion.deviceId, mMsg.body.motion.source); in consume()
480 if (mMsg.body.motion.action == AMOTION_EVENT_ACTION_MOVE in consume()
481 || mMsg.body.motion.action == AMOTION_EVENT_ACTION_HOVER_MOVE) { in consume()
497 *outSeq = mMsg.body.motion.seq; in consume()
565 seqChain.seq = msg.body.motion.seq; in consumeSamples()
572 chain = msg.body.motion.seq; in consumeSamples()
583 !(msg->body.motion.source & AINPUT_SOURCE_CLASS_POINTER)) { in updateTouchState()
587 int32_t deviceId = msg->body.motion.deviceId; in updateTouchState()
588 int32_t source = msg->body.motion.source; in updateTouchState()
589 nsecs_t eventTime = msg->body.motion.eventTime; in updateTouchState()
594 switch (msg->body.motion.action & AMOTION_EVENT_ACTION_MASK) { in updateTouchState()
625 touchState.lastResample.idBits.clearBit(msg->body.motion.getActionId()); in updateTouchState()
636 touchState.lastResample.idBits.clearBit(msg->body.motion.getActionId()); in updateTouchState()
664 for (uint32_t i = 0; i < msg->body.motion.pointerCount; i++) { in rewriteMessage()
665 uint32_t id = msg->body.motion.pointers[i].properties.id; in rewriteMessage()
667 PointerCoords& msgCoords = msg->body.motion.pointers[i].coords; in rewriteMessage()
865 msg.body.finished.seq = seq; in sendUnchainedFinishedSignal()
866 msg.body.finished.handled = handled; in sendUnchainedFinishedSignal()
882 if (head.body.motion.deviceId == deviceId && head.body.motion.source == source) { in findBatch()
901 msg->body.key.deviceId, in initializeKeyEvent()
902 msg->body.key.source, in initializeKeyEvent()
903 msg->body.key.action, in initializeKeyEvent()
904 msg->body.key.flags, in initializeKeyEvent()
905 msg->body.key.keyCode, in initializeKeyEvent()
906 msg->body.key.scanCode, in initializeKeyEvent()
907 msg->body.key.metaState, in initializeKeyEvent()
908 msg->body.key.repeatCount, in initializeKeyEvent()
909 msg->body.key.downTime, in initializeKeyEvent()
910 msg->body.key.eventTime); in initializeKeyEvent()
914 uint32_t pointerCount = msg->body.motion.pointerCount; in initializeMotionEvent()
918 pointerProperties[i].copyFrom(msg->body.motion.pointers[i].properties); in initializeMotionEvent()
919 pointerCoords[i].copyFrom(msg->body.motion.pointers[i].coords); in initializeMotionEvent()
923 msg->body.motion.deviceId, in initializeMotionEvent()
924 msg->body.motion.source, in initializeMotionEvent()
925 msg->body.motion.action, in initializeMotionEvent()
926 msg->body.motion.actionButton, in initializeMotionEvent()
927 msg->body.motion.flags, in initializeMotionEvent()
928 msg->body.motion.edgeFlags, in initializeMotionEvent()
929 msg->body.motion.metaState, in initializeMotionEvent()
930 msg->body.motion.buttonState, in initializeMotionEvent()
931 msg->body.motion.xOffset, in initializeMotionEvent()
932 msg->body.motion.yOffset, in initializeMotionEvent()
933 msg->body.motion.xPrecision, in initializeMotionEvent()
934 msg->body.motion.yPrecision, in initializeMotionEvent()
935 msg->body.motion.downTime, in initializeMotionEvent()
936 msg->body.motion.eventTime, in initializeMotionEvent()
943 uint32_t pointerCount = msg->body.motion.pointerCount; in addSample()
946 pointerCoords[i].copyFrom(msg->body.motion.pointers[i].coords); in addSample()
949 event->setMetaState(event->getMetaState() | msg->body.motion.metaState); in addSample()
950 event->addSample(msg->body.motion.eventTime, pointerCoords); in addSample()
955 uint32_t pointerCount = msg->body.motion.pointerCount; in canAddSample()
956 if (head.body.motion.pointerCount != pointerCount in canAddSample()
957 || head.body.motion.action != msg->body.motion.action) { in canAddSample()
961 if (head.body.motion.pointers[i].properties in canAddSample()
962 != msg->body.motion.pointers[i].properties) { in canAddSample()
973 && batch.samples.itemAt(index).body.motion.eventTime <= time) { in findSampleNoLaterThan()