/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | GradientDrawableTest.java | 92 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 …]
|
D | AnimationDrawableTest.java | 203 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame() 208 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame() 213 assertEquals(drawable.getIntrinsicHeight(), frame.getIntrinsicHeight()); in testGetFrame()
|
D | PictureDrawableTest.java | 64 assertEquals(-1, pictureDrawable.getIntrinsicHeight()); in testGetIntrinsicSize() 71 assertEquals(101, pictureDrawable.getIntrinsicHeight()); in testGetIntrinsicSize()
|
D | ShapeDrawableTest.java | 93 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()
|
D | LayerDrawableTest.java | 272 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 …]
|
D | NinePatchDrawableTest.java | 252 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()
|
D | RotateDrawableTest.java | 184 assertEquals(drawable.getIntrinsicHeight(), mRotateDrawable.getIntrinsicHeight()); in testGetIntrinsicWidthAndHeight() 195 assertEquals(drawable.getIntrinsicHeight(), rotateDrawable.getIntrinsicHeight()); in testGetIntrinsicWidthAndHeight()
|
D | DrawableTestingUtils.java | 27 final int h = Math.max(d.getIntrinsicHeight(), y + 1); in getPixel()
|
D | InsetDrawableTest.java | 300 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()
|
D | BitmapDrawableTest.java | 309 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()
|
D | DrawableWrapperTest.java | 368 wrapper.getIntrinsicHeight(); in testGetIntrinsicHeight() 437 public int getIntrinsicHeight() { in getIntrinsicHeight() method in DrawableWrapperTest.MockDrawable 439 return super.getIntrinsicHeight(); in getIntrinsicHeight()
|
D | DrawableContainerTest.java | 423 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
|
D | ScaleDrawableTest.java | 386 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()
|
D | DrawableTest.java | 306 assertEquals(63, drawable.getIntrinsicHeight()); in testCreateFromXml() 321 assertEquals(expected.getIntrinsicHeight(), drawable.getIntrinsicHeight()); in testCreateFromXmlInner() 373 assertEquals(-1, mockDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
|
D | ThemedDrawableTest.java | 111 assertEquals(1, d.getIntrinsicHeight()); in testGradientDrawable()
|
D | ClipDrawableTest.java | 106 assertEquals(-1, clipDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight() 112 assertEquals(50, clipDrawable.getIntrinsicHeight()); in testGetIntrinsicHeight()
|
D | DrawableContainerStateTest.java | 325 public int getIntrinsicHeight() { in getIntrinsicHeight() method in DrawableContainerStateTest.MockDrawable
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | FrameLayoutTest.java | 85 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()
|
D | CompoundButtonTest.java | 275 drawableHeight = drawable.getIntrinsicHeight(); in testOnDraw()
|
/cts/tests/tests/app/src/android/app/cts/ |
D | LauncherActivity_IconResizerTest.java | 54 assertTrue(thumbNail.getIntrinsicHeight() > 0); in testIconResizer()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | ByodIconSamplerActivity.java | 102 Bitmap bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(), icon.getIntrinsicHeight(), in convertToBitmap()
|
/cts/tests/tests/preference2/src/android/preference2/cts/ |
D | PreferenceTest.java | 164 assertEquals(iconExp.getIntrinsicHeight(), icon.getIntrinsicHeight()); in testGetIcon()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | DrawableMarginSpanTest.java | 75 assertEquals(0 + drawable.getIntrinsicHeight(), drawable.getBounds().bottom); in testDrawLeadingMargin()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | MovieTest.java | 145 int expectedHeight = getActivity().getResources().getDrawable(MOVIE).getIntrinsicHeight(); in testGetMovieProperties()
|
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/ |
D | SplitAppTest.java | 505 final Bitmap bitmap = Bitmap.createBitmap(d.getIntrinsicWidth(), d.getIntrinsicHeight(), in getDrawableColor() 508 d.setBounds(0, 0, d.getIntrinsicWidth(), d.getIntrinsicHeight()); in getDrawableColor()
|