Home
last modified time | relevance | path

Searched refs:hue (Results 1 – 22 of 22) sorted by relevance

/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DColorExtractor.java92 int hue = (int) hsv[0]; in findDominantColorByHue() local
93 if (hue < 0 || hue >= hueScoreHistogram.length) { in findDominantColorByHue()
101 hueScoreHistogram[hue] += score; in findDominantColorByHue()
102 if (hueScoreHistogram[hue] > highScore) { in findDominantColorByHue()
103 highScore = hueScoreHistogram[hue]; in findDominantColorByHue()
104 bestHue = hue; in findDominantColorByHue()
119 int hue = (int) hsv[0]; in findDominantColorByHue() local
120 if (hue == bestHue) { in findDominantColorByHue()
/frameworks/base/core/java/com/android/internal/graphics/cam/
DCam.java115 Cam(float hue, float chroma, float j, float q, float m, float s, float jstar, float astar, in Cam() argument
117 mHue = hue; in Cam()
134 public static int getInt(float hue, float chroma, float lstar) { in getInt() argument
135 return getInt(hue, chroma, lstar, Frame.DEFAULT); in getInt()
187 float hue = in fromIntInFrame() local
191 float hueRadians = hue * (float) Math.PI / 180.0f; in fromIntInFrame()
206 float huePrime = (hue < 20.14) ? hue + 360 : hue; in fromIntInFrame()
224 return new Cam(hue, c, j, q, m, s, jstar, astar, bstar); in fromIntInFrame()
345 public static int getInt(float hue, float chroma, float lstar, @NonNull Frame frame) { in getInt() argument
393 return HctSolver.solveToInt(hue, chroma, lstar); in getInt()
[all …]
/frameworks/libs/systemui/monet/src/com/android/systemui/monet/
DShades.java54 public static @ColorInt int[] of(float hue, float chroma) { in of() argument
58 shades[0] = ColorUtils.CAMToColor(hue, Math.min(40f, chroma), 99); in of()
59 shades[1] = ColorUtils.CAMToColor(hue, Math.min(40f, chroma), 95); in of()
62 shades[i] = ColorUtils.CAMToColor(hue, chroma, lStar); in of()
DColorScheme.java244 int hue = (int) Math.round(hct.getHue()); in getSeedColors()
246 for (int i = hue - 15; i <= hue + 15; i++) { in getSeedColors()
367 int hue = (int) Math.round(hct.getHue()) % 360;
371 huePopulation.set(hue, huePopulation.get(hue) + population);
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/
DColorExpression.java57 public ColorExpression(int id, float hue, float sat, float value) { in ColorExpression() argument
60 mOutHue = mHue = hue; in ColorExpression()
63 mColor1 = Float.floatToRawIntBits(hue); in ColorExpression()
67 public ColorExpression(int id, int alpha, float hue, float sat, float value) { in ColorExpression() argument
70 mOutHue = mHue = hue; in ColorExpression()
73 mColor1 = Float.floatToRawIntBits(hue); in ColorExpression()
DUtils.java199 public static int hsvToRgb(float hue, float saturation, float value) { in hsvToRgb() argument
200 int h = (int) (hue * 6); in hsvToRgb()
201 float f = hue * 6 - h; in hsvToRgb()
/frameworks/wilhelm/src/itf/
DILEDArray.cpp64 if (!(0 <= color.hue && color.hue <= 360000)) in ILEDArray_SetColor()
117 color->hue = 0; // red, but per specification 1.0.1 pg. 259: "Default color is undefined." in ILEDArray_init()
/frameworks/libs/systemui/monet/tests/com/android/systemui/monet/
DColorSchemeTest.kt91 var hue = 0.0 in generateThemeStyles() variable
92 while (hue < 360) { in generateThemeStyles()
93 val sourceColor = Hct.from(hue, 50.0, 50.0) in generateThemeStyles()
128 hue += 60 in generateThemeStyles()
/frameworks/base/core/java/android/app/
DWallpaperColors.java386 final int hue = wrapDegrees(Math.round(colorToCam.get(color).getHue())); in colorToHueProportion() local
388 for (int i = hue - 15; i < hue + 15; i++) { in colorToHueProportion()
419 final int hue = wrapDegrees(Math.round(cam.getHue())); in hueProportions() local
420 proportions[hue] = proportions[hue] + ((double) population / totalPopulation); in hueProportions()
/frameworks/base/libs/hwui/
DVectorDrawable.cpp592 MinMaxAverage hue, saturation, value; in computePalette() local
603 hue.add(hsv[0]); in computePalette()
615 sampledCount, hue.min(), hue.max(), hue.average(), saturation.min(), saturation.max(), in computePalette()
618 if (hue.delta() <= 20 && saturation.delta() <= .1f) { in computePalette()
/frameworks/base/libs/hwui/hwui/
DBitmap.cpp458 MinMaxAverage hue, saturation, value; in computePalette() local
474 hue.add(hsv[0]); in computePalette()
490 sampledCount, hue.min(), hue.max(), hue.average(), saturation.min(), saturation.max(), in computePalette()
493 if (hue.delta() <= 20 && saturation.delta() <= .1f) { in computePalette()
/frameworks/base/core/java/com/android/internal/graphics/palette/
DTarget.java211 public Builder setTargetHue(@IntRange(from = 0, to = 360) int hue) { in setTargetHue()
212 mTarget.mTargetHue = hue; in setTargetHue()
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/
DDemoModeController.java129 final float hue = y / (h / 360); in onTouch() local
132 final int color = Color.HSVToColor(new float[]{hue, sat, val}); in onTouch()
133 if (DEBUG) Log.d(TAG, String.format("hsv=(%s,%s,%s) argb=#%08x", hue, sat, val, color)); in onTouch()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/
DRemoteComposeBuffer.java972 public short addColorExpression(float hue, float sat, float value) { in addColorExpression() argument
973 ColorExpression c = new ColorExpression(0, hue, sat, value); in addColorExpression()
989 public short addColorExpression(int alpha, float hue, float sat, float value) { in addColorExpression() argument
990 ColorExpression c = new ColorExpression(0, alpha, hue, sat, value); in addColorExpression()
/frameworks/base/core/java/com/android/internal/colorextraction/types/
DTonal.java443 public ColorRange(Range<Float> hue, Range<Float> saturation, Range<Float> lightness) { in ColorRange() argument
444 mHue = hue; in ColorRange()
/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java365 public static int CAMToColor(float hue, float chroma, float lstar) { in CAMToColor() argument
366 return Cam.getInt(hue, chroma, lstar); in CAMToColor()
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/
Dshadows_f.rscript78 // set hue
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dshadows.rscript78 // set hue
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dshadows.rscript78 // set hue
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dshadows.rscript78 // set hue
/frameworks/wilhelm/include/SLES/
DOpenSLES.h623 SLmillidegree hue; member
/frameworks/wilhelm/include/OMXAL/
DOpenMAXAL.h2593 XAmillidegree hue; member