Home
last modified time | relevance | path

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

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowMetricsTestHelper.java91 final Rect maxBounds = windowManager.getMaximumWindowMetrics().getBounds(); in assertMetricsValidity() local
93 assertBoundsMatchDisplay(maxBounds, currentBounds, display); in assertMetricsValidity()
96 if (maxWindowBoundsSandboxed(displayAreaBounds, maxBounds)) { in assertMetricsValidity()
100 currentBounds, maxBounds); in assertMetricsValidity()
105 displayAreaBounds, maxBounds); in assertMetricsValidity()
121 static void assertBoundsMatchDisplay(Rect maxBounds, Rect currentBounds, Display display) { in assertBoundsMatchDisplay() argument
134 realDisplaySize.x, maxBounds.width()); in assertBoundsMatchDisplay()
136 realDisplaySize.y, maxBounds.height()); in assertBoundsMatchDisplay()
152 static boolean maxWindowBoundsSandboxed(Rect displayAreaBounds, Rect maxBounds) { in maxWindowBoundsSandboxed() argument
153 return maxBounds.width() < displayAreaBounds.width() in maxWindowBoundsSandboxed()
[all …]
DWindowMetricsActivityTests.java322 final Rect maxBounds = windowManager.getMaximumWindowMetrics().getBounds(); in assertMetricsValidityForNonresizableActivity() local
325 assertBoundsMatchDisplay(maxBounds, currentBounds, display); in assertMetricsValidityForNonresizableActivity()
332 if (maxWindowBoundsSandboxed(displayAreaBounds, maxBounds)) { in assertMetricsValidityForNonresizableActivity()
335 + "activity bounds, when sandboxed", activityBounds, maxBounds); in assertMetricsValidityForNonresizableActivity()
340 maxBounds); in assertMetricsValidityForNonresizableActivity()
DWindowContextTests.java225 final Rect maxBounds = wm.getMaximumWindowMetrics().getBounds(); in testWindowProviderServiceLifecycle() local
230 waitAndAssertWindowMetricsBoundsMatches(service, currentBounds, maxBounds, in testWindowProviderServiceLifecycle()
238 Rect maxBounds, String message) { in waitAndAssertWindowMetricsBoundsMatches() argument
243 return currentBounds.equals(currentWindowBounds) && maxBounds.equals(maxWindowBounds); in waitAndAssertWindowMetricsBoundsMatches()
DCompatChangeTests.java492 final Rect maxBounds = activity.getMaxBounds(); in assertSandboxed() local
498 activityBounds, maxBounds); in assertSandboxed()
502 tda.getBounds(), maxBounds); in assertSandboxed()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DProtoExtractors.java57 config.setMaxBounds(extract(proto.maxBounds)); in extract()