Home
last modified time | relevance | path

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

/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBitmapDrawableTest.java90 final BitmapDrawable preloadedDrawable = (BitmapDrawable) res.getDrawable(sourceResId); in verifyPreloadDensityInner() local
91 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState(); in verifyPreloadDensityInner()
92 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityInner()
93 final int origHeight = preloadedDrawable.getIntrinsicHeight(); in verifyPreloadDensityInner()
94 assertFalse(preloadedDrawable.getPadding(tempPadding)); in verifyPreloadDensityInner()
96 runTest(preloadedDrawable); in verifyPreloadDensityInner()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DNinePatchDrawableTest.java463 final NinePatchDrawable preloadedDrawable = in verifySetTargetDensityInner() local
465 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in verifySetTargetDensityInner()
466 final int origHeight = preloadedDrawable.getIntrinsicHeight(); in verifySetTargetDensityInner()
468 preloadedDrawable.getPadding(origPadding); in verifySetTargetDensityInner()
546 final NinePatchDrawable preloadedDrawable = preloadedDrawable(res, in verifyPreloadDensityInner() local
549 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState(); in verifyPreloadDensityInner()
550 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityInner()
551 final int origHeight = preloadedDrawable.getIntrinsicHeight(); in verifyPreloadDensityInner()
553 preloadedDrawable.getPadding(origPadding); in verifyPreloadDensityInner()
555 compareOrSave(preloadedDrawable, preloadDensityDpi, sourceResId, goldenResIds[0]); in verifyPreloadDensityInner()
[all …]
DRippleDrawableTest.java111 final RippleDrawable preloadedDrawable = new RippleDrawable( in verifyPreloadDensityInner() local
113 preloadedDrawable.inflate(res, parser, Xml.asAttributeSet(parser)); in verifyPreloadDensityInner()
114 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState(); in verifyPreloadDensityInner()
115 final int initialRadius = preloadedDrawable.getRadius(); in verifyPreloadDensityInner()
DStateListDrawableTest.java211 final StateListDrawable preloadedDrawable = new StateListDrawable(); in verifyPreloadDensityTestForDrawableInner() local
212 preloadedDrawable.inflate(res, parser, Xml.asAttributeSet(parser)); in verifyPreloadDensityTestForDrawableInner()
213 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState(); in verifyPreloadDensityTestForDrawableInner()
214 preloadedDrawable.selectDrawable(0); in verifyPreloadDensityTestForDrawableInner()
215 final int tempWidth0 = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityTestForDrawableInner()
216 preloadedDrawable.selectDrawable(1); in verifyPreloadDensityTestForDrawableInner()
217 final int tempWidth1 = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityTestForDrawableInner()
DInsetDrawableTest.java472 final InsetDrawable preloadedDrawable = new InsetDrawable(null, 0); in verifyPreloadDensityInner() local
473 preloadedDrawable.inflate(res, parser, Xml.asAttributeSet(parser)); in verifyPreloadDensityInner()
474 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState(); in verifyPreloadDensityInner()
475 final int origInsetHoriz = preloadedDrawable.getIntrinsicWidth() in verifyPreloadDensityInner()
476 - preloadedDrawable.getDrawable().getIntrinsicWidth(); in verifyPreloadDensityInner()
DLayerDrawableTest.java1713 final LayerDrawable preloadedDrawable = new LayerDrawable(new Drawable[0]); in verifyPreloadDensityInner() local
1714 preloadedDrawable.inflate(res, parser, Xml.asAttributeSet(parser)); in verifyPreloadDensityInner()
1715 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState(); in verifyPreloadDensityInner()
1716 final int initialLeftPadding = preloadedDrawable.getLeftPadding(); in verifyPreloadDensityInner()
1717 final int initialRightPadding = preloadedDrawable.getRightPadding(); in verifyPreloadDensityInner()
1718 final int initialContentInsetL = preloadedDrawable.getLayerInsetLeft(0); in verifyPreloadDensityInner()
1719 final int initialContentInsetR = preloadedDrawable.getLayerInsetRight(0); in verifyPreloadDensityInner()
1720 final int initialContentWidth = preloadedDrawable.getLayerWidth(0); in verifyPreloadDensityInner()
1721 final int initialIntrinsicWidth = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityInner()
1722 final int initialBottomPadding = preloadedDrawable.getBottomPadding(); in verifyPreloadDensityInner()
[all …]
DVectorDrawableTest.java442 final VectorDrawable preloadedDrawable = new VectorDrawable(); in verifyPreloadDensityInner() local
443 preloadedDrawable.inflate(mResources, parser, Xml.asAttributeSet(parser)); in verifyPreloadDensityInner()
444 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState(); in verifyPreloadDensityInner()
445 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityInner()
DGradientDrawableTest.java824 final GradientDrawable preloadedDrawable = new GradientDrawable(); in verifyPreloadDensityInner() local
825 preloadedDrawable.inflate(res, parser, Xml.asAttributeSet(parser)); in verifyPreloadDensityInner()
826 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState(); in verifyPreloadDensityInner()
827 final int origWidth = preloadedDrawable.getIntrinsicWidth(); in verifyPreloadDensityInner()
828 final int origHeight = preloadedDrawable.getIntrinsicHeight(); in verifyPreloadDensityInner()
830 preloadedDrawable.getPadding(origPadding); in verifyPreloadDensityInner()