Home
last modified time | relevance | path

Searched refs:getIntrinsicHeight (Results 1 – 25 of 45) 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.java239 assertEquals(height, gradientDrawable.getIntrinsicHeight()); in verifySetSize()
616 assertEquals(3, gradientDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
619 assertEquals(-15, gradientDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
638 assertEquals(10, d1.getIntrinsicHeight()); in testMutate()
640 assertEquals(10, d2.getIntrinsicHeight()); in testMutate()
642 assertEquals(10, d3.getIntrinsicHeight()); in testMutate()
647 assertEquals(30, d1.getIntrinsicHeight()); in testMutate()
649 assertEquals(10, d2.getIntrinsicHeight()); in testMutate()
651 assertEquals(10, d3.getIntrinsicHeight()); in testMutate()
655 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()
DAnimatedImageDrawableTest.java137 assertEquals(HEIGHT, drawable.getIntrinsicHeight()); in testDecodeAnimatedImageDrawable()
286 Bitmap bm = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), in testLifeCycleSoftware()
439 drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testColorFilter()
472 drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testPostProcess()
479 drawable.getIntrinsicHeight()); in testPostProcess()
518 drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testPostProcess()
601 drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in drawAndCompare()
613 final int height = drawable.getIntrinsicHeight(); in testAutoMirroredDrawing()
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()
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()
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()
DPictureDrawableTest.java77 assertEquals(-1, pictureDrawable.getIntrinsicHeight()); in testGetIntrinsicSize()
84 assertEquals(101, pictureDrawable.getIntrinsicHeight()); in testGetIntrinsicSize()
DRotateDrawableTest.java266 assertEquals(drawable.getIntrinsicHeight(), mRotateDrawable.getIntrinsicHeight()); in testGetIntrinsicWidthAndHeight()
276 assertEquals(drawable.getIntrinsicHeight(), rotateDrawable.getIntrinsicHeight()); in testGetIntrinsicWidthAndHeight()
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.java87 leftStripDrawable.getIntrinsicWidth(), leftStripDrawable.getIntrinsicHeight(), in testConstructorWithStyle()
93 rightStripDrawable.getIntrinsicWidth(), rightStripDrawable.getIntrinsicHeight(), in testConstructorWithStyle()
107 leftStripDrawable.getIntrinsicWidth(), leftStripDrawable.getIntrinsicHeight(), in testInflateFromXml()
113 rightStripDrawable.getIntrinsicWidth(), rightStripDrawable.getIntrinsicHeight(), in testInflateFromXml()
305 leftStripDrawable.getIntrinsicWidth(), leftStripDrawable.getIntrinsicHeight(), in testStripDrawables()
313 leftStripDrawable.getIntrinsicWidth(), leftStripDrawable.getIntrinsicHeight(), in testStripDrawables()
327 rightStripDrawable.getIntrinsicWidth(), rightStripDrawable.getIntrinsicHeight(), in testStripDrawables()
336 rightStripDrawable.getIntrinsicWidth(), rightStripDrawable.getIntrinsicHeight(), in testStripDrawables()
352 dividerDrawable.getIntrinsicWidth(), dividerDrawable.getIntrinsicHeight(), in testDividerDrawables()
359 dividerDrawable.getIntrinsicWidth(), dividerDrawable.getIntrinsicHeight(), in testDividerDrawables()
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.java164 thumbDrawable.getIntrinsicWidth(), thumbDrawable.getIntrinsicHeight(), false, in testAccessThumbDrawable()
172 thumbDrawable.getIntrinsicWidth(), thumbDrawable.getIntrinsicHeight(), false, in testAccessThumbDrawable()
180 thumbDrawable.getIntrinsicWidth(), thumbDrawable.getIntrinsicHeight(), false, in testAccessThumbDrawable()
190 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.java118 assertEquals(expected.getIntrinsicHeight(), actual.getIntrinsicHeight()); in assertIconDimensions()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerCtsTestsBase.java517 assertEquals(expected.getIntrinsicHeight(), actual.getIntrinsicHeight()); in assertIconDimensions()
530 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/graphics/src/android/graphics/cts/
DImageDecoderTest.java295 assertEquals(record.height, drawable.getIntrinsicHeight()); in testDecodeDrawable()
561 assertEquals(5, dr.getIntrinsicHeight()); in testNinepatchWithDensityNone()
727 assertEquals(pp.height, drawable.getIntrinsicHeight()); in testPostProcessorAndScale()
762 checkSampleSize(name, record.height, sampleSize, dr.getIntrinsicHeight()); in testSampleSize()
810 final int height = dr.getIntrinsicHeight(); in testResizeTransparency()
987 assertEquals(record.height, drawable.getIntrinsicHeight()); in testOnPartialImage()
1232 assertEquals(l.height, drawable.getIntrinsicHeight()); in testTargetSize()
1250 assertEquals(50, drawable.getIntrinsicHeight()); in testTargetSize()
1258 assertEquals(record.width, drawable.getIntrinsicHeight()); in testTargetSize()
1395 assertEquals(l.cropRect.height(), drawable.getIntrinsicHeight()); in testCrop()
[all …]

12