Searched refs:approxHalf (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | GradientDrawableTest.java | 838 final float approxHalf = (float)(densityDpi / 2) / densityDpi; in verifyPreloadDensityInner() local 839 assertEquals(Math.round(origWidth * approxHalf), halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner() 840 assertEquals(Math.round(origHeight * approxHalf), halfDrawable.getIntrinsicHeight()); in verifyPreloadDensityInner() 842 assertEquals((int) (origPadding.left * approxHalf), tempPadding.left); in verifyPreloadDensityInner() 863 final float approxDouble = 1 / approxHalf; in verifyPreloadDensityInner() 865 sloppyOrigPadding.left = (int)(approxDouble * ((int)(origPadding.left * approxHalf))); in verifyPreloadDensityInner() 866 sloppyOrigPadding.top = (int)(approxDouble * ((int)(origPadding.top * approxHalf))); in verifyPreloadDensityInner() 867 sloppyOrigPadding.right = (int)(approxDouble * ((int)(origPadding.right * approxHalf))); in verifyPreloadDensityInner() 868 sloppyOrigPadding.bottom = (int)(approxDouble * ((int)(origPadding.bottom * approxHalf))); in verifyPreloadDensityInner() 873 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 | 453 final float approxHalf = (float)(densityDpi / 2) / densityDpi; in verifyPreloadDensityInner() local 454 assertEquals(Math.round(origWidth * approxHalf), halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
|