Searched refs:outHsl (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/core/java/com/android/internal/graphics/ |
D | ColorUtils.java | 216 @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/ |
D | ContrastColorUtil.java | 1022 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()
|