Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTestUtils.java185 float totalError = 0; in compareImages() local
186 totalError += Math.abs((idealAlpha * Color.red(idealColor)) in compareImages()
188 totalError += Math.abs((idealAlpha * Color.green(idealColor)) in compareImages()
190 totalError += Math.abs((idealAlpha * Color.blue(idealColor)) in compareImages()
192 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor)); in compareImages()
194 if ((totalError / 1024.0f) >= pixelThreshold) { in compareImages()
195 Assert.fail((message + ": totalError is " + totalError)); in compareImages()
198 if (totalError > pixelDiffTolerance) { in compareImages()