Home
last modified time | relevance | path

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

/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/
DColorExtractor.java55 float[] hsv = mTmpHsv; in findDominantColorByHue() local
56 Arrays.fill(hsv, 0); in findDominantColorByHue()
79 Color.colorToHSV(rgb, hsv); in findDominantColorByHue()
81 int hue = (int) hsv[0]; in findDominantColorByHue()
89 float score = hsv[1] * hsv[2]; in findDominantColorByHue()
107 Color.colorToHSV(rgb, hsv); in findDominantColorByHue()
108 int hue = (int) hsv[0]; in findDominantColorByHue()
110 float s = hsv[1]; in findDominantColorByHue()
111 float v = hsv[2]; in findDominantColorByHue()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
DColorPickerDialog.java125 float[] hsv = (float[]) v.getTag(); in toggleClick() local
130 cwv.setColor(hsv); in toggleClick()
131 cvv.setColor(hsv); in toggleClick()
132 csv.setColor(hsv); in toggleClick()
146 private void setButtonColor(ToggleButton button, float[] hsv) { in setButtonColor() argument
150 int color = Color.HSVToColor(hsv); in setButtonColor()
153 (hsv[0] + 180) % 360, in setButtonColor()
154 hsv[1], in setButtonColor()
155 (hsv[2] > .5f) ? .1f : .9f in setButtonColor()
158 button.setTag(hsv); in setButtonColor()
DColorSVRectView.java98 float[] hsv = new float[3]; in fillBitmap() local
99 hsv[0] = mHSVO[0]; in fillBitmap()
103 hsv[1] = sat; in fillBitmap()
104 hsv[2] = val; in fillBitmap()
105 buff[i] = Color.HSVToColor(hsv); in fillBitmap()
219 public void notifyColorListeners(float[] hsv) { in notifyColorListeners() argument
221 l.setColor(hsv); in notifyColorListeners()
DColorValueView.java133 float[] hsv = new float[] { in updatePaint() local
135 int color1 = Color.HSVToColor(hsv); in updatePaint()
136 hsv[2] = 1; in updatePaint()
137 int color2 = Color.HSVToColor(hsv); in updatePaint()
167 public void notifyColorListeners(float[] hsv) { in notifyColorListeners() argument
169 l.setColor(hsv); in notifyColorListeners()
DColorGridDialog.java43 float[] hsv = new float[3]; in ColorGridDialog() local
47 hsv[0] = (k % 5) * 360 / 5; in ColorGridDialog()
48 hsv[1] = (k / 5) / 3.0f; in ColorGridDialog()
49 hsv[2] = (k < 5) ? (k / 4f) : 1; in ColorGridDialog()
50 final int c = (Color.HSVToColor(hsv) & 0x00FFFFFF) | 0xAA000000; in ColorGridDialog()
DColorRectView.java138 float[] hsv = new float[3]; in setUpColorPanel() local
140 Color.colorToHSV(mColors[i], hsv); in setUpColorPanel()
141 hsv[2] = mHSVO[2]; in setUpColorPanel()
142 wheelColor[i] = Color.HSVToColor(hsv); in setUpColorPanel()
211 public void notifyColorListeners(float[] hsv) { in notifyColorListeners() argument
213 l.setColor(hsv); in notifyColorListeners()
DColorCompareView.java147 public void setOrigColor(float[] hsv) { in setOrigColor() argument
148 System.arraycopy(hsv, 0, mOrigHSVO, 0, mOrigHSVO.length); in setOrigColor()
155 public void setColor(float[] hsv) { in setColor() argument
156 System.arraycopy(hsv, 0, mHSVO, 0, mHSVO.length); in setColor()
DColorSaturationView.java179 public void setColor(float[] hsv) { in setColor() argument
180 System.arraycopy(hsv, 0, mHSVO, 0, mHSVO.length); in setColor()
DColorOpacityView.java180 public void setColor(float[] hsv) { in setColor() argument
181 System.arraycopy(hsv, 0, mHSVO, 0, mHSVO.length); in setColor()
DColorBrightnessView.java180 public void setColor(float[] hsv) { in setColor() argument
181 System.arraycopy(hsv, 0, mHSVO, 0, mHSVO.length); in setColor()
DColorHueView.java203 public void setColor(float[] hsv) { in setColor() argument
204 System.arraycopy(hsv, 0, mHSVO, 0, mHSVO.length); in setColor()
DRGBListener.java20 void setColor(int hsv); in setColor() argument
/packages/apps/Gallery2/jni/filters/
Dhsv.c33 void rgb2hsv( unsigned char *rgb,int rgbOff,unsigned short *hsv,int hsvOff) in rgb2hsv() argument
77 hsv[hsvOff+0] = rv; in rgb2hsv()
78 hsv[hsvOff+1] = rs; in rgb2hsv()
79 hsv[hsvOff+2] = rh; in rgb2hsv()
82 void hsv2rgb(unsigned short *hsv,int hsvOff, unsigned char *rgb,int rgbOff) in hsv2rgb() argument
94 short cv = hsv[hsvOff+0]; in hsv2rgb()
95 short cs = hsv[hsvOff+1]; in hsv2rgb()
96 short ch = hsv[hsvOff+2]; in hsv2rgb()
Dhighlight.c30 unsigned short * hsv = (unsigned short *)malloc(3*sizeof(short)); in JNIFUNCF() local
34 rgb2hsv(rgb,i,hsv,0); in JNIFUNCF()
35 int v = clampMax(hsv[0],4080); in JNIFUNCF()
36 hsv[0] = (unsigned short) clampMax(lum[((255*v)/4080)]*4080,4080); in JNIFUNCF()
37 hsv2rgb(hsv,0, rgb,i); in JNIFUNCF()
40 free(hsv); in JNIFUNCF()
Dshadows.c43 unsigned short * hsv = (unsigned short *)malloc(3*sizeof(short)); in JNIFUNCF() local
47 rgb2hsv(rgb,i,hsv,0); in JNIFUNCF()
49 double v = (fastevalPoly(poly,5,hsv[0]/4080.)*4080); in JNIFUNCF()
51 hsv[0] = (unsigned short) ((v>0)?v:0); in JNIFUNCF()
53 hsv2rgb(hsv,0, rgb,i); in JNIFUNCF()
57 free(hsv); in JNIFUNCF()
Dfilters.h49 extern void rgb2hsv( unsigned char *rgb,int rgbOff,unsigned short *hsv,int hsvOff);
50 extern void hsv2rgb(unsigned short *hsv,int hsvOff,unsigned char *rgb,int rgbOff);
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DIconPalette.java49 float[] hsv = new float[3]; in getPreloadProgressColor() local
50 Color.colorToHSV(result, hsv); in getPreloadProgressColor()
51 if (hsv[1] < MIN_PRELOAD_COLOR_SATURATION) { in getPreloadProgressColor()
54 hsv[2] = Math.max(MIN_PRELOAD_COLOR_LIGHTNESS, hsv[2]); in getPreloadProgressColor()
55 result = Color.HSVToColor(hsv); in getPreloadProgressColor()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingAppWidgetHostView.java160 float[] hsv = new float[3]; in updateSettingColor() local
161 Color.colorToHSV(dominantColor, hsv); in updateSettingColor()
162 hsv[1] = Math.min(hsv[1], MIN_SATUNATION); in updateSettingColor()
163 hsv[2] = 1; in updateSettingColor()
164 mSettingIconDrawable.setColorFilter(Color.HSVToColor(hsv), PorterDuff.Mode.SRC_IN); in updateSettingColor()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterBwFilter.java54 float[] hsv = new float[] { in apply() local
57 int rgb = Color.HSVToColor(hsv); in apply()
/packages/apps/Calendar/src/com/android/calendar/
DUtils.java757 float[] hsv = new float[3]; in getDisplayColorFromColor() local
758 Color.colorToHSV(color, hsv); in getDisplayColorFromColor()
759 hsv[1] = Math.min(hsv[1] * SATURATION_ADJUST, 1.0f); in getDisplayColorFromColor()
760 hsv[2] = hsv[2] * INTENSITY_ADJUST; in getDisplayColorFromColor()
761 return Color.HSVToColor(hsv); in getDisplayColorFromColor()
/packages/apps/Gallery2/jni/
DAndroid.mk46 filters/hsv.c \