Home
last modified time | relevance | path

Searched refs:mMenuAnimationController (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DMenuAnimationControllerTest.java69 private TestMenuAnimationController mMenuAnimationController; field in MenuAnimationControllerTest
91 mMenuAnimationController = new TestMenuAnimationController( in setUp()
103 mMenuAnimationController.mPositionAnimations.values().forEach(DynamicAnimation::cancel); in tearDown()
110 mMenuAnimationController.moveToPosition(destination); in moveToPosition_matchPosition()
118 mMenuAnimationController.startShrinkAnimation(() -> mMenuView.setVisibility(View.VISIBLE)); in startShrinkAnimation_verifyAnimationEndAction()
125 mMenuAnimationController.startShrinkAnimation(/* endAction= */ null); in startGrowAnimation_menuCompletelyOpaque()
127 mMenuAnimationController.startGrowAnimation(); in startGrowAnimation_menuCompletelyOpaque()
137 mMenuAnimationController.moveToEdgeAndHide(); in moveToEdgeAndHide_untucked_expectedSharedPreferenceValue()
149 mMenuAnimationController.moveOutEdgeAndShow(); in moveOutEdgeAndShow_tucked_expectedSharedPreferenceValue()
160 mMenuAnimationController.startTuckedAnimationPreview(); in startTuckedAnimationPreview_hasAnimation()
[all …]
DMenuItemAccessibilityDelegateTest.java75 private MenuAnimationController mMenuAnimationController; field in MenuItemAccessibilityDelegateTest
102 mMenuAnimationController = spy(new MenuAnimationController(mMenuView, in setUp()
106 mStubListView), mMenuAnimationController, mMenuViewLayer); in setUp()
184 verify(mMenuAnimationController).moveToEdgeAndHide(); in performMoveToEdgeAndHideAction_success()
194 verify(mMenuAnimationController).moveOutEdgeAndShow(); in performMoveOutFromEdgeAction_success()
222 verify(mMenuAnimationController).fadeInNowIfEnabled(); in performFocusAction_fadeIn()
230 verify(mMenuAnimationController).fadeOutIfEnabled(); in performClearFocusAction_fadeOut()
DMenuListViewTouchHandlerTest.java74 private MenuAnimationController mMenuAnimationController; field in MenuListViewTouchHandlerTest
98 mMenuAnimationController = spy(new MenuAnimationController( in setUp()
111 mTouchHandler = new MenuListViewTouchHandler(mMenuAnimationController, in setUp()
127 verify(mMenuAnimationController).cancelAnimations(); in onActionDownEvent_shouldCancelAnimations()
209 verify(mMenuAnimationController).flingMenuThenSpringToEdge(anyFloat(), anyFloat(), in dragAndDrop_shouldFlingMenuThenSpringToEdge()
232 verify(mMenuAnimationController).moveToEdgeAndHide(); in dragMenuOutOfBoundsAndDrop_moveToLeftEdge_shouldMoveToEdgeAndHide()
252 mMenuAnimationController.mPositionAnimations.values().forEach(DynamicAnimation::cancel); in tearDown()
DMenuViewLayerTest.java128 private MenuAnimationController mMenuAnimationController; field in MenuViewLayerTest
173 mMenuAnimationController = mMenuView.getMenuAnimationController(); in setUp()
202 mMenuAnimationController.mPositionAnimations.values().forEach(DynamicAnimation::cancel); in tearDown()
329 mMenuAnimationController.moveAndPersistPosition(new PointF(0, menuTop)); in showingImeInsetsChange_notOverlapOnIme_menuKeepOriginalPosition()
339 mMenuAnimationController.moveAndPersistPosition(new PointF(0, IME_TOP + 100)); in showingImeInsetsChange_overlapOnIme_menuShownAboveIme()
354 mMenuAnimationController.moveAndPersistPosition(new PointF(0, IME_TOP + 200)); in hidingImeInsetsChange_overlapOnIme_menuBackToOriginalPosition()
499 return !mMenuAnimationController.mPositionAnimations.values().stream().filter( in isPositionAnimationRunning()
504 mMenuAnimationController.mPositionAnimations.values().stream().forEach( in skipPositionAnimations()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuListViewTouchHandler.java40 private final MenuAnimationController mMenuAnimationController; field in MenuListViewTouchHandler
50 mMenuAnimationController = menuAnimationController; in MenuListViewTouchHandler()
66 mMenuAnimationController.fadeInNowIfEnabled(); in onInterceptTouchEvent()
71 mMenuAnimationController.cancelAnimations(); in onInterceptTouchEvent()
80 mMenuAnimationController.onDraggingStart(); in onInterceptTouchEvent()
86 mMenuAnimationController.moveToPositionX(mMenuTranslationDown.x + dx); in onInterceptTouchEvent()
87 mMenuAnimationController.moveToPositionYIfNeeded( in onInterceptTouchEvent()
100 if (mMenuAnimationController.maybeMoveToEdgeAndHide(endX)) { in onInterceptTouchEvent()
101 mMenuAnimationController.fadeOutIfEnabled(); in onInterceptTouchEvent()
108 mMenuAnimationController.flingMenuThenSpringToEdge(endX, in onInterceptTouchEvent()
[all …]
DMenuView.java72 private final MenuAnimationController mMenuAnimationController; field in MenuView
84 mMenuAnimationController = new MenuAnimationController(this, menuViewAppearance); in MenuView()
149 return mMenuAnimationController; in getMenuAnimationController()
187 mMenuAnimationController.startRadiiAnimation(mMenuViewAppearance.getMenuRadii()); in onEdgeChanged()
213 position = mMenuAnimationController.getTuckedMenuPosition(); in onPositionChanged()
220 mMenuAnimationController.moveToPosition(position, /* animateMovement = */ true); in onPositionChanged()
223 mMenuAnimationController.moveToPosition(position); in onPositionChanged()
233 mMenuAnimationController.moveToEdgeAndHide(); in onArrivalAtPosition()
239 mMenuAnimationController.fadeInNowIfEnabled(); in onSizeTypeChanged()
251 mMenuAnimationController.fadeOutIfEnabled(); in onSizeTypeChanged()
[all …]
DMenuViewLayer.java125 private final MenuAnimationController mMenuAnimationController; field in MenuViewLayer
243 mMenuAnimationController, MenuViewLayer.this); in MenuViewLayer()
246 mMenuAnimationController = mMenuView.getMenuAnimationController(); in MenuViewLayer()
247 mMenuAnimationController.setSpringAnimationsEndAction(this::onSpringAnimationsEndAction); in MenuViewLayer()
286 mMenuListViewTouchHandler = new MenuListViewTouchHandler(mMenuAnimationController, in MenuViewLayer()
475 mMenuAnimationController.startTuckedAnimationPreview(); in onSpringAnimationsEndAction()
507 mMenuAnimationController.flingMenuThenSpringToEdge( in gotoEditScreen()
592 mMenuAnimationController.startShrinkAnimation(() -> mMenuView.setVisibility(GONE)); in hideMenuAndShowMessage()
597 mMenuAnimationController.startShrinkAnimation(() -> mMenuView.setVisibility(GONE)); in hideMenuAndShowNotification()
646 mMenuAnimationController.startGrowAnimation(); in undo()