Home
last modified time | relevance | path

Searched refs:DrawableTestUtils (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DRippleDrawableTest.java62 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()
DColorDrawableTest.java123 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()
DBitmapDrawableTest.java293 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 …]
DNinePatchDrawableTest.java202 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 …]
DAnimatedStateListDrawableTest.java161 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()
DVectorDrawableTest.java264 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()
DInsetDrawableTest.java367 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()
DStateListDrawableTest.java177 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()
DGradientDrawableTest.java504 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()
DScaleDrawableTest.java304 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()
DDrawableTestUtils.java39 public class DrawableTestUtils { class
DLayerDrawableTest.java76 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()
DShapeDrawableTest.java322 assertEquals("Shape is tinted", Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0)); in testSetTint()