Searched refs:lab (Results 1 – 2 of 2) sorted by relevance
/frameworks/support/core-utils/tests/java/android/support/v4/graphics/ |
D | ColorUtilsTest.java | 122 verifyColorToLAB(entry.rgb, entry.lab); in testColorToLAB() 129 verifyLABToXYZ(entry.lab, entry.xyz); in testLABToXYZ() 143 verifyLABToColor(entry.lab, entry.rgb); in testLABToColor() 232 private static void verifyLABToXYZ(double[] lab, double[] expected) { in verifyLABToXYZ() argument 234 ColorUtils.LABToXYZ(lab[0], lab[1], lab[2], result); in verifyLABToXYZ() 246 private static void verifyLABToColor(double[] lab, int expected) { in verifyLABToColor() argument 247 final int result = ColorUtils.LABToColor(lab[0], lab[1], lab[2]); in verifyLABToColor() 263 final double[] lab = new double[3]; field in ColorUtilsTest.TestEntry 289 lab[0] = l; in setLab() 290 lab[1] = a; in setLab() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | NotificationColorUtil.java | 307 double[] lab = new double[3]; in findContrastColor() local 308 ColorUtilsFromCompat.colorToLAB(findFg ? fg : bg, lab); in findContrastColor() 310 double low = 0, high = lab[0]; in findContrastColor() 311 final double a = lab[1], b = lab[2]; in findContrastColor()
|