Home
last modified time | relevance | path

Searched refs:allowedBounds (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPhonePipKeepClearAlgorithm.java113 Set<Rect> unrestrictedKeepClearAreas, Rect allowedBounds) { in findUnoccludedPosition() argument
130 if (tryOffsetUp(outBounds, tmpRect, allowedBounds)) continue; in findUnoccludedPosition()
131 if (tryOffsetLeft(outBounds, tmpRect, allowedBounds)) continue; in findUnoccludedPosition()
132 if (tryOffsetDown(outBounds, tmpRect, allowedBounds)) continue; in findUnoccludedPosition()
133 if (tryOffsetRight(outBounds, tmpRect, allowedBounds)) continue; in findUnoccludedPosition()
139 private static boolean tryOffsetLeft(Rect rectToMove, Rect rectToAvoid, Rect allowedBounds) { in tryOffsetLeft() argument
140 return tryOffset(rectToMove, rectToAvoid, allowedBounds, in tryOffsetLeft()
144 private static boolean tryOffsetRight(Rect rectToMove, Rect rectToAvoid, Rect allowedBounds) { in tryOffsetRight() argument
145 return tryOffset(rectToMove, rectToAvoid, allowedBounds, in tryOffsetRight()
149 private static boolean tryOffsetUp(Rect rectToMove, Rect rectToAvoid, Rect allowedBounds) { in tryOffsetUp() argument
[all …]
DPipKeepClearAlgorithmInterface.java50 Set<Rect> unrestrictedKeepClearAreas, Rect allowedBounds) { in findUnoccludedPosition() argument
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DFloatingContentCoordinator.kt259 allowedBounds: Rect in <lambda>()
289 val positionAboveInBounds by lazy { allowedBounds.contains(newContentBoundsAbove) } in <lambda>()
290 val positionBelowInBounds by lazy { allowedBounds.contains(newContentBoundsBelow) } in <lambda>()
306 return if (allowedBounds.contains(newBounds)) newBounds else Rect() in <lambda>()