Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/java/android/widget/
H A DScroller.java109 private static final int NB_SAMPLES = 100; field in Scroller
110 private static final float[] SPLINE_POSITION = new float[NB_SAMPLES + 1];
111 private static final float[] SPLINE_TIME = new float[NB_SAMPLES + 1];
124 for (int i = 0; i < NB_SAMPLES; i++) {
125 final float alpha = (float) i / NB_SAMPLES;
151 SPLINE_POSITION[NB_SAMPLES] = SPLINE_TIME[NB_SAMPLES] = 1.0f;
322 final int index = (int) (NB_SAMPLES * t); in computeScrollOffset()
325 if (index < NB_SAMPLES) { in computeScrollOffset()
326 final float t_inf = (float) index / NB_SAMPLES; in computeScrollOffset()
327 final float t_sup = (float) (index + 1) / NB_SAMPLES; in computeScrollOffset()
H A DOverScroller.java591 private static final int NB_SAMPLES = 100; field in OverScroller.SplineOverScroller
602 for (int i = 0; i < NB_SAMPLES; i++) {
603 final float alpha = (float) i / NB_SAMPLES;
629 SPLINE_POSITION[NB_SAMPLES] = SPLINE_TIME[NB_SAMPLES] = 1.0f;
664 final int index = (int) (NB_SAMPLES * x); in adjustDuration()
665 if (index < NB_SAMPLES) { in adjustDuration()
666 final float x_inf = (float) index / NB_SAMPLES; in adjustDuration()
667 final float x_sup = (float) (index + 1) / NB_SAMPLES; in adjustDuration()
918 final int index = (int) (NB_SAMPLES * t); in update()
921 if (index < NB_SAMPLES) { in update()
[all …]
/aosp14/frameworks/base/boot/hiddenapi/
H A Dhiddenapi-max-target-o.txt68510 Landroid/widget/OverScroller$SplineOverScroller;->NB_SAMPLES:I
69439 Landroid/widget/Scroller;->NB_SAMPLES:I