Home
last modified time | relevance | path

Searched refs:insetBounds (Results 1 – 10 of 10) sorted by relevance

/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
H A DLegacySizeSpecSource.kt66 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 DPipBoundsAlgorithm.java284 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 DPhoneSizeSpecSource.kt87 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 DPipDisplayLayoutState.java84 Rect insetBounds = new Rect(); in getInsetBounds() local
86 insetBounds.set(insets.left + getScreenEdgeInsets().x, in getInsetBounds()
90 return insetBounds; in getInsetBounds()
H A DPipSnapAlgorithm.java113 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 DPipMotionHelper.java408 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 DPipTouchHandler.java363 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 DTvPipBoundsAlgorithm.java139 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 DPipBoundsAlgorithmTest.java226 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 DTaskTests.java494 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()