Home
last modified time | relevance | path

Searched refs:DynamicAnimation (Results 1 – 25 of 48) 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuAnimationController.java33 import androidx.dynamicanimation.animation.DynamicAnimation;
81 final HashMap<DynamicAnimation.ViewProperty, DynamicAnimation> mPositionAnimations =
129 springMenuWith(DynamicAnimation.TRANSLATION_X, in moveToPositionX()
134 DynamicAnimation.TRANSLATION_X.setValue(mMenuView, positionX); in moveToPositionX()
145 springMenuWith(DynamicAnimation.TRANSLATION_Y, in moveToPositionY()
150 DynamicAnimation.TRANSLATION_Y.setValue(mMenuView, positionY); in moveToPositionY()
225 flingThenSpringMenuWith(DynamicAnimation.TRANSLATION_X, in flingMenuThenSpringToEdge()
232 flingThenSpringMenuWith(DynamicAnimation.TRANSLATION_Y, in flingMenuThenSpringToEdge()
238 flingThenSpringMenuWith(DynamicAnimation.TRANSLATION_Y, in flingMenuThenSpringToEdge()
246 private void flingThenSpringMenuWith(DynamicAnimation.ViewProperty property, float velocity,
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/dialog/ui/utils/
DJankListenerFactory.kt21 import androidx.dynamicanimation.animation.DynamicAnimation in <lambda>()
33 fun show(view: View): DynamicAnimation.OnAnimationUpdateListener { in <lambda>()
37 fun dismiss(view: View): DynamicAnimation.OnAnimationUpdateListener { in <lambda>()
44 ): DynamicAnimation.OnAnimationUpdateListener { in <lambda>()
46 return DynamicAnimation.OnAnimationUpdateListener { animation, _, _ -> in <lambda>()
DSuspendAnimators.kt24 import androidx.dynamicanimation.animation.DynamicAnimation in <lambda>()
104 DynamicAnimation.OnAnimationUpdateListener { _, value, _ -> onAnimationUpdate(value) } in continuation()
106 DynamicAnimation.OnAnimationEndListener { _, _, _, _ -> continuation.resumeIfCan(Unit) } in continuation()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DMenuAnimationControllerTest.java35 import androidx.dynamicanimation.animation.DynamicAnimation;
67 private ArgumentCaptor<DynamicAnimation.OnAnimationEndListener> mEndListenerCaptor;
98 mEndListenerCaptor = ArgumentCaptor.forClass(DynamicAnimation.OnAnimationEndListener.class); in setUp()
106 mMenuAnimationController.mPositionAnimations.values().forEach(DynamicAnimation::cancel); in tearDown()
174 final Optional<DynamicAnimation> anyAnimation = in startSpringAnimationsAndEndOneAnimation_notTriggerEndAction()
203 .forEach(listener -> listener.onAnimationEnd(mock(DynamicAnimation.class), in flingThenSpringAnimationsAreEnded_triggerEndAction()
220 final Optional<DynamicAnimation.OnAnimationEndListener> anyAnimation = in existFlingIsRunningAndTheOtherAreEnd_notTriggerEndAction()
223 listener -> listener.onAnimationEnd(mock(DynamicAnimation.class), /* canceled */ in existFlingIsRunningAndTheOtherAreEnd_notTriggerEndAction()
238 DynamicAnimation.TRANSLATION_X).isRunning()).isTrue(); in tuck_animates()
246 DynamicAnimation.TRANSLATION_X).isRunning()).isTrue(); in untuck_animates()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/education/
DDesktopWindowingEducationPromoController.kt33 import androidx.dynamicanimation.animation.DynamicAnimation in <lambda>()
143 ?.spring(DynamicAnimation.ALPHA, 1f) in <lambda>()
144 ?.spring(DynamicAnimation.SCALE_X, 1f) in <lambda>()
145 ?.spring(DynamicAnimation.SCALE_Y, 1f) in <lambda>()
152 ?.spring(DynamicAnimation.ALPHA, 0f) in <lambda>()
153 ?.spring(DynamicAnimation.SCALE_X, 0f) in <lambda>()
154 ?.spring(DynamicAnimation.SCALE_Y, 0f) in <lambda>()
DDesktopWindowingEducationTooltipController.kt38 import androidx.dynamicanimation.animation.DynamicAnimation in <lambda>()
149 ?.spring(DynamicAnimation.ALPHA, 1f) in <lambda>()
150 ?.spring(DynamicAnimation.SCALE_X, 1f) in <lambda>()
151 ?.spring(DynamicAnimation.SCALE_Y, 1f) in <lambda>()
158 ?.spring(DynamicAnimation.ALPHA, 0f) in <lambda>()
159 ?.spring(DynamicAnimation.SCALE_X, 0f) in <lambda>()
160 ?.spring(DynamicAnimation.SCALE_Y, 0f) in <lambda>()
/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()
1022 DynamicAnimation.TRANSLATION_X -> "translationX" in getReadablePropertyName()
1023 DynamicAnimation.TRANSLATION_Y -> "translationY" in getReadablePropertyName()
1024 DynamicAnimation.TRANSLATION_Z -> "translationZ" in getReadablePropertyName()
1025 DynamicAnimation.SCALE_X -> "scaleX" in getReadablePropertyName()
1026 DynamicAnimation.SCALE_Y -> "scaleY" in getReadablePropertyName()
1027 DynamicAnimation.ROTATION -> "rotation" in getReadablePropertyName()
1028 DynamicAnimation.ROTATION_X -> "rotationX" in getReadablePropertyName()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DPhysicsPropertyAnimator.kt21 import com.android.internal.dynamicanimation.animation.DynamicAnimation in <lambda>()
70 var doubleOvershootAvoidingListener: DynamicAnimation.OnAnimationUpdateListener? = null
116 endListener: DynamicAnimation.OnAnimationEndListener? = null, in setProperty()
137 endListener: DynamicAnimation.OnAnimationEndListener?, in startAnimation()
169 DynamicAnimation.OnAnimationUpdateListener { _, offset: Float, velocity: Float -> in startAnimation()
/frameworks/base/core/java/android/window/
DBackProgressAnimator.java32 import com.android.internal.dynamicanimation.animation.DynamicAnimation;
47 public class BackProgressAnimator implements DynamicAnimation.OnAnimationUpdateListener {
72 private final DynamicAnimation.OnAnimationEndListener mOnAnimationEndListener =
78 private final DynamicAnimation.OnAnimationUpdateListener mOnBackInvokedFlingUpdateListener =
105 public void onAnimationUpdate(DynamicAnimation animation, float value, float velocity) { in onAnimationUpdate()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/
DPhysicsPropertyAnimatorTest.kt26 import com.android.internal.dynamicanimation.animation.DynamicAnimation
60 private var finishListener: DynamicAnimation.OnAnimationEndListener? = null
65 finishListener = Mockito.mock(DynamicAnimation.OnAnimationEndListener::class.java) in setUp()
226 val finishListener2 = Mockito.mock(DynamicAnimation.OnAnimationEndListener::class.java) in testUsingListenerProperties()
231 ): DynamicAnimation.OnAnimationEndListener { in testUsingListenerProperties()
/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
798 void onAnimationEnd(DynamicAnimation animation, boolean canceled, float value, in onAnimationEnd()
817 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/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DAnimationProperties.java26 import com.android.internal.dynamicanimation.animation.DynamicAnimation;
85 public DynamicAnimation.OnAnimationEndListener getAnimationEndListener(Property property) {
105 public Consumer<DynamicAnimation> getAnimationStartListener(Property property) {
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/back/
DFlingOnBackAnimationCallback.kt28 import com.android.internal.dynamicanimation.animation.DynamicAnimation in <lambda>()
55 DynamicAnimation.OnAnimationUpdateListener { _, progress: Float, _ -> in <lambda>()
69 DynamicAnimation.OnAnimationEndListener { _, _, _, _ -> in <lambda>()
/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()

12