/frameworks/base/core/java/com/android/internal/policy/ |
D | PipSnapAlgorithm.java | 109 public Rect findClosestSnapBounds(Rect movementBounds, Rect stackBounds, float velocityX, in findClosestSnapBounds() argument 119 movementBounds.left, movementBounds.right, in findClosestSnapBounds() 120 movementBounds.top, movementBounds.bottom); in findClosestSnapBounds() 123 return findClosestSnapBounds(movementBounds, finalStackBounds); in findClosestSnapBounds() 130 public Rect findClosestSnapBounds(Rect movementBounds, Rect stackBounds) { in findClosestSnapBounds() argument 131 final Rect pipBounds = new Rect(movementBounds.left, movementBounds.top, in findClosestSnapBounds() 132 movementBounds.right + stackBounds.width(), in findClosestSnapBounds() 133 movementBounds.bottom + stackBounds.height()); in findClosestSnapBounds() 151 snapRectToClosestEdge(stackBounds, movementBounds, newBounds); in findClosestSnapBounds() 155 snapRectToClosestEdge(stackBounds, movementBounds, newBounds); in findClosestSnapBounds() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipMotionHelper.java | 202 Rect getClosestMinimizedBounds(Rect stackBounds, Rect movementBounds) { in getClosestMinimizedBounds() argument 205 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, stackBounds); in getClosestMinimizedBounds() 206 mSnapAlgorithm.applyMinimizedOffset(toBounds, movementBounds, displaySize, mStableInsets); in getClosestMinimizedBounds() 244 Rect flingToMinimizedState(float velocityY, Rect movementBounds) { in flingToMinimizedState() argument 248 movementBounds = new Rect(mBounds.left, movementBounds.top, mBounds.left, in flingToMinimizedState() 249 movementBounds.bottom); in flingToMinimizedState() 250 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, mBounds, in flingToMinimizedState() 265 Rect animateToClosestMinimizedState(Rect movementBounds, in animateToClosestMinimizedState() argument 268 Rect toBounds = getClosestMinimizedBounds(mBounds, movementBounds); in animateToClosestMinimizedState() 283 Rect flingToSnapTarget(float velocity, float velocityX, float velocityY, Rect movementBounds, in flingToSnapTarget() argument [all …]
|
D | PipMenuActivityController.java | 255 public void showMenu(int menuState, Rect stackBounds, Rect movementBounds, in showMenu() argument 266 data.putParcelable(EXTRA_MOVEMENT_BOUNDS, movementBounds); in showMenu() 277 startMenuActivity(menuState, stackBounds, movementBounds, allowMenuTimeout); in showMenu() 349 private void startMenuActivity(int menuState, Rect stackBounds, Rect movementBounds, in startMenuActivity() argument 361 if (movementBounds != null) { in startMenuActivity() 362 intent.putExtra(EXTRA_MOVEMENT_BOUNDS, movementBounds); in startMenuActivity()
|
D | PipMenuActivity.java | 309 private void showMenu(int menuState, Rect stackBounds, Rect movementBounds, in showMenu() argument 405 Rect movementBounds = intent.getParcelableExtra(EXTRA_MOVEMENT_BOUNDS); in updateFromIntent() local 407 showMenu(menuState, stackBounds, movementBounds, allowMenuTimeout); in updateFromIntent()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | PinnedStackController.java | 458 final Rect movementBounds = new Rect(); in getMovementBounds() local 459 getInsetBounds(movementBounds); in getMovementBounds() 462 mSnapAlgorithm.getMovementBounds(stackBounds, movementBounds, movementBounds, in getMovementBounds() 464 return movementBounds; in getMovementBounds() 471 private void applyMinimizedOffset(Rect stackBounds, Rect movementBounds) { in applyMinimizedOffset() argument 475 mSnapAlgorithm.applyMinimizedOffset(stackBounds, movementBounds, mTmpDisplaySize, in applyMinimizedOffset()
|