/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
H A D | LegacySizeSpecSource.kt | 66 val insetBounds = pipDisplayLayoutState.insetBounds regex 70 val totalHorizontalPadding: Int = (insetBounds.left + 71 (getDisplayBounds().width() - insetBounds.right)) 72 val totalVerticalPadding: Int = (insetBounds.top + 73 (getDisplayBounds().height() - insetBounds.bottom))
|
H A D | PipBoundsAlgorithm.java | 284 final Rect insetBounds = new Rect(); in getDefaultBounds() local 285 getInsetBounds(insetBounds); in getDefaultBounds() 298 insetBounds, 0, Math.max( in getDefaultBounds() 344 public void getMovementBounds(Rect stackBounds, Rect insetBounds, Rect movementBoundsOut, in getMovementBounds() argument 347 movementBoundsOut.set(insetBounds); in getMovementBounds() 348 movementBoundsOut.right = Math.max(insetBounds.left, insetBounds.right in getMovementBounds() 350 movementBoundsOut.bottom = Math.max(insetBounds.top, insetBounds.bottom in getMovementBounds()
|
H A D | PhoneSizeSpecSource.kt | 87 val insetBounds = pipDisplayLayoutState.insetBounds regex 90 val totalHorizontalPadding: Int = (insetBounds.left + 91 (displayBounds.width() - insetBounds.right)) 92 val totalVerticalPadding: Int = (insetBounds.top + 93 (displayBounds.height() - insetBounds.bottom))
|
H A D | PipDisplayLayoutState.java | 84 Rect insetBounds = new Rect(); in getInsetBounds() local 86 insetBounds.set(insets.left + getScreenEdgeInsets().x, in getInsetBounds() 90 return insetBounds; in getInsetBounds()
|
H A D | PipSnapAlgorithm.java | 113 Rect insetBounds) { in applySnapFraction() argument 118 ? stashOffset - stackBounds.width() + insetBounds.left in applySnapFraction() 119 : displayBounds.right - stashOffset - insetBounds.right, in applySnapFraction()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
H A D | PipMotionHelper.java | 408 final Rect insetBounds = mPipBoundsState.getDisplayLayout().stableInsets(); in movetoTarget() local 411 + insetBounds.left in movetoTarget() 415 - insetBounds.right in movetoTarget() 503 final Rect insetBounds = mPipBoundsState.getDisplayLayout().stableInsets(); 509 - mPipBoundsState.getBounds().width() + insetBounds.left 511 - mPipBoundsState.getStashOffset() - insetBounds.right; 559 final Rect insetBounds = mPipBoundsState.getDisplayLayout().stableInsets(); 563 + insetBounds.left, 565 - insetBounds.right);
|
H A D | PipTouchHandler.java | 363 public void adjustBoundsForRotation(Rect outBounds, Rect curBounds, Rect insetBounds) { in adjustBoundsForRotation() argument 365 mPipBoundsAlgorithm.getMovementBounds(outBounds, insetBounds, toMovementBounds, 0); in adjustBoundsForRotation() 380 public void onMovementBoundsChanged(Rect insetBounds, Rect normalBounds, Rect curBounds, in onMovementBoundsChanged() argument 396 mPipBoundsAlgorithm.getMovementBounds(normalBounds, insetBounds, in onMovementBoundsChanged() 402 mPipBoundsAlgorithm.getMovementBounds(curBounds, insetBounds, in onMovementBoundsChanged() 413 mPipBoundsState.getExpandedBounds(), insetBounds, expandedMovementBounds, in onMovementBoundsChanged() local 429 mInsetBounds.set(insetBounds); in onMovementBoundsChanged()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/ |
H A D | TvPipBoundsAlgorithm.java | 139 final Rect insetBounds = new Rect(); in getTvPipPlacement() local 140 getInsetBounds(insetBounds); in getTvPipPlacement() 148 mKeepClearAlgorithm.setMovementBounds(insetBounds); in getTvPipPlacement() 163 "%s: insetBounds: %s", TAG, insetBounds.toShortString()); in getTvPipPlacement()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/ |
H A D | PipBoundsAlgorithmTest.java | 226 final Rect insetBounds = new Rect(); in getDefaultBounds_boundsAtDefaultGravity() local 227 mPipBoundsAlgorithm.getInsetBounds(insetBounds); in getDefaultBounds_boundsAtDefaultGravity() 232 assertEquals(insetBounds.bottom, defaultBounds.bottom); in getDefaultBounds_boundsAtDefaultGravity() 233 assertEquals(insetBounds.right, defaultBounds.right); in getDefaultBounds_boundsAtDefaultGravity()
|
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | TaskTests.java | 494 final Rect insetBounds = new Rect(mParentBounds); in testAppBounds_ContainedBounds() local 495 insetBounds.inset(5, 5, 5, 5); in testAppBounds_ContainedBounds() 497 WINDOWING_MODE_FREEFORM, mParentBounds, insetBounds, insetBounds); in testAppBounds_ContainedBounds()
|