Home
last modified time | relevance | path

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

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSizeCompatTests.java146 final Rect appBounds = mActivity.getWindowConfiguration().getAppBounds(); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() local
152 final int offsetX = (int) ((1f + displayBounds.width() - appBounds.width()) / 2); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
154 assertEquals(offsetX, appBounds.left); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
155 assertEquals(appBounds.height(), displayBounds.height() - notchHeight); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
157 assertEquals(appBounds.height(), appBounds.width() * aspectRatio, 0.5f /* delta */); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
159 assertEquals(mActivity.getBounds().height(), appBounds.height() + notchHeight); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
166 assertEquals(appBounds.width(), appBounds.height() * aspectRatio, 0.5f /* delta */); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
168 assertEquals(mActivity.getBounds().height(), appBounds.height() + notchHeight); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
179 assertEquals(appBounds.left, in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
180 notchHeight + (displayBounds.width() - notchHeight - appBounds.width()) / 2); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
[all …]
DWindowConfigurationTests.java175 final Rect appBounds = mWm.computeNewConfiguration( in testAppBounds_RootConfigurationBounds() local
182 assertEquals(expectedLeft, appBounds.left); in testAppBounds_RootConfigurationBounds()
183 assertEquals(expectedTop, appBounds.top); in testAppBounds_RootConfigurationBounds()
186 assertEquals(info.appWidth, appBounds.width()); in testAppBounds_RootConfigurationBounds()
187 assertEquals(info.appHeight, appBounds.height()); in testAppBounds_RootConfigurationBounds()
/frameworks/base/core/java/android/view/
DDisplayInfo.java589 final Rect appBounds = configuration != null in getMetricsWithSize() local
591 width = appBounds != null ? appBounds.width() : width; in getMetricsWithSize()
592 height = appBounds != null ? appBounds.height() : height; in getMetricsWithSize()
/frameworks/base/core/java/android/window/
DWindowContainerTransaction.java85 @NonNull WindowContainerToken container,@NonNull Rect appBounds) { in setAppBounds() argument
87 chg.mConfiguration.windowConfiguration.setAppBounds(appBounds); in setAppBounds()
/frameworks/base/services/core/java/com/android/server/wm/
DTask.java2203 final Rect appBounds = inOutConfig.windowConfiguration.getAppBounds(); in invalidateAppBoundsConfig() local
2204 if (appBounds != null) { in invalidateAppBoundsConfig()
2205 appBounds.setEmpty(); in invalidateAppBoundsConfig()
DDisplayContent.java1876 final Rect appBounds = outConfig.windowConfiguration.getAppBounds(); in computeScreenConfiguration() local
1877 displayInfo.appWidth = appBounds.width(); in computeScreenConfiguration()
1878 displayInfo.appHeight = appBounds.height(); in computeScreenConfiguration()
DActivityRecord.java6347 final Rect appBounds = getConfiguration().windowConfiguration.getAppBounds(); in inSizeCompatMode() local
6348 if (appBounds == null) { in inSizeCompatMode()
6362 final int appWidth = appBounds.width(); in inSizeCompatMode()
6363 final int appHeight = appBounds.height(); in inSizeCompatMode()