Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTestUtils.java185 int givenColor = actual.getPixel(x, y); in compareImages() local
186 if (idealColor == givenColor) in compareImages()
188 if (Color.alpha(idealColor) + Color.alpha(givenColor) == 0) { in compareImages()
193 float givenAlpha = Color.alpha(givenColor) / 255.0f; in compareImages()
198 - (givenAlpha * Color.red(givenColor))); in compareImages()
200 - (givenAlpha * Color.green(givenColor))); in compareImages()
202 - (givenAlpha * Color.blue(givenColor))); in compareImages()
203 pixelError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor)); in compareImages()