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

/frameworks/base/core/java/android/widget/
H A DScroller.java105 private static final int NB_SAMPLES = 100; field in class:Scroller
106 private static final float[] SPLINE_POSITION = new float[NB_SAMPLES + 1];
107 private static final float[] SPLINE_TIME = new float[NB_SAMPLES + 1];
118 for (int i = 0; i < NB_SAMPLES; i++) {
119 final float alpha = (float) i / NB_SAMPLES;
145 SPLINE_POSITION[NB_SAMPLES] = SPLINE_TIME[NB_SAMPLES] = 1.0f;
316 final int index = (int) (NB_SAMPLES * t);
319 if (index < NB_SAMPLES) {
320 final float t_inf = (float) index / NB_SAMPLES;
[all...]
H A DOverScroller.java597 private static final int NB_SAMPLES = 100; field in class:OverScroller.SplineOverScroller
598 private static final float[] SPLINE_POSITION = new float[NB_SAMPLES + 1];
599 private static final float[] SPLINE_TIME = new float[NB_SAMPLES + 1];
608 for (int i = 0; i < NB_SAMPLES; i++) {
609 final float alpha = (float) i / NB_SAMPLES;
635 SPLINE_POSITION[NB_SAMPLES] = SPLINE_TIME[NB_SAMPLES] = 1.0f;
670 final int index = (int) (NB_SAMPLES * x);
671 if (index < NB_SAMPLES) {
672 final float x_inf = (float) index / NB_SAMPLES;
[all...]

Completed in 52 milliseconds