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

/packages/apps/Launcher3/src/com/android/launcher3/
H A DLauncherScroller.java73 private static final int NB_SAMPLES = 100; field in class:LauncherScroller
74 private static final float[] SPLINE_POSITION = new float[NB_SAMPLES + 1];
75 private static final float[] SPLINE_TIME = new float[NB_SAMPLES + 1];
86 for (int i = 0; i < NB_SAMPLES; i++) {
87 final float alpha = (float) i / NB_SAMPLES;
113 SPLINE_POSITION[NB_SAMPLES] = SPLINE_TIME[NB_SAMPLES] = 1.0f;
300 final int index = (int) (NB_SAMPLES * t);
303 if (index < NB_SAMPLES) {
304 final float t_inf = (float) index / NB_SAMPLES;
[all...]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DScroller.java69 private static final int NB_SAMPLES = 100; field in class:Scroller
70 private static final float[] SPLINE = new float[NB_SAMPLES + 1];
77 for (int i = 0; i <= NB_SAMPLES; i++) {
78 final float t = (float) i / NB_SAMPLES;
92 SPLINE[NB_SAMPLES] = 1.0f;
271 final int index = (int) (NB_SAMPLES * t);
272 final float t_inf = (float) index / NB_SAMPLES;
273 final float t_sup = (float) (index + 1) / NB_SAMPLES;
H A DOverScroller.java598 private static final int NB_SAMPLES = 100; field in class:OverScroller.SplineOverScroller
599 private static final float[] SPLINE_POSITION = new float[NB_SAMPLES + 1];
600 private static final float[] SPLINE_TIME = new float[NB_SAMPLES + 1];
609 for (int i = 0; i < NB_SAMPLES; i++) {
610 final float alpha = (float) i / NB_SAMPLES;
636 SPLINE_POSITION[NB_SAMPLES] = SPLINE_TIME[NB_SAMPLES] = 1.0f;
674 final int index = (int) (NB_SAMPLES * x);
675 if (index < NB_SAMPLES) {
676 final float x_inf = (float) index / NB_SAMPLES;
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
H A DOverScrollerSGV.java600 private static final int NB_SAMPLES = 100; field in class:OverScrollerSGV.SplineOverScroller
601 private static final float[] SPLINE_POSITION = new float[NB_SAMPLES + 1];
602 private static final float[] SPLINE_TIME = new float[NB_SAMPLES + 1];
611 for (int i = 0; i < NB_SAMPLES; i++) {
612 final float alpha = (float) i / NB_SAMPLES;
638 SPLINE_POSITION[NB_SAMPLES] = SPLINE_TIME[NB_SAMPLES] = 1.0f;
673 final int index = (int) (NB_SAMPLES * x);
674 if (index < NB_SAMPLES) {
675 final float x_inf = (float) index / NB_SAMPLES;
[all...]

Completed in 207 milliseconds