Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTestUtils.java158 int givenColor = actual.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.java93 int givenColor = given[index]; in verifySame() local
94 if (idealColor == givenColor) { in verifySame()
97 totalError += errorBetweenPixels(idealColor, givenColor); in verifySame()