Home
last modified time | relevance | path

Searched refs:DynamicAnimation (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/
DPhysicsAnimationLayout.java34 import androidx.dynamicanimation.animation.DynamicAnimation;
98 abstract Set<DynamicAnimation.ViewProperty> getAnimatedProperties(); in getAnimatedProperties()
111 abstract int getNextAnimationInChain(DynamicAnimation.ViewProperty property, int index); in getNextAnimationInChain()
121 DynamicAnimation.ViewProperty property, int index); in getOffsetForChainedPropertyAnimation()
129 abstract SpringForce getSpringForce(DynamicAnimation.ViewProperty property, View view); in getSpringForce()
222 final Set<DynamicAnimation.ViewProperty> allAnimatedProperties = new HashSet<>(); in animationsForChildrenFromIndex()
256 new DynamicAnimation.ViewProperty[0])); in animationsForChildrenFromIndex()
270 Runnable action, DynamicAnimation.ViewProperty property) {
279 Runnable action, DynamicAnimation.ViewProperty... properties) {
284 for (DynamicAnimation.ViewProperty property : properties) {
[all …]
DStackAnimationController.java34 import androidx.dynamicanimation.animation.DynamicAnimation;
142 private HashMap<DynamicAnimation.ViewProperty, DynamicAnimation> mStackPositionAnimations =
283 moveFirstBubbleWithStackFollowing(DynamicAnimation.TRANSLATION_X, x); in moveFirstBubbleWithStackFollowing()
284 moveFirstBubbleWithStackFollowing(DynamicAnimation.TRANSLATION_Y, y); in moveFirstBubbleWithStackFollowing()
313 springFirstBubbleWithStackFollowing(DynamicAnimation.TRANSLATION_X, in springStack()
320 springFirstBubbleWithStackFollowing(DynamicAnimation.TRANSLATION_Y, in springStack()
393 DynamicAnimation.TRANSLATION_X, in flingStackThenSpringToEdge()
402 DynamicAnimation.TRANSLATION_Y, in flingStackThenSpringToEdge()
447 DynamicAnimation.ViewProperty property,
463 property.equals(DynamicAnimation.TRANSLATION_X)
[all …]
DExpandedAnimationController.java32 import androidx.dynamicanimation.animation.DynamicAnimation;
361 DynamicAnimation.TRANSLATION_X, DynamicAnimation.TRANSLATION_Y) { in prepareForBubbleDrag()
410 bubbleView, DynamicAnimation.TRANSLATION_X, DynamicAnimation.TRANSLATION_Y)) { in dragBubbleOut()
512 Set<DynamicAnimation.ViewProperty> getAnimatedProperties() { in getAnimatedProperties()
514 DynamicAnimation.TRANSLATION_X, in getAnimatedProperties()
515 DynamicAnimation.TRANSLATION_Y, in getAnimatedProperties()
516 DynamicAnimation.TRANSLATION_Z, in getAnimatedProperties()
517 DynamicAnimation.SCALE_X, in getAnimatedProperties()
518 DynamicAnimation.SCALE_Y, in getAnimatedProperties()
519 DynamicAnimation.ALPHA); in getAnimatedProperties()
[all …]
DOneTimeEndListener.java19 import androidx.dynamicanimation.animation.DynamicAnimation;
27 public class OneTimeEndListener implements DynamicAnimation.OnAnimationEndListener {
30 public void onAnimationEnd(DynamicAnimation animation, boolean canceled, float value, in onAnimationEnd()
DAnimatableScaleMatrix.java20 import androidx.dynamicanimation.animation.DynamicAnimation;
56 object.setScaleX(value * DynamicAnimation.MIN_VISIBLE_CHANGE_SCALE);
75 object.setScaleY(value * DynamicAnimation.MIN_VISIBLE_CHANGE_SCALE);
90 return scale * (1f / DynamicAnimation.MIN_VISIBLE_CHANGE_SCALE); in getAnimatableValueForScaleFactor()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/shared/animation/
DPhysicsAnimatorTest.kt25 import androidx.dynamicanimation.animation.DynamicAnimation in <lambda>()
112 .spring(DynamicAnimation.TRANSLATION_X, 50f, springConfig) in <lambda>()
121 .spring(DynamicAnimation.TRANSLATION_X, 10f, springConfig) in <lambda>()
122 .spring(DynamicAnimation.TRANSLATION_Y, 50f, springConfig) in <lambda>()
123 .spring(DynamicAnimation.SCALE_Y, 1.1f, springConfig) in <lambda>()
136 .fling(DynamicAnimation.TRANSLATION_X, 1000f /* startVelocity */, flingConfig) in <lambda>()
137 .fling(DynamicAnimation.TRANSLATION_Y, 500f, flingConfig) in <lambda>()
158 .spring(DynamicAnimation.TRANSLATION_X, 10f, springConfig) in <lambda>()
159 .spring(DynamicAnimation.TRANSLATION_Y, 500f, springConfig) in <lambda>()
164 PhysicsAnimatorTestUtils.blockUntilAnimationsEnd(animator, DynamicAnimation.TRANSLATION_X) in <lambda>()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/animation/
DPhysicsAnimationLayoutTest.java34 import androidx.dynamicanimation.animation.DynamicAnimation;
71 DynamicAnimation.TRANSLATION_X, in setUp()
72 DynamicAnimation.TRANSLATION_Y, in setUp()
73 DynamicAnimation.TRANSLATION_Z)); in setUp()
74 mTestableController.setChainedProperties(Sets.newHashSet(DynamicAnimation.TRANSLATION_X)); in setUp()
76 DynamicAnimation.TRANSLATION_X, TEST_TRANSLATION_X_OFFSET); in setUp()
165 mTestableController.setEndActionForProperty(xEndAction, DynamicAnimation.TRANSLATION_X); in testSetEndActions()
166 mTestableController.setEndActionForProperty(yEndAction, DynamicAnimation.TRANSLATION_Y); in testSetEndActions()
200 mTestableController.setEndActionForProperty(xEndListener, DynamicAnimation.TRANSLATION_X); in testRemoveEndListeners()
215 mTestableController.removeEndActionForProperty(DynamicAnimation.TRANSLATION_X); in testRemoveEndListeners()
[all …]
DStackAnimationControllerTest.java33 import androidx.dynamicanimation.animation.DynamicAnimation;
93 waitForPropertyAnimations(DynamicAnimation.TRANSLATION_X, DynamicAnimation.TRANSLATION_Y); in testMoveFirstBubbleWithStackFollowing()
108 waitForPropertyAnimations(DynamicAnimation.TRANSLATION_X, DynamicAnimation.TRANSLATION_Y); in testMoveFirstBubbleWithStackFollowing()
123 DynamicAnimation.TRANSLATION_X, in testFlingSideways()
126 DynamicAnimation.TRANSLATION_Y, in testFlingSideways()
135 waitForPropertyAnimations(DynamicAnimation.TRANSLATION_X, in testFlingSideways()
136 DynamicAnimation.TRANSLATION_Y); in testFlingSideways()
139 waitForPropertyAnimations(DynamicAnimation.TRANSLATION_X, in testFlingSideways()
140 DynamicAnimation.TRANSLATION_Y); in testFlingSideways()
152 waitForPropertyAnimations(DynamicAnimation.TRANSLATION_X, DynamicAnimation.TRANSLATION_Y); in testFlingUpFromBelowBottomCenter()
[all …]
DPhysicsAnimationLayoutTestCase.java30 import androidx.dynamicanimation.animation.DynamicAnimation;
115 void waitForPropertyAnimations(DynamicAnimation.ViewProperty... properties) in waitForPropertyAnimations()
118 for (DynamicAnimation.ViewProperty property : properties) { in waitForPropertyAnimations()
202 Runnable action, DynamicAnimation.ViewProperty property) { in setTestEndActionForProperty()
220 protected void animateValueForChild(DynamicAnimation.ViewProperty property, View view, in animateValueForChild()
260 Set<DynamicAnimation.ViewProperty> getAnimatedProperties() { in getAnimatedProperties()
265 int getNextAnimationInChain(DynamicAnimation.ViewProperty property, int index) { in getNextAnimationInChain()
270 float getOffsetForChainedPropertyAnimation(DynamicAnimation.ViewProperty property, in getOffsetForChainedPropertyAnimation()
276 SpringForce getSpringForce(DynamicAnimation.ViewProperty property, View view) { in getSpringForce()
DExpandedAnimationControllerTest.java34 import androidx.dynamicanimation.animation.DynamicAnimation;
203 waitForPropertyAnimations(DynamicAnimation.TRANSLATION_X, DynamicAnimation.TRANSLATION_Y); in waitForAnimation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuAnimationController.java32 import androidx.dynamicanimation.animation.DynamicAnimation;
79 final HashMap<DynamicAnimation.ViewProperty, DynamicAnimation> mPositionAnimations =
125 springMenuWith(DynamicAnimation.TRANSLATION_X, in moveToPositionX()
130 DynamicAnimation.TRANSLATION_X.setValue(mMenuView, positionX); in moveToPositionX()
140 springMenuWith(DynamicAnimation.TRANSLATION_Y, in moveToPositionY()
145 DynamicAnimation.TRANSLATION_Y.setValue(mMenuView, positionY); in moveToPositionY()
211 flingThenSpringMenuWith(DynamicAnimation.TRANSLATION_X, in flingMenuThenSpringToEdge()
217 flingThenSpringMenuWith(DynamicAnimation.TRANSLATION_Y, in flingMenuThenSpringToEdge()
224 private void flingThenSpringMenuWith(DynamicAnimation.ViewProperty property, float velocity,
231 property.equals(DynamicAnimation.TRANSLATION_X)
[all …]
DDragToInteractAnimationController.java29 import androidx.dynamicanimation.animation.DynamicAnimation;
197 DynamicAnimation.TRANSLATION_X), in createMagnetizedObjectAndAnimator()
199 DynamicAnimation.TRANSLATION_Y)) { in createMagnetizedObjectAndAnimator()
DDragToInteractView.kt38 import androidx.dynamicanimation.animation.DynamicAnimation
198 animator.spring(DynamicAnimation.TRANSLATION_Y, 0f, spring).start() in show()
220 .spring(DynamicAnimation.TRANSLATION_Y, height.toFloat(), spring) in hide()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DMenuAnimationControllerTest.java36 import androidx.dynamicanimation.animation.DynamicAnimation;
66 private ArgumentCaptor<DynamicAnimation.OnAnimationEndListener> mEndListenerCaptor;
95 mEndListenerCaptor = ArgumentCaptor.forClass(DynamicAnimation.OnAnimationEndListener.class); in setUp()
103 mMenuAnimationController.mPositionAnimations.values().forEach(DynamicAnimation::cancel); in tearDown()
171 final Optional<DynamicAnimation> anyAnimation = in startSpringAnimationsAndEndOneAnimation_notTriggerEndAction()
200 .forEach(listener -> listener.onAnimationEnd(mock(DynamicAnimation.class), in flingThenSpringAnimationsAreEnded_triggerEndAction()
217 final Optional<DynamicAnimation.OnAnimationEndListener> anyAnimation = in existFlingIsRunningAndTheOtherAreEnd_notTriggerEndAction()
220 listener -> listener.onAnimationEnd(mock(DynamicAnimation.class), /* canceled */ in existFlingIsRunningAndTheOtherAreEnd_notTriggerEndAction()
235 DynamicAnimation.TRANSLATION_X).isRunning()).isTrue(); in tuck_animates()
243 DynamicAnimation.TRANSLATION_X).isRunning()).isTrue(); in untuck_animates()
[all …]
DMenuListViewTouchHandlerTest.java38 import androidx.dynamicanimation.animation.DynamicAnimation;
252 mMenuAnimationController.mPositionAnimations.values().forEach(DynamicAnimation::cancel); in tearDown()
/frameworks/base/libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/animation/
DPhysicsAnimator.kt22 import androidx.dynamicanimation.animation.DynamicAnimation in <lambda>()
628 anim: DynamicAnimation<*>, in configureDynamicAnimation()
630 ): DynamicAnimation<*> { in configureDynamicAnimation()
1017 DynamicAnimation.TRANSLATION_X -> "translationX" in getReadablePropertyName()
1018 DynamicAnimation.TRANSLATION_Y -> "translationY" in getReadablePropertyName()
1019 DynamicAnimation.TRANSLATION_Z -> "translationZ" in getReadablePropertyName()
1020 DynamicAnimation.SCALE_X -> "scaleX" in getReadablePropertyName()
1021 DynamicAnimation.SCALE_Y -> "scaleY" in getReadablePropertyName()
1022 DynamicAnimation.ROTATION -> "rotation" in getReadablePropertyName()
1023 DynamicAnimation.ROTATION_X -> "rotationX" in getReadablePropertyName()
[all …]
/frameworks/base/core/java/android/window/
DBackProgressAnimator.java25 import com.android.internal.dynamicanimation.animation.DynamicAnimation;
40 public class BackProgressAnimator implements DynamicAnimation.OnAnimationUpdateListener {
59 private final DynamicAnimation.OnAnimationEndListener mOnAnimationEndListener =
65 private final DynamicAnimation.OnAnimationUpdateListener mOnBackInvokedFlingUpdateListener =
91 public void onAnimationUpdate(DynamicAnimation animation, float value, float velocity) { in onAnimationUpdate()
/frameworks/base/core/java/com/android/internal/dynamicanimation/animation/
DFlingAnimation.java39 public final class FlingAnimation extends DynamicAnimation<FlingAnimation> {
174 private final DynamicAnimation.MassState mMassState = new DynamicAnimation.MassState();
DDynamicAnimation.java43 public abstract class DynamicAnimation<T extends DynamicAnimation<T>> class
343 DynamicAnimation(final FloatValueHolder floatValueHolder) { in DynamicAnimation() method in DynamicAnimation
366 <K> DynamicAnimation(K object, FloatProperty<K> property) { in DynamicAnimation() method in DynamicAnimation
794 void onAnimationEnd(DynamicAnimation animation, boolean canceled, float value, in onAnimationEnd()
813 void onAnimationUpdate(DynamicAnimation animation, float value, float velocity); in onAnimationUpdate()
DSpringForce.java106 private final DynamicAnimation.MassState mMassState = new DynamicAnimation.MassState();
265 DynamicAnimation.MassState updateValues(double lastDisplacement, double lastVelocity, in updateValues()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/
DBubbleEducationViewController.kt28 import androidx.dynamicanimation.animation.DynamicAnimation
176 ?.spring(DynamicAnimation.ALPHA, if (show) 1f else 0f) in animateTransition()
177 ?.spring(DynamicAnimation.SCALE_X, if (show) 1f else EDU_SCALE_HIDDEN) in animateTransition()
178 ?.spring(DynamicAnimation.SCALE_Y, if (show) 1f else EDU_SCALE_HIDDEN) in animateTransition()
DBubbleBarMenuViewController.java28 import androidx.dynamicanimation.animation.DynamicAnimation;
129 .spring(DynamicAnimation.ALPHA, show ? 1f : 0f) in animateTransition()
130 .spring(DynamicAnimation.SCALE_Y, show ? 1f : MENU_INITIAL_SCALE) in animateTransition()
/frameworks/base/packages/SystemUI/unfold/src/com/android/systemui/unfold/progress/
DPhysicsBasedUnfoldTransitionProgressProvider.kt28 import androidx.dynamicanimation.animation.DynamicAnimation
60 ) : UnfoldTransitionProgressProvider, FoldUpdatesListener, DynamicAnimation.OnAnimationEndListener {
205 animation: DynamicAnimation<out DynamicAnimation<*>>, in onAnimationEnd()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/
DDismissView.kt35 import androidx.dynamicanimation.animation.DynamicAnimation
151 .spring(DynamicAnimation.TRANSLATION_Y, 0f, spring) in show()
168 .spring(DynamicAnimation.TRANSLATION_Y, height.toFloat(), in hide()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/magnetictarget/
DMagnetizedObject.kt28 import androidx.dynamicanimation.animation.DynamicAnimation in <lambda>()
686 DynamicAnimation.TRANSLATION_X, in <lambda>()
687 DynamicAnimation.TRANSLATION_Y) { in <lambda>()

12