Home
last modified time | relevance | path

Searched refs:PhysicsAnimator (Results 1 – 15 of 15) sorted by relevance

/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/
H A DPhysicsAnimatorTestUtils.kt39 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 DPhysicsAnimator.kt61 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 DBubbleBarAnimationHelper.java31 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 DBubbleEducationViewController.kt25 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 DBubbleBarMenuViewController.java32 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 DPipMotionHelper.java40 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 DPhysicsAnimatorTest.kt30 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 DMediaCarouselScrollHandler.kt39 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 DMagnetizedObject.kt31 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 DDismissView.kt38 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 DBubbleStackView.java81 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 DSwipeHelper.java56 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 DExpandedAnimationController.java36 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 DStackAnimationController.java40 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 DAndroid.bp46 "src/com/android/wm/shell/animation/PhysicsAnimator.kt",