Home
last modified time | relevance | path

Searched refs:getIntrinsicHeight (Results 1 – 25 of 43) sorted by relevance

12

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DInsetDrawableTest.java332 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 …]
DGradientDrawableTest.java242 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 …]
DLayerDrawableTest.java310 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 …]
DNinePatchDrawableTest.java306 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 …]
DAnimationDrawableTest.java205 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame()
210 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame()
215 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame()
DPictureDrawableTest.java77 assertEquals(-1, pictureDrawable.getIntrinsicHeight()); in testGetIntrinsicSize()
84 assertEquals(101, pictureDrawable.getIntrinsicHeight()); in testGetIntrinsicSize()
DShapeDrawableTest.java115 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()
DDrawableTest.java398 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()
DAnimatedImageDrawableTest.java153 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()
DBitmapDrawableTest.java146 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()
DRotateDrawableTest.java266 assertEquals(drawable.getIntrinsicHeight(), mRotateDrawable.getIntrinsicHeight()); in testGetIntrinsicWidthAndHeight()
276 assertEquals(drawable.getIntrinsicHeight(), rotateDrawable.getIntrinsicHeight()); in testGetIntrinsicWidthAndHeight()
DVectorDrawableSizeTest.java73 assertEquals(Math.round(mDpSize * densityDpi / 160f), drawable.getIntrinsicHeight()); in testVectorDrawableSize()
DDrawableContainerStateTest.java206 doReturn(0).when(dr0).getIntrinsicHeight(); in testConstantHeightsAndWidths()
218 doReturn(3).when(dr1).getIntrinsicHeight(); in testConstantHeightsAndWidths()
230 doReturn(5).when(dr2).getIntrinsicHeight(); in testConstantHeightsAndWidths()
DDrawableContainerTest.java495 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/
DImageButtonTest.java82 imageButtonDrawable.getIntrinsicWidth(), imageButtonDrawable.getIntrinsicHeight(), in testImageSource()
88 imageButtonDrawable.getIntrinsicWidth(), imageButtonDrawable.getIntrinsicHeight(), in testImageSource()
94 imageButtonDrawable.getIntrinsicWidth(), imageButtonDrawable.getIntrinsicHeight(), in testImageSource()
DCheckedTextViewTest.java333 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()
DToolbarTest.java219 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()
DFrameLayoutTest.java104 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()
DSwitchTest.java167 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/
DBitmapDrawableTest.java93 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/
DChangeImageTransformTest.java140 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/
DShortcutManagerDeviceTestBase.java117 assertEquals(expected.getIntrinsicHeight(), actual.getIntrinsicHeight()); in assertIconDimensions()
/cts/tests/app/src/android/app/cts/
DLauncherActivity_IconResizerTest.java53 assertTrue(thumbNail.getIntrinsicHeight() > 0); in testIconResizer()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerCtsTestsBase.java562 assertEquals(expected.getIntrinsicHeight(), actual.getIntrinsicHeight()); in assertIconDimensions()
575 assertEquals(expected.getIntrinsicHeight(), actual.getIntrinsicHeight()); in assertIconDimensions()
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceTest.java167 assertEquals(iconExp.getIntrinsicHeight(), icon.getIntrinsicHeight()); in testGetIcon()

12