Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/java/com/android/internal/graphics/cam/
H A DCam.java117 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()
393 return HctSolver.solveToInt(hue, chroma, lstar); in getInt()
400 hue = hue < 0 ? 0 : Math.min(360, hue); in getInt()
416 Cam possibleAnswer = findCamByJ(hue, mid, lstar); in getInt()
[all …]
/aosp14/frameworks/base/packages/SystemUI/monet/src/com/android/systemui/monet/
H A DColorScheme.kt67 return sourceColor.hue.toDouble()
98 return getHueRotation(sourceColor.hue, hueToRotations)
213 val hue = hue.get(sourceColor) regex
219 val hue = hue.get(sourceColor) regex
341 val h = spec.hue.get(seedCam).toFloat()
530 val hue = cam.hue.roundToInt() regex
532 for (i in hue - 15..hue + 15) {
567 val hueA = intToCam[int]!!.hue
568 val hueB = intToCam[it]!!.hue
654 val hue = cam.hue.roundToInt() % 360 regex
[all …]
H A 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()
/aosp14/frameworks/base/core/java/android/app/
H A 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()
/aosp14/frameworks/base/libs/hwui/
H A DVectorDrawable.cpp596 MinMaxAverage hue, saturation, value; in computePalette() local
607 hue.add(hsv[0]); in computePalette()
619 sampledCount, hue.min(), hue.max(), hue.average(), saturation.min(), saturation.max(), in computePalette()
622 if (hue.delta() <= 20 && saturation.delta() <= .1f) { in computePalette()
/aosp14/frameworks/base/libs/hwui/hwui/
H A DBitmap.cpp453 MinMaxAverage hue, saturation, value; in computePalette() local
469 hue.add(hsv[0]); in computePalette()
485 sampledCount, hue.min(), hue.max(), hue.average(), saturation.min(), saturation.max(), in computePalette()
488 if (hue.delta() <= 20 && saturation.delta() <= .1f) { in computePalette()
/aosp14/frameworks/base/core/java/com/android/internal/graphics/palette/
H A DTarget.java211 public Builder setTargetHue(@IntRange(from = 0, to = 360) int hue) { in setTargetHue()
212 mTarget.mTargetHue = hue; in setTargetHue()
/aosp14/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/
H A 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()
/aosp14/frameworks/base/core/java/com/android/internal/colorextraction/types/
H A DTonal.java443 public ColorRange(Range<Float> hue, Range<Float> saturation, Range<Float> lightness) { in ColorRange() argument
444 mHue = hue; in ColorRange()
/aosp14/frameworks/base/core/java/com/android/internal/graphics/
H A DColorUtils.java365 public static int CAMToColor(float hue, float chroma, float lstar) { in CAMToColor() argument
366 return Cam.getInt(hue, chroma, lstar); in CAMToColor()