Searched refs:halfDrawable (Results 1 – 7 of 7) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | RippleDrawableTest.java | 120 final RippleDrawable halfDrawable = in verifyPreloadDensityInner() local 122 assertEquals(Math.round(initialRadius / 2f), halfDrawable.getRadius()); in verifyPreloadDensityInner() 138 halfDrawable.applyTheme(t); in verifyPreloadDensityInner() 139 assertEquals(initialRadius, halfDrawable.getRadius()); in verifyPreloadDensityInner()
|
D | LayerDrawableTest.java | 1736 final LayerDrawable halfDrawable = in verifyPreloadDensityInner() local 1746 assertEquals(halfLeftPadding, halfDrawable.getLeftPadding()); in verifyPreloadDensityInner() 1747 assertEquals(halfRightPadding, halfDrawable.getRightPadding()); in verifyPreloadDensityInner() 1748 assertEquals(halfContentInsetL, halfDrawable.getLayerInsetRight(0)); in verifyPreloadDensityInner() 1749 assertEquals(halfContentInsetR, halfDrawable.getLayerInsetLeft(0)); in verifyPreloadDensityInner() 1750 assertEquals(halfContentWidth, halfDrawable.getLayerWidth(0)); in verifyPreloadDensityInner() 1751 assertEquals(halfIntrinsicWidth, halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner() 1752 assertEquals((int) (initialBottomPadding * approxHalf), halfDrawable.getBottomPadding()); in verifyPreloadDensityInner() 1753 assertEquals((int) (initialTopPadding * approxHalf), halfDrawable.getTopPadding()); in verifyPreloadDensityInner() 1755 halfDrawable.getLayerInsetLeft(0)); in verifyPreloadDensityInner() [all …]
|
D | InsetDrawableTest.java | 481 final InsetDrawable halfDrawable = in verifyPreloadDensityInner() local 485 assertEquals(Math.round(origInsetHoriz * approxHalf), halfDrawable.getIntrinsicWidth() in verifyPreloadDensityInner() 486 - halfDrawable.getDrawable().getIntrinsicWidth()); in verifyPreloadDensityInner() 504 halfDrawable.applyTheme(t); in verifyPreloadDensityInner() 508 halfDrawable.getIntrinsicWidth() - halfDrawable.getDrawable().getIntrinsicWidth()); in verifyPreloadDensityInner()
|
D | StateListDrawableTest.java | 236 final StateListDrawable halfDrawable = in verifyPreloadDensityTestForDrawableInner() local 238 halfDrawable.selectDrawable(0); in verifyPreloadDensityTestForDrawableInner() 239 assertEquals(Math.round(origWidth0 * 0.5f), halfDrawable.getIntrinsicWidth(), 1); in verifyPreloadDensityTestForDrawableInner() 240 halfDrawable.selectDrawable(1); in verifyPreloadDensityTestForDrawableInner() 241 assertEquals(Math.round(origWidth1 * 0.5f), halfDrawable.getIntrinsicWidth(), 1); in verifyPreloadDensityTestForDrawableInner()
|
D | GradientDrawableTest.java | 835 final GradientDrawable halfDrawable = in verifyPreloadDensityInner() local 839 assertEquals(Math.round(origWidth * approxHalf), halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner() 840 assertEquals(Math.round(origHeight * approxHalf), halfDrawable.getIntrinsicHeight()); in verifyPreloadDensityInner() 841 assertTrue(halfDrawable.getPadding(tempPadding)); in verifyPreloadDensityInner() 872 halfDrawable.applyTheme(t); in verifyPreloadDensityInner() 874 halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner() 876 halfDrawable.getIntrinsicHeight()); in verifyPreloadDensityInner() 877 assertTrue(halfDrawable.getPadding(tempPadding)); in verifyPreloadDensityInner()
|
D | AnimatedStateListDrawableTest.java | 210 final StateListDrawable halfDrawable = in runPreloadDensityTestForDrawableInner() local 213 halfDrawable.selectDrawable(i); in runPreloadDensityTestForDrawableInner() 214 assertEquals(Math.round(origWidth[i] * 0.5f), halfDrawable.getIntrinsicWidth(), 1); in runPreloadDensityTestForDrawableInner()
|
D | VectorDrawableTest.java | 450 final VectorDrawable halfDrawable = in verifyPreloadDensityInner() local 454 assertEquals(Math.round(origWidth * approxHalf), halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner() 470 halfDrawable.applyTheme(t); in verifyPreloadDensityInner() 471 assertEquals(origWidth, halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
|