/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | HermiteInterpolatorTests.java | 30 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/ |
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/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/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | MultiValueUpdateListener.java | 40 newPercent = prop.mInterpolator.getInterpolation(newPercent); in onAnimationUpdate() 60 private final Interpolator mInterpolator; field in MultiValueUpdateListener.FloatProp 67 mInterpolator = i; in FloatProp()
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/ |
D | CarUiSmoothScroller.java | 48 Interpolator mInterpolator; field in CarUiSmoothScroller 62 mInterpolator = in init() 87 action.update(0, -dy, time, mInterpolator); in onTargetFound()
|
/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/modules/Permission/PermissionController/src/android/support/wearable/view/ |
D | ProgressDrawable.java | 71 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/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/Launcher3/src/com/android/launcher3/util/ |
D | WallpaperOffsetInterpolator.java | 194 private final Interpolator mInterpolator; field in WallpaperOffsetInterpolator.OffsetHandler 207 mInterpolator = Interpolators.DEACCEL_1_5; in OffsetHandler() 234 float t1 = mInterpolator.getInterpolation(t0); in handleMessage()
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/util/ |
D | PagedSmoothScroller.java | 42 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/car-ui-lib/src/androidTest/java/com/android/car/ui/recyclerview/ |
D | CarUiSmoothScrollerTest.java | 59 assertThat(mCarUiSmoothScroller.mInterpolator).isNotNull(); in calculateTimeForScrolling_shouldInitializeAllValues()
|