/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | ColorExtractor.java | 66 float[] hsv = mTmpHsv; in findDominantColorByHue() local 67 Arrays.fill(hsv, 0); in findDominantColorByHue() 90 Color.colorToHSV(rgb, hsv); in findDominantColorByHue() 92 int hue = (int) hsv[0]; in findDominantColorByHue() 100 float score = hsv[1] * hsv[2]; in findDominantColorByHue() 118 Color.colorToHSV(rgb, hsv); in findDominantColorByHue() 119 int hue = (int) hsv[0]; in findDominantColorByHue() 121 float s = hsv[1]; in findDominantColorByHue() 122 float v = hsv[2]; in findDominantColorByHue()
|
/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/libs/hwui/jni/ |
D | android_graphics_Color.cpp | 26 SkScalar hsv[3]; in Color_RGBToHSV() local 27 SkRGBToHSV(red, green, blue, hsv); in Color_RGBToHSV() 32 values[i] = SkScalarToFloat(hsv[i]); in Color_RGBToHSV() 39 SkScalar* hsv = autoHSV.ptr(); in Color_HSVToColor() local 40 return static_cast<jint>(SkHSVToColor(alpha, hsv)); in Color_HSVToColor()
|
/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/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/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/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/graphics/java/android/graphics/ |
D | Color.java | 1420 @IntRange(from = 0, to = 255) int blue, @Size(3) float hsv[]) { in RGBToHSV() argument 1421 if (hsv.length < 3) { in RGBToHSV() 1424 nativeRGBToHSV(red, green, blue, hsv); in RGBToHSV() 1437 public static void colorToHSV(@ColorInt int color, @Size(3) float hsv[]) { in colorToHSV() argument 1438 RGBToHSV((color >> 16) & 0xFF, (color >> 8) & 0xFF, color & 0xFF, hsv); in colorToHSV() local 1453 public static int HSVToColor(@Size(3) float hsv[]) { in HSVToColor() argument 1454 return HSVToColor(0xFF, hsv); in HSVToColor() 1471 public static int HSVToColor(@IntRange(from = 0, to = 255) int alpha, @Size(3) float hsv[]) { in HSVToColor() argument 1472 if (hsv.length < 3) { in HSVToColor() 1475 return nativeHSVToColor(alpha, hsv); in HSVToColor() [all …]
|
/frameworks/base/libs/hwui/ |
D | CanvasTransform.cpp | 130 float hsv[3]; in paletteForColorHSV() local 131 SkColorToHSV(color, hsv); in paletteForColorHSV() 132 return hsv[2] >= .5f ? BitmapPalette::Light : BitmapPalette::Dark; in paletteForColorHSV()
|
D | VectorDrawable.cpp | 601 float hsv[3]; in computePalette() local 602 SkColorToHSV(color, hsv); in computePalette() 603 hue.add(hsv[0]); in computePalette() 604 saturation.add(hsv[1]); in computePalette() 605 value.add(hsv[2]); in computePalette()
|
/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/packages/EasterEgg/src/com/android/egg/neko/ |
D | NekoLand.java | 112 final float[] hsv = new float[3]; in updateCats() local 117 Color.colorToHSV(cat.getBodyColor(), hsv); in updateCats() 118 float bodyH1 = hsv[0]; in updateCats() 119 Color.colorToHSV(cat2.getBodyColor(), hsv); in updateCats() 120 float bodyH2 = hsv[0]; in updateCats()
|
/frameworks/base/libs/hwui/hwui/ |
D | Bitmap.cpp | 472 float hsv[3]; in computePalette() local 473 SkColorToHSV(color, hsv); in computePalette() 474 hue.add(hsv[0]); in computePalette() 475 saturation.add(hsv[1]); in computePalette() 476 value.add(hsv[2]); in computePalette()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | DessertCaseView.java | 229 float[] hsv = new float[] { 0, 1f, .85f }; field in DessertCaseView 233 hsv[0] = irand(0,COLORS) * (360f/COLORS); in random_color() 234 return Color.HSVToColor(hsv); in random_color()
|
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/ |
D | IconTest.java | 617 static float[] hsv = new float[3]; field in IconTest
|
/frameworks/base/tools/aapt2/integration-tests/CommandTests/ |
D | android-33.jar | AndroidManifest.xml
META-INF/
META-INF/MANIFEST.MF
NOTICES/
NOTICES/libcore ... |