Searched refs:velocityPxPerMs (Results 1 – 3 of 3) sorted by relevance
/packages/apps/Launcher3/src/com/android/launcher3/anim/ |
D | Interpolators.java | 190 float endProgress, float velocityPxPerMs, int totalDistancePx) { 191 velocityPxPerMs = Math.abs(velocityPxPerMs); 195 float overshootBy = OVERSHOOT_FACTOR * velocityPxPerMs * 205 float decelerationPxPerMs = velocityPxPerMs * velocityPxPerMs / (2 * overshootDistance); 209 duration = (long) (velocityPxPerMs / decelerationPxPerMs);
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ |
D | RectFSpringAnim.java | 140 public void start(PointF velocityPxPerMs) { 156 velocityPxPerMs.x * 1000, mMinVisChange, minXValue, maxXValue, 1f, onXEndListener); 158 float startVelocityY = velocityPxPerMs.y * 1000; 173 .setStartVelocity(velocityPxPerMs.y * minVisibleChange)
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/ |
D | WindowTransformSwipeHandler.java | 957 PointF velocityPxPerMs = new PointF(velocity.x / 1000, velocity.y / 1000); in handleNormalGestureEnd() local 972 startShift = Utilities.boundToRange(currentShift - velocityPxPerMs.y in handleNormalGestureEnd() 979 startShift, endShift, endShift, velocityPxPerMs.y, in handleNormalGestureEnd() 991 long baseDuration = Math.round(Math.abs(distanceToTravel / velocityPxPerMs.y)); in handleNormalGestureEnd() 1032 animateToProgress(startShift, endShift, duration, interpolator, endTarget, velocityPxPerMs); in handleNormalGestureEnd() 1056 GestureEndTarget target, PointF velocityPxPerMs) { in animateToProgress() argument 1058 interpolator, target, velocityPxPerMs)); in animateToProgress() 1063 Interpolator interpolator, GestureEndTarget target, PointF velocityPxPerMs) { in animateToProgressInternal() argument 1098 windowAnim.start(velocityPxPerMs); in animateToProgressInternal() 1099 homeAnimFactory.playAtomicAnimation(velocityPxPerMs.y); in animateToProgressInternal() [all …]
|