/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Color_Delegate.java | 30 /*package*/ static void nativeRGBToHSV(int red, int greed, int blue, float hsv[]) { in nativeRGBToHSV() argument 31 java.awt.Color.RGBtoHSB(red, greed, blue, hsv); in nativeRGBToHSV() 32 hsv[0] = hsv[0] * 360; in nativeRGBToHSV() 36 /*package*/ static int nativeHSVToColor(int alpha, float hsv[]) { in nativeHSVToColor() argument 37 …awt.Color rgb = new java.awt.Color(java.awt.Color.HSBtoRGB(hsv[0] / 360, pin(hsv[1]), pin(hsv[2]))… in nativeHSVToColor()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/clock/ |
D | ClockPaletteTest.kt | 39 val hsv: FloatArray = FloatArray(3) in setUp() constant 40 Color.colorToHSV(Color.RED, hsv) in setUp() 42 val step: Float = (0f - hsv[2]) / colors.size in setUp() 44 hsv[2] += step in setUp() 45 colors[i] = Color.HSVToColor(hsv) in setUp() 93 val hsv: FloatArray = FloatArray(3) in value() constant 94 Color.colorToHSV(color, hsv) in value() 95 return hsv[2] in value()
|
/frameworks/layoutlib/bridge/tests/src/android/graphics/ |
D | Color_DelegateTest.java | 24 float[] hsv = new float[3]; in testRGBToHSV() local 25 Color_Delegate.nativeRGBToHSV(14, 203, 49, hsv); in testRGBToHSV() 26 assertTrue(131.1111 - hsv[0] < 0.001); in testRGBToHSV() 27 assertTrue(0.9310 - hsv[1] < 0.001); in testRGBToHSV() 28 assertTrue(0.7961 - hsv[2] < 0.001); in testRGBToHSV()
|
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
D | HsvColorComparator.java | 30 float[] hsv = new float[3]; in compare() local 31 Color.colorToHSV(lhs, hsv); in compare() 32 float hue1 = hsv[0]; in compare() 33 float sat1 = hsv[1]; in compare() 34 float val1 = hsv[2]; in compare()
|
D | ColorStateDrawable.java | 62 float[] hsv = new float[3]; in getPressedColor() local 63 Color.colorToHSV(color, hsv); in getPressedColor() 64 hsv[2] = hsv[2] * PRESSED_STATE_MULTIPLIER; in getPressedColor() 65 return Color.HSVToColor(hsv); in getPressedColor()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/ |
D | Palette.kt | 39 val hsv = floatArrayOf((Math.random() * 360f).toFloat(), S, V) in randomize() constant 41 colors[0] = Color.HSVToColor(hsv) in randomize() 46 hsv[0] = (hsv[0] + 360f / count).rem(360f) in randomize() 47 val color = Color.HSVToColor(hsv) in randomize()
|
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/ |
D | shadows_f.rscript | 98 static float4 hsv2rgb(ushort3 hsv) 110 short cv = hsv.x; 111 short cs = hsv.y; 112 short ch = hsv.z; 187 ushort3 hsv = rgb2hsv(in); 188 float v = (fastevalPoly(poly, 5, hsv.x * (1.f / 4080.f)) * 4080.f); 189 hsv.x = (unsigned short) clamp(v, 0.f, 4080.f); 190 return hsv2rgb(hsv);
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
D | shadows.rscript | 98 static uchar4 hsv2rgb(ushort3 hsv) 110 short cv = hsv.x; 111 short cs = hsv.y; 112 short ch = hsv.z; 187 ushort3 hsv = rgb2hsv(in); 188 float v = (fastevalPoly(poly, 5, hsv.x * (1.f / 4080.f)) * 4080.f); 189 hsv.x = (unsigned short) clamp(v, 0.f, 4080.f); 190 return hsv2rgb(hsv);
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
D | shadows.rscript | 98 static uchar4 hsv2rgb(ushort3 hsv) 110 short cv = hsv.x; 111 short cs = hsv.y; 112 short ch = hsv.z; 187 ushort3 hsv = rgb2hsv(in); 188 float v = (fastevalPoly(poly, 5, hsv.x * (1.f / 4080.f)) * 4080.f); 189 hsv.x = (unsigned short) clamp(v, 0.f, 4080.f); 190 return hsv2rgb(hsv);
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | shadows.rscript | 98 static uchar4 hsv2rgb(ushort3 hsv) 110 short cv = hsv.x; 111 short cs = hsv.y; 112 short ch = hsv.z; 187 ushort3 hsv = rgb2hsv(in); 188 float v = (fastevalPoly(poly, 5, hsv.x * (1.f / 4080.f)) * 4080.f); 189 hsv.x = (unsigned short) clamp(v, 0.f, 4080.f); 190 return hsv2rgb(hsv);
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/ |
D | ClockPalette.kt | 37 private val hsv: FloatArray = FloatArray(3) constant in com.android.keyguard.clock.ClockPalette 49 hsv[i] = MathUtils.lerp(darkHSV[i], lightHSV[i], darkAmount) in getSecondaryColor() 51 return Color.HSVToColor(hsv) in getSecondaryColor()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Color.java | 1418 @IntRange(from = 0, to = 255) int blue, @Size(3) float hsv[]) { in RGBToHSV() argument 1419 if (hsv.length < 3) { in RGBToHSV() 1422 nativeRGBToHSV(red, green, blue, hsv); in RGBToHSV() 1435 public static void colorToHSV(@ColorInt int color, @Size(3) float hsv[]) { in colorToHSV() argument 1436 RGBToHSV((color >> 16) & 0xFF, (color >> 8) & 0xFF, color & 0xFF, hsv); in colorToHSV() local 1451 public static int HSVToColor(@Size(3) float hsv[]) { in HSVToColor() argument 1452 return HSVToColor(0xFF, hsv); in HSVToColor() 1469 public static int HSVToColor(@IntRange(from = 0, to = 255) int alpha, @Size(3) float hsv[]) { in HSVToColor() argument 1470 if (hsv.length < 3) { in HSVToColor() 1473 return nativeHSVToColor(alpha, hsv); in HSVToColor() [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | Shader.cpp | 31 SkScalar hsv[3]; in Color_RGBToHSV() local 32 SkRGBToHSV(red, green, blue, hsv); in Color_RGBToHSV() 37 values[i] = SkScalarToFloat(hsv[i]); in Color_RGBToHSV() 45 SkScalar* hsv = autoHSV.ptr(); in Color_HSVToColor() local 50 return static_cast<jint>(SkHSVToColor(alpha, hsv)); in Color_HSVToColor()
|
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/ |
D | Swarm.java | 100 float[] hsv = new float[]{.9f, .99f, .8f}; in Swarm() local 107 hsv[0] = (float) Math.random() * 360; in Swarm() 108 int color = Color.HSVToColor(hsv); in Swarm() 302 float[] hsv = new float[3]; in doInBackground() local 303 hsv[1] = 0.8f; in doInBackground() 304 hsv[2] = 0.9f; in doInBackground()
|
/frameworks/base/libs/hwui/ |
D | CanvasTransform.cpp | 111 float hsv[3]; in paletteForColorHSV() local 112 SkColorToHSV(color, hsv); in paletteForColorHSV() 113 return hsv[2] >= .5f ? BitmapPalette::Light : BitmapPalette::Dark; in paletteForColorHSV()
|
D | VectorDrawable.cpp | 680 float hsv[3]; in computePalette() local 681 SkColorToHSV(color, hsv); in computePalette() 682 hue.add(hsv[0]); in computePalette() 683 saturation.add(hsv[1]); in computePalette() 684 value.add(hsv[2]); in computePalette()
|
/frameworks/base/libs/hwui/hwui/ |
D | Bitmap.cpp | 395 float hsv[3]; in computePalette() local 396 SkColorToHSV(color, hsv); in computePalette() 397 hue.add(hsv[0]); in computePalette() 398 saturation.add(hsv[1]); in computePalette() 399 value.add(hsv[2]); in computePalette()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | DessertCaseView.java | 227 float[] hsv = new float[] { 0, 1f, .85f }; field in DessertCaseView 231 hsv[0] = irand(0,COLORS) * (360f/COLORS); in random_color() 232 return Color.HSVToColor(hsv); in random_color()
|
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/ |
D | IconTest.java | 323 static float[] hsv = new float[3]; field in IconTest
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/ |
D | MLand.java | 297 final static float hsv[] = {0, 0, 0}; field in MLand
|