/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/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...] |
/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/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...] |
/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/graphics/ |
ColorUtils.java | 202 * Convert RGB components to HSL (hue-saturation-lightness). 212 * @param outHsl 3-element array which holds the resulting HSL components 254 * Convert the ARGB color to its HSL (hue-saturation-lightness) components. 262 * @param outHsl 3-element array which holds the resulting HSL components 269 * Convert HSL (hue-saturation-lightness) components to a RGB color. 271 * <li>hsl[0] is Hue [0 .. 360)</li> 272 * <li>hsl[1] is Saturation [0...1]</li> 273 * <li>hsl[2] is Lightness [0...1]</li> 277 * @param hsl 3-element array which holds the input HSL component [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/notification/ |
MediaNotificationProcessor.java | 72 private Palette.Filter mBlackWhiteFilter = (rgb, hsl) -> !isWhiteOrBlack(hsl); 137 paletteBuilder.addFilter((rgb, hsl) -> { 139 float diff = Math.abs(hsl[0] - mFilteredBackgroundHsl[0]); 288 private boolean isWhiteOrBlack(float[] hsl) { 289 return isBlack(hsl) || isWhite(hsl);
|
/external/deqp/modules/gles2/functional/ |
es2fShaderAlgorithmTests.cpp | 162 SHADER_OP_CASE(hsl_to_rgb, "Conversion from HSL color space into RGB.", 210 SHADER_OP_CASE(rgb_to_hsl, "Conversion from RGB color space into HSL.", 242 Vec3 hsl; 245 hsl = Vec3(0.0f, 0.0f, L); 261 hsl = Vec3(H, S, L); 263 c.color.xyz() = hsl;
|
/frameworks/support/compat/src/main/java/androidx/core/graphics/ |
ColorUtils.java | 226 * Convert RGB components to HSL (hue-saturation-lightness). 236 * @param outHsl 3-element array which holds the resulting HSL components 278 * Convert the ARGB color to its HSL (hue-saturation-lightness) components. 286 * @param outHsl 3-element array which holds the resulting HSL components 293 * Convert HSL (hue-saturation-lightness) components to a RGB color. 295 * <li>hsl[0] is Hue [0 .. 360)</li> 296 * <li>hsl[1] is Saturation [0...1]</li> 297 * <li>hsl[2] is Lightness [0...1]</li> 301 * @param hsl 3-element array which holds the input HSL component [all...] |
/external/deqp/doc/testspecs/GLES31/ |
functional.blend_equation_advanced.txt | 43 modes other than HSL, bilinear comparison is used. in HSL modes fuzzy
|
/external/skia/include/effects/ |
SkHighContrastFilter.h | 68 * - Color inversion (either in RGB or HSL space)
|
/external/skqp/include/effects/ |
SkHighContrastFilter.h | 68 * - Color inversion (either in RGB or HSL space)
|
/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...] |
/external/skia/gm/ |
hsl.cpp | 12 // They nominally convert their inputs to unpremul, then to HSL, then 165 DEF_SIMPLE_GM(hsl, canvas, 600, 100) { 170 const char* comment = "HSL blend modes are correct when you see no circles in the squares.";
|
/external/skqp/gm/ |
hsl.cpp | 12 // They nominally convert their inputs to unpremul, then to HSL, then 165 DEF_SIMPLE_GM(hsl, canvas, 600, 100) { 170 const char* comment = "HSL blend modes are correct when you see no circles in the squares.";
|
/external/ImageMagick/ImageMagick/script/ |
color-management.html | 108 <p>When converting to another colorspace and back, such as between sRGB and HSL, the following two commands handle the first case of linear channels and the second case of non-linear channels:</p> 111 convert myimage.png -colorspace HSL -separate myimage_channels_%d.png 112 convert myimage_channels_*.png -set colorspace HSL -combine -colorspace sRGB myimage2.png 116 convert myimage.png -set colorspace RGB -colorspace HSL -separate myimage_channels_%d.png 117 convert myimage_channels_*.png -set colorspace HSL -combine -colorspace RGB -set colorspace sRGB myimage2.png
|
/external/ImageMagick/www/ |
color-management.html | 112 <p>When converting to another colorspace and back, such as between sRGB and HSL, the following two commands handle the first case of linear channels and the second case of non-linear channels:</p> 115 convert myimage.png -colorspace HSL -separate myimage_channels_%d.png 116 convert myimage_channels_*.png -set colorspace HSL -combine -colorspace sRGB myimage2.png 120 convert myimage.png -set colorspace RGB -colorspace HSL -separate myimage_channels_%d.png 121 convert myimage_channels_*.png -set colorspace HSL -combine -colorspace RGB -set colorspace sRGB myimage2.png
|
/external/libpcap/ |
gencode.h | 187 /* MTP2 HSL types */ 188 #define MH_FISU 25 /* FISU for HSL */ 198 /* MTP3 field types in case of MTP2 HSL */
|
/external/ImageMagick/Magick++/lib/Magick++/ |
Color.h | 270 // HSL Colorspace colors 283 // Construct ColorHSL using the specified HSL values
|
/external/ImageMagick/tests/ |
cli-colorspace.tap | 112 test_color HSL sRGB && echo "ok" || echo "not ok"
|
/external/skqp/platform_tools/android/apps/skqp/src/main/assets/skqp/ |
KnownGMs.txt | 357 hsl
|
/external/skia/src/effects/ |
SkHighContrastFilter.cpp | 287 // Convert from RGB to HSL. 317 // Convert back from HSL to RGB.
|
/external/skqp/src/effects/ |
SkHighContrastFilter.cpp | 287 // Convert from RGB to HSL. 317 // Convert back from HSL to RGB.
|