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.java177 float totalError = 0; in compareImages() local
178 totalError += Math.abs(Color.red(idealColor) - Color.red(givenColor)); in compareImages()
179 totalError += Math.abs(Color.green(idealColor) - Color.green(givenColor)); in compareImages()
180 totalError += Math.abs(Color.blue(idealColor) - Color.blue(givenColor)); in compareImages()
181 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor)); in compareImages()
183 if ((totalError / 1024.0f) >= pixelThreshold) { in compareImages()
184 Assert.fail((message + ": totalError is " + totalError)); in compareImages()
187 if (totalError > pixelDiffTolerance) { in compareImages()