Home
last modified time | relevance | path

Searched refs:appBounds (Results 1 – 3 of 3) sorted by relevance

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DDisplayCutoutTests.java197 final Rect appBounds = getAppBounds(a); in testDisplayCutout_shortEdges()
200 if (appBounds.height() > appBounds.width()) { in testDisplayCutout_shortEdges()
203 } else if (appBounds.height() < appBounds.width()) { in testDisplayCutout_shortEdges()
338 final Rect appBounds = getAppBounds(activity); in assertCutoutsAreConsistentWithInsets() local
339 assertCutoutIsConsistentWithInset(TOP, cutout, cutout.getSafeInsetTop(), appBounds); in assertCutoutsAreConsistentWithInsets()
340 assertCutoutIsConsistentWithInset(BOTTOM, cutout, cutout.getSafeInsetBottom(), appBounds); in assertCutoutsAreConsistentWithInsets()
341 assertCutoutIsConsistentWithInset(LEFT, cutout, cutout.getSafeInsetLeft(), appBounds); in assertCutoutsAreConsistentWithInsets()
342 assertCutoutIsConsistentWithInset(RIGHT, cutout, cutout.getSafeInsetRight(), appBounds); in assertCutoutsAreConsistentWithInsets()
386 final Rect appBounds = getAppBounds(activity); in assertOnlyShortEdgeHasInsets() local
387 if (appBounds.height() > appBounds.width()) { in assertOnlyShortEdgeHasInsets()
[all …]
DSplashscreenTests.java166 final Rect appBounds; in testSplashScreenColor() local
168 appBounds = new Rect(startingWindowBounds); in testSplashScreenColor()
170 appBounds = new Rect(startingWindow.getFrame()); in testSplashScreenColor()
173 Rect topInsetsBounds = new Rect(insets.left, 0, appBounds.right - insets.right, insets.top); in testSplashScreenColor()
174 Rect bottomInsetsBounds = new Rect(insets.left, appBounds.bottom - insets.bottom, in testSplashScreenColor()
175 appBounds.right - insets.right, appBounds.bottom); in testSplashScreenColor()
179 if (appBounds.isEmpty()) { in testSplashScreenColor()
189 ignoreRect.offsetTo(appBounds.centerX() - ignoreRect.width() / 2, in testSplashScreenColor()
190 appBounds.centerY() - ignoreRect.height() / 2); in testSplashScreenColor()
192 appBounds.intersect(stableBounds); in testSplashScreenColor()
[all …]
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DProtoExtractors.java55 config.setAppBounds(extract(proto.appBounds)); in extract()