Home
last modified time | relevance | path

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

12

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DGradientDrawableTest.java193 assertEquals(height, gradientDrawable.getIntrinsicHeight()); in helpTestSetSize()
452 assertEquals(3, gradientDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
455 assertEquals(-15, gradientDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
472 assertEquals(10, d1.getIntrinsicHeight()); in testMutate()
474 assertEquals(10, d2.getIntrinsicHeight()); in testMutate()
476 assertEquals(10, d3.getIntrinsicHeight()); in testMutate()
481 assertEquals(30, d1.getIntrinsicHeight()); in testMutate()
483 assertEquals(10, d2.getIntrinsicHeight()); in testMutate()
485 assertEquals(10, d3.getIntrinsicHeight()); in testMutate()
489 assertEquals(30, d1.getIntrinsicHeight()); in testMutate()
[all …]
DNinePatchDrawableTest.java268 assertEquals(bmp.getHeight(), mNinePatchDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
269 assertEquals(5, mNinePatchDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
273 assertEquals(bmp.getHeight(), mNinePatchDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
274 assertEquals(9, mNinePatchDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
345 assertEquals(targetHeight, ninePatchDrawable.getIntrinsicHeight()); in testInflate()
356 assertTrue(sourceHeight != ninePatchDrawable.getIntrinsicHeight()); in testInflate()
421 final int origHeight = preloadedDrawable.getIntrinsicHeight(); in testSetTargetDensityInner()
435 assertEquals(Math.round(origHeight * scale), scaledDrawable.getIntrinsicHeight()); in testSetTargetDensityInner()
452 assertEquals(origHeight, scaledDrawable.getIntrinsicHeight()); in testSetTargetDensityInner()
513 final int origHeight = preloadedDrawable.getIntrinsicHeight(); in testPreloadDensityInner()
[all …]
DAnimationDrawableTest.java217 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame()
222 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame()
227 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame()
DLayerDrawableTest.java279 assertEquals(layerDrawable.getDrawable(0).getIntrinsicHeight() + top + bottom, in testSetLayerInset()
280 layerDrawable.getIntrinsicHeight()); in testSetLayerInset()
287 assertEquals(layerDrawable.getDrawable(0).getIntrinsicHeight() + top + bottom, in testSetLayerInset()
288 layerDrawable.getIntrinsicHeight()); in testSetLayerInset()
483 assertEquals(46, layerDrawable.getIntrinsicHeight()); in testAccessPaddingMode()
490 assertEquals(40, layerDrawable.getIntrinsicHeight()); in testAccessPaddingMode()
805 assertEquals(largeMockDrawable.getIntrinsicHeight(), layerDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
816 assertEquals(smallMockDrawable.getIntrinsicHeight() + inset2.top in testGetIntrinsicHeight()
818 layerDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
823 assertEquals(largeMockDrawable.getIntrinsicHeight() + inset1.top + inset1.bottom, in testGetIntrinsicHeight()
[all …]
DInsetDrawableTest.java314 int expected = d.getIntrinsicHeight(); in testGetIntrinsicHeight()
315 assertEquals(expected, insetDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
320 expected = d.getIntrinsicHeight(); in testGetIntrinsicHeight()
321 assertEquals(expected, insetDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
326 expected = d.getIntrinsicHeight() + 40; in testGetIntrinsicHeight()
327 assertEquals(expected, insetDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
331 assertEquals(expected, d.getIntrinsicHeight()); in testGetIntrinsicHeight()
DShapeDrawableTest.java93 assertEquals(0, shapeDrawable.getIntrinsicHeight()); in testAccessIntrinsicHeight()
96 assertEquals(10, shapeDrawable.getIntrinsicHeight()); in testAccessIntrinsicHeight()
99 assertEquals(Integer.MIN_VALUE, shapeDrawable.getIntrinsicHeight()); in testAccessIntrinsicHeight()
102 assertEquals(Integer.MAX_VALUE, shapeDrawable.getIntrinsicHeight()); in testAccessIntrinsicHeight()
227 assertEquals(63, shapeDrawable.getIntrinsicHeight()); in testInflate()
DPictureDrawableTest.java64 assertEquals(-1, pictureDrawable.getIntrinsicHeight()); in testGetIntrinsicSize()
71 assertEquals(101, pictureDrawable.getIntrinsicHeight()); in testGetIntrinsicSize()
DBitmapDrawableTest.java336 assertEquals(0, bitmapDrawable.getIntrinsicHeight()); in testGetIntrinsicSize()
342 assertEquals(300, bitmapDrawable.getIntrinsicHeight()); in testGetIntrinsicSize()
348 assertEquals(48, bitmapDrawable.getIntrinsicHeight()); in testGetIntrinsicSize()
372 assertEquals(targetHeight, bitmapDrawable.getIntrinsicHeight()); in testSetTargetDensity()
386 assertEquals(targetHeight, bitmapDrawable.getIntrinsicHeight()); in testSetTargetDensity()
401 assertEquals(targetHeight, bitmapDrawable.getIntrinsicHeight()); in testSetTargetDensity()
544 final int origHeight = preloadedDrawable.getIntrinsicHeight(); in testPreloadDensityInner()
559 assertEquals(Math.round(origHeight * scale), scaledDrawable.getIntrinsicHeight()); in testPreloadDensityInner()
574 assertEquals(origHeight, scaledDrawable.getIntrinsicHeight()); in testPreloadDensityInner()
581 final int height = dr.getIntrinsicHeight(); in compareOrSave()
DDrawableTest.java312 assertEquals(expected.getIntrinsicHeight(), drawable.getIntrinsicHeight()); in testCreateFromXml()
324 assertEquals(expected.getIntrinsicHeight(), drawable.getIntrinsicHeight()); in testCreateFromXmlThemed()
338 assertEquals(expected.getIntrinsicHeight(), drawable.getIntrinsicHeight()); in testCreateFromXmlInner()
354 assertEquals(expected.getIntrinsicHeight(), drawable.getIntrinsicHeight()); in testCreateFromXmlInnerThemed()
406 assertEquals(-1, mockDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
DRotateDrawableTest.java238 assertEquals(drawable.getIntrinsicHeight(), mRotateDrawable.getIntrinsicHeight()); in testGetIntrinsicWidthAndHeight()
249 assertEquals(drawable.getIntrinsicHeight(), rotateDrawable.getIntrinsicHeight()); in testGetIntrinsicWidthAndHeight()
DDrawableContainerTest.java463 mDrawableContainer.getIntrinsicHeight(); in testGetIntrinsicHeight()
479 mDrawableContainer.getIntrinsicHeight()); in testGetIntrinsicHeight()
480 assertEquals(2, mDrawableContainer.getIntrinsicHeight()); in testGetIntrinsicHeight()
485 assertEquals(-1, mDrawableContainer.getIntrinsicHeight()); in testGetIntrinsicHeight()
490 assertEquals(1, mDrawableContainer.getIntrinsicHeight()); in testGetIntrinsicHeight()
941 public int getIntrinsicHeight() { in getIntrinsicHeight() method in DrawableContainerTest.MockDrawable
DDrawableWrapperTest.java368 wrapper.getIntrinsicHeight(); in testGetIntrinsicHeight()
437 public int getIntrinsicHeight() { in getIntrinsicHeight() method in DrawableWrapperTest.MockDrawable
439 return super.getIntrinsicHeight(); in getIntrinsicHeight()
DScaleDrawableTest.java410 scaleDrawable.getIntrinsicHeight(); in testGetIntrinsicHeight()
440 assertEquals(bitmapSize, scaleDrawable.getIntrinsicHeight()); in testInflate()
550 public int getIntrinsicHeight() { in getIntrinsicHeight() method in ScaleDrawableTest.MockDrawable
552 return super.getIntrinsicHeight(); in getIntrinsicHeight()
DThemedDrawableTest.java111 assertEquals(1, d.getIntrinsicHeight()); in testGradientDrawable()
DDrawableTestUtils.java187 final int h = Math.max(d.getIntrinsicHeight(), y + 1); in getPixel()
DClipDrawableTest.java106 assertEquals(-1, clipDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
112 assertEquals(50, clipDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
/cts/tests/tests/widget/src/android/widget/cts/
DTabWidgetTest.java69 leftStripDrawable.getIntrinsicWidth(), leftStripDrawable.getIntrinsicHeight(), in testConstructorWithStyle()
75 rightStripDrawable.getIntrinsicWidth(), rightStripDrawable.getIntrinsicHeight(), in testConstructorWithStyle()
88 leftStripDrawable.getIntrinsicWidth(), leftStripDrawable.getIntrinsicHeight(), in testInflateFromXml()
94 rightStripDrawable.getIntrinsicWidth(), rightStripDrawable.getIntrinsicHeight(), in testInflateFromXml()
297 leftStripDrawable.getIntrinsicWidth(), leftStripDrawable.getIntrinsicHeight(), in testStripDrawables()
305 leftStripDrawable.getIntrinsicWidth(), leftStripDrawable.getIntrinsicHeight(), in testStripDrawables()
313 rightStripDrawable.getIntrinsicWidth(), rightStripDrawable.getIntrinsicHeight(), in testStripDrawables()
321 rightStripDrawable.getIntrinsicWidth(), rightStripDrawable.getIntrinsicHeight(), in testStripDrawables()
334 dividerDrawable.getIntrinsicWidth(), dividerDrawable.getIntrinsicHeight(), in testDividerDrawables()
342 dividerDrawable.getIntrinsicWidth(), dividerDrawable.getIntrinsicHeight(), in testDividerDrawables()
DFrameLayoutTest.java84 compareScaledPixels(48, foreground.getIntrinsicHeight()); in testSetForegroundGravity()
86 assertTrue(mFrameLayout.getHeight() > foreground.getIntrinsicHeight()); in testSetForegroundGravity()
108 compareScaledPixels(48, newForeground.getIntrinsicHeight()); in testSetForegroundGravity()
110 assertTrue(mFrameLayout.getHeight() > newForeground.getIntrinsicHeight()); in testSetForegroundGravity()
122 assertEquals(foreground.getIntrinsicHeight(), rect2.bottom - rect2.top); in testSetForegroundGravity()
DToolbarTest.java235 toolbarOverflowIcon.getIntrinsicWidth(), toolbarOverflowIcon.getIntrinsicHeight(), in testMenuOverflowIcon()
284 toolbarNavigationIcon.getIntrinsicHeight(), in testNavigationConfiguration()
292 toolbarNavigationIcon.getIntrinsicHeight(), in testNavigationConfiguration()
313 toolbarLogo.getIntrinsicHeight(), in testLogoConfiguration()
321 toolbarLogo.getIntrinsicHeight(), in testLogoConfiguration()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeImageTransformTest.java86 int imageHeight = mImage.getIntrinsicHeight(); in centerMatrix()
100 int imageHeight = mImage.getIntrinsicHeight(); in fitXYMatrix()
114 int imageHeight = mImage.getIntrinsicHeight(); in centerCropMatrix()
136 int imageHeight = mImage.getIntrinsicHeight(); in fitCenterMatrix()
158 int imageHeight = mImage.getIntrinsicHeight(); in fitStartMatrix()
174 int imageHeight = mImage.getIntrinsicHeight(); in fitEndMatrix()
/cts/tests/app/src/android/app/cts/
DLauncherActivity_IconResizerTest.java53 assertTrue(thumbNail.getIntrinsicHeight() > 0); in testIconResizer()
/cts/tests/tests/preference2/src/android/preference2/cts/
DPreferenceTest.java164 assertEquals(iconExp.getIntrinsicHeight(), icon.getIntrinsicHeight()); in testGetIcon()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodIconSamplerActivity.java102 Bitmap bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(), icon.getIntrinsicHeight(), in convertToBitmap()
/cts/tests/tests/text/src/android/text/style/cts/
DDrawableMarginSpanTest.java75 assertEquals(0 + drawable.getIntrinsicHeight(), drawable.getBounds().bottom); in testDrawLeadingMargin()
/cts/tests/tests/graphics/src/android/graphics/cts/
DMovieTest.java145 int expectedHeight = getActivity().getResources().getDrawable(MOVIE).getIntrinsicHeight(); in testGetMovieProperties()

12