Home
last modified time | relevance | path

Searched refs:movementBounds (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/com/android/internal/policy/
DPipSnapAlgorithm.java108 public Rect findClosestSnapBounds(Rect movementBounds, Rect stackBounds, float velocityX, in findClosestSnapBounds() argument
111 final Point intersect = getEdgeIntersect(stackBounds, movementBounds, velocityX, velocityY, in findClosestSnapBounds()
114 return findClosestSnapBounds(movementBounds, intersectStackBounds); in findClosestSnapBounds()
122 public Point getEdgeIntersect(Rect stackBounds, Rect movementBounds, float velX, float velY, in getEdgeIntersect() argument
138 vertPoint.x = velX > 0 ? movementBounds.right : movementBounds.left; in getEdgeIntersect()
143 horizPoint.y = velY > 0 ? movementBounds.bottom : movementBounds.top; in getEdgeIntersect()
152 ? movementBounds.right - stackBounds.left in getEdgeIntersect()
153 : stackBounds.left - movementBounds.left; in getEdgeIntersect()
156 ? movementBounds.bottom - stackBounds.top in getEdgeIntersect()
157 : stackBounds.top - movementBounds.top; in getEdgeIntersect()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipMotionHelper.java197 Rect getClosestMinimizedBounds(Rect stackBounds, Rect movementBounds) { in getClosestMinimizedBounds() argument
200 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, stackBounds); in getClosestMinimizedBounds()
201 mSnapAlgorithm.applyMinimizedOffset(toBounds, movementBounds, displaySize, mStableInsets); in getClosestMinimizedBounds()
240 Rect flingToMinimizedState(float velocityY, Rect movementBounds, Point dragStartPosition) { in flingToMinimizedState() argument
244 movementBounds = new Rect(mBounds.left, movementBounds.top, mBounds.left, in flingToMinimizedState()
245 movementBounds.bottom); in flingToMinimizedState()
246 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, mBounds, in flingToMinimizedState()
261 Rect animateToClosestMinimizedState(Rect movementBounds, in animateToClosestMinimizedState() argument
264 Rect toBounds = getClosestMinimizedBounds(mBounds, movementBounds); in animateToClosestMinimizedState()
279 Rect flingToSnapTarget(float velocity, float velocityX, float velocityY, Rect movementBounds, in flingToSnapTarget() argument
[all …]
DPipMenuActivityController.java285 public void showMenu(int menuState, Rect stackBounds, Rect movementBounds, in showMenu() argument
297 data.putParcelable(EXTRA_MOVEMENT_BOUNDS, movementBounds); in showMenu()
311 startMenuActivity(menuState, stackBounds, movementBounds, allowMenuTimeout, in showMenu()
384 private void startMenuActivity(int menuState, Rect stackBounds, Rect movementBounds, in startMenuActivity() argument
397 if (movementBounds != null) { in startMenuActivity()
398 intent.putExtra(EXTRA_MOVEMENT_BOUNDS, movementBounds); in startMenuActivity()
DPipMenuActivity.java349 private void showMenu(int menuState, Rect stackBounds, Rect movementBounds, in showMenu() argument
463 Rect movementBounds = intent.getParcelableExtra(EXTRA_MOVEMENT_BOUNDS); in updateFromIntent() local
466 showMenu(menuState, stackBounds, movementBounds, allowMenuTimeout, willResizeMenu); in updateFromIntent()
/frameworks/base/services/core/java/com/android/server/wm/
DPinnedStackController.java300 final Rect movementBounds = getMovementBounds(defaultBounds); in getDefaultBounds() local
301 mSnapAlgorithm.applySnapFraction(defaultBounds, movementBounds, snapFraction); in getDefaultBounds()
542 final Rect movementBounds = new Rect(); in getMovementBounds() local
543 getInsetBounds(movementBounds); in getMovementBounds()
546 mSnapAlgorithm.getMovementBounds(stackBounds, movementBounds, movementBounds, in getMovementBounds()
549 return movementBounds; in getMovementBounds()
556 private void applyMinimizedOffset(Rect stackBounds, Rect movementBounds) { in applyMinimizedOffset() argument
560 mSnapAlgorithm.applyMinimizedOffset(stackBounds, movementBounds, mTmpDisplaySize, in applyMinimizedOffset()