Searched refs:DECELERATED_FACTOR (Results 1 - 1 of 1) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DFlingScroller.java34 private static final int DECELERATED_FACTOR = 4; field in class:FlingScroller
97 * Math.pow(Math.abs(velocity), 1.0 / (DECELERATED_FACTOR - 1)));
101 velocity * mDuration / DECELERATED_FACTOR / 1000);
110 f = 1 - (float) Math.pow(f, DECELERATED_FACTOR);
138 return DECELERATED_FACTOR * mDistance * 1000 *
139 Math.pow(1 - progress, DECELERATED_FACTOR - 1) / mDuration;

Completed in 27 milliseconds