Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java216 @NonNull float[] outHsl) { in RGBToHSL() argument
248 outHsl[0] = constrain(h, 0f, 360f); in RGBToHSL()
249 outHsl[1] = constrain(s, 0f, 1f); in RGBToHSL()
250 outHsl[2] = constrain(l, 0f, 1f); in RGBToHSL()
264 public static void colorToHSL(@ColorInt int color, @NonNull float[] outHsl) { in colorToHSL() argument
265 RGBToHSL(Color.red(color), Color.green(color), Color.blue(color), outHsl); in colorToHSL() local
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java1022 public static void colorToHSL(@ColorInt int color, @NonNull float[] outHsl) { in colorToHSL() argument
1023 RGBToHSL(Color.red(color), Color.green(color), Color.blue(color), outHsl); in colorToHSL() local
1041 @NonNull float[] outHsl) { in RGBToHSL() argument
1073 outHsl[0] = constrain(h, 0f, 360f); in RGBToHSL()
1074 outHsl[1] = constrain(s, 0f, 1f); in RGBToHSL()
1075 outHsl[2] = constrain(l, 0f, 1f); in RGBToHSL()