Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTestUtils.java157 int idealColor = expected.getPixel(x, y); in compareImages() local
159 if (idealColor == givenColor) in compareImages()
163 totalError += Math.abs(Color.red(idealColor) - Color.red(givenColor)); in compareImages()
164 totalError += Math.abs(Color.green(idealColor) - Color.green(givenColor)); in compareImages()
165 totalError += Math.abs(Color.blue(idealColor) - Color.blue(givenColor)); in compareImages()
166 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor)); in compareImages()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
DWeightedPixelDifference.java92 int idealColor = ideal[index]; in verifySame() local
94 if (idealColor == givenColor) { in verifySame()
97 totalError += errorBetweenPixels(idealColor, givenColor); in verifySame()