Home
last modified time | relevance | path

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

/frameworks/base/libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/animation/
DPhysicsAnimatorTestUtils.kt39 typealias UpdateMatcher = (PhysicsAnimator.AnimationUpdate) -> Boolean in <lambda>()
41 ArrayMap<FloatPropertyCompat<in T>, ArrayList<PhysicsAnimator.AnimationUpdate>> in <lambda>()
57 private val animatorTestHelpers = HashMap<PhysicsAnimator<*>, AnimatorTestHelper<*>>() in <lambda>()
65 PhysicsAnimator.onAnimatorCreated = { animator, target -> in <lambda>()
115 animator: PhysicsAnimator<T>, in <lambda>()
128 object : PhysicsAnimator.EndListener<T> { in <lambda>()
163 PhysicsAnimator.getInstance(target) as PhysicsAnimator<T>, *properties) in <lambda>()
178 animator: PhysicsAnimator<T>, in <lambda>()
183 getAnimationTestHelper(animator).addTestUpdateListener(object : PhysicsAnimator in <lambda>()
245 animator: PhysicsAnimator<T>, in <lambda>()
[all …]
DPhysicsAnimator.kt28 import com.android.wm.shell.shared.animation.PhysicsAnimator.Companion.getInstance in <lambda>()
38 val <T : View> T.physicsAnimator: PhysicsAnimator<T> get() { return getInstance(this) } in <lambda>()
55 ArrayMap<FloatPropertyCompat<in T>, PhysicsAnimator.AnimationUpdate>
61 internal val animators = WeakHashMap<Any, PhysicsAnimator<*>>()
67 private val globalDefaultSpring = PhysicsAnimator.SpringConfig(
75 private val globalDefaultFling = PhysicsAnimator.FlingConfig(
91 class PhysicsAnimator<T> private constructor (target: T) { class
178 ): PhysicsAnimator<T> { in spring()
199 ): PhysicsAnimator<T> { in spring()
214 ): PhysicsAnimator<T> { in spring()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipMotionHelper.java49 import com.android.wm.shell.shared.animation.PhysicsAnimator;
96 private PhysicsAnimator<Rect> mTemporaryBoundsPhysicsAnimator;
103 private final PhysicsAnimator.UpdateListener<Rect> mResizePipUpdateListener;
106 private PhysicsAnimator.FlingConfig mFlingConfigX;
107 private PhysicsAnimator.FlingConfig mFlingConfigY;
109 private PhysicsAnimator.FlingConfig mStashConfigX;
112 private final PhysicsAnimator.SpringConfig mSpringConfig =
113 new PhysicsAnimator.SpringConfig(700f, DAMPING_RATIO_NO_BOUNCY);
117 private final PhysicsAnimator.SpringConfig mAnimateToDismissSpringConfig =
118 new PhysicsAnimator.SpringConfig(STIFFNESS_MEDIUM, DAMPING_RATIO_NO_BOUNCY);
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/
DPipMotionHelper.java49 import com.android.wm.shell.shared.animation.PhysicsAnimator;
99 private PhysicsAnimator<Rect> mTemporaryBoundsPhysicsAnimator;
106 private final PhysicsAnimator.UpdateListener<Rect> mResizePipUpdateListener;
109 private PhysicsAnimator.FlingConfig mFlingConfigX;
110 private PhysicsAnimator.FlingConfig mFlingConfigY;
112 private PhysicsAnimator.FlingConfig mStashConfigX;
115 private final PhysicsAnimator.SpringConfig mSpringConfig =
116 new PhysicsAnimator.SpringConfig(700f, DAMPING_RATIO_NO_BOUNCY);
120 private final PhysicsAnimator.SpringConfig mAnimateToDismissSpringConfig =
121 new PhysicsAnimator.SpringConfig(STIFFNESS_MEDIUM, DAMPING_RATIO_NO_BOUNCY);
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/shared/animation/
DPhysicsAnimatorTest.kt30 import com.android.wm.shell.shared.animation.PhysicsAnimator.EndListener in <lambda>()
31 import com.android.wm.shell.shared.animation.PhysicsAnimator.UpdateListener in <lambda>()
62 private lateinit var animator: PhysicsAnimator<View> in <lambda>()
64 private val springConfig = PhysicsAnimator.SpringConfig( in <lambda>()
66 private val flingConfig = PhysicsAnimator.FlingConfig(2f) in <lambda>()
94 animator = PhysicsAnimator.getInstance(testView) in <lambda>()
104 assertEquals(animator, PhysicsAnimator.getInstance(testView)) in <lambda>()
105 assertEquals(PhysicsAnimator.getInstance(testView), PhysicsAnimator.getInstance(testView)) in <lambda>()
106 assertNotEquals(animator, PhysicsAnimator.getInstance(testView2)) in <lambda>()
587 animator: PhysicsAnimator<T>, in <lambda>()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/
DBubbleBarMenuViewController.java33 import com.android.wm.shell.shared.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()
DBubbleBarAnimationHelper.java51 import com.android.wm.shell.shared.animation.PhysicsAnimator;
76 private final PhysicsAnimator.SpringConfig mScaleInSpringConfig =
77 new PhysicsAnimator.SpringConfig(300f, 0.9f);
80 private final PhysicsAnimator.SpringConfig mScaleOutSpringConfig =
81 new PhysicsAnimator.SpringConfig(900f, 1f);
176 PhysicsAnimator.getInstance(mExpandedViewContainerMatrix).cancel(); in animateExpansion()
177 PhysicsAnimator.getInstance(mExpandedViewContainerMatrix) in animateExpansion()
215 PhysicsAnimator.getInstance(mExpandedViewContainerMatrix).cancel(); in animateCollapse()
216 PhysicsAnimator.getInstance(mExpandedViewContainerMatrix) in animateCollapse()
441 PhysicsAnimator.getInstance(mExpandedViewContainerMatrix).cancel(); in cancelAnimations()
DBubbleEducationViewController.kt39 import com.android.wm.shell.shared.animation.PhysicsAnimator
50 private var animator: PhysicsAnimator<BubblePopupView>? = null in onEducationVisibilityChanged()
53 PhysicsAnimator.SpringConfig( in onEducationVisibilityChanged()
210 private fun createAnimator(): PhysicsAnimator<BubblePopupView>? { in createAnimator()
212 PhysicsAnimator.getInstance(it).apply { setDefaultSpringConfig(springConfig) } in createAnimator()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/magnetictarget/
DMagnetizedObject.kt31 import com.android.wm.shell.shared.animation.PhysicsAnimator in <lambda>()
140 private val animator: PhysicsAnimator<T> = PhysicsAnimator.getInstance(underlyingObject) in <lambda>()
175 var physicsAnimatorUpdateListener: PhysicsAnimator.UpdateListener<T>? = null in <lambda>()
181 var physicsAnimatorEndListener: PhysicsAnimator.EndListener<T>? = null in <lambda>()
265 var springConfig = PhysicsAnimator.SpringConfig( in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/view/
DMediaCarouselScrollHandler.kt40 import com.android.wm.shell.shared.animation.PhysicsAnimator
54 PhysicsAnimator.SpringConfig(SpringForce.STIFFNESS_LOW, SpringForce.DAMPING_RATIO_LOW_BOUNCY)
287 PhysicsAnimator.getInstance(this).cancel() in onTouch()
321 PhysicsAnimator.getInstance(this) in onTouch()
387 val physicsAnimator = PhysicsAnimator.getInstance(this) in onScroll()
428 PhysicsAnimator.getInstance(this) in onFling()
457 PhysicsAnimator.getInstance(this) in resetTranslation()
462 PhysicsAnimator.getInstance(this).cancel() in resetTranslation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DDragToInteractView.kt44 import com.android.wm.shell.shared.animation.PhysicsAnimator
82 var interactMap = ArrayMap<Int, Pair<DismissCircleView, PhysicsAnimator<DismissCircleView>>>()
87 private val spring = PhysicsAnimator.SpringConfig(STIFFNESS_LOW, DAMPING_RATIO_LOW_BOUNCY)
323 interactMap[circle.id] = Pair(circle, PhysicsAnimator.getInstance(circle)) in addCircle()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/
DDismissView.kt38 import com.android.wm.shell.shared.animation.PhysicsAnimator
80 private val animator = PhysicsAnimator.getInstance(circle)
81 private val spring = PhysicsAnimator.SpringConfig(STIFFNESS_LOW, DAMPING_RATIO_LOW_BOUNCY)
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleStackView.java98 import com.android.wm.shell.shared.animation.PhysicsAnimator;
159 private static final PhysicsAnimator.SpringConfig FLYOUT_IME_ANIMATION_SPRING_CONFIG =
160 new PhysicsAnimator.SpringConfig(
164 private final PhysicsAnimator.SpringConfig mScaleInSpringConfig =
165 new PhysicsAnimator.SpringConfig(300f, 0.9f);
167 private final PhysicsAnimator.SpringConfig mScaleOutSpringConfig =
168 new PhysicsAnimator.SpringConfig(900f, 1f);
170 private final PhysicsAnimator.SpringConfig mTranslateSpringConfig =
171 new PhysicsAnimator.SpringConfig(
900 private PhysicsAnimator.SpringConfig mManageSpringConfig = new PhysicsAnimator.SpringConfig(
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java57 import com.android.wm.shell.shared.animation.PhysicsAnimator;
58 import com.android.wm.shell.shared.animation.PhysicsAnimator.SpringConfig;
536 PhysicsAnimator<? extends View> anim = in snapChild()
558 private PhysicsAnimator<? extends View> createSnapBackAnimation(View target, float toPosition, in createSnapBackAnimation()
561 return PhysicsAnimator.getInstance((ExpandableNotificationRow) target).spring( in createSnapBackAnimation()
567 return PhysicsAnimator.getInstance(target).spring(TRANSLATION_X, toPosition, startVelocity, in createSnapBackAnimation()
579 PhysicsAnimator.getInstance(target).cancel(); in cancelSnapbackAnimation()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/
DExpandedAnimationController.java42 import com.android.wm.shell.shared.animation.PhysicsAnimator;
87 private final PhysicsAnimator.SpringConfig mAnimateOutSpringConfig =
88 new PhysicsAnimator.SpringConfig(
591 PhysicsAnimator.getInstance(child) in onChildRemoved()
DStackAnimationController.java46 import com.android.wm.shell.shared.animation.PhysicsAnimator;
83 private final PhysicsAnimator.SpringConfig mAnimateOutSpringConfig =
84 new PhysicsAnimator.SpringConfig(
377 final float estimatedY = PhysicsAnimator.estimateFlingEndValue( in flingStackThenSpringToEdge()
379 new PhysicsAnimator.FlingConfig( in flingStackThenSpringToEdge()
739 PhysicsAnimator.getInstance(child) in onChildRemoved()