Searched refs:halfDrawable (Results 1 – 7 of 7) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | RippleDrawableTest.java | 80 final RippleDrawable halfDrawable = in testPreloadDensityInner() local 82 assertEquals(Math.round(initialRadius / 2f), halfDrawable.getRadius()); in testPreloadDensityInner() 98 halfDrawable.applyTheme(t); in testPreloadDensityInner() 99 assertEquals(initialRadius, halfDrawable.getRadius()); in testPreloadDensityInner()
|
D | LayerDrawableTest.java | 1729 final LayerDrawable halfDrawable = in testPreloadDensityInner() local 1737 assertEquals(halfLeftPadding, halfDrawable.getLeftPadding()); in testPreloadDensityInner() 1738 assertEquals(halfRightPadding, halfDrawable.getRightPadding()); in testPreloadDensityInner() 1739 assertEquals(halfContentInsetL, halfDrawable.getLayerInsetRight(0)); in testPreloadDensityInner() 1740 assertEquals(halfContentInsetR, halfDrawable.getLayerInsetLeft(0)); in testPreloadDensityInner() 1741 assertEquals(halfContentWidth, halfDrawable.getLayerWidth(0)); in testPreloadDensityInner() 1742 assertEquals(halfIntrinsicWidth, halfDrawable.getIntrinsicWidth()); in testPreloadDensityInner() 1743 assertEquals(initialBottomPadding / 2, halfDrawable.getBottomPadding()); in testPreloadDensityInner() 1744 assertEquals(initialTopPadding / 2, halfDrawable.getTopPadding()); in testPreloadDensityInner() 1745 assertEquals(initialLayerInsetLeft / 2,halfDrawable.getLayerInsetLeft(0)); in testPreloadDensityInner() [all …]
|
D | GradientDrawableTest.java | 526 final GradientDrawable halfDrawable = in testPreloadDensityInner() local 528 assertEquals(Math.round(origWidth / 2f), halfDrawable.getIntrinsicWidth()); in testPreloadDensityInner() 529 assertEquals(Math.round(origHeight / 2f), halfDrawable.getIntrinsicHeight()); in testPreloadDensityInner() 530 assertTrue(halfDrawable.getPadding(tempPadding)); in testPreloadDensityInner() 562 halfDrawable.applyTheme(t); in testPreloadDensityInner() 563 assertEquals(2 * Math.round(origWidth / 2f), halfDrawable.getIntrinsicWidth()); in testPreloadDensityInner() 564 assertEquals(2 * Math.round(origHeight / 2f), halfDrawable.getIntrinsicHeight()); in testPreloadDensityInner() 565 assertTrue(halfDrawable.getPadding(tempPadding)); in testPreloadDensityInner()
|
D | StateListDrawableTest.java | 206 final StateListDrawable halfDrawable = in runPreloadDensityTestForDrawableInner() local 208 halfDrawable.selectDrawable(0); in runPreloadDensityTestForDrawableInner() 209 assertEquals(Math.round(origWidth0 / 2f), halfDrawable.getIntrinsicWidth()); in runPreloadDensityTestForDrawableInner() 210 halfDrawable.selectDrawable(1); in runPreloadDensityTestForDrawableInner() 211 assertEquals(Math.round(origWidth1 / 2f), halfDrawable.getIntrinsicWidth()); in runPreloadDensityTestForDrawableInner()
|
D | InsetDrawableTest.java | 385 final InsetDrawable halfDrawable = in testPreloadDensityInner() local 387 assertEquals(Math.round(origInsetHoriz / 2f), halfDrawable.getIntrinsicWidth() in testPreloadDensityInner() 388 - halfDrawable.getDrawable().getIntrinsicWidth()); in testPreloadDensityInner() 406 halfDrawable.applyTheme(t); in testPreloadDensityInner() 407 assertEquals(origInsetHoriz, halfDrawable.getIntrinsicWidth() in testPreloadDensityInner() 408 - halfDrawable.getDrawable().getIntrinsicWidth()); in testPreloadDensityInner()
|
D | AnimatedStateListDrawableTest.java | 187 final StateListDrawable halfDrawable = in runPreloadDensityTestForDrawableInner() local 190 halfDrawable.selectDrawable(i); in runPreloadDensityTestForDrawableInner() 191 assertEquals(Math.round(origWidth[i] / 2f), halfDrawable.getIntrinsicWidth()); in runPreloadDensityTestForDrawableInner()
|
D | VectorDrawableTest.java | 456 final VectorDrawable halfDrawable = in testPreloadDensityInner() local 458 assertEquals(Math.round(origWidth / 2f), halfDrawable.getIntrinsicWidth()); in testPreloadDensityInner() 474 halfDrawable.applyTheme(t); in testPreloadDensityInner() 475 assertEquals(origWidth, halfDrawable.getIntrinsicWidth()); in testPreloadDensityInner()
|