OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:givencolor
(Results
1 - 1
of
1
) sorted by null
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
ErrorCalculator.java
159
int
givenColor
= given.getPixel(x, y);
160
if (idealColor ==
givenColor
)
162
totalError += Math.abs(Color.red(idealColor) - Color.red(
givenColor
));
163
totalError += Math.abs(Color.green(idealColor) - Color.green(
givenColor
));
164
totalError += Math.abs(Color.blue(idealColor) - Color.blue(
givenColor
));
165
totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(
givenColor
));
Completed in 692 milliseconds