Home
last modified time | relevance | path

Searched refs:draggableBounds (Results 1 – 4 of 4) sorted by relevance

/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
H A DMenuAnimationController.java129 final Rect draggableBounds = mMenuView.getMenuDraggableBounds(); in moveToTopLeftPosition() local
130 moveAndPersistPosition(new PointF(draggableBounds.left, draggableBounds.top)); in moveToTopLeftPosition()
135 final Rect draggableBounds = mMenuView.getMenuDraggableBounds(); in moveToTopRightPosition() local
136 moveAndPersistPosition(new PointF(draggableBounds.right, draggableBounds.top)); in moveToTopRightPosition()
141 final Rect draggableBounds = mMenuView.getMenuDraggableBounds(); in moveToBottomLeftPosition() local
142 moveAndPersistPosition(new PointF(draggableBounds.left, draggableBounds.bottom)); in moveToBottomLeftPosition()
148 moveAndPersistPosition(new PointF(draggableBounds.right, draggableBounds.bottom)); in moveToBottomRightPosition()
171 ? draggableBounds.left : draggableBounds.right; in flingMenuThenSpringToEdge()
281 if (currentXTranslation < draggableBounds.left in maybeMoveToEdgeAndHide()
282 || currentXTranslation > draggableBounds.right) { in maybeMoveToEdgeAndHide()
[all …]
H A DMenuViewAppearance.java158 draggableBounds.offsetTo(/* newLeft= */ 0, /* newTop= */ 0); in getMenuDraggableBoundsWith()
160 draggableBounds.top += margin; in getMenuDraggableBoundsWith()
161 draggableBounds.right -= getMenuWidth(); in getMenuDraggableBoundsWith()
165 draggableBounds.bottom -= (imeHeight + mImeShiftingSpace); in getMenuDraggableBoundsWith()
167 draggableBounds.bottom -= (calculateActualMenuHeight() + margin); in getMenuDraggableBoundsWith()
168 draggableBounds.bottom = Math.max(draggableBounds.top, draggableBounds.bottom); in getMenuDraggableBoundsWith()
170 return draggableBounds; in getMenuDraggableBoundsWith()
174 final Rect draggableBounds = getMenuDraggableBoundsExcludeIme(); in getMenuPosition() local
175 final float x = draggableBounds.left in getMenuPosition()
178 float y = draggableBounds.top in getMenuPosition()
[all …]
H A DMenuView.java166 final Rect draggableBounds = mMenuViewAppearance.getMenuDraggableBounds(); in onEdgeChangedIfNeeded() local
167 if (getTranslationX() != draggableBounds.left in onEdgeChangedIfNeeded()
168 && getTranslationX() != draggableBounds.right) { in onEdgeChangedIfNeeded()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
H A DMenuViewTest.java128 final Rect draggableBounds = mStubMenuViewAppearance.getMenuDraggableBounds(); in onEdgeChangedIfNeeded_moveToLeftEdge_matchRadii() local
129 mMenuView.setTranslationX(draggableBounds.right); in onEdgeChangedIfNeeded_moveToLeftEdge_matchRadii()
131 mMenuView.setTranslationX(draggableBounds.left); in onEdgeChangedIfNeeded_moveToLeftEdge_matchRadii()