/frameworks/base/core/java/com/android/internal/policy/ |
H A D | PipSnapAlgorithm.java | 105 * the given {@param velocityX} and {@param velocityY}. The {@param movementBounds} should be 108 public Rect findClosestSnapBounds(Rect movementBounds, Rect stackBounds, float velocityX, argument 111 final Point intersect = getEdgeIntersect(stackBounds, movementBounds, velocityX, velocityY, 114 return findClosestSnapBounds(movementBounds, intersectStackBounds); 118 * @return The point along the {@param movementBounds} that the PIP would intersect with based 122 public Point getEdgeIntersect(Rect stackBounds, Rect movementBounds, float velX, float velY, argument 138 vertPoint.x = velX > 0 ? movementBounds.right : movementBounds.left; 143 horizPoint.y = velY > 0 ? movementBounds.bottom : movementBounds 206 findClosestSnapBounds(Rect movementBounds, Rect stackBounds) argument 250 applyMinimizedOffset(Rect stackBounds, Rect movementBounds, Point displaySize, Rect stableInsets) argument 274 getSnapFraction(Rect stackBounds, Rect movementBounds) argument 304 applySnapFraction(Rect stackBounds, Rect movementBounds, float snapFraction) argument 392 snapRectToClosestEdge(Rect stackBounds, Rect movementBounds, Rect boundsOut) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
H A D | PipMotionHelper.java | 197 Rect getClosestMinimizedBounds(Rect stackBounds, Rect movementBounds) { argument 200 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, stackBounds); 201 mSnapAlgorithm.applyMinimizedOffset(toBounds, movementBounds, displaySize, mStableInsets); 240 Rect flingToMinimizedState(float velocityY, Rect movementBounds, Point dragStartPosition) { argument 244 movementBounds = new Rect(mBounds.left, movementBounds.top, mBounds.left, 245 movementBounds.bottom); 246 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, mBounds, 261 Rect animateToClosestMinimizedState(Rect movementBounds, argument 264 Rect toBounds = getClosestMinimizedBounds(mBounds, movementBounds); 279 flingToSnapTarget(float velocity, float velocityX, float velocityY, Rect movementBounds, AnimatorUpdateListener updateListener, AnimatorListener listener, Point startPosition) argument 304 animateToClosestSnapTarget(Rect movementBounds, AnimatorUpdateListener updateListener, AnimatorListener listener) argument 325 animateToExpandedState(Rect expandedBounds, Rect movementBounds, Rect expandedMovementBounds) argument [all...] |
H A D | PipMenuActivityController.java | 277 null /* movementBounds */, false /* allowMenuTimeout */, 285 public void showMenu(int menuState, Rect stackBounds, Rect movementBounds, argument 297 data.putParcelable(EXTRA_MOVEMENT_BOUNDS, movementBounds); 311 startMenuActivity(menuState, stackBounds, movementBounds, allowMenuTimeout, 384 private void startMenuActivity(int menuState, Rect stackBounds, Rect movementBounds, argument 397 if (movementBounds != null) { 398 intent.putExtra(EXTRA_MOVEMENT_BOUNDS, movementBounds);
|
H A D | PipMenuActivity.java | 349 private void showMenu(int menuState, Rect stackBounds, Rect movementBounds, argument 463 Rect movementBounds = intent.getParcelableExtra(EXTRA_MOVEMENT_BOUNDS); 466 showMenu(menuState, stackBounds, movementBounds, allowMenuTimeout, willResizeMenu);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | PinnedStackController.java | 300 final Rect movementBounds = getMovementBounds(defaultBounds); 301 mSnapAlgorithm.applySnapFraction(defaultBounds, movementBounds, snapFraction); 542 final Rect movementBounds = new Rect(); 543 getInsetBounds(movementBounds); 546 mSnapAlgorithm.getMovementBounds(stackBounds, movementBounds, movementBounds, 549 return movementBounds; 556 private void applyMinimizedOffset(Rect stackBounds, Rect movementBounds) { argument 560 mSnapAlgorithm.applyMinimizedOffset(stackBounds, movementBounds, mTmpDisplaySize, 586 pw.print(prefix + " movementBounds [all...] |