Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/
DCanvasTransform.cpp36 Lab lab = sRGBToLab(color); in makeLight() local
37 float invertedL = std::min(110 - lab.L, 100.0f); in makeLight()
38 if (invertedL > lab.L) { in makeLight()
39 lab.L = invertedL; in makeLight()
40 return LabToSRGB(lab, SkColorGetA(color)); in makeLight()
47 Lab lab = sRGBToLab(color); in makeDark() local
48 float invertedL = std::min(110 - lab.L, 100.0f); in makeDark()
49 if (invertedL < lab.L) { in makeDark()
50 lab.L = invertedL; in makeDark()
51 return LabToSRGB(lab, SkColorGetA(color)); in makeDark()
/frameworks/base/libs/hwui/utils/
DColor.cpp143 float3 toXyz(const Lab& lab) { in toXyz() argument
144 float3 v { lab.L, lab.a, lab.b }; in toXyz()
197 SkColor LabToSRGB(const Lab& lab, SkAlpha alpha) { in LabToSRGB() argument
199 float3 xyz = LabColorSpace::toXyz(lab); in LabToSRGB()
DColor.h104 SkColor LabToSRGB(const Lab& lab, SkAlpha alpha);
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java307 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()
/frameworks/base/core/proto/android/
Dprivacy.proto29 // by tools on the developer's workstation or test lab devices.