/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 | 213 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame() 218 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame() 223 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 | 399 assertEquals(densityAdjustedSize, drawable.getIntrinsicHeight()); in testImageIntrinsicScaledForDensity() 414 assertEquals(densityAdjustedSize, drawable.getIntrinsicHeight()); in testImageIntrinsicScaledForDensityWithBitmapOptions() 426 assertEquals(expected.getIntrinsicHeight(), drawable.getIntrinsicHeight()); in testCreateFromXml() 439 assertEquals(expected.getIntrinsicHeight(), drawable.getIntrinsicHeight()); in testCreateFromXmlThemed() 454 assertEquals(expected.getIntrinsicHeight(), drawable.getIntrinsicHeight()); in testCreateFromXmlInner() 471 assertEquals(expected.getIntrinsicHeight(), drawable.getIntrinsicHeight()); in testCreateFromXmlInnerThemed() 528 assertEquals(-1, mockDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
|
D | AnimatedImageDrawableTest.java | 161 assertEquals(HEIGHT, drawable.getIntrinsicHeight()); in testDecodeAnimatedImageDrawable() 304 Bitmap bm = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), in testLifeCycleSoftware() 482 drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testColorFilter() 512 assertEquals(height, exifAnimation.getIntrinsicHeight()); in testExif() 544 drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testPostProcess() 551 drawable.getIntrinsicHeight()); in testPostProcess() 590 drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testPostProcess() 678 drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in drawAndCompare() 690 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 | TabWidgetTest.java | 95 leftStripDrawable.getIntrinsicWidth(), leftStripDrawable.getIntrinsicHeight(), in testConstructorWithStyle() 101 rightStripDrawable.getIntrinsicWidth(), rightStripDrawable.getIntrinsicHeight(), in testConstructorWithStyle() 115 leftStripDrawable.getIntrinsicWidth(), leftStripDrawable.getIntrinsicHeight(), in testInflateFromXml() 121 rightStripDrawable.getIntrinsicWidth(), rightStripDrawable.getIntrinsicHeight(), in testInflateFromXml() 313 leftStripDrawable.getIntrinsicWidth(), leftStripDrawable.getIntrinsicHeight(), in testStripDrawables() 321 leftStripDrawable.getIntrinsicWidth(), leftStripDrawable.getIntrinsicHeight(), in testStripDrawables() 335 rightStripDrawable.getIntrinsicWidth(), rightStripDrawable.getIntrinsicHeight(), in testStripDrawables() 344 rightStripDrawable.getIntrinsicWidth(), rightStripDrawable.getIntrinsicHeight(), in testStripDrawables() 360 dividerDrawable.getIntrinsicWidth(), dividerDrawable.getIntrinsicHeight(), in testDividerDrawables() 367 dividerDrawable.getIntrinsicWidth(), dividerDrawable.getIntrinsicHeight(), in testDividerDrawables()
|
D | ImageButtonTest.java | 91 imageButtonDrawable.getIntrinsicWidth(), imageButtonDrawable.getIntrinsicHeight(), in testImageSource() 97 imageButtonDrawable.getIntrinsicWidth(), imageButtonDrawable.getIntrinsicHeight(), in testImageSource() 103 imageButtonDrawable.getIntrinsicWidth(), imageButtonDrawable.getIntrinsicHeight(), in testImageSource()
|
D | CheckedTextViewTest.java | 343 checkMark.getIntrinsicWidth(), checkMark.getIntrinsicHeight(), false, 355 checkMark.getIntrinsicWidth(), checkMark.getIntrinsicHeight(), false, 366 checkMark.getIntrinsicWidth(), checkMark.getIntrinsicHeight(), false, 392 checkMark.getIntrinsicWidth(), checkMark.getIntrinsicHeight(), false, in testCheckMarkTintBlendMode() 404 checkMark.getIntrinsicWidth(), checkMark.getIntrinsicHeight(), false, in testCheckMarkTintBlendMode() 415 checkMark.getIntrinsicWidth(), checkMark.getIntrinsicHeight(), false, in testCheckMarkTintBlendMode()
|
D | ToolbarTest.java | 227 toolbarOverflowIcon.getIntrinsicWidth(), toolbarOverflowIcon.getIntrinsicHeight(), in testMenuOverflowIcon() 270 toolbarNavigationIcon.getIntrinsicHeight(), in testNavigationConfiguration() 278 toolbarNavigationIcon.getIntrinsicHeight(), in testNavigationConfiguration() 306 toolbarCollapseIcon.getIntrinsicHeight(), in testCollapseConfiguration() 314 toolbarCollapseIcon.getIntrinsicHeight(), in testCollapseConfiguration() 334 toolbarLogo.getIntrinsicHeight(), in testLogoConfiguration() 342 toolbarLogo.getIntrinsicHeight(), in testLogoConfiguration()
|
D | FrameLayoutTest.java | 112 WidgetTestUtils.assertScaledPixels(48, foreground.getIntrinsicHeight(), mActivity); in testSetForegroundGravity() 114 assertTrue(mFrameLayout.getHeight() > foreground.getIntrinsicHeight()); in testSetForegroundGravity() 131 WidgetTestUtils.assertScaledPixels(48, newForeground.getIntrinsicHeight(), mActivity); in testSetForegroundGravity() 133 assertTrue(mFrameLayout.getHeight() > newForeground.getIntrinsicHeight()); in testSetForegroundGravity() 144 assertEquals(foreground.getIntrinsicHeight(), rect2.bottom - rect2.top); in testSetForegroundGravity()
|
D | SwitchTest.java | 175 thumbDrawable.getIntrinsicWidth(), thumbDrawable.getIntrinsicHeight(), false, in testAccessThumbDrawable() 183 thumbDrawable.getIntrinsicWidth(), thumbDrawable.getIntrinsicHeight(), false, in testAccessThumbDrawable() 191 thumbDrawable.getIntrinsicWidth(), thumbDrawable.getIntrinsicHeight(), false, in testAccessThumbDrawable() 201 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/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | ByodIconSamplerActivity.java | 102 Bitmap bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(), icon.getIntrinsicHeight(), in convertToBitmap()
|