Home
last modified time | relevance | path

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

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowConfigurationTests.java193 final Rect appBounds = mWm.computeNewConfiguration( in testAppBounds_RootConfigurationBounds() local
200 assertEquals(expectedLeft, appBounds.left); in testAppBounds_RootConfigurationBounds()
201 assertEquals(expectedTop, appBounds.top); in testAppBounds_RootConfigurationBounds()
204 assertEquals(info.appWidth, appBounds.width()); in testAppBounds_RootConfigurationBounds()
205 assertEquals(info.appHeight, appBounds.height()); in testAppBounds_RootConfigurationBounds()
DSizeCompatTests.java193 final Rect appBounds = mActivity.getWindowConfiguration().getAppBounds(); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() local
199 final int offsetX = (int) ((1f + displayBounds.width() - appBounds.width()) / 2); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
201 assertEquals(offsetX, appBounds.left); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
202 assertEquals(appBounds.height(), displayBounds.height() - notchHeight); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
204 assertEquals(appBounds.height(), appBounds.width() * aspectRatio, 0.5f /* delta */); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
206 assertEquals(mActivity.getBounds().height(), appBounds.height() + notchHeight); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
219 assertEquals(appBounds.width(), appBounds.height() * aspectRatio, 0.5f /* delta */); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
221 assertEquals(appBounds, mActivity.getBounds()); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
437 final Rect appBounds = mActivity.getWindowConfiguration().getAppBounds(); in testMoveToDifferentOrientationDisplay() local
438 assertEquals(currentBounds.width(), appBounds.width()); in testMoveToDifferentOrientationDisplay()
[all …]
/frameworks/base/core/java/android/view/
DDisplayInfo.java698 final Rect appBounds = configuration != null in getMetricsWithSize() local
700 width = appBounds != null ? appBounds.width() : width; in getMetricsWithSize()
701 height = appBounds != null ? appBounds.height() : height; in getMetricsWithSize()
/frameworks/base/core/java/android/content/res/
DCompatibilityInfo.java553 final Rect appBounds = inoutConfig.windowConfiguration.getAppBounds(); in applyToConfiguration() local
554 if (appBounds != null) { in applyToConfiguration()
555 appBounds.scale(invertedRatio); in applyToConfiguration()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayArea.java485 final Rect appBounds = new Rect(overrideBounds); in resolveOverrideConfiguration() local
486 appBounds.intersect(parentAppBounds); in resolveOverrideConfiguration()
487 resolvedConfig.windowConfiguration.setAppBounds(appBounds); in resolveOverrideConfiguration()
DActivityRecord.java7020 final Rect appBounds = getConfiguration().windowConfiguration.getAppBounds(); in inSizeCompatMode() local
7021 if (appBounds == null) { in inSizeCompatMode()
7588 private boolean isInSizeCompatModeForBounds(final Rect appBounds, final Rect containerBounds) { in isInSizeCompatModeForBounds() argument
7589 final int appWidth = appBounds.width(); in isInSizeCompatModeForBounds()
7590 final int appHeight = appBounds.height(); in isInSizeCompatModeForBounds()
DDisplayContent.java2091 final Rect appBounds = outConfig.windowConfiguration.getAppBounds(); in computeScreenConfiguration() local
2092 displayInfo.appWidth = appBounds.width(); in computeScreenConfiguration()
2093 displayInfo.appHeight = appBounds.height(); in computeScreenConfiguration()
DTask.java2633 final Rect appBounds = inOutConfig.windowConfiguration.getAppBounds(); in invalidateAppBoundsConfig() local
2634 if (appBounds != null) { in invalidateAppBoundsConfig()
2635 appBounds.setEmpty(); in invalidateAppBoundsConfig()
/frameworks/base/core/java/android/window/
DWindowContainerTransaction.java87 @NonNull WindowContainerToken container,@NonNull Rect appBounds) { in setAppBounds() argument
89 chg.mConfiguration.windowConfiguration.setAppBounds(appBounds); in setAppBounds()