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.java203 Rect getClosestMinimizedBounds(Rect stackBounds, Rect movementBounds) { in getClosestMinimizedBounds() argument
206 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, stackBounds); in getClosestMinimizedBounds()
207 mSnapAlgorithm.applyMinimizedOffset(toBounds, movementBounds, displaySize, mStableInsets); in getClosestMinimizedBounds()
246 Rect flingToMinimizedState(float velocityY, Rect movementBounds, Point dragStartPosition) { in flingToMinimizedState() argument
250 movementBounds = new Rect(mBounds.left, movementBounds.top, mBounds.left, in flingToMinimizedState()
251 movementBounds.bottom); in flingToMinimizedState()
252 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, mBounds, in flingToMinimizedState()
267 Rect animateToClosestMinimizedState(Rect movementBounds, in animateToClosestMinimizedState() argument
270 Rect toBounds = getClosestMinimizedBounds(mBounds, movementBounds); in animateToClosestMinimizedState()
285 Rect flingToSnapTarget(float velocity, float velocityX, float velocityY, Rect movementBounds, in flingToSnapTarget() argument
[all …]
DPipMenuActivityController.java270 public void showMenu(int menuState, Rect stackBounds, Rect movementBounds, in showMenu() argument
282 data.putParcelable(EXTRA_MOVEMENT_BOUNDS, movementBounds); in showMenu()
296 startMenuActivity(menuState, stackBounds, movementBounds, allowMenuTimeout, in showMenu()
399 private void startMenuActivity(int menuState, Rect stackBounds, Rect movementBounds, in startMenuActivity() argument
412 if (movementBounds != null) { in startMenuActivity()
413 intent.putExtra(EXTRA_MOVEMENT_BOUNDS, movementBounds); in startMenuActivity()
DPipMenuActivity.java299 private void showMenu(int menuState, Rect stackBounds, Rect movementBounds, in showMenu() argument
412 Rect movementBounds = intent.getParcelableExtra(EXTRA_MOVEMENT_BOUNDS); in updateFromIntent() local
415 showMenu(menuState, stackBounds, movementBounds, allowMenuTimeout, willResizeMenu); in updateFromIntent()
/frameworks/base/services/core/java/com/android/server/wm/
DPinnedStackController.java302 final Rect movementBounds = getMovementBounds(defaultBounds); in getDefaultBounds() local
303 mSnapAlgorithm.applySnapFraction(defaultBounds, movementBounds, snapFraction); in getDefaultBounds()
554 final Rect movementBounds = new Rect(); in getMovementBounds() local
555 getInsetBounds(movementBounds); in getMovementBounds()
558 mSnapAlgorithm.getMovementBounds(stackBounds, movementBounds, movementBounds, in getMovementBounds()
561 return movementBounds; in getMovementBounds()
568 private void applyMinimizedOffset(Rect stackBounds, Rect movementBounds) { in applyMinimizedOffset() argument
572 mSnapAlgorithm.applyMinimizedOffset(stackBounds, movementBounds, mTmpDisplaySize, in applyMinimizedOffset()