Searched refs:HISTORY_SIZE (Results 1 – 1 of 1) sorted by relevance
37 private static final int HISTORY_SIZE = 20; field in VelocityTrackerFallback44 private final float[] mMovements = new float[HISTORY_SIZE];45 private final long[] mEventTimes = new long[HISTORY_SIZE];70 mDataPointsBufferLastUsedIndex = (mDataPointsBufferLastUsedIndex + 1) % HISTORY_SIZE; in addMovement()73 if (mDataPointsBufferSize != HISTORY_SIZE) { in addMovement()121 (mDataPointsBufferLastUsedIndex + HISTORY_SIZE - (mDataPointsBufferSize - 1)) in getCurrentVelocity()122 % HISTORY_SIZE; in getCurrentVelocity()129 firstValidIndex = (firstValidIndex + 1) % HISTORY_SIZE; in getCurrentVelocity()138 int lastIndex = (firstValidIndex + 1) % HISTORY_SIZE; in getCurrentVelocity()152 long eventTime = mEventTimes[currentIndex % HISTORY_SIZE]; in getCurrentVelocity()[all …]