HomeSort by relevance Sort by last modified time
    Searched defs:hsl (Results 1 - 9 of 9) sorted by null

  /frameworks/base/tests/Internal/src/com/android/internal/colorextraction/types/
TonalTest.java 73 float[] hsl = new float[] {25, 0, 0}; local
74 assertTrue("Range " + colorRange + " doesn't contain " + Arrays.toString(hsl),
75 colorRange.containsColor(hsl[0], hsl[1], hsl[2]));
82 float[] hsl = new float[] {100, 0, 0}; local
83 assertFalse("Range " + colorRange + " shouldn't contain " + Arrays.toString(hsl),
84 colorRange.containsColor(hsl[0], hsl[1], hsl[2]))
122 final float[] hsl = tonal.getBlacklistedColors().get(0).getCenter(); local
140 final float[] hsl = tonal.getBlacklistedColors().get(0).getCenter(); local
    [all...]
  /frameworks/base/core/java/com/android/internal/graphics/palette/
VariationalKMeansQuantizer.java 77 // Start by converting all colors to HSL.
79 final float[] hsl = {0, 0, 0}; local
82 ColorUtils.colorToHSL(pixels[i], hsl);
84 hslPixels[i][0] = hsl[0] / 360f;
85 hslPixels[i][1] = hsl[1];
86 hslPixels[i][2] = hsl[2];
Palette.java 390 // Check whether the HSL values are within the correct ranges, and this color hasn't
392 final float hsl[] = swatch.getHsl(); local
393 return hsl[1] >= target.getMinimumSaturation() && hsl[1] <= target.getMaximumSaturation()
394 && hsl[2] >= target.getMinimumLightness() && hsl[2] <= target.getMaximumLightness()
399 final float[] hsl = swatch.getHsl(); local
409 * (1f - Math.abs(hsl[1] - target.getTargetSaturation()));
413 * (1f - Math.abs(hsl[2] - target.getTargetLightness()));
473 Swatch(float[] hsl, int population)
    [all...]
  /frameworks/support/compat/src/androidTest/java/androidx/core/graphics/
ColorUtilsTest.java 145 verifyColorToHSL(entry.rgb, entry.hsl);
152 verifyHSLToColor(entry.hsl, entry.rgb);
158 final float[] hsl = new float[3]; local
161 ColorUtils.colorToHSL(entry.rgb, hsl);
163 assertTrue(hsl[0] >= 0f && hsl[0] <= 360f);
164 assertTrue(hsl[1] >= 0f && hsl[1] <= 1f);
165 assertTrue(hsl[2] >= 0f && hsl[2] <= 1f)
318 final float[] hsl = new float[3]; field in class:ColorUtilsTest.TestEntry
    [all...]
  /packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/dynamicui/
ColorExtractionAlgorithm.java 80 final float[] hsl = new float[3]; local
84 Color.blue(colorValue), hsl); local
87 if (!isBlacklisted(hsl)) {
100 hsl); local
102 // The Android HSL definition requires the hue to go from 0 to 360 but
104 hsl[0] /= 360f;
107 TonalPalette palette = findTonalPalette(hsl[0], hsl[1]);
114 int fitIndex = bestFit(palette, hsl[0], hsl[1], hsl[2])
    [all...]
  /frameworks/base/core/java/com/android/internal/colorextraction/types/
Tonal.java 128 final float[] hsl = new float[3]; local
133 Color.blue(colorValue), hsl); local
136 if (!generatedFromBitmap || !isBlacklisted(hsl)) {
153 hsl); local
155 // The Android HSL definition requires the hue to go from 0 to 360 but
157 hsl[0] /= 360f;
160 TonalPalette palette = findTonalPalette(hsl[0], hsl[1]);
167 int fitIndex = bestFit(palette, hsl[0], hsl[1], hsl[2])
    [all...]
  /frameworks/base/core/java/com/android/internal/util/
NotificationColorUtil.java 378 float[] hsl = new float[3]; local
379 ColorUtilsFromCompat.colorToHSL(findFg ? fg : bg, hsl);
381 float low = hsl[2], high = 1;
384 hsl[2] = l;
386 fg = ColorUtilsFromCompat.HSLToColor(hsl);
388 bg = ColorUtilsFromCompat.HSLToColor(hsl);
    [all...]
  /frameworks/support/palette/src/main/java/androidx/palette/graphics/
Palette.java 392 // Check whether the HSL values are within the correct ranges, and this color hasn't
394 final float hsl[] = swatch.getHsl(); local
395 return hsl[1] >= target.getMinimumSaturation() && hsl[1] <= target.getMaximumSaturation()
396 && hsl[2] >= target.getMinimumLightness() && hsl[2] <= target.getMaximumLightness()
401 final float[] hsl = swatch.getHsl(); local
411 * (1f - Math.abs(hsl[1] - target.getTargetSaturation()));
415 * (1f - Math.abs(hsl[2] - target.getTargetLightness()));
470 Swatch(float[] hsl, int population)
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
StatusBarIconView.java 657 float[] hsl = new float[3]; local
658 ColorUtils.colorToHSL(mDrawableColor, hsl);
661 if (hsl[1] < 0.2f) {

Completed in 322 milliseconds