/frameworks/base/core/java/com/android/internal/policy/ |
D | PipSnapAlgorithm.java | 108 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/ |
D | PipMotionHelper.java | 203 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 …]
|
D | PipMenuActivityController.java | 280 public void showMenu(int menuState, Rect stackBounds, Rect movementBounds, in showMenu() argument 292 data.putParcelable(EXTRA_MOVEMENT_BOUNDS, movementBounds); in showMenu() 306 startMenuActivity(menuState, stackBounds, movementBounds, allowMenuTimeout, in showMenu() 409 private void startMenuActivity(int menuState, Rect stackBounds, Rect movementBounds, in startMenuActivity() argument 422 if (movementBounds != null) { in startMenuActivity() 423 intent.putExtra(EXTRA_MOVEMENT_BOUNDS, movementBounds); in startMenuActivity()
|
D | PipMenuActivity.java | 342 private void showMenu(int menuState, Rect stackBounds, Rect movementBounds, in showMenu() argument 456 Rect movementBounds = intent.getParcelableExtra(EXTRA_MOVEMENT_BOUNDS); in updateFromIntent() local 459 showMenu(menuState, stackBounds, movementBounds, allowMenuTimeout, willResizeMenu); in updateFromIntent()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | PinnedStackController.java | 302 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()
|