Searched refs:cutout (Results 1 – 6 of 6) sorted by relevance
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | DisplayCutoutTests.java | 195 runTest(LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES, (a, insets, cutout, which) -> { in testDisplayCutout_shortEdges() 211 Insets.of(safeInsets(cutout)), in testDisplayCutout_shortEdges() 300 DisplayCutout cutout = insets.getDisplayCutout(); in assertSafeInsetsAreConsistentWithDisplayCutoutInsets() local 301 Insets safeInsets = Insets.of(safeInsets(cutout)); in assertSafeInsetsAreConsistentWithDisplayCutoutInsets() 310 private void commonAsserts(TestActivity activity, DisplayCutout cutout) { in commonAsserts() argument 311 assertSafeInsetsValid(cutout); in commonAsserts() 312 assertCutoutsAreWithinSafeInsets(activity, cutout); in commonAsserts() 313 assertBoundsAreNonEmpty(cutout); in commonAsserts() 314 assertAtMostOneCutoutPerEdge(activity, cutout); in commonAsserts() 318 TestActivity activity, WindowInsets insets, DisplayCutout cutout) { in shortEdgeAsserts() argument [all …]
|
D | ManifestLayoutTests.java | 219 DisplayCutout cutout = mDm.getDisplay(DEFAULT_DISPLAY).getCutout(); in getCutoutSizeByHorGravity() local 220 if (cutout == null) { in getCutoutSizeByHorGravity() 228 return cutout.getSafeInsetLeft(); in getCutoutSizeByHorGravity() 230 return cutout.getSafeInsetRight(); in getCutoutSizeByHorGravity()
|
/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 | 168 for (Rect cutout : mCutouts) { in isInsideCutout() 169 if (cutout.contains(x, y)) { in isInsideCutout()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/displaycutout/ |
D | DisplayCutoutTestActivity.java | 83 public void updateButtons(DisplayCutout cutout) { in updateButtons() argument 85 if (cutout != null) { in updateButtons() 86 safeInsets.set(cutout.getSafeInsetLeft(), in updateButtons() 87 cutout.getSafeInsetTop(), in updateButtons() 88 cutout.getSafeInsetRight(), in updateButtons() 89 cutout.getSafeInsetBottom()); in updateButtons()
|
/cts/tests/framework/base/windowmanager/ |
D | OWNERS | 5 # insets & cutout
|