Searched refs:getHue (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/colormodel/ |
D | CamTest.java | 62 assertEquals(27.408f, cam.getHue(), 0.001f); in camFromRed() 73 assertEquals(142.139f, cam.getHue(), 0.001f); in camFromGreen() 84 assertEquals(282.788f, cam.getHue(), 0.001f); in camFromBlue() 95 assertEquals(0.0f, cam.getHue(), 0.001f); in camFromBlack() 106 assertEquals(209.492f, cam.getHue(), 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/android/app/ |
D | WallpaperColors.java | 341 return (180f - Math.abs(Math.abs(a.getHue() - b.getHue()) - 180f)); in hueDiff() 352 final int hue = wrapDegrees(Math.round(colorToCam.get(color).getHue())); in colorToHueProportion() 385 final int hue = wrapDegrees(Math.round(cam.getHue())); in hueProportions()
|
/frameworks/base/core/java/com/android/internal/graphics/cam/ |
D | Cam.java | 54 public float getHue() { in getHue() method in Cam 290 float hRad = getHue() * (float) Math.PI / 180.0f; in viewed()
|
/frameworks/base/core/java/android/content/res/ |
D | ColorStateList.java | 560 baseColor = ColorUtils.CAMToColor(baseCam.getHue(), baseCam.getChroma(), lStar); in modulateColor()
|