Home
last modified time | relevance | path

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

/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
DMeanSquaredComparer.java46 float totalError = getMSE(ideal, given, offset, stride, width, height); in verifySame() local
47 Log.d(TAG, "Error : " + totalError); in verifySame()
48 return (totalError < (mErrorPerPixel)); in verifySame()
80 float totalError = 0; in getMSE() local
88 totalError += (difference * difference); in getMSE()
92 totalError /= (width * height); in getMSE()
93 return totalError; in getMSE()
DWeightedPixelDifference.java87 float totalError = 0; in verifySame() local
97 totalError += errorBetweenPixels(idealColor, givenColor); in verifySame()
101 totalError /= TOTAL_ERROR_DIVISOR; in verifySame()
102 totalError /= interestingPixels; in verifySame()
104 Log.d(TAG, "Total error : " + totalError); in verifySame()
106 return totalError < mThreshold; in verifySame()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTestUtils.java162 float totalError = 0; in compareImages() local
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()
168 if ((totalError / 1024.0f) >= pixelThreshold) { in compareImages()
169 Assert.fail((message + ": totalError is " + totalError)); in compareImages()
172 if (totalError > pixelDiffTolerance) { in compareImages()