/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | GradientDrawableTest.java | 91 assertEquals(6, gradientDrawable.getIntrinsicWidth()); in testSetSize() 95 assertEquals(-30, gradientDrawable.getIntrinsicWidth()); in testSetSize() 99 assertEquals(0, gradientDrawable.getIntrinsicWidth()); in testSetSize() 103 assertEquals(Integer.MAX_VALUE, gradientDrawable.getIntrinsicWidth()); in testSetSize() 272 assertEquals(6, gradientDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 275 assertEquals(-10, gradientDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 300 assertEquals(10, d1.getIntrinsicWidth()); in testMutate() 302 assertEquals(10, d2.getIntrinsicWidth()); in testMutate() 304 assertEquals(10, d3.getIntrinsicWidth()); in testMutate() 309 assertEquals(20, d1.getIntrinsicWidth()); in testMutate() [all …]
|
D | LayerDrawableTest.java | 270 assertEquals(layerDrawable.getDrawable(0).getIntrinsicWidth() + left + right, in testSetLayerInset() 271 layerDrawable.getIntrinsicWidth()); in testSetLayerInset() 281 assertEquals(layerDrawable.getDrawable(1).getIntrinsicWidth() + left + right, in testSetLayerInset() 282 layerDrawable.getIntrinsicWidth()); in testSetLayerInset() 727 assertEquals(mockDrawable1.getIntrinsicWidth(), layerDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 738 assertEquals(mockDrawable2.getIntrinsicWidth() + inset2.left in testGetIntrinsicWidth() 740 layerDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 745 assertEquals(mockDrawable1.getIntrinsicWidth() + inset1.left + inset1.right, in testGetIntrinsicWidth() 746 layerDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 1068 assertEquals(layerDrawable.getDrawable(0).getIntrinsicWidth() + start + end, in testSetLayerInsetRelative() [all …]
|
D | AnimationDrawableTest.java | 202 assertEquals(drawable.getIntrinsicWidth(), frame.getIntrinsicWidth()); in testGetFrame() 207 assertEquals(drawable.getIntrinsicWidth(), frame.getIntrinsicWidth()); in testGetFrame() 212 assertEquals(drawable.getIntrinsicWidth(), frame.getIntrinsicWidth()); in testGetFrame()
|
D | PictureDrawableTest.java | 63 assertEquals(-1, pictureDrawable.getIntrinsicWidth()); in testGetIntrinsicSize() 70 assertEquals(99, pictureDrawable.getIntrinsicWidth()); in testGetIntrinsicSize()
|
D | ShapeDrawableTest.java | 107 assertEquals(0, shapeDrawable.getIntrinsicWidth()); in testAccessIntrinsicWidth() 110 assertEquals(10, shapeDrawable.getIntrinsicWidth()); in testAccessIntrinsicWidth() 113 assertEquals(Integer.MIN_VALUE, shapeDrawable.getIntrinsicWidth()); in testAccessIntrinsicWidth() 116 assertEquals(Integer.MAX_VALUE, shapeDrawable.getIntrinsicWidth()); in testAccessIntrinsicWidth() 226 assertEquals(42, shapeDrawable.getIntrinsicWidth()); in testInflate()
|
D | NinePatchDrawableTest.java | 230 assertEquals(bmp.getWidth(), mNinePatchDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 231 assertEquals(5, mNinePatchDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 235 assertEquals(bmp.getWidth(), mNinePatchDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 236 assertEquals(9, mNinePatchDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 322 assertEquals(width, ninePatchDrawable.getIntrinsicWidth()); in testInflate() 333 assertTrue(width != ninePatchDrawable.getIntrinsicWidth()); in testInflate()
|
D | RotateDrawableTest.java | 183 assertEquals(drawable.getIntrinsicWidth(), mRotateDrawable.getIntrinsicWidth()); in testGetIntrinsicWidthAndHeight() 194 assertEquals(drawable.getIntrinsicWidth(), rotateDrawable.getIntrinsicWidth()); in testGetIntrinsicWidthAndHeight()
|
D | DrawableTestingUtils.java | 26 final int w = Math.max(d.getIntrinsicWidth(), x + 1); in getPixel()
|
D | InsetDrawableTest.java | 286 int expected = d.getIntrinsicWidth(); /* 31 */ in testGetIntrinsicWidth() 287 assertEquals(expected, insetDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 292 expected = d.getIntrinsicWidth(); /* 170 */ in testGetIntrinsicWidth() 293 assertEquals(expected, insetDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth()
|
D | BitmapDrawableTest.java | 308 assertEquals(0, bitmapDrawable.getIntrinsicWidth()); in testGetIntrinsicSize() 314 assertEquals(200, bitmapDrawable.getIntrinsicWidth()); in testGetIntrinsicSize() 320 assertEquals(48, bitmapDrawable.getIntrinsicWidth()); in testGetIntrinsicSize() 332 assertEquals(200, bitmapDrawable.getIntrinsicWidth()); in testSetTargetDensity() 340 assertEquals(48, bitmapDrawable.getIntrinsicWidth()); in testSetTargetDensity()
|
D | DrawableWrapperTest.java | 359 wrapper.getIntrinsicWidth(); in testGetIntrinsicWidth() 431 public int getIntrinsicWidth() { in getIntrinsicWidth() method in DrawableWrapperTest.MockDrawable 433 return super.getIntrinsicWidth(); in getIntrinsicWidth()
|
D | DrawableContainerTest.java | 389 mDrawableContainer.getIntrinsicWidth(); in testGetIntrinsicWidth() 405 mDrawableContainer.getIntrinsicWidth()); in testGetIntrinsicWidth() 406 assertEquals(2, mDrawableContainer.getIntrinsicWidth()); in testGetIntrinsicWidth() 411 assertEquals(-1, mDrawableContainer.getIntrinsicWidth()); in testGetIntrinsicWidth() 416 assertEquals(1, mDrawableContainer.getIntrinsicWidth()); in testGetIntrinsicWidth() 888 public int getIntrinsicWidth() { in getIntrinsicWidth() method in DrawableContainerTest.MockDrawable
|
D | ScaleDrawableTest.java | 377 scaleDrawable.getIntrinsicWidth(); in testGetIntrinsicWidth() 416 assertEquals(bitmapSize, scaleDrawable.getIntrinsicWidth()); in testInflate() 521 public int getIntrinsicWidth() { in getIntrinsicWidth() method in ScaleDrawableTest.MockDrawable 523 return super.getIntrinsicWidth(); in getIntrinsicWidth()
|
D | DrawableTest.java | 305 assertEquals(42, drawable.getIntrinsicWidth()); in testCreateFromXml() 320 assertEquals(expected.getIntrinsicWidth(), drawable.getIntrinsicWidth()); in testCreateFromXmlInner() 378 assertEquals(-1, mockDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth()
|
D | ThemedDrawableTest.java | 112 assertEquals(1, d.getIntrinsicWidth()); in testGradientDrawable()
|
D | ClipDrawableTest.java | 120 assertEquals(-1, clipDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 126 assertEquals(100, clipDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth()
|
D | DrawableContainerStateTest.java | 330 public int getIntrinsicWidth() { in getIntrinsicWidth() method in DrawableContainerStateTest.MockDrawable
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | CheckedTextViewTest.java | 203 assertEquals(firstDrawable.getIntrinsicWidth(), checkedTextView.getPaddingRight()); 218 assertEquals(secondDrawable.getIntrinsicWidth() + basePaddingRight, 241 assertEquals(firstDrawable.getIntrinsicWidth() + basePaddingRight, 248 assertEquals(firstDrawable.getIntrinsicWidth() + basePaddingRight, 255 assertEquals(secondDrawable.getIntrinsicWidth() + basePaddingRight,
|
D | FrameLayoutTest.java | 86 compareScaledPixels(48, foreground.getIntrinsicWidth()); in testSetForegroundGravity() 88 assertTrue(mFrameLayout.getWidth() > foreground.getIntrinsicWidth()); in testSetForegroundGravity() 114 compareScaledPixels(48, newForeground.getIntrinsicWidth()); in testSetForegroundGravity() 116 assertTrue(mFrameLayout.getWidth() > foreground.getIntrinsicWidth()); in testSetForegroundGravity() 130 assertEquals(foreground.getIntrinsicWidth(), rect2.right - rect2.left); in testSetForegroundGravity()
|
/cts/tests/tests/app/src/android/app/cts/ |
D | LauncherActivity_IconResizerTest.java | 55 assertTrue(thumbNail.getIntrinsicWidth() > 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 | 165 assertEquals(iconExp.getIntrinsicWidth(), icon.getIntrinsicWidth()); in testGetIcon()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | DrawableMarginSpanTest.java | 77 assertEquals(x + drawable.getIntrinsicWidth(), drawable.getBounds().right); in testDrawLeadingMargin()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | MovieTest.java | 149 int expectedWidth = getActivity().getResources().getDrawable(MOVIE).getIntrinsicWidth(); 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()
|