/aosp14/frameworks/base/core/java/com/android/internal/graphics/cam/ |
H A D | Cam.java | 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() 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 D | ColorScheme.kt | 67 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 D | Shades.java | 54 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 D | WallpaperColors.java | 386 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 D | VectorDrawable.cpp | 596 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 D | Bitmap.cpp | 453 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 D | Target.java | 211 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 D | DemoModeController.java | 129 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 D | Tonal.java | 443 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 D | ColorUtils.java | 365 public static int CAMToColor(float hue, float chroma, float lstar) { in CAMToColor() argument 366 return Cam.getInt(hue, chroma, lstar); in CAMToColor()
|