Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/colormodel/
DCamTest.java40 Cam cam = Cam.fromInt(RED); in camFromIntToInt()
62 Cam cam = Cam.fromInt(RED); in camFromRed()
73 Cam cam = Cam.fromInt(GREEN); in camFromGreen()
84 Cam cam = Cam.fromInt(BLUE); in camFromBlue()
95 Cam cam = Cam.fromInt(BLACK); in camFromBlack()
106 Cam cam = Cam.fromInt(WHITE); in camFromWhite()
118 Cam cam = Cam.fromInt(colorToTest); in getRedFromGamutMap()
119 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getRedFromGamutMap()
126 Cam cam = Cam.fromInt(colorToTest); in getGreenFromGamutMap()
127 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getGreenFromGamutMap()
[all …]
/frameworks/base/core/java/com/android/internal/graphics/cam/
DCam.java28 public class Cam { class
115 Cam(float hue, float chroma, float j, float q, float m, float s, float jstar, float astar, in Cam() method in Cam
143 public static Cam fromInt(int argb) { in fromInt()
152 public static Cam fromIntInFrame(int argb, @NonNull Frame frame) { in fromIntInFrame()
224 return new Cam(hue, c, j, q, m, s, jstar, astar, bstar); in fromIntInFrame()
232 private static Cam fromJch(float j, float c, float h) { in fromJch()
241 private static Cam fromJchInFrame(float j, float c, float h, Frame frame) { in fromJchInFrame()
257 return new Cam(h, c, j, q, m, s, jstar, astar, bstar); in fromJchInFrame()
266 public float distance(@NonNull Cam other) { in distance()
411 Cam answer = null; in getInt()
[all …]
DHctSolver.java718 public static Cam solveToCam(double hueDegrees, double chroma, double lstar) { in solveToCam()
719 return Cam.fromInt(solveToInt(hueDegrees, chroma, lstar)); in solveToCam()
/frameworks/base/core/java/android/app/
DWallpaperColors.java37 import com.android.internal.graphics.cam.Cam;
331 final Map<Integer, Cam> colorToCam = new HashMap<>(); in WallpaperColors()
333 colorToCam.put(color, Cam.fromInt(color)); in WallpaperColors()
357 Cam cam = colorToCam.get(color); in WallpaperColors()
359 Cam otherCam = colorToCam.get(otherColor); in WallpaperColors()
374 private static double hueDiff(Cam a, Cam b) { in hueDiff()
378 private static double score(Cam cam, double proportion) { in score()
383 Map<Integer, Cam> colorToCam, double[] hueProportions) { in colorToHueProportion()
406 private static double[] hueProportions(@NonNull Map<Integer, Cam> colorToCam, in hueProportions()
418 final Cam cam = colorToCam.get(color); in hueProportions()
/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java25 import com.android.internal.graphics.cam.Cam;
348 public static Cam colorToCAM(@ColorInt int color) { in colorToCAM()
349 return Cam.fromInt(color); in colorToCAM()
366 return Cam.getInt(hue, chroma, lstar); in CAMToColor()
/frameworks/base/core/java/android/content/res/
DColorStateList.java38 import com.android.internal.graphics.cam.Cam;
559 final Cam baseCam = ColorUtils.colorToCAM(baseColor); in modulateColor()
/frameworks/base/boot/
Dboot-image-profile.txt21281 HSPLcom/android/internal/graphics/cam/Cam;-><init>(FFFFFFFFF)V
21282 HSPLcom/android/internal/graphics/cam/Cam;->fromInt(I)Lcom/android/internal/graphics/cam/Cam;
21283 …id/internal/graphics/cam/Cam;->fromIntInFrame(ILcom/android/internal/graphics/cam/Frame;)Lcom/andr…
21284 HSPLcom/android/internal/graphics/cam/Cam;->getChroma()F
21285 HSPLcom/android/internal/graphics/cam/Cam;->getHue()F
33583 Lcom/android/internal/graphics/cam/Cam;
Dpreloaded-classes11157 com.android.internal.graphics.cam.Cam
/frameworks/base/config/
Dboot-image-profile.txt21345 HSPLcom/android/internal/graphics/cam/Cam;-><init>(FFFFFFFFF)V
21346 HSPLcom/android/internal/graphics/cam/Cam;->fromInt(I)Lcom/android/internal/graphics/cam/Cam;
21347 …id/internal/graphics/cam/Cam;->fromIntInFrame(ILcom/android/internal/graphics/cam/Frame;)Lcom/andr…
21348 HSPLcom/android/internal/graphics/cam/Cam;->getChroma()F
21349 HSPLcom/android/internal/graphics/cam/Cam;->getHue()F
43744 Lcom/android/internal/graphics/cam/Cam;
Dpreloaded-classes11188 com.android.internal.graphics.cam.Cam