Home
last modified time | relevance | path

Searched refs:hsv (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/graphics/java/android/graphics/
DColor.java176 public static void RGBToHSV(int red, int green, int blue, @Size(3) float hsv[]) {
177 if (hsv.length < 3) {
180 nativeRGBToHSV(red, green, blue, hsv);
191 public static void colorToHSV(@ColorInt int color, @Size(3) float hsv[]) {
192 RGBToHSV((color >> 16) & 0xFF, (color >> 8) & 0xFF, color & 0xFF, hsv); local
204 public static int HSVToColor(@Size(3) float hsv[]) { in HSVToColor() argument
205 return HSVToColor(0xFF, hsv); in HSVToColor()
219 public static int HSVToColor(int alpha, @Size(3) float hsv[]) { in HSVToColor() argument
220 if (hsv.length < 3) { in HSVToColor()
223 return nativeHSVToColor(alpha, hsv); in HSVToColor()
[all …]
/frameworks/opt/colorpicker/src/com/android/colorpicker/
DHsvColorComparator.java30 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()
DColorStateDrawable.java62 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/rs/java/tests/ScriptGroupTest/src/com/android/rs/sgtest/
Dshadows_f.rs98 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/java/tests/ImageProcessing_jb/src/com/android/rs/image/
Dshadows.rs98 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/java/tests/ImageProcessing2/src/com/android/rs/image/
Dshadows.rs98 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/java/tests/ImageProcessing/src/com/android/rs/image/
Dshadows.rs98 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/EasterEgg/src/com/android/egg/neko/
DCat.java283 float[] hsv = new float[3];
284 Color.colorToHSV(mBodyColor, hsv);
285 hsv[2] = (hsv[2]>0.5f)
286 ? (hsv[2] - 0.25f)
287 : (hsv[2] + 0.25f);
288 pt.setColor(Color.HSVToColor(hsv));
DNekoLand.java107 final float[] hsv = new float[3]; in updateCats() local
112 Color.colorToHSV(cat.getBodyColor(), hsv); in updateCats()
113 float bodyH1 = hsv[0]; in updateCats()
114 Color.colorToHSV(cat2.getBodyColor(), hsv); in updateCats()
115 float bodyH2 = hsv[0]; in updateCats()
/frameworks/base/core/jni/android/graphics/
DShader.cpp20 SkScalar hsv[3]; in Color_RGBToHSV() local
21 SkRGBToHSV(red, green, blue, hsv); in Color_RGBToHSV()
26 values[i] = SkScalarToFloat(hsv[i]); in Color_RGBToHSV()
34 SkScalar* hsv = autoHSV.ptr(); in Color_HSVToColor() local
39 return static_cast<jint>(SkHSVToColor(alpha, hsv)); in Color_HSVToColor()
/frameworks/support/v7/cardview/src/android/support/v7/widget/
DCardView.java228 final float[] hsv = new float[3]; in initialize() local
229 Color.colorToHSV(themeColorBackground, hsv); in initialize()
230 backgroundColor = ColorStateList.valueOf(hsv[2] > 0.5f in initialize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDessertCaseView.java227 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/graphics/tests/graphicstests/src/android/graphics/drawable/
DIconTest.java273 static float[] hsv = new float[3]; field in IconTest
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
DMLand.java297 final static float hsv[] = {0, 0, 0}; field in MLand