/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | InsetDrawableTest.java | 290 int expected = d.getIntrinsicWidth(); in testGetIntrinsicWidth() 291 assertEquals(expected, insetDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 296 expected = d.getIntrinsicWidth(); in testGetIntrinsicWidth() 297 assertEquals(expected, insetDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 302 expected = d.getIntrinsicWidth() + 40; in testGetIntrinsicWidth() 303 assertEquals(expected, insetDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 307 assertEquals(expected, d.getIntrinsicWidth()); in testGetIntrinsicWidth() 379 final int origInsetHoriz = preloadedDrawable.getIntrinsicWidth() in testPreloadDensityInner() 380 - preloadedDrawable.getDrawable().getIntrinsicWidth(); in testPreloadDensityInner() 387 assertEquals(Math.round(origInsetHoriz / 2f), halfDrawable.getIntrinsicWidth() in testPreloadDensityInner() [all …]
|
D | GradientDrawableTest.java | 192 assertEquals(width, gradientDrawable.getIntrinsicWidth()); in helpTestSetSize() 442 assertEquals(6, gradientDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 445 assertEquals(-10, gradientDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 473 assertEquals(10, d1.getIntrinsicWidth()); in testMutate() 475 assertEquals(10, d2.getIntrinsicWidth()); in testMutate() 477 assertEquals(10, d3.getIntrinsicWidth()); in testMutate() 482 assertEquals(20, d1.getIntrinsicWidth()); in testMutate() 484 assertEquals(10, d2.getIntrinsicWidth()); in testMutate() 486 assertEquals(10, d3.getIntrinsicWidth()); in testMutate() 490 assertEquals(20, d1.getIntrinsicWidth()); in testMutate() [all …]
|
D | LayerDrawableTest.java | 277 assertEquals(layerDrawable.getDrawable(0).getIntrinsicWidth() + left + right, in testSetLayerInset() 278 layerDrawable.getIntrinsicWidth()); in testSetLayerInset() 285 assertEquals(layerDrawable.getDrawable(0).getIntrinsicWidth() + left + right, in testSetLayerInset() 286 layerDrawable.getIntrinsicWidth()); in testSetLayerInset() 482 assertEquals(34, layerDrawable.getIntrinsicWidth()); in testAccessPaddingMode() 489 assertEquals(30, layerDrawable.getIntrinsicWidth()); in testAccessPaddingMode() 776 assertEquals(largeMockDrawable.getIntrinsicWidth(), layerDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 787 assertEquals(smallMockDrawable.getIntrinsicWidth() + inset2.left in testGetIntrinsicWidth() 789 layerDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 794 assertEquals(largeMockDrawable.getIntrinsicWidth() + inset1.left + inset1.right, in testGetIntrinsicWidth() [all …]
|
D | StateListDrawableTest.java | 189 final int tempWidth0 = preloadedDrawable.getIntrinsicWidth(); in runPreloadDensityTestForDrawableInner() 191 final int tempWidth1 = preloadedDrawable.getIntrinsicWidth(); in runPreloadDensityTestForDrawableInner() 209 assertEquals(Math.round(origWidth0 / 2f), halfDrawable.getIntrinsicWidth()); in runPreloadDensityTestForDrawableInner() 211 assertEquals(Math.round(origWidth1 / 2f), halfDrawable.getIntrinsicWidth()); in runPreloadDensityTestForDrawableInner() 218 assertEquals(origWidth0 * 2, doubleDrawable.getIntrinsicWidth()); in runPreloadDensityTestForDrawableInner() 220 assertEquals(origWidth1 * 2, doubleDrawable.getIntrinsicWidth()); in runPreloadDensityTestForDrawableInner() 227 assertEquals(origWidth0, origDrawable.getIntrinsicWidth()); in runPreloadDensityTestForDrawableInner() 229 assertEquals(origWidth1, origDrawable.getIntrinsicWidth()); in runPreloadDensityTestForDrawableInner()
|
D | NinePatchDrawableTest.java | 246 assertEquals(bmp.getWidth(), mNinePatchDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 247 assertEquals(5, mNinePatchDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 251 assertEquals(bmp.getWidth(), mNinePatchDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 252 assertEquals(9, mNinePatchDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth() 344 assertEquals(targetWidth, ninePatchDrawable.getIntrinsicWidth()); in testInflate() 357 assertTrue(sourceWidth != ninePatchDrawable.getIntrinsicWidth()); in testInflate() 420 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in testSetTargetDensityInner() 434 assertEquals(Math.round(origWidth * scale), scaledDrawable.getIntrinsicWidth()); in testSetTargetDensityInner() 451 assertEquals(origWidth, scaledDrawable.getIntrinsicWidth()); in testSetTargetDensityInner() 512 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in testPreloadDensityInner() [all …]
|
D | AnimationDrawableTest.java | 216 assertEquals(drawable.getIntrinsicWidth(), frame.getIntrinsicWidth()); in testGetFrame() 221 assertEquals(drawable.getIntrinsicWidth(), frame.getIntrinsicWidth()); in testGetFrame() 226 assertEquals(drawable.getIntrinsicWidth(), frame.getIntrinsicWidth()); in testGetFrame()
|
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 | PictureDrawableTest.java | 63 assertEquals(-1, pictureDrawable.getIntrinsicWidth()); in testGetIntrinsicSize() 70 assertEquals(99, pictureDrawable.getIntrinsicWidth()); in testGetIntrinsicSize()
|
D | BitmapDrawableTest.java | 335 assertEquals(0, bitmapDrawable.getIntrinsicWidth()); in testGetIntrinsicSize() 341 assertEquals(200, bitmapDrawable.getIntrinsicWidth()); in testGetIntrinsicSize() 347 assertEquals(48, bitmapDrawable.getIntrinsicWidth()); in testGetIntrinsicSize() 371 assertEquals(targetWidth, bitmapDrawable.getIntrinsicWidth()); in testSetTargetDensity() 385 assertEquals(targetWidth, bitmapDrawable.getIntrinsicWidth()); in testSetTargetDensity() 400 assertEquals(targetWidth, bitmapDrawable.getIntrinsicWidth()); in testSetTargetDensity() 543 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in testPreloadDensityInner() 558 assertEquals(Math.round(origWidth * scale), scaledDrawable.getIntrinsicWidth()); in testPreloadDensityInner() 573 assertEquals(origWidth, scaledDrawable.getIntrinsicWidth()); in testPreloadDensityInner() 580 final int width = dr.getIntrinsicWidth(); in compareOrSave()
|
D | DrawableTest.java | 311 assertEquals(expected.getIntrinsicWidth(), drawable.getIntrinsicWidth()); in testCreateFromXml() 323 assertEquals(expected.getIntrinsicWidth(), drawable.getIntrinsicWidth()); in testCreateFromXmlThemed() 337 assertEquals(expected.getIntrinsicWidth(), drawable.getIntrinsicWidth()); in testCreateFromXmlInner() 353 assertEquals(expected.getIntrinsicWidth(), drawable.getIntrinsicWidth()); in testCreateFromXmlInnerThemed() 411 assertEquals(-1, mockDrawable.getIntrinsicWidth()); in testGetIntrinsicWidth()
|
D | AnimatedStateListDrawableTest.java | 177 final int width = cs.getChild(i).getIntrinsicWidth(); in runPreloadDensityTestForDrawableInner() 191 assertEquals(Math.round(origWidth[i] / 2f), halfDrawable.getIntrinsicWidth()); in runPreloadDensityTestForDrawableInner() 200 assertEquals(origWidth[i] * 2, doubleDrawable.getIntrinsicWidth()); in runPreloadDensityTestForDrawableInner() 209 assertEquals(origWidth[i], origDrawable.getIntrinsicWidth()); in runPreloadDensityTestForDrawableInner()
|
D | VectorDrawableTest.java | 451 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in testPreloadDensityInner() 458 assertEquals(Math.round(origWidth / 2f), halfDrawable.getIntrinsicWidth()); in testPreloadDensityInner() 464 assertEquals(origWidth * 2, doubleDrawable.getIntrinsicWidth()); in testPreloadDensityInner() 470 assertEquals(origWidth, origDrawable.getIntrinsicWidth()); in testPreloadDensityInner() 475 assertEquals(origWidth, halfDrawable.getIntrinsicWidth()); in testPreloadDensityInner() 477 assertEquals(origWidth, doubleDrawable.getIntrinsicWidth()); in testPreloadDensityInner()
|
D | RotateDrawableTest.java | 237 assertEquals(drawable.getIntrinsicWidth(), mRotateDrawable.getIntrinsicWidth()); in testGetIntrinsicWidthAndHeight() 248 assertEquals(drawable.getIntrinsicWidth(), rotateDrawable.getIntrinsicWidth()); in testGetIntrinsicWidthAndHeight()
|
D | DrawableContainerTest.java | 429 mDrawableContainer.getIntrinsicWidth(); in testGetIntrinsicWidth() 445 mDrawableContainer.getIntrinsicWidth()); in testGetIntrinsicWidth() 446 assertEquals(2, mDrawableContainer.getIntrinsicWidth()); in testGetIntrinsicWidth() 451 assertEquals(-1, mDrawableContainer.getIntrinsicWidth()); in testGetIntrinsicWidth() 456 assertEquals(1, mDrawableContainer.getIntrinsicWidth()); in testGetIntrinsicWidth() 946 public int getIntrinsicWidth() { in getIntrinsicWidth() method in DrawableContainerTest.MockDrawable
|
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 | ScaleDrawableTest.java | 401 scaleDrawable.getIntrinsicWidth(); in testGetIntrinsicWidth() 439 assertEquals(bitmapSize, scaleDrawable.getIntrinsicWidth()); in testInflate() 544 public int getIntrinsicWidth() { in getIntrinsicWidth() method in ScaleDrawableTest.MockDrawable 546 return super.getIntrinsicWidth(); in getIntrinsicWidth()
|
D | ThemedDrawableTest.java | 112 assertEquals(1, d.getIntrinsicWidth()); in testGradientDrawable()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TabWidgetTest.java | 69 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()
|
D | CheckedTextViewTest.java | 204 assertEquals(firstDrawable.getIntrinsicWidth(), checkedTextView.getPaddingRight()); 219 assertEquals(secondDrawable.getIntrinsicWidth() + basePaddingRight, 242 assertEquals(firstDrawable.getIntrinsicWidth() + basePaddingRight, 249 assertEquals(firstDrawable.getIntrinsicWidth() + basePaddingRight, 256 assertEquals(secondDrawable.getIntrinsicWidth() + basePaddingRight,
|
D | FrameLayoutTest.java | 85 compareScaledPixels(48, foreground.getIntrinsicWidth()); in testSetForegroundGravity() 87 assertTrue(mFrameLayout.getWidth() > foreground.getIntrinsicWidth()); in testSetForegroundGravity() 109 compareScaledPixels(48, newForeground.getIntrinsicWidth()); in testSetForegroundGravity() 111 assertTrue(mFrameLayout.getWidth() > foreground.getIntrinsicWidth()); in testSetForegroundGravity() 123 assertEquals(foreground.getIntrinsicWidth(), rect2.right - rect2.left); in testSetForegroundGravity()
|
D | ToolbarTest.java | 235 toolbarOverflowIcon.getIntrinsicWidth(), toolbarOverflowIcon.getIntrinsicHeight(), in testMenuOverflowIcon() 283 toolbarNavigationIcon.getIntrinsicWidth(), in testNavigationConfiguration() 291 toolbarNavigationIcon.getIntrinsicWidth(), in testNavigationConfiguration() 312 toolbarLogo.getIntrinsicWidth(), in testLogoConfiguration() 320 toolbarLogo.getIntrinsicWidth(), in testLogoConfiguration()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeImageTransformTest.java | 82 int imageWidth = mImage.getIntrinsicWidth(); in centerMatrix() 96 int imageWidth = mImage.getIntrinsicWidth(); in fitXYMatrix() 110 int imageWidth = mImage.getIntrinsicWidth(); in centerCropMatrix() 132 int imageWidth = mImage.getIntrinsicWidth(); in fitCenterMatrix() 154 int imageWidth = mImage.getIntrinsicWidth(); in fitStartMatrix() 170 int imageWidth = mImage.getIntrinsicWidth(); in fitEndMatrix()
|
/cts/tests/app/src/android/app/cts/ |
D | LauncherActivity_IconResizerTest.java | 54 assertTrue(thumbNail.getIntrinsicWidth() > 0); in testIconResizer()
|
/cts/tests/tests/preference2/src/android/preference2/cts/ |
D | PreferenceTest.java | 165 assertEquals(iconExp.getIntrinsicWidth(), icon.getIntrinsicWidth()); in testGetIcon()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | ByodIconSamplerActivity.java | 102 Bitmap bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(), icon.getIntrinsicHeight(), in convertToBitmap()
|