Home
last modified time | relevance | path

Searched refs:windowMetrics (Results 1 – 22 of 22) sorted by relevance

/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DWindowMetricsTest.java48 final WindowMetrics windowMetrics = new WindowMetrics(bounds, windowInsets, density); in testConstructor() local
50 assertThat(windowMetrics.getBounds()).isEqualTo(bounds); in testConstructor()
51 assertThat(windowMetrics.getWindowInsets()).isEqualTo(windowInsets); in testConstructor()
52 assertThat(windowMetrics.getDensity()).isEqualTo(density); in testConstructor()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/
DActivityEmbeddingPlaceholderTests.java185 .setParentWindowMetrics(windowMetrics -> in testPlaceholderFinishedWhenTaskWidthDecreased()
186 windowMetrics.getBounds().width() >= taskWidth in testPlaceholderFinishedWhenTaskWidthDecreased()
187 && windowMetrics.getBounds().height() >= taskHeight) in testPlaceholderFinishedWhenTaskWidthDecreased()
232 .setParentWindowMetrics(windowMetrics -> in testPlaceholderLaunchedWhenTaskWidthIncreased()
233 windowMetrics.getBounds().width() >= splitTaskWidth in testPlaceholderLaunchedWhenTaskWidthIncreased()
234 && windowMetrics.getBounds().height() in testPlaceholderLaunchedWhenTaskWidthIncreased()
275 .setParentWindowMetrics(windowMetrics -> in testStickyPlaceholder()
276 windowMetrics.getBounds().width() >= taskWidth in testStickyPlaceholder()
277 && windowMetrics.getBounds().height() >= taskHeight) in testStickyPlaceholder()
308 private Predicate<WindowMetrics> mParentWindowMetricsPredicate = windowMetrics -> true;
DActivityEmbeddingIntegrationTests.java96 windowMetrics -> true in testDisplayFeaturesWithEmbedding()
137 windowMetrics -> true in testClearSplitInfoCallback()
DActivityEmbeddingFinishTests.java336 ? windowMetrics -> false : windowMetrics -> true; in start()
DActivityEmbeddingBoundsTests.java288 windowMetrics -> true) in testHingeSplitType()
307 windowMetrics -> true in testExpandSplitType()
DPinActivityStackTests.java295 activityIntentPair -> true, windowMetrics -> true).setDefaultSplitAttributes( in pinExpandActivityAndResizeDisplay()
/cts/tests/input/src/android/input/cts/
DTwoWindowsActivity.kt63 val windowMetrics = windowManager.currentWindowMetrics in launchTwoWindows() constant
64 val insets = windowMetrics.windowInsets.getInsetsIgnoringVisibility( in launchTwoWindows()
67 val width = windowMetrics.bounds.width() - insets.left - insets.right in launchTwoWindows()
68 val height = windowMetrics.bounds.height() - insets.top - insets.bottom in launchTwoWindows()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DCloseOnOutsideTests.java82 WindowMetrics windowMetrics = in touchAndAssert() local
85 windowMetrics.getWindowInsets().getInsets(WindowInsets.Type.systemBars()); in touchAndAssert()
87 windowMetrics.getWindowInsets().getInsets(WindowInsets.Type.statusBars()); in touchAndAssert()
DCloseOnOutsideTestActivity.java46 WindowMetrics windowMetrics = getWindowManager().getCurrentWindowMetrics(); in setupWindowSize() local
47 Insets insets = windowMetrics.getWindowInsets().getInsets(WindowInsets.Type.systemBars()); in setupWindowSize()
/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/
DRoundedCornerTests.java266 final WindowMetrics windowMetrics = getWindowManager().getCurrentWindowMetrics(); in calculateWindowBounds() local
268 return windowMetrics.getBounds(); in calculateWindowBounds()
271 final int width = windowMetrics.getBounds().width(); in calculateWindowBounds()
272 final int height = windowMetrics.getBounds().height(); in calculateWindowBounds()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowMetricsTestHelper.java166 public static Rect getBoundsExcludingInsetsTypes(WindowMetrics windowMetrics, in getBoundsExcludingInsetsTypes() argument
168 WindowInsets windowInsets = windowMetrics.getWindowInsets(); in getBoundsExcludingInsetsTypes()
172 final Rect bounds = windowMetrics.getBounds(); in getBoundsExcludingInsetsTypes()
/cts/tests/tests/dpi/src/android/dpi/cts/
DConfigurationScreenLayoutTest.java151 final WindowMetrics windowMetrics = activity.getWindowManager().getCurrentWindowMetrics(); in reduceScreenLayout() local
152 final Rect bounds = new Rect(windowMetrics.getBounds()); in reduceScreenLayout()
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DPrivacyIndicatorBoundsTests.java152 final WindowMetrics windowMetrics = getWindowManager().getMaximumWindowMetrics(); in addChildWindow() local
153 mScreenBounds = windowMetrics.getBounds(); in addChildWindow()
/cts/tests/tests/assist/service/src/android/assist/service/
DMainInteractionSession.java146 WindowMetrics windowMetrics = wm.getCurrentWindowMetrics(); in onShow()
147 Rect bound = windowMetrics.getBounds(); in onShow()
148 WindowInsets windowInsets = windowMetrics.getWindowInsets(); in onShow()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DFullScreenMagnificationGestureHandlerTest.java219 WindowMetrics windowMetrics = in setUp() local
221 Rect windowBounds = windowMetrics.getBounds(); in setUp()
222 WindowInsets insets = windowMetrics.getWindowInsets(); in setUp()
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DSplashscreenTests.java213 final WindowMetrics windowMetrics = mWm.getMaximumWindowMetrics(); in testSplashScreenColor() local
214 final Rect stableBounds = new Rect(windowMetrics.getBounds()); in testSplashScreenColor()
215 stableBounds.inset(windowMetrics.getWindowInsets().getInsetsIgnoringVisibility( in testSplashScreenColor()
368 final WindowMetrics windowMetrics = mWm.getMaximumWindowMetrics(); in canShowBranding() local
369 final Rect drawableBounds = new Rect(windowMetrics.getBounds()); in canShowBranding()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/area/
DExtensionRearDisplayTest.java356 WindowMetrics windowMetrics = mActivity.getWindowManager().getCurrentWindowMetrics(); in testGetRearDisplayMetrics_afterRotation() local
376 assertNotEquals(windowMetrics, postRotationWindowMetrics); in testGetRearDisplayMetrics_afterRotation()
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/
DWindowInputTests.java215 final WindowMetrics windowMetrics = wm.getCurrentWindowMetrics(); in testMoveWindowAndTap() local
216 final WindowInsets windowInsets = windowMetrics.getWindowInsets(); in testMoveWindowAndTap()
217 final Rect selectBounds = new Rect(windowMetrics.getBounds()); in testMoveWindowAndTap()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/
DActivityEmbeddingUtil.java99 windowMetrics -> true) in createWildcardSplitPairRule()
122 windowMetrics -> true) in createWildcardSplitPairRuleBuilderWithPrimaryActivityClass()
/cts/tests/tests/gameservice/src/android/service/games/
DGameServiceTest.java945 WindowMetrics windowMetrics = wm.getCurrentWindowMetrics();
946 Rect windowBounds = windowMetrics.getBounds();
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DBubblesVerifierActivity.java942 WindowMetrics windowMetrics = in performTestAction() local
944 WindowInsets metricInsets = windowMetrics.getWindowInsets(); in performTestAction()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java3942 WindowMetrics windowMetrics = windowManager.getCurrentWindowMetrics(); in getPreviewSizeBound() local
3943 Rect windowBounds = windowMetrics.getBounds(); in getPreviewSizeBound()
5394 WindowMetrics windowMetrics = windowManager.getCurrentWindowMetrics(); in getMaxPreviewSize() local
5395 Rect windowBounds = windowMetrics.getBounds(); in getMaxPreviewSize()