/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/tv/ |
D | TvPipKeepClearAlgorithmTest.kt | 178 val expectedBounds = getExpectedAnchorBounds() in test_AnchorBottomRight_KeepClearNotObstructing_StayAtAnchor() constant 181 assertEquals(expectedBounds, placement.bounds) in test_AnchorBottomRight_KeepClearNotObstructing_StayAtAnchor() 193 val expectedBounds = anchorBoundsOffsetBy(SCREEN_EDGE_INSET - sidebar.width() - PADDING, 0) in test_AnchorBottomRight_UnrestrictedRightSidebar_PushedLeft() constant 196 assertEquals(expectedBounds, placement.bounds) in test_AnchorBottomRight_UnrestrictedRightSidebar_PushedLeft() 208 val expectedBounds = anchorBoundsOffsetBy(SCREEN_EDGE_INSET - sidebar.width() - PADDING, 0) in test_AnchorTopRight_UnrestrictedRightSidebar_PushedLeft() constant 211 assertEquals(expectedBounds, placement.bounds) in test_AnchorTopRight_UnrestrictedRightSidebar_PushedLeft() 223 val expectedBounds = anchorBoundsOffsetBy(0, 0) in test_AnchorBottomLeft_UnrestrictedRightSidebar_StayAtAnchor() constant 226 assertEquals(expectedBounds, placement.bounds) in test_AnchorBottomLeft_UnrestrictedRightSidebar_StayAtAnchor() 238 val expectedBounds = anchorBoundsOffsetBy(0, 0) in test_AnchorBottom_UnrestrictedRightSidebar_StayAtAnchor() constant 241 assertEquals(expectedBounds, placement.bounds) in test_AnchorBottom_UnrestrictedRightSidebar_StayAtAnchor() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/phone/ |
D | StatusBarContentInsetsProviderTest.kt | 195 var expectedBounds = in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout_noCameraProtection() variable 213 assertRects(expectedBounds, bounds, currentRotation, targetRotation) in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout_noCameraProtection() 216 expectedBounds = in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout_noCameraProtection() 234 assertRects(expectedBounds, bounds, currentRotation, targetRotation) in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout_noCameraProtection() 239 expectedBounds = in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout_noCameraProtection() 257 assertRects(expectedBounds, bounds, currentRotation, targetRotation) in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout_noCameraProtection() 261 expectedBounds = in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout_noCameraProtection() 284 assertRects(expectedBounds, bounds, currentRotation, targetRotation) in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout_noCameraProtection() 308 var expectedBounds = in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout_withCameraProtection() variable 326 assertRects(expectedBounds, bounds, currentRotation, targetRotation) in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout_withCameraProtection() [all …]
|
/frameworks/base/core/tests/coretests/src/android/window/ |
D | WindowMetricsHelperTest.java | 93 final Rect expectedBounds = new Rect(metrics.getBounds()); in testGetBoundsExcludingNavigationBarAndCutout() local 94 expectedBounds.inset(windowInsets.getInsetsIgnoringVisibility( in testGetBoundsExcludingNavigationBarAndCutout() 97 assertEquals(expectedBounds.width(), boundsExcludingNavBarAndCutout.width()); in testGetBoundsExcludingNavigationBarAndCutout() 98 assertEquals(expectedBounds.height(), boundsExcludingNavBarAndCutout.height()); in testGetBoundsExcludingNavigationBarAndCutout()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/scrim/ |
D | ScrimViewTest.java | 96 Rect expectedBounds = new Rect(100, 100, 100, 100); in setDrawableBounds_propagatesToDrawable() local 100 assertEquals(expectedBounds, drawable.getBounds()); in setDrawableBounds_propagatesToDrawable() 103 assertEquals(expectedBounds, drawable.getBounds()); in setDrawableBounds_propagatesToDrawable()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | CameraErrorCollector.java | 567 public void expectRectCentered(String msg, Size expectedBounds, Rect actual, in expectRectCentered() argument 571 msg, expectedBounds, actual, errorPercent); in expectRectCentered() 573 int centerBoundX = expectedBounds.getWidth() / 2; in expectRectCentered() 574 int centerBoundY = expectedBounds.getHeight() / 2; in expectRectCentered()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | WindowMagnificationSettingsTest.java | 351 Rect expectedBounds = new Rect(expectedLeft, expectedTop, expectedRight, expectedBottom); in onWindowBoundsChanged_updateDraggableWindowBounds() local 352 assertThat(mWindowMagnificationSettings.mDraggableWindowBounds).isEqualTo(expectedBounds); in onWindowBoundsChanged_updateDraggableWindowBounds()
|
/frameworks/base/libs/WindowManager/Shell/multivalentTests/src/com/android/wm/shell/bubbles/ |
D | BubblePositionerTest.kt | 631 val expectedBounds = Rect(left, top, right, bottom) in testGetBubbleBarExpandedViewBounds() constant 636 assertThat(bounds).isEqualTo(expectedBounds) in testGetBubbleBarExpandedViewBounds()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | ActivityThreadTest.java | 304 final Rect expectedBounds = expectedConfig.windowConfiguration.getBounds(); in assertScreenScale() local 315 assertEquals(expectedBounds, currentConfig.windowConfiguration.getBounds()); in assertScreenScale()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskLaunchParamsModifierTests.java | 654 final Rect expectedBounds = new Rect(0, 0, 100, 100); in testBoundsInOptionsInfersFullscreenWithBoundsOnFreeformSupportFullscreenDisplay() local 655 options.setLaunchBounds(expectedBounds); in testBoundsInOptionsInfersFullscreenWithBoundsOnFreeformSupportFullscreenDisplay() 667 assertEquals(expectedBounds, mResult.mBounds); in testBoundsInOptionsInfersFullscreenWithBoundsOnFreeformSupportFullscreenDisplay()
|