Lines Matching refs:memento
4033 const MotionMemento& memento = mMotionMementos.itemAt(i); in isHovering() local
4034 if (memento.deviceId == deviceId in isHovering()
4035 && memento.source == source in isHovering()
4036 && memento.displayId == displayId in isHovering()
4037 && memento.hovering) { in isHovering()
4144 MotionMemento& memento = mMotionMementos.editItemAt(index); in trackMotion() local
4145 memento.setPointers(entry); in trackMotion()
4155 MotionMemento& memento = mMotionMementos.editItemAt(index); in trackMotion() local
4156 memento.setPointers(entry); in trackMotion()
4197 const KeyMemento& memento = mKeyMementos.itemAt(i); in findKeyMemento() local
4198 if (memento.deviceId == entry->deviceId in findKeyMemento()
4199 && memento.source == entry->source in findKeyMemento()
4200 && memento.keyCode == entry->keyCode in findKeyMemento()
4201 && memento.scanCode == entry->scanCode) { in findKeyMemento()
4211 const MotionMemento& memento = mMotionMementos.itemAt(i); in findMotionMemento() local
4212 if (memento.deviceId == entry->deviceId in findMotionMemento()
4213 && memento.source == entry->source in findMotionMemento()
4214 && memento.displayId == entry->displayId in findMotionMemento()
4215 && memento.hovering == hovering) { in findMotionMemento()
4224 KeyMemento& memento = mKeyMementos.editTop(); in addKeyMemento() local
4225 memento.deviceId = entry->deviceId; in addKeyMemento()
4226 memento.source = entry->source; in addKeyMemento()
4227 memento.keyCode = entry->keyCode; in addKeyMemento()
4228 memento.scanCode = entry->scanCode; in addKeyMemento()
4229 memento.metaState = entry->metaState; in addKeyMemento()
4230 memento.flags = flags; in addKeyMemento()
4231 memento.downTime = entry->downTime; in addKeyMemento()
4232 memento.policyFlags = entry->policyFlags; in addKeyMemento()
4238 MotionMemento& memento = mMotionMementos.editTop(); in addMotionMemento() local
4239 memento.deviceId = entry->deviceId; in addMotionMemento()
4240 memento.source = entry->source; in addMotionMemento()
4241 memento.flags = flags; in addMotionMemento()
4242 memento.xPrecision = entry->xPrecision; in addMotionMemento()
4243 memento.yPrecision = entry->yPrecision; in addMotionMemento()
4244 memento.downTime = entry->downTime; in addMotionMemento()
4245 memento.displayId = entry->displayId; in addMotionMemento()
4246 memento.setPointers(entry); in addMotionMemento()
4247 memento.hovering = hovering; in addMotionMemento()
4248 memento.policyFlags = entry->policyFlags; in addMotionMemento()
4262 const KeyMemento& memento = mKeyMementos.itemAt(i); in synthesizeCancelationEvents() local
4263 if (shouldCancelKey(memento, options)) { in synthesizeCancelationEvents()
4265 memento.deviceId, memento.source, memento.policyFlags, in synthesizeCancelationEvents()
4266 AKEY_EVENT_ACTION_UP, memento.flags | AKEY_EVENT_FLAG_CANCELED, in synthesizeCancelationEvents()
4267 memento.keyCode, memento.scanCode, memento.metaState, 0, memento.downTime)); in synthesizeCancelationEvents()
4272 const MotionMemento& memento = mMotionMementos.itemAt(i); in synthesizeCancelationEvents() local
4273 if (shouldCancelMotion(memento, options)) { in synthesizeCancelationEvents()
4275 memento.deviceId, memento.source, memento.policyFlags, in synthesizeCancelationEvents()
4276 memento.hovering in synthesizeCancelationEvents()
4279 memento.flags, 0, 0, 0, 0, in synthesizeCancelationEvents()
4280 memento.xPrecision, memento.yPrecision, memento.downTime, in synthesizeCancelationEvents()
4281 memento.displayId, in synthesizeCancelationEvents()
4282 memento.pointerCount, memento.pointerProperties, memento.pointerCoords, in synthesizeCancelationEvents()
4296 const MotionMemento& memento = mMotionMementos.itemAt(i); in copyPointerStateTo() local
4297 if (memento.source & AINPUT_SOURCE_CLASS_POINTER) { in copyPointerStateTo()
4300 if (memento.deviceId == otherMemento.deviceId in copyPointerStateTo()
4301 && memento.source == otherMemento.source in copyPointerStateTo()
4302 && memento.displayId == otherMemento.displayId) { in copyPointerStateTo()
4308 other.mMotionMementos.push(memento); in copyPointerStateTo()
4332 bool InputDispatcher::InputState::shouldCancelKey(const KeyMemento& memento, in shouldCancelKey() argument
4334 if (options.keyCode != -1 && memento.keyCode != options.keyCode) { in shouldCancelKey()
4338 if (options.deviceId != -1 && memento.deviceId != options.deviceId) { in shouldCancelKey()
4347 return memento.flags & AKEY_EVENT_FLAG_FALLBACK; in shouldCancelKey()
4353 bool InputDispatcher::InputState::shouldCancelMotion(const MotionMemento& memento, in shouldCancelMotion() argument
4355 if (options.deviceId != -1 && memento.deviceId != options.deviceId) { in shouldCancelMotion()
4363 return memento.source & AINPUT_SOURCE_CLASS_POINTER; in shouldCancelMotion()
4365 return !(memento.source & AINPUT_SOURCE_CLASS_POINTER); in shouldCancelMotion()