Home
last modified time | relevance | path

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

123

/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.java213 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame()
218 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame()
223 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.java399 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()
DAnimatedImageDrawableTest.java161 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()
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/
DTabWidgetTest.java95 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()
DImageButtonTest.java91 imageButtonDrawable.getIntrinsicWidth(), imageButtonDrawable.getIntrinsicHeight(), in testImageSource()
97 imageButtonDrawable.getIntrinsicWidth(), imageButtonDrawable.getIntrinsicHeight(), in testImageSource()
103 imageButtonDrawable.getIntrinsicWidth(), imageButtonDrawable.getIntrinsicHeight(), in testImageSource()
DCheckedTextViewTest.java343 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()
DToolbarTest.java227 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()
DFrameLayoutTest.java112 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()
DSwitchTest.java175 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/
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/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodIconSamplerActivity.java102 Bitmap bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(), icon.getIntrinsicHeight(), in convertToBitmap()

123