Home
last modified time | relevance | path

Searched refs:getIntrinsicWidth (Results 1 – 25 of 28) sorted by relevance

12

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DGradientDrawableTest.java91 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 …]
DLayerDrawableTest.java270 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 …]
DAnimationDrawableTest.java202 assertEquals(drawable.getIntrinsicWidth(), frame.getIntrinsicWidth()); in testGetFrame()
207 assertEquals(drawable.getIntrinsicWidth(), frame.getIntrinsicWidth()); in testGetFrame()
212 assertEquals(drawable.getIntrinsicWidth(), frame.getIntrinsicWidth()); in testGetFrame()
DPictureDrawableTest.java63 assertEquals(-1, pictureDrawable.getIntrinsicWidth()); in testGetIntrinsicSize()
70 assertEquals(99, pictureDrawable.getIntrinsicWidth()); in testGetIntrinsicSize()
DShapeDrawableTest.java107 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()
DNinePatchDrawableTest.java230 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()
DRotateDrawableTest.java183 assertEquals(drawable.getIntrinsicWidth(), mRotateDrawable.getIntrinsicWidth()); in testGetIntrinsicWidthAndHeight()
194 assertEquals(drawable.getIntrinsicWidth(), rotateDrawable.getIntrinsicWidth()); in testGetIntrinsicWidthAndHeight()
DDrawableTestingUtils.java26 final int w = Math.max(d.getIntrinsicWidth(), x + 1); in getPixel()
DInsetDrawableTest.java286 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()
DBitmapDrawableTest.java308 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()
DDrawableWrapperTest.java359 wrapper.getIntrinsicWidth(); in testGetIntrinsicWidth()
431 public int getIntrinsicWidth() { in getIntrinsicWidth() method in DrawableWrapperTest.MockDrawable
433 return super.getIntrinsicWidth(); in getIntrinsicWidth()
DDrawableContainerTest.java389 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
DScaleDrawableTest.java377 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()
DDrawableTest.java305 assertEquals(42, drawable.getIntrinsicWidth()); in testCreateFromXml()
320 assertEquals(expected.getIntrinsicWidth(), drawable.getIntrinsicWidth()); in testCreateFromXmlInner()
378 assertEquals(-1, mockDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth()
DThemedDrawableTest.java112 assertEquals(1, d.getIntrinsicWidth()); in testGradientDrawable()
DClipDrawableTest.java120 assertEquals(-1, clipDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth()
126 assertEquals(100, clipDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth()
DDrawableContainerStateTest.java330 public int getIntrinsicWidth() { in getIntrinsicWidth() method in DrawableContainerStateTest.MockDrawable
/cts/tests/tests/widget/src/android/widget/cts/
DCheckedTextViewTest.java203 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,
DFrameLayoutTest.java86 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/
DLauncherActivity_IconResizerTest.java55 assertTrue(thumbNail.getIntrinsicWidth() > 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.java165 assertEquals(iconExp.getIntrinsicWidth(), icon.getIntrinsicWidth()); in testGetIcon()
/cts/tests/tests/text/src/android/text/style/cts/
DDrawableMarginSpanTest.java77 assertEquals(x + drawable.getIntrinsicWidth(), drawable.getBounds().right); in testDrawLeadingMargin()
/cts/tests/tests/graphics/src/android/graphics/cts/
DMovieTest.java149 int expectedWidth = getActivity().getResources().getDrawable(MOVIE).getIntrinsicWidth(); 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