Home | History | Annotate | Download | only in input

Lines Matching refs:TouchState

594         TouchState& touchState = mTouchStates.editItemAt(index);
595 touchState.initialize(deviceId, source);
596 touchState.addHistory(msg);
603 TouchState& touchState = mTouchStates.editItemAt(index);
604 touchState.addHistory(msg);
605 if (eventTime < touchState.lastResample.eventTime) {
606 rewriteMessage(touchState, msg);
608 touchState.lastResample.idBits.clear();
617 TouchState& touchState = mTouchStates.editItemAt(index);
618 touchState.lastResample.idBits.clearBit(msg->body.motion.getActionId());
619 rewriteMessage(touchState, msg);
627 TouchState& touchState = mTouchStates.editItemAt(index);
628 rewriteMessage(touchState, msg);
629 touchState.lastResample.idBits.clearBit(msg->body.motion.getActionId());
637 const TouchState& touchState = mTouchStates.itemAt(index);
638 rewriteMessage(touchState, msg);
647 const TouchState& touchState = mTouchStates.itemAt(index);
648 rewriteMessage(touchState, msg);
656 void InputConsumer::rewriteMessage(const TouchState& state, InputMessage* msg) {
691 TouchState& touchState = mTouchStates.editItemAt(index);
692 if (touchState.historySize < 1) {
700 const History* current = touchState.getHistory(0);
729 } else if (touchState.historySize >= 2) {
732 other = touchState.getHistory(1);
758 touchState.lastResample.eventTime = sampleTime;
759 touchState.lastResample.idBits.clear();
762 touchState.lastResample.idToIndex[id] = i;
763 touchState.lastResample.idBits.markBit(id);
764 PointerCoords& resampledCoords = touchState.lastResample.pointers[i];
792 event->addSample(sampleTime, touchState.lastResample.pointers);
874 const TouchState& touchState = mTouchStates.itemAt(i);
875 if (touchState.deviceId == deviceId && touchState.source == source) {