Home
last modified time | relevance | path

Searched refs:NB_SAMPLES (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DOverScroller.java595 private static final int NB_SAMPLES = 100; field in OverScroller.SplineOverScroller
596 private static final float[] SPLINE_POSITION = new float[NB_SAMPLES + 1];
597 private static final float[] SPLINE_TIME = new float[NB_SAMPLES + 1];
606 for (int i = 0; i < NB_SAMPLES; i++) {
607 final float alpha = (float) i / NB_SAMPLES;
633 SPLINE_POSITION[NB_SAMPLES] = SPLINE_TIME[NB_SAMPLES] = 1.0f;
671 final int index = (int) (NB_SAMPLES * x); in adjustDuration()
672 if (index < NB_SAMPLES) { in adjustDuration()
673 final float x_inf = (float) index / NB_SAMPLES; in adjustDuration()
674 final float x_sup = (float) (index + 1) / NB_SAMPLES; in adjustDuration()
[all …]
DScroller.java68 private static final int NB_SAMPLES = 100; field in Scroller
69 private static final float[] SPLINE = new float[NB_SAMPLES + 1];
76 for (int i = 0; i <= NB_SAMPLES; i++) {
77 final float t = (float) i / NB_SAMPLES;
91 SPLINE[NB_SAMPLES] = 1.0f;
270 final int index = (int) (NB_SAMPLES * t); in computeScrollOffset()
271 final float t_inf = (float) index / NB_SAMPLES; in computeScrollOffset()
272 final float t_sup = (float) (index + 1) / NB_SAMPLES; in computeScrollOffset()