Home
last modified time | relevance | path

Searched refs:getChroma (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/colormodel/
DCamTest.java61 assertEquals(113.357f, cam.getChroma(), 0.001f); in camFromRed()
72 assertEquals(108.409f, cam.getChroma(), 0.001f); in camFromGreen()
83 assertEquals(87.230f, cam.getChroma(), 0.001f); in camFromBlue()
94 assertEquals(0.0f, cam.getChroma(), 0.001f); in camFromBlack()
105 assertEquals(2.869f, cam.getChroma(), 0.001f); in camFromWhite()
116 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getRedFromGamutMap()
124 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getGreenFromGamutMap()
132 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getBlueFromGamutMap()
140 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getWhiteFromGamutMap()
148 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getBlackFromGamutMap()
[all …]
/frameworks/base/core/java/com/android/internal/graphics/cam/
DCam.java59 public float getChroma() { in getChroma() method in Cam
283 (getChroma() == 0.0 || getJ() == 0.0) in viewed()
285 : getChroma() / (float) Math.sqrt(getJ() / 100.0); in viewed()
481 Cam.fromJch(camClipped.getJ(), camClipped.getChroma(), hue)); in findCamByJ()
/frameworks/base/core/java/android/content/res/
DColorStateList.java560 baseColor = ColorUtils.CAMToColor(baseCam.getHue(), baseCam.getChroma(), lStar); in modulateColor()
/frameworks/base/core/java/android/app/
DWallpaperColors.java345 return cam.getChroma() + (proportion * 100); in score()