Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuViewAppearance.java155 final Rect draggableBounds = new Rect(getWindowAvailableBounds()); in getMenuDraggableBoundsWith() local
157 draggableBounds.top += margin; in getMenuDraggableBoundsWith()
158 draggableBounds.right -= getMenuWidth(); in getMenuDraggableBoundsWith()
161 final int imeHeight = (int) (draggableBounds.bottom - mImeTop); in getMenuDraggableBoundsWith()
162 draggableBounds.bottom -= (imeHeight + mImeShiftingSpace); in getMenuDraggableBoundsWith()
164 draggableBounds.bottom -= (calculateActualMenuHeight() + margin); in getMenuDraggableBoundsWith()
165 draggableBounds.bottom = Math.max(draggableBounds.top, draggableBounds.bottom); in getMenuDraggableBoundsWith()
167 return draggableBounds; in getMenuDraggableBoundsWith()
171 final Rect draggableBounds = getMenuDraggableBoundsExcludeIme(); in getMenuPosition() local
172 final float x = draggableBounds.left in getMenuPosition()
[all …]
DMenuAnimationController.java167 final Rect draggableBounds = mMenuView.getMenuDraggableBounds(); in moveToTopLeftPosition() local
168 moveAndPersistPosition(new PointF(draggableBounds.left, draggableBounds.top)); in moveToTopLeftPosition()
173 final Rect draggableBounds = mMenuView.getMenuDraggableBounds(); in moveToTopRightPosition() local
174 moveAndPersistPosition(new PointF(draggableBounds.right, draggableBounds.top)); in moveToTopRightPosition()
179 final Rect draggableBounds = mMenuView.getMenuDraggableBounds(); in moveToBottomLeftPosition() local
180 moveAndPersistPosition(new PointF(draggableBounds.left, draggableBounds.bottom)); in moveToBottomLeftPosition()
185 final Rect draggableBounds = mMenuView.getMenuDraggableBounds(); in moveToBottomRightPosition() local
186 moveAndPersistPosition(new PointF(draggableBounds.right, draggableBounds.bottom)); in moveToBottomRightPosition()
200 final Rect draggableBounds = mMenuView.getMenuDraggableBounds(); in flingMenuThenSpringToEdge()
202 ? draggableBounds.left : draggableBounds.right; in flingMenuThenSpringToEdge()
[all …]
DMenuView.java170 final Rect draggableBounds = mMenuViewAppearance.getMenuDraggableBounds(); in onEdgeChangedIfNeeded() local
171 if (getTranslationX() != draggableBounds.left in onEdgeChangedIfNeeded()
172 && getTranslationX() != draggableBounds.right) { in onEdgeChangedIfNeeded()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DMenuViewTest.java141 final Rect draggableBounds = mStubMenuViewAppearance.getMenuDraggableBounds(); in onEdgeChangedIfNeeded_moveToLeftEdge_matchRadii() local
142 mMenuView.setTranslationX(draggableBounds.right); in onEdgeChangedIfNeeded_moveToLeftEdge_matchRadii()
144 mMenuView.setTranslationX(draggableBounds.left); in onEdgeChangedIfNeeded_moveToLeftEdge_matchRadii()