Home
last modified time | relevance | path

Searched refs:expectedWidth (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/test/
DSizeAssertions.kt25 expectedWidth: Dp, in SemanticsNodeInteraction()
26 expectedHeight: Dp = expectedWidth, in SemanticsNodeInteraction()
28 assertWidthIsEqualTo(expectedWidth) in SemanticsNodeInteraction()
/frameworks/libs/systemui/weathereffects/graphics/tests/src/com/google/android/wallpaper/weathereffects/graphics/
DFrameBufferTest.kt37 val expectedWidth = 1 in onImageReady_invokesCallback() constant
41 val buffer = FrameBuffer(expectedWidth, expectedHeight) in onImageReady_invokesCallback()
60 assertThat(resultBitmap.width).isEqualTo(expectedWidth) in onImageReady_invokesCallback()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/battery/
DBatterySpecsTest.kt98 val expectedWidth = BATTERY_WIDTH * 0.6f in getMainBatteryWidth_shieldTrue_returnsNotFullWidth() constant
99 assertThat(mainWidth).isWithin(.0001f).of(expectedWidth) in getMainBatteryWidth_shieldTrue_returnsNotFullWidth()
/frameworks/av/services/camera/libcameraservice/tests/
DDepthProcessorTest.cpp248 size_t expectedWidth = kTestBufferWidth; in TEST() local
253 expectedWidth = kTestBufferHeight; in TEST()
304 ASSERT_EQ(depthMapWidth, expectedWidth); in TEST()
316 ASSERT_EQ(confidenceMapWidth, expectedWidth); in TEST()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DBigPictureIconManagerTest.kt257 assertSize(drawableCaptor.value, expectedWidth = 20, expectedHeight = 20) in onIconUpdated_supportedTypeButTooWide_resizedPlaceholderLoaded()
276 assertSize(drawableCaptor.value, expectedWidth = 20, expectedHeight = 20) in onIconUpdated_supportedTypeButTooHigh_resizedPlaceholderLoaded()
484 expectedWidth: Int = expectedDrawable.intrinsicWidth, in assertSize()
487 assertThat(drawable.intrinsicWidth).isEqualTo(expectedWidth) in assertSize()
/frameworks/base/libs/WindowManager/Shell/multivalentTests/src/com/android/wm/shell/bubbles/
DBubblePositionerTest.kt231 val expectedWidth = resources.getDimensionPixelSize(R.dimen.bubble_bar_expanded_view_width) in testBubbleBarExpandedViewHeightAndWidth() constant
233 assertThat(positioner.getExpandedViewWidthForBubbleBar(false)).isEqualTo(expectedWidth) in testBubbleBarExpandedViewHeightAndWidth()
256 val expectedWidth = screenWidth - 15 /* horizontal insets */ - 2 * expandedViewSpacing in testBubbleBarExpandedViewHeightAndWidth_screenWidthTooSmall() constant
257 assertThat(positioner.getExpandedViewWidthForBubbleBar(false)).isEqualTo(expectedWidth) in testBubbleBarExpandedViewHeightAndWidth_screenWidthTooSmall()
/frameworks/base/media/tests/MtpTests/src/android/mtp/
DMtpDatabaseTest.java168 private void assertBitmapSize(int expectedWidth, int expectedHeight, Bitmap bitmap) { in assertBitmapSize() argument
170 "Abnormal bitmap.width: " + bitmap.getWidth(), bitmap.getWidth() >= expectedWidth); in assertBitmapSize()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/
DLetterboxEduWindowManagerTest.java396 int expectedWidth, int expectedHeight, int expectedExtraTopMargin, in verifyLayout() argument
398 assertThat(params.width).isEqualTo(expectedWidth); in verifyLayout()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWallpaperControllerTests.java145 int expectedWidth = (int) (wallpaperWidth * layoutScale + .5f); in testWallpaperSizeWithFixedTransform() local
148 assertEquals(expectedWidth, wallpaperWindow.getFrame().width()); in testWallpaperSizeWithFixedTransform()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/
DWallpaperCropperTest.java235 int expectedWidth = (int) (displaySize.x * (1 + WallpaperCropper.MAX_PARALLAX)); in testGetAdjustedCrop_tooMuchParallax() local
236 Point expectedCropSize = new Point(expectedWidth, 1000); in testGetAdjustedCrop_tooMuchParallax()
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
DShortcutManagerTestUtils.java661 public static void assertBitmapSize(int expectedWidth, int expectedHeight, Bitmap bitmap) { in assertBitmapSize() argument
662 assertEquals("width", expectedWidth, bitmap.getWidth()); in assertBitmapSize()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest1.java1199 … protected void checkShrinkBitmap(int expectedWidth, int expectedHeight, int resId, int maxSize) { in checkShrinkBitmap() argument
1200 assertBitmapSize(expectedWidth, expectedHeight, in checkShrinkBitmap()