Lines Matching refs:touchState
606 TouchState& touchState = mTouchStates.editItemAt(index); in updateTouchState() local
607 touchState.initialize(deviceId, source); in updateTouchState()
608 touchState.addHistory(msg); in updateTouchState()
615 TouchState& touchState = mTouchStates.editItemAt(index); in updateTouchState() local
616 touchState.addHistory(msg); in updateTouchState()
617 rewriteMessage(touchState, msg); in updateTouchState()
625 TouchState& touchState = mTouchStates.editItemAt(index); in updateTouchState() local
626 touchState.lastResample.idBits.clearBit(msg.body.motion.getActionId()); in updateTouchState()
627 rewriteMessage(touchState, msg); in updateTouchState()
635 TouchState& touchState = mTouchStates.editItemAt(index); in updateTouchState() local
636 rewriteMessage(touchState, msg); in updateTouchState()
637 touchState.lastResample.idBits.clearBit(msg.body.motion.getActionId()); in updateTouchState()
645 TouchState& touchState = mTouchStates.editItemAt(index); in updateTouchState() local
646 rewriteMessage(touchState, msg); in updateTouchState()
655 TouchState& touchState = mTouchStates.editItemAt(index); in updateTouchState() local
656 rewriteMessage(touchState, msg); in updateTouchState()
714 TouchState& touchState = mTouchStates.editItemAt(index); in resampleTouchState() local
715 if (touchState.historySize < 1) { in resampleTouchState()
723 const History* current = touchState.getHistory(0); in resampleTouchState()
752 } else if (touchState.historySize >= 2) { in resampleTouchState()
755 other = touchState.getHistory(1); in resampleTouchState()
787 oldLastResample.initializeFrom(touchState.lastResample); in resampleTouchState()
788 touchState.lastResample.eventTime = sampleTime; in resampleTouchState()
789 touchState.lastResample.idBits.clear(); in resampleTouchState()
792 touchState.lastResample.idToIndex[id] = i; in resampleTouchState()
793 touchState.lastResample.idBits.markBit(id); in resampleTouchState()
794 if (oldLastResample.hasPointerId(id) && touchState.recentCoordinatesAreIdentical(id)) { in resampleTouchState()
802 touchState.lastResample.pointers[i].copyFrom(oldLastResample.getPointerById(id)); in resampleTouchState()
806 PointerCoords& resampledCoords = touchState.lastResample.pointers[i]; in resampleTouchState()
833 event->addSample(sampleTime, touchState.lastResample.pointers); in resampleTouchState()
919 const TouchState& touchState = mTouchStates.itemAt(i); in findTouchState() local
920 if (touchState.deviceId == deviceId && touchState.source == source) { in findTouchState()