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

/frameworks/base/core/java/android/widget/
H A DScroller.java104 private static final int NB_SAMPLES = 100; field in class:Scroller
105 private static final float[] SPLINE_POSITION = new float[NB_SAMPLES + 1];
106 private static final float[] SPLINE_TIME = new float[NB_SAMPLES + 1];
117 for (int i = 0; i < NB_SAMPLES; i++) {
118 final float alpha = (float) i / NB_SAMPLES;
144 SPLINE_POSITION[NB_SAMPLES] = SPLINE_TIME[NB_SAMPLES] = 1.0f;
315 final int index = (int) (NB_SAMPLES * t);
318 if (index < NB_SAMPLES) {
319 final float t_inf = (float) index / NB_SAMPLES;
[all...]
H A DOverScroller.java596 private static final int NB_SAMPLES = 100; field in class:OverScroller.SplineOverScroller
597 private static final float[] SPLINE_POSITION = new float[NB_SAMPLES + 1];
598 private static final float[] SPLINE_TIME = new float[NB_SAMPLES + 1];
607 for (int i = 0; i < NB_SAMPLES; i++) {
608 final float alpha = (float) i / NB_SAMPLES;
634 SPLINE_POSITION[NB_SAMPLES] = SPLINE_TIME[NB_SAMPLES] = 1.0f;
669 final int index = (int) (NB_SAMPLES * x);
670 if (index < NB_SAMPLES) {
671 final float x_inf = (float) index / NB_SAMPLES;
[all...]

Completed in 54 milliseconds