Searched refs:movementBounds (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
D | PipSnapAlgorithm.java | 37 public float getSnapFraction(Rect stackBounds, Rect movementBounds) { in getSnapFraction() argument 38 return getSnapFraction(stackBounds, movementBounds, STASH_TYPE_NONE); in getSnapFraction() 57 public float getSnapFraction(Rect stackBounds, Rect movementBounds, in getSnapFraction() argument 60 snapRectToClosestEdge(stackBounds, movementBounds, tmpBounds, stashType); in getSnapFraction() 61 final float widthFraction = (float) (tmpBounds.left - movementBounds.left) / in getSnapFraction() 62 movementBounds.width(); in getSnapFraction() 63 final float heightFraction = (float) (tmpBounds.top - movementBounds.top) / in getSnapFraction() 64 movementBounds.height(); in getSnapFraction() 65 if (tmpBounds.top == movementBounds.top) { in getSnapFraction() 67 } else if (tmpBounds.left == movementBounds.right) { in getSnapFraction() [all …]
|
D | PipBoundsAlgorithm.java | 279 final Rect movementBounds = getMovementBounds(defaultBounds); in getDefaultBounds() local 280 mSnapAlgorithm.applySnapFraction(defaultBounds, movementBounds, snapFraction); in getDefaultBounds() 304 final Rect movementBounds = getMovementBounds(defaultBounds); in getDefaultBounds() local 305 mSnapAlgorithm.applySnapFraction(defaultBounds, movementBounds, snapFraction); in getDefaultBounds() 341 final Rect movementBounds = new Rect(); in getMovementBounds() local 342 getInsetBounds(movementBounds); in getMovementBounds() 345 getMovementBounds(stackBounds, movementBounds, movementBounds, in getMovementBounds() 349 return movementBounds; in getMovementBounds() 378 public float getSnapFraction(Rect stackBounds, Rect movementBounds) { in getSnapFraction() argument 379 return mSnapAlgorithm.getSnapFraction(stackBounds, movementBounds); in getSnapFraction() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
D | PipResizeGestureHandler.java | 351 Rect movementBounds = mMovementBoundsSupplier.apply(currentPipBounds); in setCtrlType() local 353 mDisplayBounds.set(movementBounds.left, in setCtrlType() 354 movementBounds.top, in setCtrlType() 355 movementBounds.right + currentPipBounds.width(), in setCtrlType() 356 movementBounds.bottom + currentPipBounds.height()); in setCtrlType() 530 final Rect movementBounds = in finishResize() local 532 final int fromLeft = Math.abs(leftEdge - movementBounds.left); in finishResize() 533 final int fromRight = Math.abs(movementBounds.right - leftEdge); in finishResize() 537 ? movementBounds.left : movementBounds.right; in finishResize() 540 mLastResizeBounds, movementBounds); in finishResize()
|
D | PipMotionHelper.java | 481 float animateToExpandedState(Rect expandedBounds, Rect movementBounds, 484 movementBounds);
|
D | PipTouchHandler.java | 998 Rect movementBounds = new Rect(); 1000 movementBounds, mIsImeShowing ? mImeHeight : 0); 1001 return movementBounds;
|