/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | RippleDrawableTest.java | 62 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity() 69 final XmlResourceParser parser = DrawableTestUtils.getResourceParser( in testPreloadDensityInner() 79 DrawableTestUtils.setResourcesDensity(res, densityDpi / 2); in testPreloadDensityInner() 85 DrawableTestUtils.setResourcesDensity(res, densityDpi * 2); in testPreloadDensityInner() 91 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensityInner()
|
D | ColorDrawableTest.java | 123 assertEquals(Color.WHITE, DrawableTestUtils.getPixel(d, 0, 0)); in testSetColorFilter() 126 assertEquals(Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0)); in testSetColorFilter() 129 assertEquals(Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0)); in testSetColorFilter() 134 assertEquals(Color.WHITE, DrawableTestUtils.getPixel(d, 0, 0)); in testSetTint() 138 assertEquals(Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0)); in testSetTint()
|
D | BitmapDrawableTest.java | 293 assertEquals("Nine-patch is tinted", Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0)); in testSetTint() 367 targetWidth = DrawableTestUtils.scaleBitmapFromDensity( in testSetTargetDensity() 369 targetHeight = DrawableTestUtils.scaleBitmapFromDensity( in testSetTargetDensity() 381 targetWidth = DrawableTestUtils.scaleBitmapFromDensity( in testSetTargetDensity() 383 targetHeight = DrawableTestUtils.scaleBitmapFromDensity( in testSetTargetDensity() 396 targetWidth = DrawableTestUtils.scaleBitmapFromDensity( in testSetTargetDensity() 398 targetHeight = DrawableTestUtils.scaleBitmapFromDensity( in testSetTargetDensity() 409 AttributeSet attrs = DrawableTestUtils.getAttributeSet( in testInflate() 420 attrs = DrawableTestUtils.getAttributeSet( in testInflate() 432 attrs = DrawableTestUtils.getAttributeSet( in testInflate() [all …]
|
D | NinePatchDrawableTest.java | 202 DrawableTestUtils.getPixel(mNinePatchDrawable, 0, 0)); in testSetTint() 340 int targetWidth = DrawableTestUtils.scaleBitmapFromDensity( in testInflate() 342 int targetHeight = DrawableTestUtils.scaleBitmapFromDensity( in testInflate() 406 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testSetTargetDensityOuter() 416 DrawableTestUtils.setResourcesDensity(res, preloadDensityDpi); in testSetTargetDensityInner() 447 DrawableTestUtils.setResourcesDensity(res, preloadDensityDpi); in testSetTargetDensityInner() 500 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity() 522 DrawableTestUtils.setResourcesDensity(res, scaledDensityDpi); in testPreloadDensityInner() 543 DrawableTestUtils.setResourcesDensity(res, preloadDensityDpi); in testPreloadDensityInner() 556 DrawableTestUtils.setResourcesDensity(res, densityDpi); in preloadedDrawable() [all …]
|
D | AnimatedStateListDrawableTest.java | 161 DrawableTestUtils.setResourcesDensity(res, densityDpi); in runPreloadDensityTestForDrawable() 186 DrawableTestUtils.setResourcesDensity(res, densityDpi / 2); in runPreloadDensityTestForDrawableInner() 195 DrawableTestUtils.setResourcesDensity(res, densityDpi * 2); in runPreloadDensityTestForDrawableInner() 204 DrawableTestUtils.setResourcesDensity(res, densityDpi); in runPreloadDensityTestForDrawableInner()
|
D | VectorDrawableTest.java | 264 DrawableTestUtils.compareImages(mResources.getString(resIds[i]), mBitmap, golden, in verifyVectorDrawables() 425 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity() 446 final XmlResourceParser parser = DrawableTestUtils.getResourceParser( in testPreloadDensityInner() 455 DrawableTestUtils.setResourcesDensity(res, densityDpi / 2); in testPreloadDensityInner() 461 DrawableTestUtils.setResourcesDensity(res, densityDpi * 2); in testPreloadDensityInner() 467 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensityInner()
|
D | InsetDrawableTest.java | 367 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity() 374 final XmlResourceParser parser = DrawableTestUtils.getResourceParser( in testPreloadDensityInner() 384 DrawableTestUtils.setResourcesDensity(res, densityDpi / 2); in testPreloadDensityInner() 391 DrawableTestUtils.setResourcesDensity(res, densityDpi * 2); in testPreloadDensityInner() 398 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensityInner()
|
D | StateListDrawableTest.java | 177 DrawableTestUtils.setResourcesDensity(res, densityDpi); in runPreloadDensityTestForDrawable() 205 DrawableTestUtils.setResourcesDensity(res, densityDpi / 2); in runPreloadDensityTestForDrawableInner() 214 DrawableTestUtils.setResourcesDensity(res, densityDpi * 2); in runPreloadDensityTestForDrawableInner() 223 DrawableTestUtils.setResourcesDensity(res, densityDpi); in runPreloadDensityTestForDrawableInner()
|
D | GradientDrawableTest.java | 504 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity() 513 final XmlResourceParser parser = DrawableTestUtils.getResourceParser( in testPreloadDensityInner() 525 DrawableTestUtils.setResourcesDensity(res, densityDpi / 2); in testPreloadDensityInner() 534 DrawableTestUtils.setResourcesDensity(res, densityDpi * 2); in testPreloadDensityInner() 543 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensityInner()
|
D | ScaleDrawableTest.java | 304 AttributeSet attrs = DrawableTestUtils.getAttributeSet(parser, "scale_allattrs"); in testInitialLevel() 436 AttributeSet attrs = DrawableTestUtils.getAttributeSet(parser, "scale_allattrs"); in testInflate() 443 attrs = DrawableTestUtils.getAttributeSet(parser, "scale_nodrawable"); in testInflate()
|
D | DrawableTestUtils.java | 39 public class DrawableTestUtils { class
|
D | LayerDrawableTest.java | 76 AttributeSet attrs = DrawableTestUtils.getAttributeSet(parser, "layer-list_full"); in testInflate() 93 attrs = DrawableTestUtils.getAttributeSet(parser, "layer-list_empty"); in testInflate() 98 attrs = DrawableTestUtils.getAttributeSet(parser, "layer-list_exception"); in testInflate() 1697 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity() 1704 final XmlResourceParser parser = DrawableTestUtils.getResourceParser( in testPreloadDensityInner() 1728 DrawableTestUtils.setResourcesDensity(res, densityDpi / 2); in testPreloadDensityInner() 1753 DrawableTestUtils.setResourcesDensity(res, densityDpi * 2); in testPreloadDensityInner() 1772 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensityInner()
|
D | ShapeDrawableTest.java | 322 assertEquals("Shape is tinted", Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0)); in testSetTint()
|