/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/ |
H A D | PhysicsAnimatorTestUtils.kt | 39 typealias UpdateMatcher = (PhysicsAnimator.AnimationUpdate) -> Boolean 65 val defaultConstructor = PhysicsAnimator.instanceConstructor 66 PhysicsAnimator.instanceConstructor = fun(target: Any): PhysicsAnimator<*> { 118 animator: PhysicsAnimator<T>, 131 object : PhysicsAnimator.EndListener<T> { 166 PhysicsAnimator.getInstance(target) as PhysicsAnimator<T>, properties) 181 animator: PhysicsAnimator<T>, 248 animator: PhysicsAnimator<T>, 314 animator: PhysicsAnimator<T>, 346 fun <T : Any> getAnimationUpdateFrames(animator: PhysicsAnimator<T>): [all …]
|
H A D | PhysicsAnimator.kt | 61 internal val animators = WeakHashMap<Any, PhysicsAnimator<*>>() 75 private val globalDefaultFling = PhysicsAnimator.FlingConfig( 91 class PhysicsAnimator<T> private constructor (target: T) { regex 178 ): PhysicsAnimator<T> { 199 ): PhysicsAnimator<T> { 214 ): PhysicsAnimator<T> { 227 ): PhysicsAnimator<T> { 258 ): PhysicsAnimator<T> { 278 ): PhysicsAnimator<T> { 312 ): PhysicsAnimator<T> { [all …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/ |
H A D | BubbleBarAnimationHelper.java | 31 import com.android.wm.shell.animation.PhysicsAnimator; 49 private final PhysicsAnimator.SpringConfig mScaleInSpringConfig = 50 new PhysicsAnimator.SpringConfig(300f, 0.9f); 53 private final PhysicsAnimator.SpringConfig mScaleOutSpringConfig = 54 new PhysicsAnimator.SpringConfig(900f, 1f); 150 PhysicsAnimator.getInstance(mExpandedViewContainerMatrix).cancel(); in animateExpansion() 151 PhysicsAnimator.getInstance(mExpandedViewContainerMatrix) in animateExpansion() 188 PhysicsAnimator.getInstance(mExpandedViewContainerMatrix).cancel(); in animateCollapse() 189 PhysicsAnimator.getInstance(mExpandedViewContainerMatrix) in animateCollapse() 222 PhysicsAnimator.getInstance(mExpandedViewContainerMatrix).cancel(); in cancelAnimations()
|
H A D | BubbleEducationViewController.kt | 25 import com.android.wm.shell.animation.PhysicsAnimator 39 private var animator: PhysicsAnimator<BubblePopupView>? = null 42 PhysicsAnimator.SpringConfig( 139 private fun createAnimation(view: BubblePopupView): PhysicsAnimator<BubblePopupView> { 140 val animator = PhysicsAnimator.getInstance(view)
|
H A D | BubbleBarMenuViewController.java | 32 import com.android.wm.shell.animation.PhysicsAnimator; 49 private @Nullable PhysicsAnimator<BubbleBarMenuView> mMenuAnimator; 50 private PhysicsAnimator.SpringConfig mMenuSpringConfig; 55 mMenuSpringConfig = new PhysicsAnimator.SpringConfig( in BubbleBarMenuViewController() 126 mMenuAnimator = PhysicsAnimator.getInstance(mMenuView); in animateTransition()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
H A D | PipMotionHelper.java | 40 import com.android.wm.shell.animation.PhysicsAnimator; 91 private PhysicsAnimator<Rect> mTemporaryBoundsPhysicsAnimator; 101 private PhysicsAnimator.FlingConfig mFlingConfigX; 102 private PhysicsAnimator.FlingConfig mFlingConfigY; 104 private PhysicsAnimator.FlingConfig mStashConfigX; 107 private final PhysicsAnimator.SpringConfig mSpringConfig = 108 new PhysicsAnimator.SpringConfig(700f, DAMPING_RATIO_NO_BOUNCY); 117 private final PhysicsAnimator.SpringConfig mCatchUpSpringConfig = 189 mTemporaryBoundsPhysicsAnimator = PhysicsAnimator.getInstance( in init() 553 mFlingConfigX = new PhysicsAnimator.FlingConfig(DEFAULT_FRICTION, [all …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/animation/ |
H A D | PhysicsAnimatorTest.kt | 30 import com.android.wm.shell.animation.PhysicsAnimator.EndListener 31 import com.android.wm.shell.animation.PhysicsAnimator.UpdateListener 62 private lateinit var animator: PhysicsAnimator<View> 64 private val springConfig = PhysicsAnimator.SpringConfig( 66 private val flingConfig = PhysicsAnimator.FlingConfig(2f) 94 animator = PhysicsAnimator.getInstance(testView) 104 assertEquals(animator, PhysicsAnimator.getInstance(testView)) 105 assertEquals(PhysicsAnimator.getInstance(testView), PhysicsAnimator.getInstance(testView)) 106 assertNotEquals(animator, PhysicsAnimator.getInstance(testView2)) 586 animator: PhysicsAnimator<T>, [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/ |
H A D | MediaCarouselScrollHandler.kt | 39 import com.android.wm.shell.animation.PhysicsAnimator 52 PhysicsAnimator.SpringConfig(SpringForce.STIFFNESS_LOW, SpringForce.DAMPING_RATIO_LOW_BOUNCY) 285 PhysicsAnimator.getInstance(this).cancel() 318 PhysicsAnimator.getInstance(this) 384 val physicsAnimator = PhysicsAnimator.getInstance(this) 425 PhysicsAnimator.getInstance(this) 454 PhysicsAnimator.getInstance(this) 459 PhysicsAnimator.getInstance(this).cancel()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/magnetictarget/ |
H A D | MagnetizedObject.kt | 31 import com.android.wm.shell.animation.PhysicsAnimator 136 private val animator: PhysicsAnimator<T> = PhysicsAnimator.getInstance(underlyingObject) 171 var physicsAnimatorUpdateListener: PhysicsAnimator.UpdateListener<T>? = null 177 var physicsAnimatorEndListener: PhysicsAnimator.EndListener<T>? = null 261 var springConfig = PhysicsAnimator.SpringConfig(
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/ |
H A D | DismissView.kt | 38 import com.android.wm.shell.animation.PhysicsAnimator 78 private val animator = PhysicsAnimator.getInstance(circle) 79 private val spring = PhysicsAnimator.SpringConfig(STIFFNESS_LOW, DAMPING_RATIO_LOW_BOUNCY)
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
H A D | BubbleStackView.java | 81 import com.android.wm.shell.animation.PhysicsAnimator; 146 new PhysicsAnimator.SpringConfig( 150 private final PhysicsAnimator.SpringConfig mScaleInSpringConfig = 151 new PhysicsAnimator.SpringConfig(300f, 0.9f); 154 new PhysicsAnimator.SpringConfig(900f, 1f); 157 new PhysicsAnimator.SpringConfig( 857 private PhysicsAnimator.SpringConfig mManageSpringConfig = new PhysicsAnimator.SpringConfig( 2158 PhysicsAnimator.getInstance(mExpandedViewContainerMatrix) in hideExpandedViewIfNeeded() 2558 PhysicsAnimator.getInstance(mFlyout) in setImeVisible() 2999 PhysicsAnimator.getInstance(mManageMenu) in showManageMenu() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | SwipeHelper.java | 56 import com.android.wm.shell.animation.PhysicsAnimator; 57 import com.android.wm.shell.animation.PhysicsAnimator.SpringConfig; 533 PhysicsAnimator<? extends View> anim = in snapChild() 555 private PhysicsAnimator<? extends View> createSnapBackAnimation(View target, float toPosition, in createSnapBackAnimation() 558 return PhysicsAnimator.getInstance((ExpandableNotificationRow) target).spring( in createSnapBackAnimation() 564 return PhysicsAnimator.getInstance(target).spring(TRANSLATION_X, toPosition, startVelocity, in createSnapBackAnimation() 576 PhysicsAnimator.getInstance(target).cancel(); in cancelSnapbackAnimation()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/ |
H A D | ExpandedAnimationController.java | 36 import com.android.wm.shell.animation.PhysicsAnimator; 78 private final PhysicsAnimator.SpringConfig mAnimateOutSpringConfig = 79 new PhysicsAnimator.SpringConfig( 561 PhysicsAnimator.getInstance(child) in onChildRemoved()
|
H A D | StackAnimationController.java | 40 import com.android.wm.shell.animation.PhysicsAnimator; 82 private final PhysicsAnimator.SpringConfig mAnimateOutSpringConfig = 83 new PhysicsAnimator.SpringConfig( 376 final float estimatedY = PhysicsAnimator.estimateFlingEndValue( in flingStackThenSpringToEdge() 378 new PhysicsAnimator.FlingConfig( in flingStackThenSpringToEdge() 738 PhysicsAnimator.getInstance(child) in onChildRemoved()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/ |
H A D | Android.bp | 46 "src/com/android/wm/shell/animation/PhysicsAnimator.kt",
|