Searched refs:currentMetrics (Results 1 – 3 of 3) sorted by relevance
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowMetricsTestHelper.java | 43 public static void assertMetricsMatchesLayout(WindowMetrics currentMetrics, in assertMetricsMatchesLayout() argument 45 assertMetricsMatchesLayout(currentMetrics, maxMetrics, layoutBounds, layoutInsets, in assertMetricsMatchesLayout() 49 public static void assertMetricsMatchesLayout(WindowMetrics currentMetrics, in assertMetricsMatchesLayout() argument 52 assertEquals(layoutBounds, currentMetrics.getBounds()); in assertMetricsMatchesLayout() 58 >= currentMetrics.getBounds().width()); in assertMetricsMatchesLayout() 60 >= currentMetrics.getBounds().height()); in assertMetricsMatchesLayout() 64 currentMetrics.getWindowInsets().getInsets(insetsType)); in assertMetricsMatchesLayout() 66 currentMetrics.getWindowInsets().getDisplayCutout()); in assertMetricsMatchesLayout()
|
D | WindowMetricsActivityTests.java | 263 final WindowMetrics currentMetrics = activity.getWindowManager().getCurrentWindowMetrics(); in assertMetricsMatchesLayout() local 267 () -> currentMetrics.getBounds().equals(listener.getLayoutBounds())) in assertMetricsMatchesLayout() 271 + "metrics is " + currentMetrics.getBounds()))); in assertMetricsMatchesLayout() 275 WindowMetricsTestHelper.assertMetricsMatchesLayout(currentMetrics, maxMetrics, in assertMetricsMatchesLayout() 318 final WindowMetrics currentMetrics = windowManager.getCurrentWindowMetrics(); in assertMetricsValidityForNonresizableActivity() local 319 final Rect currentBounds = boundsShouldIncludeInsets ? currentMetrics.getBounds() in assertMetricsValidityForNonresizableActivity() 320 : getBoundsExcludingNavigationBarAndCutout(currentMetrics); in assertMetricsValidityForNonresizableActivity()
|
D | WindowMetricsWindowContextTests.java | 97 final WindowMetrics currentMetrics = mWm.getCurrentWindowMetrics(); in assertWindowContextMetricsMatchesLayout() local 100 assertMetricsMatchesLayout(currentMetrics, maxMetrics, in assertWindowContextMetricsMatchesLayout()
|