Searched refs:preloadedDrawable (Results 1 – 8 of 8) sorted by relevance
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | BitmapDrawableTest.java | 90 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/ |
D | NinePatchDrawableTest.java | 463 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 …]
|
D | RippleDrawableTest.java | 111 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()
|
D | StateListDrawableTest.java | 211 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()
|
D | InsetDrawableTest.java | 472 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()
|
D | LayerDrawableTest.java | 1713 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 …]
|
D | VectorDrawableTest.java | 442 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()
|
D | GradientDrawableTest.java | 824 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()
|