Searched refs:currentMetrics (Results 1 – 5 of 5) sorted by relevance
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | WindowMetricsTestHelper.java | 46 public static void assertMetricsMatchesLayout(WindowMetrics currentMetrics, in assertMetricsMatchesLayout() argument 48 assertMetricsMatchesLayout(currentMetrics, maxMetrics, layoutBounds, layoutInsets, in assertMetricsMatchesLayout() 52 public static void assertMetricsMatchesLayout(WindowMetrics currentMetrics, in assertMetricsMatchesLayout() argument 57 final Rect currentMetricsBounds = currentMetrics.getBounds(); in assertMetricsMatchesLayout() 72 >= currentMetrics.getBounds().width()); in assertMetricsMatchesLayout() 74 >= currentMetrics.getBounds().height()); in assertMetricsMatchesLayout() 77 currentMetrics.getWindowInsets().getInsets(insetsType)); in assertMetricsMatchesLayout() 79 currentMetrics.getWindowInsets().getDisplayCutout()); in assertMetricsMatchesLayout() 99 final WindowMetrics currentMetrics = windowManager.getCurrentWindowMetrics(); in assertMetricsValidity() local 103 assertMetricsMatchDisplay(maxMetrics, currentMetrics, display, isFreeForm); in assertMetricsValidity() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/ |
D | WindowMetricsActivityTests.java | 241 final Supplier<WindowMetrics> currentMetrics = in assertMetricsMatchesLayout() local 247 () -> currentMetrics.get().getBounds().equals(listener.getLayoutBounds())) in assertMetricsMatchesLayout() 251 + "metrics is " + currentMetrics.get().getBounds()))); in assertMetricsMatchesLayout() 255 WindowMetricsTestHelper.assertMetricsMatchesLayout(currentMetrics.get(), maxMetrics.get(), in assertMetricsMatchesLayout() 306 final WindowMetrics currentMetrics = windowManager.getCurrentWindowMetrics(); in assertMetricsValidityForNonresizableActivity() local 312 assertMetricsMatchDisplay(maxMetrics, currentMetrics, display, shouldBoundsIncludeInsets); in assertMetricsValidityForNonresizableActivity()
|
D | WindowMetricsWindowContextTests.java | 105 final WindowMetrics currentMetrics = mWm.getCurrentWindowMetrics(); in assertWindowContextMetricsMatchesLayout() local 108 assertMetricsMatchesLayout(currentMetrics, maxMetrics, in assertWindowContextMetricsMatchesLayout()
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/area/ |
D | ExtensionRearDisplayTest.java | 340 DisplayMetrics currentMetrics = new DisplayMetrics(); in testGetRearDisplayMetrics_afterRotation() local 350 mActivity.getDisplay().getRealMetrics(currentMetrics); in testGetRearDisplayMetrics_afterRotation() 351 return originalMetricsApi.equals(currentMetrics); in testGetRearDisplayMetrics_afterRotation()
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/layout/ |
D | ExtensionWindowLayoutComponentTest.java | 325 final WindowMetrics currentMetrics = mWm.getCurrentWindowMetrics(); in testWindowLayoutComponent_providesWindowLayoutFromWindowContext() local 331 assertTrue(currentMetrics.getBounds().contains(featureRect)); in testWindowLayoutComponent_providesWindowLayoutFromWindowContext()
|