Searched refs:movementBounds (Results 1 – 7 of 7) sorted by relevance
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
H A D | PipSnapAlgorithm.java | 62 / movementBounds.width(); in getSnapFraction() 64 / movementBounds.height(); in getSnapFraction() 65 if (tmpBounds.top == movementBounds.top) { in getSnapFraction() 90 int offset = movementBounds.left + (int) (snapFraction * movementBounds.width()); in applySnapFraction() 94 int offset = movementBounds.top + (int) (snapFraction * movementBounds.height()); in applySnapFraction() 98 int offset = movementBounds.left + (int) ((1f - snapFraction) * movementBounds.width()); in applySnapFraction() 102 int offset = movementBounds.top + (int) ((1f - snapFraction) * movementBounds.height()); in applySnapFraction() 133 leftEdge = movementBounds.left; in snapRectToClosestEdge() 135 leftEdge = movementBounds.right; in snapRectToClosestEdge() 137 final int boundedLeft = Math.max(movementBounds.left, Math.min(movementBounds.right, in snapRectToClosestEdge() [all …]
|
H A D | PipBoundsAlgorithm.java | 277 final Rect movementBounds = getMovementBounds(defaultBounds); in getDefaultBounds() local 278 mSnapAlgorithm.applySnapFraction(defaultBounds, movementBounds, snapFraction); in getDefaultBounds() 294 final Rect movementBounds = getMovementBounds(defaultBounds); in getDefaultBounds() local 330 final Rect movementBounds = new Rect(); in getMovementBounds() local 331 getInsetBounds(movementBounds); in getMovementBounds() 334 getMovementBounds(stackBounds, movementBounds, movementBounds, in getMovementBounds() 338 return movementBounds; in getMovementBounds() 367 public float getSnapFraction(Rect stackBounds, Rect movementBounds) { in getSnapFraction() argument 368 return mSnapAlgorithm.getSnapFraction(stackBounds, movementBounds); in getSnapFraction() 375 final Rect movementBounds = getMovementBounds(stackBounds); in applySnapFraction() local [all …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/ |
H A D | TvPipKeepClearAlgorithm.kt | 71 private var movementBounds = Rect() regex 154 it.contains(movementBounds) -> null 285 val movementBounds = transformedMovementBounds regex 293 movementBounds.offsetCopy(movementBounds.width() + pipAreaPadding, 0) 299 val minLeft = movementBounds.left + pipAnchorBounds.width() 318 val isOnScreen = candidate.top > movementBounds.top 435 if (movementBounds == bounds) { 439 movementBounds.set(bounds) 440 transformedMovementBounds = toTransformedSpace(movementBounds) 452 transformedMovementBounds = toTransformedSpace(movementBounds) [all …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
H A D | PipResizeGestureHandler.java | 370 mDisplayBounds.set(movementBounds.left, in setCtrlType() 371 movementBounds.top, in setCtrlType() 372 movementBounds.right + currentPipBounds.width(), in setCtrlType() 373 movementBounds.bottom + currentPipBounds.height()); in setCtrlType() 532 final int fromLeft = Math.abs(leftEdge - movementBounds.left); in snapToMovementBoundsEdge() 533 final int fromRight = Math.abs(movementBounds.right - leftEdge); in snapToMovementBoundsEdge() 538 ? movementBounds.left : movementBounds.right; in snapToMovementBoundsEdge() 556 snapToMovementBoundsEdge(finalBounds, movementBounds); 583 final Rect movementBounds = mPipBoundsAlgorithm 587 snapToMovementBoundsEdge(mLastResizeBounds, movementBounds); [all …]
|
H A D | PipMotionHelper.java | 465 float animateToExpandedState(Rect expandedBounds, Rect movementBounds, 468 movementBounds);
|
H A D | PipTouchHandler.java | 1015 Rect movementBounds = new Rect(); 1017 movementBounds, mIsImeShowing ? mImeHeight : 0); 1018 return movementBounds;
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/tv/ |
H A D | TvPipKeepClearAlgorithmTest.kt | 51 private lateinit var movementBounds: Rect 62 movementBounds = Rect(0, 0, SCREEN_SIZE.width, SCREEN_SIZE.height) 63 movementBounds.inset(SCREEN_EDGE_INSET, SCREEN_EDGE_INSET) 72 algorithm.setMovementBounds(movementBounds) 561 Gravity.apply(gravity, pipRect.width(), pipRect.height(), movementBounds, expectedBounds) 583 Gravity.apply(gravity, pipSize.width, pipSize.height, movementBounds, expectedBounds)
|