• Home
  • Raw
  • Download

Lines Matching refs:msg

41 static void sanitizeMessage(const InputMessage& msg, InputMessage* outMsg) {  in sanitizeMessage()  argument
45 outMsg->header.type = msg.header.type; in sanitizeMessage()
48 switch(msg.header.type) { in sanitizeMessage()
51 outMsg->body.key.seq = msg.body.key.seq; in sanitizeMessage()
53 outMsg->body.key.eventTime = msg.body.key.eventTime; in sanitizeMessage()
55 outMsg->body.key.deviceId = msg.body.key.deviceId; in sanitizeMessage()
57 outMsg->body.key.source = msg.body.key.source; in sanitizeMessage()
59 outMsg->body.key.displayId = msg.body.key.displayId; in sanitizeMessage()
61 outMsg->body.key.action = msg.body.key.action; in sanitizeMessage()
63 outMsg->body.key.flags = msg.body.key.flags; in sanitizeMessage()
65 outMsg->body.key.keyCode = msg.body.key.keyCode; in sanitizeMessage()
67 outMsg->body.key.scanCode = msg.body.key.scanCode; in sanitizeMessage()
69 outMsg->body.key.metaState = msg.body.key.metaState; in sanitizeMessage()
71 outMsg->body.key.repeatCount = msg.body.key.repeatCount; in sanitizeMessage()
73 outMsg->body.key.downTime = msg.body.key.downTime; in sanitizeMessage()
78 outMsg->body.motion.seq = msg.body.motion.seq; in sanitizeMessage()
80 outMsg->body.motion.eventTime = msg.body.motion.eventTime; in sanitizeMessage()
82 outMsg->body.motion.deviceId = msg.body.motion.deviceId; in sanitizeMessage()
84 outMsg->body.motion.source = msg.body.motion.source; in sanitizeMessage()
86 outMsg->body.motion.displayId = msg.body.motion.displayId; in sanitizeMessage()
88 outMsg->body.motion.action = msg.body.motion.action; in sanitizeMessage()
90 outMsg->body.motion.actionButton = msg.body.motion.actionButton; in sanitizeMessage()
92 outMsg->body.motion.flags = msg.body.motion.flags; in sanitizeMessage()
94 outMsg->body.motion.metaState = msg.body.motion.metaState; in sanitizeMessage()
96 outMsg->body.motion.buttonState = msg.body.motion.buttonState; in sanitizeMessage()
98 outMsg->body.motion.classification = msg.body.motion.classification; in sanitizeMessage()
100 outMsg->body.motion.edgeFlags = msg.body.motion.edgeFlags; in sanitizeMessage()
102 outMsg->body.motion.downTime = msg.body.motion.downTime; in sanitizeMessage()
104 outMsg->body.motion.xOffset = msg.body.motion.xOffset; in sanitizeMessage()
106 outMsg->body.motion.yOffset = msg.body.motion.yOffset; in sanitizeMessage()
108 outMsg->body.motion.xPrecision = msg.body.motion.xPrecision; in sanitizeMessage()
110 outMsg->body.motion.yPrecision = msg.body.motion.yPrecision; in sanitizeMessage()
112 outMsg->body.motion.pointerCount = msg.body.motion.pointerCount; in sanitizeMessage()
114 for (size_t i = 0; i < msg.body.motion.pointerCount; i++) { in sanitizeMessage()
117 msg.body.motion.pointers[i].properties.id; in sanitizeMessage()
119 msg.body.motion.pointers[i].properties.toolType; in sanitizeMessage()
122 msg.body.motion.pointers[i].coords.bits; in sanitizeMessage()
123 const uint32_t count = BitSet64::count(msg.body.motion.pointers[i].coords.bits); in sanitizeMessage()
125 &msg.body.motion.pointers[i].coords.values[0], in sanitizeMessage()
126 count * sizeof(msg.body.motion.pointers[i].coords.values[0])); in sanitizeMessage()
131 outMsg->body.finished.seq = msg.body.finished.seq; in sanitizeMessage()
132 outMsg->body.finished.handled = msg.body.finished.handled; in sanitizeMessage()