Home
last modified time | relevance | path

Searched refs:stableBounds (Results 1 – 2 of 2) sorted by relevance

/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DManifestLayoutTests.java181 private static Size calculateExpectedSize(Rect stableBounds, boolean fraction) { in calculateExpectedSize() argument
187 expectedWidthPx = (int) (stableBounds.width() * DEFAULT_WIDTH_FRACTION); in calculateExpectedSize()
188 expectedHeightPx = (int) (stableBounds.height() * DEFAULT_HEIGHT_FRACTION); in calculateExpectedSize()
198 final Rect stableBounds = new Rect(maxWindowMetrics.getBounds()); in getStableBounds() local
199 stableBounds.inset(maxWindowMetrics.getWindowInsets().getInsetsIgnoringVisibility( in getStableBounds()
201 return stableBounds; in getStableBounds()
215 final Rect stableBounds = getStableBounds(mWm.getMaximumWindowMetrics()); in validateGravityInfluencesSize() local
216 final Size expectedSize = calculateExpectedSize(stableBounds, fraction); in validateGravityInfluencesSize()
231 final Rect stableBounds = getStableBounds(mWm.getMaximumWindowMetrics()); in validateGravityInfluencesPosition() local
239 verifyFramePosition(vGravity, hGravity, mWindowState.getParentFrame(), stableBounds); in validateGravityInfluencesPosition()
[all …]
DSplashscreenTests.java214 final Rect stableBounds = new Rect(windowMetrics.getBounds()); in testSplashScreenColor() local
215 stableBounds.inset(windowMetrics.getWindowInsets().getInsetsIgnoringVisibility( in testSplashScreenColor()
243 appBounds.intersect(stableBounds); in testSplashScreenColor()