Home | History | Annotate | Download | only in input

Lines Matching refs:TouchState

602         TouchState& touchState = mTouchStates.editItemAt(index);
603 touchState.initialize(deviceId, source);
604 touchState.addHistory(msg);
611 TouchState& touchState = mTouchStates.editItemAt(index);
612 touchState.addHistory(msg);
613 if (eventTime < touchState.lastResample.eventTime) {
614 rewriteMessage(touchState, msg);
616 touchState.lastResample.idBits.clear();
625 TouchState& touchState = mTouchStates.editItemAt(index);
626 touchState.lastResample.idBits.clearBit(msg->body.motion.getActionId());
627 rewriteMessage(touchState, msg);
635 TouchState& touchState = mTouchStates.editItemAt(index);
636 rewriteMessage(touchState, msg);
637 touchState.lastResample.idBits.clearBit(msg->body.motion.getActionId());
645 const TouchState& touchState = mTouchStates.itemAt(index);
646 rewriteMessage(touchState, msg);
655 const TouchState& touchState = mTouchStates.itemAt(index);
656 rewriteMessage(touchState, msg);
664 void InputConsumer::rewriteMessage(const TouchState& state, InputMessage* msg) {
699 TouchState& touchState = mTouchStates.editItemAt(index);
700 if (touchState.historySize < 1) {
708 const History* current = touchState.getHistory(0);
737 } else if (touchState.historySize >= 2) {
740 other = touchState.getHistory(1);
771 touchState.lastResample.eventTime = sampleTime;
772 touchState.lastResample.idBits.clear();
775 touchState.lastResample.idToIndex[id] = i;
776 touchState.lastResample.idBits.markBit(id);
777 PointerCoords& resampledCoords = touchState.lastResample.pointers[i];
805 event->addSample(sampleTime, touchState.lastResample.pointers);
892 const TouchState& touchState = mTouchStates.itemAt(i);
893 if (touchState.deviceId == deviceId && touchState.source == source) {