Searched refs:approxHalf (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | GradientDrawableTest.java | 894 final float approxHalf = (float)(densityDpi / 2) / densityDpi; in verifyPreloadDensityInner() local 895 assertEquals(Math.round(origWidth * approxHalf), halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner() 896 assertEquals(Math.round(origHeight * approxHalf), halfDrawable.getIntrinsicHeight()); in verifyPreloadDensityInner() 898 assertEquals((int) (origPadding.left * approxHalf), tempPadding.left); in verifyPreloadDensityInner() 919 final float approxDouble = 1 / approxHalf; in verifyPreloadDensityInner() 921 sloppyOrigPadding.left = (int)(approxDouble * ((int)(origPadding.left * approxHalf))); in verifyPreloadDensityInner() 922 sloppyOrigPadding.top = (int)(approxDouble * ((int)(origPadding.top * approxHalf))); in verifyPreloadDensityInner() 923 sloppyOrigPadding.right = (int)(approxDouble * ((int)(origPadding.right * approxHalf))); in verifyPreloadDensityInner() 924 sloppyOrigPadding.bottom = (int)(approxDouble * ((int)(origPadding.bottom * approxHalf))); in verifyPreloadDensityInner() 929 assertEquals(Math.round(approxDouble * Math.round(origWidth * approxHalf)), in verifyPreloadDensityInner() [all …]
|
D | LayerDrawableTest.java | 1739 final float approxHalf = (float)(densityDpi / 2) / densityDpi; in verifyPreloadDensityInner() local 1740 final int halfContentWidth = Math.round(initialContentWidth * approxHalf); in verifyPreloadDensityInner() 1741 final int halfLeftPadding = (int) (initialLeftPadding * approxHalf); in verifyPreloadDensityInner() 1742 final int halfRightPadding = (int) (initialRightPadding * approxHalf); in verifyPreloadDensityInner() 1743 final int halfContentInsetL = (int) (initialContentInsetL * approxHalf); in verifyPreloadDensityInner() 1744 final int halfContentInsetR = (int) (initialContentInsetR * approxHalf); in verifyPreloadDensityInner() 1752 assertEquals((int) (initialBottomPadding * approxHalf), halfDrawable.getBottomPadding()); in verifyPreloadDensityInner() 1753 assertEquals((int) (initialTopPadding * approxHalf), halfDrawable.getTopPadding()); in verifyPreloadDensityInner() 1754 assertEquals((int) (initialLayerInsetLeft * approxHalf), in verifyPreloadDensityInner() 1756 assertEquals((int) (initialLayerInsetRight * approxHalf), in verifyPreloadDensityInner() [all …]
|
D | InsetDrawableTest.java | 484 final float approxHalf = (float)(densityDpi / 2) / densityDpi; in verifyPreloadDensityInner() local 485 assertEquals(Math.round(origInsetHoriz * approxHalf), halfDrawable.getIntrinsicWidth() in verifyPreloadDensityInner() 505 float approxDouble = 1 / approxHalf; in verifyPreloadDensityInner() 507 assertEquals(Math.round(approxDouble * Math.round(origInsetHoriz * approxHalf)), in verifyPreloadDensityInner()
|
D | VectorDrawableTest.java | 463 final float approxHalf = (float)(densityDpi / 2) / densityDpi; in verifyPreloadDensityInner() local 464 assertEquals(Math.round(origWidth * approxHalf), halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
|