HomeSort by relevance Sort by last modified time
    Searched refs:NB_SAMPLES (Results 1 - 6 of 6) sorted by null

  /frameworks/base/core/java/android/widget/
Scroller.java 104 private static final int NB_SAMPLES = 100;
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...]
OverScroller.java 594 private static final int NB_SAMPLES = 100;
595 private static final float[] SPLINE_POSITION = new float[NB_SAMPLES + 1];
596 private static final float[] SPLINE_TIME = new float[NB_SAMPLES + 1];
605 for (int i = 0; i < NB_SAMPLES; i++) {
606 final float alpha = (float) i / NB_SAMPLES;
632 SPLINE_POSITION[NB_SAMPLES] = SPLINE_TIME[NB_SAMPLES] = 1.0f;
667 final int index = (int) (NB_SAMPLES * x);
668 if (index < NB_SAMPLES) {
669 final float x_inf = (float) index / NB_SAMPLES;
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/
LauncherScroller.java 72 private static final int NB_SAMPLES = 100;
73 private static final float[] SPLINE_POSITION = new float[NB_SAMPLES + 1];
74 private static final float[] SPLINE_TIME = new float[NB_SAMPLES + 1];
85 for (int i = 0; i < NB_SAMPLES; i++) {
86 final float alpha = (float) i / NB_SAMPLES;
112 SPLINE_POSITION[NB_SAMPLES] = SPLINE_TIME[NB_SAMPLES] = 1.0f;
299 final int index = (int) (NB_SAMPLES * t);
302 if (index < NB_SAMPLES) {
303 final float t_inf = (float) index / NB_SAMPLES;
    [all...]
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
Scroller.java 68 private static final int NB_SAMPLES = 100;
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);
271 final float t_inf = (float) index / NB_SAMPLES;
272 final float t_sup = (float) (index + 1) / NB_SAMPLES;
OverScroller.java 595 private static final int NB_SAMPLES = 100;
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);
672 if (index < NB_SAMPLES) {
673 final float x_inf = (float) index / NB_SAMPLES;
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
OverScrollerSGV.java 597 private static final int NB_SAMPLES = 100;
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 388 milliseconds