Home
last modified time | relevance | path

Searched refs:mInterpolator (Results 1 – 14 of 14) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DHermiteInterpolatorTests.java30 private final HermiteInterpolator mInterpolator = new HermiteInterpolator(); field in HermiteInterpolatorTests
58 mInterpolator.reset(mXCoords, mYCoords, p0, p3 + 1); in testP0P1()
59 mInterpolator.setInterval(p0 - 1, p0, p1, p1 + 1); in testP0P1()
60 assertEquals("p0x", mXCoords[p0], mInterpolator.mP1X); in testP0P1()
61 assertEquals("p0y", mYCoords[p0], mInterpolator.mP1Y); in testP0P1()
62 assertEquals("p1x", mXCoords[p1], mInterpolator.mP2X); in testP0P1()
63 assertEquals("p1y", mYCoords[p1], mInterpolator.mP2Y); in testP0P1()
65 assertEquals("slope x p0", -0.25f, mInterpolator.mSlope1X, EPSILON); in testP0P1()
66 assertEquals("slope y p0", -0.75f, mInterpolator.mSlope1Y, EPSILON); in testP0P1()
68 assertEquals("slope x p1", 1.50f, mInterpolator.mSlope2X, EPSILON); in testP0P1()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureStrokeDrawingPoints.java35 private final HermiteInterpolator mInterpolator = new HermiteInterpolator(); field in GestureStrokeDrawingPoints
131 mInterpolator.reset(px, py, 0, size); in interpolateStrokeAndReturnStartIndexOfLastSegment()
142 mInterpolator.setInterval(p0, p1, p2, p3); in interpolateStrokeAndReturnStartIndexOfLastSegment()
143 final double m1 = Math.atan2(mInterpolator.mSlope1Y, mInterpolator.mSlope1X); in interpolateStrokeAndReturnStartIndexOfLastSegment()
144 final double m2 = Math.atan2(mInterpolator.mSlope2Y, mInterpolator.mSlope2X); in interpolateStrokeAndReturnStartIndexOfLastSegment()
148 final double deltaDistance = Math.hypot(mInterpolator.mP1X - mInterpolator.mP2X, in interpolateStrokeAndReturnStartIndexOfLastSegment()
149 mInterpolator.mP1Y - mInterpolator.mP2Y); in interpolateStrokeAndReturnStartIndexOfLastSegment()
159 mInterpolator.interpolate(t); in interpolateStrokeAndReturnStartIndexOfLastSegment()
161 xCoords.addAt(d1, (int)mInterpolator.mInterpolatedX); in interpolateStrokeAndReturnStartIndexOfLastSegment()
162 yCoords.addAt(d1, (int)mInterpolator.mInterpolatedY); in interpolateStrokeAndReturnStartIndexOfLastSegment()
/packages/apps/Gallery2/src/com/android/gallery3d/anim/
DAnimation.java54 private Interpolator mInterpolator; field in Animation
57 mInterpolator = interpolator; in setInterpolator()
85 Interpolator i = mInterpolator; in calculate()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DMultiValueUpdateListener.java40 newPercent = prop.mInterpolator.getInterpolation(newPercent); in onAnimationUpdate()
56 private final Interpolator mInterpolator; field in MultiValueUpdateListener.FloatProp
63 mInterpolator = i; in FloatProp()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/
DCarUiSmoothScroller.java48 Interpolator mInterpolator; field in CarUiSmoothScroller
62 mInterpolator = in init()
87 action.update(0, -dy, time, mInterpolator); in onTargetFound()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DOverScroller.java45 private TimeInterpolator mInterpolator; field in OverScroller
80 mInterpolator = SCROLL; in OverScroller()
82 mInterpolator = interpolator; in OverScroller()
90 mInterpolator = SCROLL; in setInterpolator()
92 mInterpolator = interpolator; in setInterpolator()
219 final float q = mInterpolator.getInterpolation(elapsedTime / (float) duration); in computeScrollOffset()
DWallpaperOffsetInterpolator.java191 private final Interpolator mInterpolator; field in WallpaperOffsetInterpolator.OffsetHandler
204 mInterpolator = Interpolators.DEACCEL_1_5; in OffsetHandler()
231 float t1 = mInterpolator.getInterpolation(t0); in handleMessage()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPaper.java107 private final Interpolator mInterpolator; field in EdgeAnimation
118 mInterpolator = new DecelerateInterpolator(); in EdgeAnimation()
158 ? t : mInterpolator.getInterpolation(t); in update()
DEdgeEffect.java108 private final Interpolator mInterpolator; field in EdgeEffect
141 mInterpolator = new DecelerateInterpolator(); in EdgeEffect()
352 final float interp = mInterpolator.getInterpolation(t); in update()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DScroller.java55 private Interpolator mInterpolator; field in Scroller
127 mInterpolator = interpolator; in Scroller()
260 if (mInterpolator == null) in computeScrollOffset()
263 x = mInterpolator.getInterpolation(x); in computeScrollOffset()
DOverScroller.java37 private Interpolator mInterpolator; field in OverScroller
72 mInterpolator = interpolator; in OverScroller()
116 mInterpolator = interpolator; in setInterpolator()
306 if (mInterpolator == null) { in computeScrollOffset()
309 q = mInterpolator.getInterpolation(q); in computeScrollOffset()
/packages/apps/PermissionController/src/android/support/wearable/view/
DProgressDrawable.java71 private static final TimeInterpolator mInterpolator = Gusterpolator.INSTANCE; field in ProgressDrawable
126 sweepAngle = MAX_SWEEP * mInterpolator.getInterpolation( in draw()
129 sweepAngle = MAX_SWEEP * (1.0f - mInterpolator.getInterpolation( in draw()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/util/
DPagedSmoothScroller.java42 private final Interpolator mInterpolator = new DecelerateInterpolator(1.8f); field in PagedSmoothScroller
70 action.update(0, -dy, time, mInterpolator); in onTargetFound()
/packages/apps/Car/libs/car-ui-lib/tests/robotests/src/com/android/car/ui/recyclerview/
DCarUiSmoothScrollerTest.java48 assertThat(mCarUiSmoothScroller.mInterpolator).isNotNull(); in calculateTimeForScrolling_shouldInitializeAllValues()