Home
last modified time | relevance | path

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

/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DErrorCalculator.java156 int givenColor = given.getPixel(x, y); in calcError() local
157 if (idealColor == givenColor) in calcError()
159 totalError += Math.abs(Color.red(idealColor) - Color.red(givenColor)); in calcError()
160 totalError += Math.abs(Color.green(idealColor) - Color.green(givenColor)); in calcError()
161 totalError += Math.abs(Color.blue(idealColor) - Color.blue(givenColor)); in calcError()
162 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor)); in calcError()