Home
last modified time | relevance | path

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

12

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DGradientDrawableTest.java92 assertEquals(4, gradientDrawable.getIntrinsicHeight()); in testSetSize()
96 assertEquals(-40, gradientDrawable.getIntrinsicHeight()); in testSetSize()
100 assertEquals(0, gradientDrawable.getIntrinsicHeight()); in testSetSize()
104 assertEquals(Integer.MIN_VALUE, gradientDrawable.getIntrinsicHeight()); in testSetSize()
281 assertEquals(3, gradientDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
284 assertEquals(-15, gradientDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
299 assertEquals(10, d1.getIntrinsicHeight()); in testMutate()
301 assertEquals(10, d2.getIntrinsicHeight()); in testMutate()
303 assertEquals(10, d3.getIntrinsicHeight()); in testMutate()
308 assertEquals(30, d1.getIntrinsicHeight()); in testMutate()
[all …]
DAnimationDrawableTest.java203 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame()
208 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame()
213 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame()
DPictureDrawableTest.java64 assertEquals(-1, pictureDrawable.getIntrinsicHeight()); in testGetIntrinsicSize()
71 assertEquals(101, pictureDrawable.getIntrinsicHeight()); in testGetIntrinsicSize()
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()
DLayerDrawableTest.java272 assertEquals(layerDrawable.getDrawable(0).getIntrinsicHeight() + top + bottom, in testSetLayerInset()
273 layerDrawable.getIntrinsicHeight()); in testSetLayerInset()
283 assertEquals(layerDrawable.getDrawable(1).getIntrinsicHeight() + top + bottom, in testSetLayerInset()
284 layerDrawable.getIntrinsicHeight()); in testSetLayerInset()
754 assertEquals(mockDrawable1.getIntrinsicHeight(), layerDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
765 assertEquals(mockDrawable2.getIntrinsicHeight() + inset2.top in testGetIntrinsicHeight()
767 layerDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
772 assertEquals(mockDrawable1.getIntrinsicHeight() + inset1.top + inset1.bottom, in testGetIntrinsicHeight()
773 layerDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
1070 assertEquals(layerDrawable.getDrawable(0).getIntrinsicHeight() + top + bottom, in testSetLayerInsetRelative()
[all …]
DNinePatchDrawableTest.java252 assertEquals(bmp.getHeight(), mNinePatchDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
253 assertEquals(5, mNinePatchDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
257 assertEquals(bmp.getHeight(), mNinePatchDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
258 assertEquals(9, mNinePatchDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
321 assertEquals(height, ninePatchDrawable.getIntrinsicHeight()); in testInflate()
332 assertTrue(height != ninePatchDrawable.getIntrinsicHeight()); in testInflate()
DRotateDrawableTest.java184 assertEquals(drawable.getIntrinsicHeight(), mRotateDrawable.getIntrinsicHeight()); in testGetIntrinsicWidthAndHeight()
195 assertEquals(drawable.getIntrinsicHeight(), rotateDrawable.getIntrinsicHeight()); in testGetIntrinsicWidthAndHeight()
DDrawableTestingUtils.java27 final int h = Math.max(d.getIntrinsicHeight(), y + 1); in getPixel()
DInsetDrawableTest.java300 int expected = d.getIntrinsicHeight(); /* 31 */ in testGetIntrinsicHeight()
301 assertEquals(expected, insetDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
306 expected = d.getIntrinsicHeight(); /* 107 */ in testGetIntrinsicHeight()
307 assertEquals(expected, insetDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
DBitmapDrawableTest.java309 assertEquals(0, bitmapDrawable.getIntrinsicHeight()); in testGetIntrinsicSize()
315 assertEquals(300, bitmapDrawable.getIntrinsicHeight()); in testGetIntrinsicSize()
321 assertEquals(48, bitmapDrawable.getIntrinsicHeight()); in testGetIntrinsicSize()
333 assertEquals(300, bitmapDrawable.getIntrinsicHeight()); in testSetTargetDensity()
341 assertEquals(48, bitmapDrawable.getIntrinsicHeight()); in testSetTargetDensity()
DDrawableWrapperTest.java368 wrapper.getIntrinsicHeight(); in testGetIntrinsicHeight()
437 public int getIntrinsicHeight() { in getIntrinsicHeight() method in DrawableWrapperTest.MockDrawable
439 return super.getIntrinsicHeight(); in getIntrinsicHeight()
DDrawableContainerTest.java423 mDrawableContainer.getIntrinsicHeight(); in testGetIntrinsicHeight()
439 mDrawableContainer.getIntrinsicHeight()); in testGetIntrinsicHeight()
440 assertEquals(2, mDrawableContainer.getIntrinsicHeight()); in testGetIntrinsicHeight()
445 assertEquals(-1, mDrawableContainer.getIntrinsicHeight()); in testGetIntrinsicHeight()
450 assertEquals(1, mDrawableContainer.getIntrinsicHeight()); in testGetIntrinsicHeight()
883 public int getIntrinsicHeight() { in getIntrinsicHeight() method in DrawableContainerTest.MockDrawable
DScaleDrawableTest.java386 scaleDrawable.getIntrinsicHeight(); in testGetIntrinsicHeight()
417 assertEquals(bitmapSize, scaleDrawable.getIntrinsicHeight()); in testInflate()
527 public int getIntrinsicHeight() { in getIntrinsicHeight() method in ScaleDrawableTest.MockDrawable
529 return super.getIntrinsicHeight(); in getIntrinsicHeight()
DDrawableTest.java306 assertEquals(63, drawable.getIntrinsicHeight()); in testCreateFromXml()
321 assertEquals(expected.getIntrinsicHeight(), drawable.getIntrinsicHeight()); in testCreateFromXmlInner()
373 assertEquals(-1, mockDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
DThemedDrawableTest.java111 assertEquals(1, d.getIntrinsicHeight()); in testGradientDrawable()
DClipDrawableTest.java106 assertEquals(-1, clipDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
112 assertEquals(50, clipDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
DDrawableContainerStateTest.java325 public int getIntrinsicHeight() { in getIntrinsicHeight() method in DrawableContainerStateTest.MockDrawable
/cts/tests/tests/widget/src/android/widget/cts/
DFrameLayoutTest.java85 compareScaledPixels(48, foreground.getIntrinsicHeight()); in testSetForegroundGravity()
87 assertTrue(mFrameLayout.getHeight() > foreground.getIntrinsicHeight()); in testSetForegroundGravity()
113 compareScaledPixels(48, newForeground.getIntrinsicHeight()); in testSetForegroundGravity()
115 assertTrue(mFrameLayout.getHeight() > newForeground.getIntrinsicHeight()); in testSetForegroundGravity()
129 assertEquals(foreground.getIntrinsicHeight(), rect2.bottom - rect2.top); in testSetForegroundGravity()
DCompoundButtonTest.java275 drawableHeight = drawable.getIntrinsicHeight(); in testOnDraw()
/cts/tests/tests/app/src/android/app/cts/
DLauncherActivity_IconResizerTest.java54 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()
/cts/tests/tests/preference2/src/android/preference2/cts/
DPreferenceTest.java164 assertEquals(iconExp.getIntrinsicHeight(), icon.getIntrinsicHeight()); in testGetIcon()
/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()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DSplitAppTest.java505 final Bitmap bitmap = Bitmap.createBitmap(d.getIntrinsicWidth(), d.getIntrinsicHeight(), in getDrawableColor()
508 d.setBounds(0, 0, d.getIntrinsicWidth(), d.getIntrinsicHeight()); in getDrawableColor()

12