Home
last modified time | relevance | path

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

/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowMetricsTestHelper.java101 final Rect maxBounds = maxMetrics.getBounds(); in assertMetricsValidity() local
106 if (maxWindowBoundsSandboxed(displayAreaBounds, maxBounds)) { in assertMetricsValidity()
112 currentBounds, maxBounds); in assertMetricsValidity()
117 displayAreaBounds, maxBounds); in assertMetricsValidity()
157 final Rect maxBounds = maxMetrics.getBounds(); in assertMetricsMatchDisplay() local
159 realDisplayMetrics.widthPixels, maxBounds.width()); in assertMetricsMatchDisplay()
161 realDisplayMetrics.heightPixels, maxBounds.height()); in assertMetricsMatchDisplay()
180 public static boolean maxWindowBoundsSandboxed(Rect displayAreaBounds, Rect maxBounds) { in maxWindowBoundsSandboxed() argument
181 return maxBounds.width() < displayAreaBounds.width() in maxWindowBoundsSandboxed()
182 || maxBounds.height() < displayAreaBounds.height(); in maxWindowBoundsSandboxed()
DProtoExtractors.java57 config.setMaxBounds(extract(proto.maxBounds)); in extract()
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DWindowMetricsActivityTests.java309 final Rect maxBounds = windowManager.getMaximumWindowMetrics().getBounds(); in assertMetricsValidityForNonresizableActivity() local
319 if (maxWindowBoundsSandboxed(displayAreaBounds, maxBounds)) { in assertMetricsValidityForNonresizableActivity()
322 + "activity bounds, when sandboxed", activityBounds, maxBounds); in assertMetricsValidityForNonresizableActivity()
327 maxBounds); in assertMetricsValidityForNonresizableActivity()
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DWindowContextTests.java237 final Rect maxBounds = wm.getMaximumWindowMetrics().getBounds(); in testWindowProviderServiceLifecycle() local
243 assertBoundsMatches(service, currentBounds, maxBounds, in testWindowProviderServiceLifecycle()
256 Rect maxBounds, String message) { in assertBoundsMatches() argument
261 + "matched.").that(winConfig.getMaxBounds()).isEqualTo(maxBounds); in assertBoundsMatches()
269 .that(maxWindowBounds).isEqualTo(maxBounds); in assertBoundsMatches()
DCompatChangeTests.java1735 final Rect maxBounds = activity.getMaxBounds(); in assertSandboxedByBounds() local
1741 activityBounds, maxBounds); in assertSandboxedByBounds()
1745 tda.getBounds(), maxBounds); in assertSandboxedByBounds()