Lines Matching refs:eventTime
239 void VelocityTracker::addMovement(nsecs_t eventTime, int32_t pointerId, int32_t axis, in addMovement() argument
242 std::chrono::nanoseconds(eventTime - mLastEventTime) > ASSUME_POINTER_STOPPED_TIME) { in addMovement()
244 toString(std::chrono::nanoseconds(eventTime - mLastEventTime)).c_str()); in addMovement()
250 mLastEventTime = eventTime; in addMovement()
261 mConfiguredStrategies[axis]->addMovement(eventTime, pointerId, position); in addMovement()
266 eventTime, pointerId, toString(mActivePointerId).c_str()); in addMovement()
334 const nsecs_t eventTime = event->getHistoricalEventTime(h); in addMovement() local
342 addMovement(eventTime, pointerId, axis, position); in addMovement()
397 void LeastSquaresVelocityTrackerStrategy::addMovement(nsecs_t eventTime, int32_t pointerId, in addMovement() argument
407 if (!inserted && movementIt->second[index].eventTime != eventTime) { in addMovement()
421 movement.eventTime = eventTime; in addMovement()
662 nsecs_t age = newestMovement.eventTime - movement.eventTime; in getEstimator()
666 if (movement.eventTime == 0 && index != 0) { in getEstimator()
701 estimator.time = newestMovement.eventTime; in getEstimator()
715 estimator.time = newestMovement.eventTime; in getEstimator()
730 estimator.time = newestMovement.eventTime; in getEstimator()
749 (movements[nextIndex].eventTime - movements[index].eventTime) * 0.000001f; in chooseWeight()
766 (movements[mIndex.at(pointerId)].eventTime - movements[index].eventTime) * in chooseWeight()
789 (movements[mIndex.at(pointerId)].eventTime - movements[index].eventTime) * in chooseWeight()
818 void IntegratingVelocityTrackerStrategy::addMovement(nsecs_t eventTime, int32_t pointerId, in addMovement() argument
822 updateState(state, eventTime, position); in addMovement()
824 initState(state, eventTime, position); in addMovement()
842 void IntegratingVelocityTrackerStrategy::initState(State& state, nsecs_t eventTime, in initState() argument
844 state.updateTime = eventTime; in initState()
852 void IntegratingVelocityTrackerStrategy::updateState(State& state, nsecs_t eventTime, in updateState() argument
857 if (eventTime <= state.updateTime + MIN_TIME_DELTA) { in updateState()
861 float dt = (eventTime - state.updateTime) * 0.000000001f; in updateState()
862 state.updateTime = eventTime; in updateState()
909 void LegacyVelocityTrackerStrategy::addMovement(nsecs_t eventTime, int32_t pointerId, in addMovement() argument
919 if (!inserted && movementIt->second[index].eventTime != eventTime) { in addMovement()
933 movement.eventTime = eventTime; in addMovement()
946 nsecs_t minTime = newestMovement.eventTime - HORIZON; in getEstimator()
952 if (nextOldestMovement.eventTime < minTime) { in getEstimator()
981 nsecs_t duration = movement.eventTime - oldestMovement.eventTime; in getEstimator()
999 estimator.time = newestMovement.eventTime; in getEstimator()
1024 void ImpulseVelocityTrackerStrategy::addMovement(nsecs_t eventTime, int32_t pointerId, in addMovement() argument
1034 if (!inserted && movementIt->second[index].eventTime != eventTime) { in addMovement()
1048 movement.eventTime = eventTime; in addMovement()
1193 nsecs_t age = newestMovement.eventTime - movement.eventTime; in getEstimator()
1197 if (movement.eventTime == 0 && index != 0) { in getEstimator()
1207 time[m] = movement.eventTime; in getEstimator()
1219 estimator.time = newestMovement.eventTime; in getEstimator()