Home
last modified time | relevance | path

Searched refs:halfDrawable (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DRippleDrawableTest.java102 final RippleDrawable halfDrawable = in verifyPreloadDensityInner() local
104 assertEquals(Math.round(initialRadius / 2f), halfDrawable.getRadius()); in verifyPreloadDensityInner()
120 halfDrawable.applyTheme(t); in verifyPreloadDensityInner()
121 assertEquals(initialRadius, halfDrawable.getRadius()); in verifyPreloadDensityInner()
DLayerDrawableTest.java1725 final LayerDrawable halfDrawable = in verifyPreloadDensityInner() local
1735 assertEquals(halfLeftPadding, halfDrawable.getLeftPadding()); in verifyPreloadDensityInner()
1736 assertEquals(halfRightPadding, halfDrawable.getRightPadding()); in verifyPreloadDensityInner()
1737 assertEquals(halfContentInsetL, halfDrawable.getLayerInsetRight(0)); in verifyPreloadDensityInner()
1738 assertEquals(halfContentInsetR, halfDrawable.getLayerInsetLeft(0)); in verifyPreloadDensityInner()
1739 assertEquals(halfContentWidth, halfDrawable.getLayerWidth(0)); in verifyPreloadDensityInner()
1740 assertEquals(halfIntrinsicWidth, halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
1741 assertEquals((int) (initialBottomPadding * approxHalf), halfDrawable.getBottomPadding()); in verifyPreloadDensityInner()
1742 assertEquals((int) (initialTopPadding * approxHalf), halfDrawable.getTopPadding()); in verifyPreloadDensityInner()
1744 halfDrawable.getLayerInsetLeft(0)); in verifyPreloadDensityInner()
[all …]
DGradientDrawableTest.java578 final GradientDrawable halfDrawable = in verifyPreloadDensityInner() local
582 assertEquals(Math.round(origWidth * approxHalf), halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
583 assertEquals(Math.round(origHeight * approxHalf), halfDrawable.getIntrinsicHeight()); in verifyPreloadDensityInner()
584 assertTrue(halfDrawable.getPadding(tempPadding)); in verifyPreloadDensityInner()
615 halfDrawable.applyTheme(t); in verifyPreloadDensityInner()
617 halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
619 halfDrawable.getIntrinsicHeight()); in verifyPreloadDensityInner()
620 assertTrue(halfDrawable.getPadding(tempPadding)); in verifyPreloadDensityInner()
DStateListDrawableTest.java234 final StateListDrawable halfDrawable = in verifyPreloadDensityTestForDrawableInner() local
236 halfDrawable.selectDrawable(0); in verifyPreloadDensityTestForDrawableInner()
237 assertEquals(Math.round(origWidth0 * 0.5f), halfDrawable.getIntrinsicWidth(), 1); in verifyPreloadDensityTestForDrawableInner()
238 halfDrawable.selectDrawable(1); in verifyPreloadDensityTestForDrawableInner()
239 assertEquals(Math.round(origWidth1 * 0.5f), halfDrawable.getIntrinsicWidth(), 1); in verifyPreloadDensityTestForDrawableInner()
DInsetDrawableTest.java476 final InsetDrawable halfDrawable = in verifyPreloadDensityInner() local
480 assertEquals(Math.round(origInsetHoriz * approxHalf), halfDrawable.getIntrinsicWidth() in verifyPreloadDensityInner()
481 - halfDrawable.getDrawable().getIntrinsicWidth()); in verifyPreloadDensityInner()
499 halfDrawable.applyTheme(t); in verifyPreloadDensityInner()
503 halfDrawable.getIntrinsicWidth() - halfDrawable.getDrawable().getIntrinsicWidth()); in verifyPreloadDensityInner()
DAnimatedStateListDrawableTest.java209 final StateListDrawable halfDrawable = in runPreloadDensityTestForDrawableInner() local
212 halfDrawable.selectDrawable(i); in runPreloadDensityTestForDrawableInner()
213 assertEquals(Math.round(origWidth[i] * 0.5f), halfDrawable.getIntrinsicWidth(), 1); in runPreloadDensityTestForDrawableInner()
DVectorDrawableTest.java441 final VectorDrawable halfDrawable = in verifyPreloadDensityInner() local
445 assertEquals(Math.round(origWidth * approxHalf), halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
461 halfDrawable.applyTheme(t); in verifyPreloadDensityInner()
462 assertEquals(origWidth, halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()