Home
last modified time | relevance | path

Searched refs:rectToAvoid (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPhonePipKeepClearAlgorithm.java139 private static boolean tryOffsetLeft(Rect rectToMove, Rect rectToAvoid, Rect allowedBounds) { in tryOffsetLeft() argument
140 return tryOffset(rectToMove, rectToAvoid, allowedBounds, in tryOffsetLeft()
141 rectToAvoid.left - rectToMove.right, 0); in tryOffsetLeft()
144 private static boolean tryOffsetRight(Rect rectToMove, Rect rectToAvoid, Rect allowedBounds) { in tryOffsetRight() argument
145 return tryOffset(rectToMove, rectToAvoid, allowedBounds, in tryOffsetRight()
146 rectToAvoid.right - rectToMove.left, 0); in tryOffsetRight()
149 private static boolean tryOffsetUp(Rect rectToMove, Rect rectToAvoid, Rect allowedBounds) { in tryOffsetUp() argument
150 return tryOffset(rectToMove, rectToAvoid, allowedBounds, in tryOffsetUp()
151 0, rectToAvoid.top - rectToMove.bottom); in tryOffsetUp()
154 private static boolean tryOffsetDown(Rect rectToMove, Rect rectToAvoid, Rect allowedBounds) { in tryOffsetDown() argument
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DFloatingContentCoordinator.kt271 .filter { rectToAvoid -> rectsIntersectVertically(rectToAvoid, contentRect) } in <lambda>() method
272 .partition { rectToAvoid -> rectToAvoid.top < contentRect.top } in <lambda>() method