Home
last modified time | relevance | path

Searched refs:approxDouble (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DGradientDrawableTest.java819 final float approxDouble = 1 / approxHalf; in verifyPreloadDensityInner() local
821 sloppyOrigPadding.left = (int)(approxDouble * ((int)(origPadding.left * approxHalf))); in verifyPreloadDensityInner()
822 sloppyOrigPadding.top = (int)(approxDouble * ((int)(origPadding.top * approxHalf))); in verifyPreloadDensityInner()
823 sloppyOrigPadding.right = (int)(approxDouble * ((int)(origPadding.right * approxHalf))); in verifyPreloadDensityInner()
824 sloppyOrigPadding.bottom = (int)(approxDouble * ((int)(origPadding.bottom * approxHalf))); in verifyPreloadDensityInner()
829 assertEquals(Math.round(approxDouble * Math.round(origWidth * approxHalf)), in verifyPreloadDensityInner()
831 assertEquals(Math.round(approxDouble * Math.round(origHeight * approxHalf)), in verifyPreloadDensityInner()
DLayerDrawableTest.java1811 float approxDouble = 1 / approxHalf; in verifyPreloadDensityInner() local
1812 assertEquals((int) (halfLeftPadding * approxDouble), halfDrawable.getLeftPadding()); in verifyPreloadDensityInner()
1813 assertEquals((int) (halfRightPadding * approxDouble), halfDrawable.getRightPadding()); in verifyPreloadDensityInner()
1814 assertEquals((int) (halfContentInsetL * approxDouble), halfDrawable.getLayerInsetRight(0)); in verifyPreloadDensityInner()
1815 assertEquals((int) (halfContentInsetR * approxDouble), halfDrawable.getLayerInsetLeft(0)); in verifyPreloadDensityInner()
1816 assertEquals((int) (halfContentWidth * approxDouble), halfDrawable.getLayerWidth(0)); in verifyPreloadDensityInner()
1818 assertEquals((int) ((int) (initialBottomPadding * approxHalf) * approxDouble), in verifyPreloadDensityInner()
1820 assertEquals((int) ((int) (initialTopPadding * approxHalf) * approxDouble), in verifyPreloadDensityInner()
1822 assertEquals((int) ((int) (initialLayerInsetLeft * approxHalf) * approxDouble), in verifyPreloadDensityInner()
1824 assertEquals((int) ((int) (initialLayerInsetRight * approxHalf) * approxDouble), in verifyPreloadDensityInner()
[all …]
DInsetDrawableTest.java505 float approxDouble = 1 / approxHalf; in verifyPreloadDensityInner() local
507 assertEquals(Math.round(approxDouble * Math.round(origInsetHoriz * approxHalf)), in verifyPreloadDensityInner()