/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | InsetDrawableTest.java | 332 assertEquals((int)(mPassDrawable.getIntrinsicHeight() / (1 - 2 * inset)), in testIsBoundsAndIntrinsicSizeInverse() 333 insetDrawable.getIntrinsicHeight()); in testIsBoundsAndIntrinsicSizeInverse() 336 insetDrawable.getIntrinsicHeight()); in testIsBoundsAndIntrinsicSizeInverse() 341 assertEquals((int)(insetDrawable.getIntrinsicHeight() * inset), r.top); in testIsBoundsAndIntrinsicSizeInverse() 344 assertEquals(insetDrawable.getIntrinsicHeight() in testIsBoundsAndIntrinsicSizeInverse() 345 - (int)((inset) * insetDrawable.getIntrinsicHeight()), r.bottom); in testIsBoundsAndIntrinsicSizeInverse() 349 assertEquals(r.height(), mPassDrawable.getIntrinsicHeight(), 1); in testIsBoundsAndIntrinsicSizeInverse() 387 int expected = mPassDrawable.getIntrinsicHeight(); in testGetIntrinsicHeight() 388 assertEquals(expected, mInsetDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight() 393 expected = mPassDrawable.getIntrinsicHeight(); in testGetIntrinsicHeight() [all …]
|
D | GradientDrawableTest.java | 242 assertEquals(height, gradientDrawable.getIntrinsicHeight()); in verifySetSize() 619 assertEquals(3, gradientDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight() 622 assertEquals(-15, gradientDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight() 641 assertEquals(10, d1.getIntrinsicHeight()); in testMutate() 643 assertEquals(10, d2.getIntrinsicHeight()); in testMutate() 645 assertEquals(10, d3.getIntrinsicHeight()); in testMutate() 650 assertEquals(30, d1.getIntrinsicHeight()); in testMutate() 652 assertEquals(10, d2.getIntrinsicHeight()); in testMutate() 654 assertEquals(10, d3.getIntrinsicHeight()); in testMutate() 658 assertEquals(30, d1.getIntrinsicHeight()); in testMutate() [all …]
|
D | LayerDrawableTest.java | 310 doReturn(10).when(firstLayer).getIntrinsicHeight(); in testSetLayerInset() 313 doReturn(-1).when(secondLayer).getIntrinsicHeight(); in testSetLayerInset() 326 assertEquals(layerDrawable.getDrawable(0).getIntrinsicHeight() + top + bottom, in testSetLayerInset() 327 layerDrawable.getIntrinsicHeight()); in testSetLayerInset() 334 assertEquals(layerDrawable.getDrawable(0).getIntrinsicHeight() + top + bottom, in testSetLayerInset() 335 layerDrawable.getIntrinsicHeight()); in testSetLayerInset() 482 assertEquals(46, layerDrawable.getIntrinsicHeight()); in testAccessPaddingMode() 489 assertEquals(40, layerDrawable.getIntrinsicHeight()); in testAccessPaddingMode() 791 doReturn(10).when(largeMockDrawable).getIntrinsicHeight(); in testGetIntrinsicWidth() 794 doReturn(1).when(smallMockDrawable).getIntrinsicHeight(); in testGetIntrinsicWidth() [all …]
|
D | NinePatchDrawableTest.java | 306 assertEquals(bmp.getHeight(), mNinePatchDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight() 307 assertEquals(5, mNinePatchDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight() 311 assertEquals(bmp.getHeight(), mNinePatchDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight() 312 assertEquals(9, mNinePatchDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight() 389 assertEquals(targetHeight, ninePatchDrawable.getIntrinsicHeight()); in testInflate() 400 assertTrue(sourceHeight != ninePatchDrawable.getIntrinsicHeight()); in testInflate() 466 final int origHeight = preloadedDrawable.getIntrinsicHeight(); in verifySetTargetDensityInner() 480 assertEquals(Math.round(origHeight * scale), scaledDrawable.getIntrinsicHeight()); in verifySetTargetDensityInner() 497 assertEquals(origHeight, scaledDrawable.getIntrinsicHeight()); in verifySetTargetDensityInner() 551 final int origHeight = preloadedDrawable.getIntrinsicHeight(); in verifyPreloadDensityInner() [all …]
|
D | AnimationDrawableTest.java | 205 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame() 210 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame() 215 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame()
|
D | PictureDrawableTest.java | 77 assertEquals(-1, pictureDrawable.getIntrinsicHeight()); in testGetIntrinsicSize() 84 assertEquals(101, pictureDrawable.getIntrinsicHeight()); in testGetIntrinsicSize()
|
D | ShapeDrawableTest.java | 115 assertEquals(0, shapeDrawable.getIntrinsicHeight()); in testAccessIntrinsicHeight() 118 assertEquals(10, shapeDrawable.getIntrinsicHeight()); in testAccessIntrinsicHeight() 121 assertEquals(Integer.MIN_VALUE, shapeDrawable.getIntrinsicHeight()); in testAccessIntrinsicHeight() 124 assertEquals(Integer.MAX_VALUE, shapeDrawable.getIntrinsicHeight()); in testAccessIntrinsicHeight() 268 assertEquals(63, shapeDrawable.getIntrinsicHeight()); in testInflate()
|
D | DrawableTest.java | 398 assertEquals(densityAdjustedSize, drawable.getIntrinsicHeight()); in testImageIntrinsicScaledForDensity() 413 assertEquals(densityAdjustedSize, drawable.getIntrinsicHeight()); in testImageIntrinsicScaledForDensityWithBitmapOptions() 425 assertEquals(expected.getIntrinsicHeight(), drawable.getIntrinsicHeight()); in testCreateFromXml() 438 assertEquals(expected.getIntrinsicHeight(), drawable.getIntrinsicHeight()); in testCreateFromXmlThemed() 453 assertEquals(expected.getIntrinsicHeight(), drawable.getIntrinsicHeight()); in testCreateFromXmlInner() 470 assertEquals(expected.getIntrinsicHeight(), drawable.getIntrinsicHeight()); in testCreateFromXmlInnerThemed() 527 assertEquals(-1, mockDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
|
D | AnimatedImageDrawableTest.java | 153 assertEquals(HEIGHT, drawable.getIntrinsicHeight()); in testDecodeAnimatedImageDrawable() 296 Bitmap bm = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), in testLifeCycleSoftware() 474 drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testColorFilter() 504 assertEquals(height, exifAnimation.getIntrinsicHeight()); in testExif() 536 drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testPostProcess() 543 drawable.getIntrinsicHeight()); in testPostProcess() 582 drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testPostProcess() 670 drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in drawAndCompare() 682 final int height = drawable.getIntrinsicHeight(); in testAutoMirroredDrawing()
|
D | BitmapDrawableTest.java | 146 int intrinsicHeight = bitmapDrawable.getIntrinsicHeight(); in testBitmapDrawableOpticalInset() 384 assertEquals(-1, bitmapDrawable.getIntrinsicHeight()); in testGetIntrinsicSize() 390 assertEquals(300, bitmapDrawable.getIntrinsicHeight()); in testGetIntrinsicSize() 396 assertEquals(48, bitmapDrawable.getIntrinsicHeight()); in testGetIntrinsicSize() 421 assertEquals(targetHeight, bitmapDrawable.getIntrinsicHeight()); in testSetTargetDensity() 435 assertEquals(targetHeight, bitmapDrawable.getIntrinsicHeight()); in testSetTargetDensity() 450 assertEquals(targetHeight, bitmapDrawable.getIntrinsicHeight()); in testSetTargetDensity()
|
D | RotateDrawableTest.java | 266 assertEquals(drawable.getIntrinsicHeight(), mRotateDrawable.getIntrinsicHeight()); in testGetIntrinsicWidthAndHeight() 276 assertEquals(drawable.getIntrinsicHeight(), rotateDrawable.getIntrinsicHeight()); in testGetIntrinsicWidthAndHeight()
|
D | VectorDrawableSizeTest.java | 73 assertEquals(Math.round(mDpSize * densityDpi / 160f), drawable.getIntrinsicHeight()); in testVectorDrawableSize()
|
D | DrawableContainerStateTest.java | 206 doReturn(0).when(dr0).getIntrinsicHeight(); in testConstantHeightsAndWidths() 218 doReturn(3).when(dr1).getIntrinsicHeight(); in testConstantHeightsAndWidths() 230 doReturn(5).when(dr2).getIntrinsicHeight(); in testConstantHeightsAndWidths()
|
D | DrawableContainerTest.java | 495 mDrawableContainer.getIntrinsicHeight(); in testGetIntrinsicHeightNoConstantState() 502 doReturn(1).when(dr0).getIntrinsicHeight(); in testGetIntrinsicHeight() 505 doReturn(2).when(dr1).getIntrinsicHeight(); in testGetIntrinsicHeight() 511 mDrawableContainer.getIntrinsicHeight()); in testGetIntrinsicHeight() 512 assertEquals(2, mDrawableContainer.getIntrinsicHeight()); in testGetIntrinsicHeight() 517 assertEquals(-1, mDrawableContainer.getIntrinsicHeight()); in testGetIntrinsicHeight() 522 assertEquals(1, mDrawableContainer.getIntrinsicHeight()); in testGetIntrinsicHeight()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ImageButtonTest.java | 82 imageButtonDrawable.getIntrinsicWidth(), imageButtonDrawable.getIntrinsicHeight(), in testImageSource() 88 imageButtonDrawable.getIntrinsicWidth(), imageButtonDrawable.getIntrinsicHeight(), in testImageSource() 94 imageButtonDrawable.getIntrinsicWidth(), imageButtonDrawable.getIntrinsicHeight(), in testImageSource()
|
D | CheckedTextViewTest.java | 333 checkMark.getIntrinsicWidth(), checkMark.getIntrinsicHeight(), false, 345 checkMark.getIntrinsicWidth(), checkMark.getIntrinsicHeight(), false, 356 checkMark.getIntrinsicWidth(), checkMark.getIntrinsicHeight(), false, 382 checkMark.getIntrinsicWidth(), checkMark.getIntrinsicHeight(), false, in testCheckMarkTintBlendMode() 394 checkMark.getIntrinsicWidth(), checkMark.getIntrinsicHeight(), false, in testCheckMarkTintBlendMode() 405 checkMark.getIntrinsicWidth(), checkMark.getIntrinsicHeight(), false, in testCheckMarkTintBlendMode()
|
D | ToolbarTest.java | 219 toolbarOverflowIcon.getIntrinsicWidth(), toolbarOverflowIcon.getIntrinsicHeight(), in testMenuOverflowIcon() 262 toolbarNavigationIcon.getIntrinsicHeight(), in testNavigationConfiguration() 270 toolbarNavigationIcon.getIntrinsicHeight(), in testNavigationConfiguration() 298 toolbarCollapseIcon.getIntrinsicHeight(), in testCollapseConfiguration() 306 toolbarCollapseIcon.getIntrinsicHeight(), in testCollapseConfiguration() 326 toolbarLogo.getIntrinsicHeight(), in testLogoConfiguration() 334 toolbarLogo.getIntrinsicHeight(), in testLogoConfiguration()
|
D | FrameLayoutTest.java | 104 WidgetTestUtils.assertScaledPixels(48, foreground.getIntrinsicHeight(), mActivity); in testSetForegroundGravity() 106 assertTrue(mFrameLayout.getHeight() > foreground.getIntrinsicHeight()); in testSetForegroundGravity() 123 WidgetTestUtils.assertScaledPixels(48, newForeground.getIntrinsicHeight(), mActivity); in testSetForegroundGravity() 125 assertTrue(mFrameLayout.getHeight() > newForeground.getIntrinsicHeight()); in testSetForegroundGravity() 136 assertEquals(foreground.getIntrinsicHeight(), rect2.bottom - rect2.top); in testSetForegroundGravity()
|
D | SwitchTest.java | 167 thumbDrawable.getIntrinsicWidth(), thumbDrawable.getIntrinsicHeight(), false, in testAccessThumbDrawable() 175 thumbDrawable.getIntrinsicWidth(), thumbDrawable.getIntrinsicHeight(), false, in testAccessThumbDrawable() 183 thumbDrawable.getIntrinsicWidth(), thumbDrawable.getIntrinsicHeight(), false, in testAccessThumbDrawable() 193 thumbDrawable.getIntrinsicWidth(), thumbDrawable.getIntrinsicHeight(), false, in testAccessThumbDrawable()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | BitmapDrawableTest.java | 93 final int origHeight = preloadedDrawable.getIntrinsicHeight(); in verifyPreloadDensityInner() 109 assertEquals(Math.round(origHeight * scale), scaledDrawable.getIntrinsicHeight()); in verifyPreloadDensityInner() 124 assertEquals(origHeight, scaledDrawable.getIntrinsicHeight()); in verifyPreloadDensityInner() 130 final Rect drBounds = new Rect(0, 0, dr.getIntrinsicWidth(), dr.getIntrinsicHeight()); in runTest()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeImageTransformTest.java | 140 int imageHeight = mImage.getIntrinsicHeight(); in centerMatrix() 154 int imageHeight = mImage.getIntrinsicHeight(); in fitXYMatrix() 168 int imageHeight = mImage.getIntrinsicHeight(); in centerCropMatrix() 190 int imageHeight = mImage.getIntrinsicHeight(); in fitCenterMatrix() 212 int imageHeight = mImage.getIntrinsicHeight(); in fitStartMatrix() 228 int imageHeight = mImage.getIntrinsicHeight(); in fitEndMatrix()
|
/cts/hostsidetests/shortcuts/deviceside/common/src/android/content/pm/cts/shortcut/device/common/ |
D | ShortcutManagerDeviceTestBase.java | 117 assertEquals(expected.getIntrinsicHeight(), actual.getIntrinsicHeight()); in assertIconDimensions()
|
/cts/tests/app/src/android/app/cts/ |
D | LauncherActivity_IconResizerTest.java | 53 assertTrue(thumbNail.getIntrinsicHeight() > 0); in testIconResizer()
|
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerCtsTestsBase.java | 562 assertEquals(expected.getIntrinsicHeight(), actual.getIntrinsicHeight()); in assertIconDimensions() 575 assertEquals(expected.getIntrinsicHeight(), actual.getIntrinsicHeight()); in assertIconDimensions()
|
/cts/tests/tests/preference/src/android/preference/cts/ |
D | PreferenceTest.java | 167 assertEquals(iconExp.getIntrinsicHeight(), icon.getIntrinsicHeight()); in testGetIcon()
|