Searched refs:cutout (Results 1 – 5 of 5) sorted by relevance
/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/ |
D | DisplayCutoutTests.java | 302 runTest(LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES, (a, insets, cutout, which) -> { in testDisplayCutout_shortEdges() 319 Insets.of(safeInsets(cutout, true /* canIgnoreSmallCutout */)), in testDisplayCutout_shortEdges() 412 DisplayCutout cutout = insets.getDisplayCutout(); in assertSafeInsetsAreConsistentWithDisplayCutoutInsets() local 413 Insets safeInsets = Insets.of(safeInsets(cutout)); in assertSafeInsetsAreConsistentWithDisplayCutoutInsets() 422 private void commonAsserts(TestActivity activity, DisplayCutout cutout) { in commonAsserts() argument 423 assertSafeInsetsValid(cutout); in commonAsserts() 424 assertCutoutsAreWithinSafeInsets(activity, cutout); in commonAsserts() 425 assertBoundsAreNonEmpty(cutout); in commonAsserts() 426 assertAtMostOneCutoutPerEdge(activity, cutout); in commonAsserts() 430 TestActivity activity, WindowInsets insets, DisplayCutout cutout, in shortEdgeAsserts() argument [all …]
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | WindowInsetsActivity.java | 288 final DisplayCutout cutout = windowInsets.getDisplayCutout(); in calculateBoundsWithInsets() local 289 if (cutout != null) { in calculateBoundsWithInsets() 291 if (cutout.getSafeInsetLeft() > 0) { in calculateBoundsWithInsets() 292 left = Math.max(left, cutout.getSafeInsetLeft() + slack); in calculateBoundsWithInsets() 294 if (cutout.getSafeInsetTop() > 0) { in calculateBoundsWithInsets() 295 top = Math.max(top, cutout.getSafeInsetTop() + slack); in calculateBoundsWithInsets() 297 if (cutout.getSafeInsetRight() > 0) { in calculateBoundsWithInsets() 298 right = Math.max(right, cutout.getSafeInsetRight() + slack); in calculateBoundsWithInsets() 300 if (cutout.getSafeInsetBottom() > 0) { in calculateBoundsWithInsets() 301 bottom = Math.max(bottom, cutout.getSafeInsetBottom() + slack); in calculateBoundsWithInsets()
|
D | LightBarTestBase.java | 161 for (Rect cutout : mCutouts) { in isInsideCutout() 162 if (cutout.contains(x, y)) { in isInsideCutout()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/displaycutout/ |
D | DisplayCutoutTestActivity.java | 86 public void updateButtons(DisplayCutout cutout) { in updateButtons() argument 88 if (cutout != null) { in updateButtons() 89 safeInsets.set(cutout.getSafeInsetLeft(), in updateButtons() 90 cutout.getSafeInsetTop(), in updateButtons() 91 cutout.getSafeInsetRight(), in updateButtons() 92 cutout.getSafeInsetBottom()); in updateButtons()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/ |
D | ManifestLayoutTests.java | 309 DisplayCutout cutout = mDm.getDisplay(DEFAULT_DISPLAY).getCutout(); in getCutoutSizeByHorGravity() local 310 if (cutout == null) { in getCutoutSizeByHorGravity() 318 return cutout.getSafeInsetLeft(); in getCutoutSizeByHorGravity() 320 return cutout.getSafeInsetRight(); in getCutoutSizeByHorGravity()
|