Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/util/
DOverScroller.java443 private static final int NB_SAMPLES = 100; field in OverScroller.SplineOverScroller
444 private static final float[] SPLINE_POSITION = new float[NB_SAMPLES + 1];
445 private static final float[] SPLINE_TIME = new float[NB_SAMPLES + 1];
468 for (int i = 0; i < NB_SAMPLES; i++) {
469 final float alpha = (float) i / NB_SAMPLES;
495 SPLINE_POSITION[NB_SAMPLES] = SPLINE_TIME[NB_SAMPLES] = 1.0f;
533 final int index = (int) (NB_SAMPLES * x); in adjustDuration()
534 if (index < NB_SAMPLES) { in adjustDuration()
535 final float x_inf = (float) index / NB_SAMPLES; in adjustDuration()
536 final float x_sup = (float) (index + 1) / NB_SAMPLES; in adjustDuration()
[all …]
/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()