/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 | GestureStrokeWithPreviewPoints.java | 35 private final HermiteInterpolator mInterpolator = new HermiteInterpolator(); field in GestureStrokeWithPreviewPoints 160 mInterpolator.reset(px, py, 0, size); in interpolateStrokeAndReturnStartIndexOfLastSegment() 171 mInterpolator.setInterval(p0, p1, p2, p3); in interpolateStrokeAndReturnStartIndexOfLastSegment() 172 final double m1 = Math.atan2(mInterpolator.mSlope1Y, mInterpolator.mSlope1X); in interpolateStrokeAndReturnStartIndexOfLastSegment() 173 final double m2 = Math.atan2(mInterpolator.mSlope2Y, mInterpolator.mSlope2X); in interpolateStrokeAndReturnStartIndexOfLastSegment() 177 final double deltaDistance = Math.hypot(mInterpolator.mP1X - mInterpolator.mP2X, in interpolateStrokeAndReturnStartIndexOfLastSegment() 178 mInterpolator.mP1Y - mInterpolator.mP2Y); in interpolateStrokeAndReturnStartIndexOfLastSegment() 188 mInterpolator.interpolate(t); in interpolateStrokeAndReturnStartIndexOfLastSegment() 190 xCoords.add(d1, (int)mInterpolator.mInterpolatedX); in interpolateStrokeAndReturnStartIndexOfLastSegment() 191 yCoords.add(d1, (int)mInterpolator.mInterpolatedY); in interpolateStrokeAndReturnStartIndexOfLastSegment()
|
/packages/apps/MusicFX/src/com/android/musicfx/seekbar/ |
D | ProgressBar.java | 214 private Interpolator mInterpolator; field in ProgressBar 813 if (mInterpolator == null) { in startAnimation() 814 mInterpolator = new LinearInterpolator(); in startAnimation() 822 mAnimation.setInterpolator(mInterpolator); in startAnimation() 859 mInterpolator = interpolator; in setInterpolator() 868 return mInterpolator; in getInterpolator()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | OverScroller.java | 38 private Interpolator mInterpolator; field in OverScroller 73 mInterpolator = interpolator; in OverScroller() 117 mInterpolator = interpolator; in setInterpolator() 309 if (mInterpolator == null) { in computeScrollOffset() 312 q = mInterpolator.getInterpolation(q); in computeScrollOffset()
|
D | Scroller.java | 56 private Interpolator mInterpolator; field in Scroller 128 mInterpolator = interpolator; in Scroller() 261 if (mInterpolator == null) in computeScrollOffset() 264 x = mInterpolator.getInterpolation(x); 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 | 53 TimeInterpolator mInterpolator; field in LauncherViewPropertyAnimator 169 mInterpolator = value; in setInterpolator() 225 mViewPropertyAnimator.setInterpolator(mInterpolator); in start()
|