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.java24 private final HermiteInterpolator mInterpolator = new HermiteInterpolator(); field in HermiteInterpolatorTests
62 mInterpolator.reset(mXCoords, mYCoords, p0, p3 + 1); in testP0P1()
63 mInterpolator.setInterval(p0 - 1, p0, p1, p1 + 1); in testP0P1()
64 assertEquals("p0x", mXCoords[p0], mInterpolator.mP1X); in testP0P1()
65 assertEquals("p0y", mYCoords[p0], mInterpolator.mP1Y); in testP0P1()
66 assertEquals("p1x", mXCoords[p1], mInterpolator.mP2X); in testP0P1()
67 assertEquals("p1y", mYCoords[p1], mInterpolator.mP2Y); in testP0P1()
69 assertFloatEquals("slope x p0", -0.25f, mInterpolator.mSlope1X); in testP0P1()
70 assertFloatEquals("slope y p0", -0.75f, mInterpolator.mSlope1Y); in testP0P1()
72 assertFloatEquals("slope x p1", 1.50f, mInterpolator.mSlope2X); 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/Launcher3/src/com/android/launcher3/
DLauncherScroller.java52 private TimeInterpolator mInterpolator; field in LauncherScroller
126 mInterpolator = interpolator; in setInterpolator()
153 mInterpolator = interpolator; in LauncherScroller()
289 if (mInterpolator == null) in computeScrollOffset()
292 x = mInterpolator.getInterpolation(x); in computeScrollOffset()
DLauncherViewPropertyAnimator.java54 TimeInterpolator mInterpolator; field in LauncherViewPropertyAnimator
169 mInterpolator = value; in setInterpolator()
225 mViewPropertyAnimator.setInterpolator(mInterpolator); in start()
DWorkspace.java1357 Interpolator mInterpolator; field in Workspace.WallpaperOffsetInterpolator
1368 mInterpolator = new DecelerateInterpolator(1.5f); in WallpaperOffsetInterpolator()
1396 float t1 = mInterpolator.getInterpolation(t0); in computeScrollOffset()
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
DOverScrollerSGV.java41 private Interpolator mInterpolator; field in OverScrollerSGV
76 mInterpolator = interpolator; in OverScrollerSGV()
118 mInterpolator = interpolator; in setInterpolator()
308 if (mInterpolator == null) { in computeScrollOffset()
309 q = mInterpolator.getInterpolation(q); in computeScrollOffset()
311 q = mInterpolator.getInterpolation(q); in computeScrollOffset()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DTransitionImageAnimation.java65 private Interpolator mInterpolator = new DecelerateInterpolator(); field in TransitionImageAnimation
119 mInterpolator = interpolator; in interpolator()
124 return mInterpolator; in getInterpolator()
269 v.setInterpolator(mInterpolator); in startTransition()
/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/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/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/Launcher2/src/com/android/launcher2/
DLauncherViewPropertyAnimator.java52 TimeInterpolator mInterpolator; field in LauncherViewPropertyAnimator
168 mInterpolator = value; in setInterpolator()
224 mViewPropertyAnimator.setInterpolator(mInterpolator); in start()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DLauncherEdgeEffect.java70 private final Interpolator mInterpolator; field in LauncherEdgeEffect
99 mInterpolator = new DecelerateInterpolator(); in LauncherEdgeEffect()
324 final float interp = mInterpolator.getInterpolation(t); in update()