Home
last modified time | relevance | path

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

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/tv/
DTvPipKeepClearAlgorithmTest.kt178 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/
DStatusBarContentInsetsProviderTest.kt195 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/
DWindowMetricsHelperTest.java93 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/
DScrimViewTest.java96 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/
DCameraErrorCollector.java567 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/
DWindowMagnificationSettingsTest.java351 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/
DBubblePositionerTest.kt631 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/
DActivityThreadTest.java304 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/
DTaskLaunchParamsModifierTests.java654 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()