Searched refs:mSpring (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Launcher3/src/com/android/launcher3/anim/ |
D | SpringObjectAnimator.java | 50 private SpringAnimation mSpring; field in SpringObjectAnimator 60 mSpring = new SpringAnimation(object, createFloatPropertyCompat(property)); in SpringObjectAnimator() 61 mSpring.setMinimumVisibleChange(minimumVisibleChange); in SpringObjectAnimator() 62 mSpring.setSpring(new SpringForce(0) in SpringObjectAnimator() 65 mSpring.setStartVelocity(0.01f); in SpringObjectAnimator() 66 mProperty = new SpringProperty<>(property, mSpring); in SpringObjectAnimator() 95 mSpring.cancel(); in SpringObjectAnimator() 99 mSpring.addUpdateListener((animation, value, velocity) -> mSpringEnded = false); in SpringObjectAnimator() 100 mSpring.addEndListener((animation, canceled, value, velocity) -> { in SpringObjectAnimator() 122 return mSpring; in getSpring() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | OverScroller.java | 428 private SpringAnimation mSpring; field in OverScroller.SplineOverScroller 558 if (mSpring != null) { in startScroll() 559 mSpring.cancel(); in startScroll() 561 mSpring = new SpringAnimation(this, SPRING_PROPERTY); in startScroll() 563 mSpring.setSpring(new SpringForce(mFinal) in startScroll() 566 mSpring.setStartVelocity(velocity); in startScroll() 567 mSpring.animateToFinalPosition(mFinal); in startScroll() 568 mSpring.addEndListener((animation, canceled, value, velocity1) -> { in startScroll() 571 mSpring = null; in startScroll() 580 if (mSpring != null && mSpring.isRunning()) mSpring.cancel(); in finish() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | SpringRelativeLayout.java | 59 private final SpringAnimation mSpring; field in SpringRelativeLayout 74 mSpring = new SpringAnimation(this, DAMPED_SCROLL, 0); in SpringRelativeLayout() 75 mSpring.setSpring(new SpringForce(0) in SpringRelativeLayout() 127 mSpring.setStartVelocity(velocity); in finishScrollWithVelocity() 128 mSpring.setStartValue(mDampedScrollShift); in finishScrollWithVelocity() 129 mSpring.start(); in finishScrollWithVelocity() 135 mSpring.addEndListener(listener); in finishWithShiftAndVelocity()
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | DragView.java | 593 private final SpringAnimation mSpring; field in DragView.SpringFloatValue 600 mSpring = new SpringAnimation(this, VALUE, 0) in SpringFloatValue() 609 mSpring.animateToFinalPosition(Utilities.boundToRange(value, -mDelta, mDelta)); in animateToPos()
|