/cts/tests/framework/base/windowmanager/src/android/server/wm/window/ |
D | WindowMetricsTest.java | 48 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/ |
D | ActivityEmbeddingPlaceholderTests.java | 185 .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;
|
D | ActivityEmbeddingIntegrationTests.java | 96 windowMetrics -> true in testDisplayFeaturesWithEmbedding() 137 windowMetrics -> true in testClearSplitInfoCallback()
|
D | ActivityEmbeddingFinishTests.java | 336 ? windowMetrics -> false : windowMetrics -> true; in start()
|
D | ActivityEmbeddingBoundsTests.java | 288 windowMetrics -> true) in testHingeSplitType() 307 windowMetrics -> true in testExpandSplitType()
|
D | PinActivityStackTests.java | 295 activityIntentPair -> true, windowMetrics -> true).setDefaultSplitAttributes( in pinExpandActivityAndResizeDisplay()
|
/cts/tests/input/src/android/input/cts/ |
D | TwoWindowsActivity.kt | 63 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/ |
D | CloseOnOutsideTests.java | 82 WindowMetrics windowMetrics = in touchAndAssert() local 85 windowMetrics.getWindowInsets().getInsets(WindowInsets.Type.systemBars()); in touchAndAssert() 87 windowMetrics.getWindowInsets().getInsets(WindowInsets.Type.statusBars()); in touchAndAssert()
|
D | CloseOnOutsideTestActivity.java | 46 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/ |
D | RoundedCornerTests.java | 266 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/ |
D | WindowMetricsTestHelper.java | 166 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/ |
D | ConfigurationScreenLayoutTest.java | 151 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/ |
D | PrivacyIndicatorBoundsTests.java | 152 final WindowMetrics windowMetrics = getWindowManager().getMaximumWindowMetrics(); in addChildWindow() local 153 mScreenBounds = windowMetrics.getBounds(); in addChildWindow()
|
/cts/tests/tests/assist/service/src/android/assist/service/ |
D | MainInteractionSession.java | 146 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/ |
D | FullScreenMagnificationGestureHandlerTest.java | 219 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/ |
D | SplashscreenTests.java | 213 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/ |
D | ExtensionRearDisplayTest.java | 356 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/ |
D | WindowInputTests.java | 215 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/ |
D | ActivityEmbeddingUtil.java | 99 windowMetrics -> true) in createWildcardSplitPairRule() 122 windowMetrics -> true) in createWildcardSplitPairRuleBuilderWithPrimaryActivityClass()
|
/cts/tests/tests/gameservice/src/android/service/games/ |
D | GameServiceTest.java | 945 WindowMetrics windowMetrics = wm.getCurrentWindowMetrics(); 946 Rect windowBounds = windowMetrics.getBounds();
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | BubblesVerifierActivity.java | 942 WindowMetrics windowMetrics = in performTestAction() local 944 WindowInsets metricInsets = windowMetrics.getWindowInsets(); in performTestAction()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 3942 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()
|