Home
last modified time | relevance | path

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

/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/tests/java_api/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/tests/java_api/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/rs/tests/java_api/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/tests/java_api/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/support/design/tests/src/android/support/design/widget/
DAppBarHorizontalScrollingTest.java76 final HorizontalScrollView hsv = activity.findViewById(R.id.hsv); in testScrollAndClick() local
77 final int scrollXBefore = hsv.getScrollX(); in testScrollAndClick()
80 assertTrue("Horizontal scroll performed", hsv.getScrollX() > scrollXBefore); in testScrollAndClick()
/frameworks/base/graphics/java/android/graphics/
DColor.java1418 @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/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
DSwarm.java100 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/packages/EasterEgg/src/com/android/egg/neko/
DCat.java286 float[] hsv = new float[3];
287 Color.colorToHSV(mBodyColor, hsv);
288 hsv[2] = (hsv[2]>0.5f)
289 ? (hsv[2] - 0.25f)
290 : (hsv[2] + 0.25f);
291 pt.setColor(Color.HSVToColor(hsv));
DNekoLand.java110 final float[] hsv = new float[3]; in updateCats() local
115 Color.colorToHSV(cat.getBodyColor(), hsv); in updateCats()
116 float bodyH1 = hsv[0]; in updateCats()
117 Color.colorToHSV(cat2.getBodyColor(), hsv); in updateCats()
118 float bodyH2 = hsv[0]; in updateCats()
/frameworks/base/core/jni/android/graphics/
DShader.cpp29 SkScalar hsv[3]; in Color_RGBToHSV() local
30 SkRGBToHSV(red, green, blue, hsv); in Color_RGBToHSV()
35 values[i] = SkScalarToFloat(hsv[i]); in Color_RGBToHSV()
43 SkScalar* hsv = autoHSV.ptr(); in Color_HSVToColor() local
48 return static_cast<jint>(SkHSVToColor(alpha, hsv)); in Color_HSVToColor()
/frameworks/support/v7/cardview/src/android/support/v7/widget/
DCardView.java235 final float[] hsv = new float[3]; in initialize() local
236 Color.colorToHSV(themeColorBackground, hsv); in initialize()
237 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/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java307 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