Lines Matching refs:touchState
314 TouchState& touchState = touchStates_.at(idx);
315 touchState.Initialize(deviceId, source);
316 touchState.AddHistory(event);
322 TouchState& touchState = touchStates_.at(idx);
323 touchState.AddHistory(event);
324 RewriteMessage(touchState, event);
332 TouchState& touchState = touchStates_.at(idx);
333 RewriteMessage(touchState, event);
358 TouchState &touchState = touchStates_.at(idx);
359 if (touchState.historySize < 1) {
364 const History* current = touchState.GetHistory(0);
385 } else if (touchState.historySize >= HISTORY_SIZE_MAX) {
388 other = touchState.GetHistory(1);
405 ResampleCoordinates(sampleTime, event, touchState, current, other, alpha);
408 void EventResample::ResampleCoordinates(int64_t sampleTime, MotionEvent* event, TouchState &touchState,
412 oldLastResample.InitializeFrom(touchState.lastResample);
413 touchState.lastResample.actionTime = sampleTime;
417 if (oldLastResample.HasPointerId(id) && touchState.RecentCoordinatesAreIdentical(id)) {
418 auto lastItem = touchState.lastResample.pointers.find(id);
419 if (lastItem != touchState.lastResample.pointers.end()) {