Home
last modified time | relevance | path

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

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DDisplayCutoutTests.java355 final Rect safeRect = getSafeRect(a, cutout); in assertCutoutsAreWithinSafeInsets() local
357 assertThat("safe insets must not cover the entire screen", safeRect.isEmpty(), is(false)); in assertCutoutsAreWithinSafeInsets()
360 boundingRect, not(intersectsWith(safeRect))); in assertCutoutsAreWithinSafeInsets()
365 final Rect safeRect = getSafeRect(a, cutout); in assertAtMostOneCutoutPerEdge() local
368 boundsWith(cutout, (r) -> r.right <= safeRect.left), hasSize(lessThanOrEqualTo(1))); in assertAtMostOneCutoutPerEdge()
370 boundsWith(cutout, (r) -> r.bottom <= safeRect.top), hasSize(lessThanOrEqualTo(1))); in assertAtMostOneCutoutPerEdge()
372 boundsWith(cutout, (r) -> r.left >= safeRect.right), hasSize(lessThanOrEqualTo(1))); in assertAtMostOneCutoutPerEdge()
374 boundsWith(cutout, (r) -> r.top >= safeRect.bottom), hasSize(lessThanOrEqualTo(1))); in assertAtMostOneCutoutPerEdge()
465 final Rect safeRect = safeInsets(cutout); in getSafeRect() local
466 safeRect.bottom = getOnMainSync(() -> a.getDecorView().getHeight()) - safeRect.bottom; in getSafeRect()
[all …]