Home
last modified time | relevance | path

Searched refs:preloadedDrawable (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DNinePatchDrawableTest.java451 final NinePatchDrawable preloadedDrawable = in verifySetTargetDensityInner() local
453 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in verifySetTargetDensityInner()
454 final int origHeight = preloadedDrawable.getIntrinsicHeight(); in verifySetTargetDensityInner()
456 preloadedDrawable.getPadding(origPadding); in verifySetTargetDensityInner()
534 final NinePatchDrawable preloadedDrawable = preloadedDrawable(res, in verifyPreloadDensityInner() local
537 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState(); in verifyPreloadDensityInner()
538 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityInner()
539 final int origHeight = preloadedDrawable.getIntrinsicHeight(); in verifyPreloadDensityInner()
541 preloadedDrawable.getPadding(origPadding); in verifyPreloadDensityInner()
543 compareOrSave(preloadedDrawable, preloadDensityDpi, sourceResId, goldenResIds[0]); in verifyPreloadDensityInner()
[all …]
DRippleDrawableTest.java93 final RippleDrawable preloadedDrawable = new RippleDrawable( in verifyPreloadDensityInner() local
95 preloadedDrawable.inflate(res, parser, Xml.asAttributeSet(parser)); in verifyPreloadDensityInner()
96 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState(); in verifyPreloadDensityInner()
97 final int initialRadius = preloadedDrawable.getRadius(); in verifyPreloadDensityInner()
DStateListDrawableTest.java209 final StateListDrawable preloadedDrawable = new StateListDrawable(); in verifyPreloadDensityTestForDrawableInner() local
210 preloadedDrawable.inflate(res, parser, Xml.asAttributeSet(parser)); in verifyPreloadDensityTestForDrawableInner()
211 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState(); in verifyPreloadDensityTestForDrawableInner()
212 preloadedDrawable.selectDrawable(0); in verifyPreloadDensityTestForDrawableInner()
213 final int tempWidth0 = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityTestForDrawableInner()
214 preloadedDrawable.selectDrawable(1); in verifyPreloadDensityTestForDrawableInner()
215 final int tempWidth1 = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityTestForDrawableInner()
DGradientDrawableTest.java558 final GradientDrawable preloadedDrawable = new GradientDrawable(); in verifyPreloadDensityInner() local
559 preloadedDrawable.inflate(res, parser, Xml.asAttributeSet(parser)); in verifyPreloadDensityInner()
560 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState(); in verifyPreloadDensityInner()
561 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityInner()
562 final int origHeight = preloadedDrawable.getIntrinsicHeight(); in verifyPreloadDensityInner()
564 preloadedDrawable.getPadding(origPadding); in verifyPreloadDensityInner()
DInsetDrawableTest.java467 final InsetDrawable preloadedDrawable = new InsetDrawable(null, 0); in verifyPreloadDensityInner() local
468 preloadedDrawable.inflate(res, parser, Xml.asAttributeSet(parser)); in verifyPreloadDensityInner()
469 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState(); in verifyPreloadDensityInner()
470 final int origInsetHoriz = preloadedDrawable.getIntrinsicWidth() in verifyPreloadDensityInner()
471 - preloadedDrawable.getDrawable().getIntrinsicWidth(); in verifyPreloadDensityInner()
DBitmapDrawableTest.java572 final BitmapDrawable preloadedDrawable = new BitmapDrawable(); in verifyPreloadDensityInner() local
573 preloadedDrawable.inflate(res, parser, Xml.asAttributeSet(parser)); in verifyPreloadDensityInner()
575 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState(); in verifyPreloadDensityInner()
576 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityInner()
577 final int origHeight = preloadedDrawable.getIntrinsicHeight(); in verifyPreloadDensityInner()
578 assertFalse(preloadedDrawable.getPadding(tempPadding)); in verifyPreloadDensityInner()
580 compareOrSave(preloadedDrawable, preloadDensityDpi, sourceResId); in verifyPreloadDensityInner()
DLayerDrawableTest.java1702 final LayerDrawable preloadedDrawable = new LayerDrawable(new Drawable[0]); in verifyPreloadDensityInner() local
1703 preloadedDrawable.inflate(res, parser, Xml.asAttributeSet(parser)); in verifyPreloadDensityInner()
1704 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState(); in verifyPreloadDensityInner()
1705 final int initialLeftPadding = preloadedDrawable.getLeftPadding(); in verifyPreloadDensityInner()
1706 final int initialRightPadding = preloadedDrawable.getRightPadding(); in verifyPreloadDensityInner()
1707 final int initialContentInsetL = preloadedDrawable.getLayerInsetLeft(0); in verifyPreloadDensityInner()
1708 final int initialContentInsetR = preloadedDrawable.getLayerInsetRight(0); in verifyPreloadDensityInner()
1709 final int initialContentWidth = preloadedDrawable.getLayerWidth(0); in verifyPreloadDensityInner()
1710 final int initialIntrinsicWidth = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityInner()
1711 final int initialBottomPadding = preloadedDrawable.getBottomPadding(); in verifyPreloadDensityInner()
[all …]
DVectorDrawableTest.java433 final VectorDrawable preloadedDrawable = new VectorDrawable(); in verifyPreloadDensityInner() local
434 preloadedDrawable.inflate(mResources, parser, Xml.asAttributeSet(parser)); in verifyPreloadDensityInner()
435 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState(); in verifyPreloadDensityInner()
436 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityInner()