Searched refs:approxDouble (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | GradientDrawableTest.java | 606 final float approxDouble = 1 / approxHalf; in verifyPreloadDensityInner() local 608 sloppyOrigPadding.left = (int)(approxDouble * ((int)(origPadding.left * approxHalf))); in verifyPreloadDensityInner() 609 sloppyOrigPadding.top = (int)(approxDouble * ((int)(origPadding.top * approxHalf))); in verifyPreloadDensityInner() 610 sloppyOrigPadding.right = (int)(approxDouble * ((int)(origPadding.right * approxHalf))); in verifyPreloadDensityInner() 611 sloppyOrigPadding.bottom = (int)(approxDouble * ((int)(origPadding.bottom * approxHalf))); in verifyPreloadDensityInner() 616 assertEquals(Math.round(approxDouble * Math.round(origWidth * approxHalf)), in verifyPreloadDensityInner() 618 assertEquals(Math.round(approxDouble * Math.round(origHeight * approxHalf)), in verifyPreloadDensityInner()
|
D | LayerDrawableTest.java | 1800 float approxDouble = 1 / approxHalf; in verifyPreloadDensityInner() local 1801 assertEquals((int) (halfLeftPadding * approxDouble), halfDrawable.getLeftPadding()); in verifyPreloadDensityInner() 1802 assertEquals((int) (halfRightPadding * approxDouble), halfDrawable.getRightPadding()); in verifyPreloadDensityInner() 1803 assertEquals((int) (halfContentInsetL * approxDouble), halfDrawable.getLayerInsetRight(0)); in verifyPreloadDensityInner() 1804 assertEquals((int) (halfContentInsetR * approxDouble), halfDrawable.getLayerInsetLeft(0)); in verifyPreloadDensityInner() 1805 assertEquals((int) (halfContentWidth * approxDouble), halfDrawable.getLayerWidth(0)); in verifyPreloadDensityInner() 1807 assertEquals((int) ((int) (initialBottomPadding * approxHalf) * approxDouble), in verifyPreloadDensityInner() 1809 assertEquals((int) ((int) (initialTopPadding * approxHalf) * approxDouble), in verifyPreloadDensityInner() 1811 assertEquals((int) ((int) (initialLayerInsetLeft * approxHalf) * approxDouble), in verifyPreloadDensityInner() 1813 assertEquals((int) ((int) (initialLayerInsetRight * approxHalf) * approxDouble), in verifyPreloadDensityInner() [all …]
|
D | InsetDrawableTest.java | 500 float approxDouble = 1 / approxHalf; in verifyPreloadDensityInner() local 502 assertEquals(Math.round(approxDouble * Math.round(origInsetHoriz * approxHalf)), in verifyPreloadDensityInner()
|