Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DVectorDrawableTest.java267 DrawableTestUtils.saveAutoNamedVectorDrawableIntoPNG(mContext, mBitmap, resIds[i], in verifyVectorDrawables()
272 DrawableTestUtils.compareImages(mResources.getString(resIds[i]), mBitmap, golden, in verifyVectorDrawables()
273 DrawableTestUtils.PIXEL_ERROR_THRESHOLD, in verifyVectorDrawables()
274 DrawableTestUtils.PIXEL_ERROR_COUNT_THRESHOLD, in verifyVectorDrawables()
275 DrawableTestUtils.PIXEL_ERROR_TOLERANCE); in verifyVectorDrawables()
409 DrawableTestUtils.setResourcesDensity(mResources, densityDpi); in testPreloadDensity()
412 DrawableTestUtils.setResourcesDensity(mResources, densityDpi); in testPreloadDensity()
420 DrawableTestUtils.setResourcesDensity(mResources, 213); in testPreloadDensity_tvdpi()
423 DrawableTestUtils.setResourcesDensity(mResources, densityDpi); in testPreloadDensity_tvdpi()
437 final XmlResourceParser parser = DrawableTestUtils.getResourceParser( in verifyPreloadDensityInner()
[all …]
DRippleDrawableTest.java85 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity()
92 final XmlResourceParser parser = DrawableTestUtils.getResourceParser( in verifyPreloadDensityInner()
102 DrawableTestUtils.setResourcesDensity(res, densityDpi / 2); in verifyPreloadDensityInner()
108 DrawableTestUtils.setResourcesDensity(res, densityDpi * 2); in verifyPreloadDensityInner()
114 DrawableTestUtils.setResourcesDensity(res, densityDpi); in verifyPreloadDensityInner()
DColorDrawableTest.java143 assertEquals(Color.WHITE, DrawableTestUtils.getPixel(d, 0, 0)); in testSetColorFilter()
146 assertEquals(Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0)); in testSetColorFilter()
149 assertEquals(Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0)); in testSetColorFilter()
164 assertEquals(Color.WHITE, DrawableTestUtils.getPixel(d, 0, 0)); in testSetTint()
168 assertEquals(Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0)); in testSetTint()
DBitmapDrawableTest.java329 assertEquals("Nine-patch is tinted", Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0)); in testSetTint()
340 assertEquals("Nine-patch is tinted", Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0)); in testSetBlendMode()
416 targetWidth = DrawableTestUtils.scaleBitmapFromDensity( in testSetTargetDensity()
418 targetHeight = DrawableTestUtils.scaleBitmapFromDensity( in testSetTargetDensity()
430 targetWidth = DrawableTestUtils.scaleBitmapFromDensity( in testSetTargetDensity()
432 targetHeight = DrawableTestUtils.scaleBitmapFromDensity( in testSetTargetDensity()
445 targetWidth = DrawableTestUtils.scaleBitmapFromDensity( in testSetTargetDensity()
447 targetHeight = DrawableTestUtils.scaleBitmapFromDensity( in testSetTargetDensity()
459 AttributeSet attrs = DrawableTestUtils.getAttributeSet( in testInflate()
470 attrs = DrawableTestUtils.getAttributeSet( in testInflate()
[all …]
DNinePatchDrawableTest.java225 DrawableTestUtils.getPixel(mNinePatchDrawable, 0, 0)); in testSetTint()
233 DrawableTestUtils.getPixel(mNinePatchDrawable, 0, 0)); in testSetBlendMode()
384 int targetWidth = DrawableTestUtils.scaleBitmapFromDensity( in testInflate()
386 int targetHeight = DrawableTestUtils.scaleBitmapFromDensity( in testInflate()
451 DrawableTestUtils.setResourcesDensity(res, densityDpi); in verifySetTargetDensityOuter()
461 DrawableTestUtils.setResourcesDensity(res, preloadDensityDpi); in verifySetTargetDensityInner()
492 DrawableTestUtils.setResourcesDensity(res, preloadDensityDpi); in verifySetTargetDensityInner()
538 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity()
560 DrawableTestUtils.setResourcesDensity(res, scaledDensityDpi); in verifyPreloadDensityInner()
581 DrawableTestUtils.setResourcesDensity(res, preloadDensityDpi); in verifyPreloadDensityInner()
[all …]
DInsetDrawableTest.java442 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity()
445 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity()
454 DrawableTestUtils.setResourcesDensity(res, 213); in testPreloadDensity_tvdpi()
457 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity_tvdpi()
470 final XmlResourceParser parser = DrawableTestUtils.getResourceParser( in verifyPreloadDensityInner()
480 DrawableTestUtils.setResourcesDensity(res, densityDpi / 2); in verifyPreloadDensityInner()
489 DrawableTestUtils.setResourcesDensity(res, densityDpi * 2); in verifyPreloadDensityInner()
496 DrawableTestUtils.setResourcesDensity(res, densityDpi); in verifyPreloadDensityInner()
DAnimatedStateListDrawableTest.java180 DrawableTestUtils.setResourcesDensity(res, densityDpi); in runPreloadDensityTestForDrawable()
209 DrawableTestUtils.setResourcesDensity(res, densityDpi / 2); in runPreloadDensityTestForDrawableInner()
218 DrawableTestUtils.setResourcesDensity(res, densityDpi * 2); in runPreloadDensityTestForDrawableInner()
227 DrawableTestUtils.setResourcesDensity(res, densityDpi); in runPreloadDensityTestForDrawableInner()
DGradientDrawableTest.java667 DrawableTestUtils.setResourcesDensity(mResources, densityDpi); in testPreloadDensity()
670 DrawableTestUtils.setResourcesDensity(mResources, densityDpi); in testPreloadDensity()
678 DrawableTestUtils.setResourcesDensity(mResources, 213); in testPreloadDensity_tvdpi()
681 DrawableTestUtils.setResourcesDensity(mResources, densityDpi); in testPreloadDensity_tvdpi()
778 final XmlResourceParser parser = DrawableTestUtils.getResourceParser( in verifyPreloadDensityInner()
790 DrawableTestUtils.setResourcesDensity(res, densityDpi / 2); in verifyPreloadDensityInner()
801 DrawableTestUtils.setResourcesDensity(res, densityDpi * 2); in verifyPreloadDensityInner()
810 DrawableTestUtils.setResourcesDensity(res, densityDpi); in verifyPreloadDensityInner()
DAnimatedVectorDrawableParameterizedTest.java163 DrawableTestUtils.saveVectorDrawableIntoPNG(screenShot, outputFolder, in testAnimationOnLayer()
165 DrawableTestUtils.saveVectorDrawableIntoPNG(lastScreenShot, outputFolder, in testAnimationOnLayer()
320 DrawableTestUtils.saveVectorDrawableIntoPNG(screenShot, outputFolder, in testInfiniteAVD()
322 DrawableTestUtils.saveVectorDrawableIntoPNG(lastScreenShot, outputFolder, in testInfiniteAVD()
DStateListDrawableTest.java203 DrawableTestUtils.setResourcesDensity(res, densityDpi); in verifyPreloadDensityTestForDrawable()
235 DrawableTestUtils.setResourcesDensity(res, densityDpi / 2); in verifyPreloadDensityTestForDrawableInner()
245 DrawableTestUtils.setResourcesDensity(res, densityDpi * 2); in verifyPreloadDensityTestForDrawableInner()
254 DrawableTestUtils.setResourcesDensity(res, densityDpi); in verifyPreloadDensityTestForDrawableInner()
DLayerDrawableTest.java121 AttributeSet attrs = DrawableTestUtils.getAttributeSet(parser, "layer-list_full"); in testInflate()
138 attrs = DrawableTestUtils.getAttributeSet(parser, "layer-list_empty"); in testInflate()
143 attrs = DrawableTestUtils.getAttributeSet(parser, "layer-list_exception"); in testInflate()
1689 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity()
1692 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity()
1701 DrawableTestUtils.setResourcesDensity(res, 213); in testPreloadDensity_tvdpi()
1704 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity_tvdpi()
1711 final XmlResourceParser parser = DrawableTestUtils.getResourceParser( in verifyPreloadDensityInner()
1735 DrawableTestUtils.setResourcesDensity(res, densityDpi / 2); in verifyPreloadDensityInner()
1766 DrawableTestUtils.setResourcesDensity(res, densityDpi * 2); in verifyPreloadDensityInner()
[all …]
DScaleDrawableTest.java306 AttributeSet attrs = DrawableTestUtils.getAttributeSet(parser, "scale_allattrs"); in testInitialLevel()
444 AttributeSet attrs = DrawableTestUtils.getAttributeSet(parser, "scale_allattrs"); in testInflate()
451 attrs = DrawableTestUtils.getAttributeSet(parser, "scale_nodrawable"); in testInflate()
DDrawableTestUtils.java47 public class DrawableTestUtils { class
DAnimatedVectorDrawableTest.java108 DrawableTestUtils.saveAutoNamedVectorDrawableIntoPNG(mActivity, bitmap, mResId, null); in testInflate()
DShapeDrawableTest.java357 assertEquals("Shape is tinted", Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0)); in testSetTint()