Searched refs:mRecentSamples (Results 1 – 1 of 1) sorted by relevance
37 private final Deque<Sample> mRecentSamples = Lists.newLinkedList(); field in InputSmoother53 final Sample last = mRecentSamples.peekLast(); in onInput()55 mRecentSamples.clear(); in onInput()58 if (mRecentSamples.size() == SAMPLING_WINDOW_SIZE) { in onInput()59 sample = mRecentSamples.removeFirst(); in onInput()66 mRecentSamples.add(sample); in onInput()76 if (mRecentSamples.size() < 2) { in getSmoothedVelocity()83 int prevPos = mRecentSamples.getFirst().pos; in getSmoothedVelocity()84 final long totalTimeMs = mRecentSamples.getLast().millis - mRecentSamples.getFirst().millis; in getSmoothedVelocity()91 for (Sample s : mRecentSamples) { in getSmoothedVelocity()