/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | HermiteInterpolatorTests.java | 24 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/ |
D | GestureStrokeDrawingPoints.java | 35 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/ |
D | LauncherScroller.java | 52 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()
|
D | LauncherViewPropertyAnimator.java | 54 TimeInterpolator mInterpolator; field in LauncherViewPropertyAnimator 169 mInterpolator = value; in setInterpolator() 225 mViewPropertyAnimator.setInterpolator(mInterpolator); in start()
|
D | Workspace.java | 1357 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/ |
D | OverScrollerSGV.java | 41 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/ |
D | TransitionImageAnimation.java | 65 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/ |
D | Scroller.java | 55 private Interpolator mInterpolator; field in Scroller 127 mInterpolator = interpolator; in Scroller() 260 if (mInterpolator == null) in computeScrollOffset() 263 x = mInterpolator.getInterpolation(x); in computeScrollOffset()
|
D | OverScroller.java | 37 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/ |
D | Animation.java | 54 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/ |
D | Paper.java | 107 private final Interpolator mInterpolator; field in EdgeAnimation 118 mInterpolator = new DecelerateInterpolator(); in EdgeAnimation() 158 ? t : mInterpolator.getInterpolation(t); in update()
|
D | EdgeEffect.java | 108 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/ |
D | LauncherViewPropertyAnimator.java | 52 TimeInterpolator mInterpolator; field in LauncherViewPropertyAnimator 168 mInterpolator = value; in setInterpolator() 224 mViewPropertyAnimator.setInterpolator(mInterpolator); in start()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | LauncherEdgeEffect.java | 70 private final Interpolator mInterpolator; field in LauncherEdgeEffect 99 mInterpolator = new DecelerateInterpolator(); in LauncherEdgeEffect() 324 final float interp = mInterpolator.getInterpolation(t); in update()
|