Home
last modified time | relevance | path

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

/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DThemeHelper.java182 public boolean isSimilarColor(@NonNull Color color1, @NonNull Color color2) { in isSimilarColor() argument
183 return color1.alpha() == color2.alpha() in isSimilarColor()
184 && Math.abs(color1.red() - color2.red()) < COLOR_TOLERANCE in isSimilarColor()
185 && Math.abs(color1.green() - color2.green()) < COLOR_TOLERANCE in isSimilarColor()
186 && Math.abs(color1.blue() - color2.blue()) < COLOR_TOLERANCE; in isSimilarColor()