Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
DColorSVRectView.java53 private float[] mHSVO = new float[]{0, 1, 1, 1}; field in ColorSVRectView
99 hsv[0] = mHSVO[0]; in fillBitmap()
158 mHSVO[2] = sat; in onTouchEvent()
159 mHSVO[1] = value; in onTouchEvent()
160 notifyColorListeners(mHSVO); in onTouchEvent()
181 double hue = mHSVO[0]; in updateDot()
182 double sat = mHSVO[1]; in updateDot()
183 double val = mHSVO[2]; in updateDot()
184 double opc = mHSVO[3]; in updateDot()
202 if (hsvo[0] == mHSVO[0] in setColor()
[all …]
DColorRectView.java52 private float[] mHSVO = new float[4]; field in ColorRectView
110 mHSVO[0] = ((float) Math.toDegrees(hue) + 360) % 360; in onTouchEvent()
111 mHSVO[1] = sat; in onTouchEvent()
112 notifyColorListeners(mHSVO); in onTouchEvent()
131 float val = mHSVO[2]; in setUpColorPanel()
141 hsv[2] = mHSVO[2]; in setUpColorPanel()
181 double hue = mHSVO[0]; in updateDot()
182 double sat = mHSVO[1]; in updateDot()
200 System.arraycopy(hsvo, 0, mHSVO, 0, mHSVO.length); in setColor()
DColorValueView.java48 private float[] mHSVO = new float[4]; field in ColorValueView
101 mHSVO[2] = (mDotY - mBorder) / (mHeight - mBorder * 2); in onTouchEvent()
102 notifyColorListeners(mHSVO); in onTouchEvent()
113 float pos = mHSVO[2] * (mHeight - mBorder * 2); in setupButton()
134 mHSVO[0], mHSVO[1], 0f }; in updatePaint()
158 System.arraycopy(hsvo, 0, mHSVO, 0, mHSVO.length); in setColor()
DColorCompareView.java51 private float[] mHSVO = new float[4]; field in ColorCompareView
106 System.arraycopy(mOrigHSVO, 0, mHSVO, 0, mOrigHSVO.length); in resetToOriginal()
108 notifyColorListeners(mHSVO); in resetToOriginal()
120 int color = Color.HSVToColor((int) (mHSVO[3] * 255), mHSVO); in updatePaint()
156 System.arraycopy(hsv, 0, mHSVO, 0, mHSVO.length); in setColor()
DColorBrightnessView.java54 private float[] mHSVO = new float[4]; field in ColorBrightnessView
118 mHSVO[3] = (mDotX - mBorder) / (mWidth - mBorder * 2); in onTouchEvent()
119 notifyColorListeners(mHSVO); in onTouchEvent()
131 float pos = mHSVO[3] * (mWidth - mBorder * 2); in setupButton()
151 float[] hsvo = Arrays.copyOf(mHSVO, 4); in updatePaint()
181 System.arraycopy(hsv, 0, mHSVO, 0, mHSVO.length); in setColor()
DColorOpacityView.java54 private float[] mHSVO = new float[4]; field in ColorOpacityView
123 mHSVO[3] = (mDotX - mBorder) / (mWidth - mBorder * 2); in onTouchEvent()
124 notifyColorListeners(mHSVO); in onTouchEvent()
136 float pos = mHSVO[3] * (mWidth - mBorder * 2); in setupButton()
157 int color2 = Color.HSVToColor(mHSVO); in updatePaint()
181 System.arraycopy(hsv, 0, mHSVO, 0, mHSVO.length); in setColor()
DColorSaturationView.java54 private float[] mHSVO = new float[4]; field in ColorSaturationView
118 mHSVO[3] = (mDotX - mBorder) / (mWidth - mBorder * 2); in onTouchEvent()
119 notifyColorListeners(mHSVO); in onTouchEvent()
131 float pos = mHSVO[3] * (mWidth - mBorder * 2); in setupButton()
151 float[]hsvo = Arrays.copyOf(mHSVO, 4); in updatePaint()
180 System.arraycopy(hsv, 0, mHSVO, 0, mHSVO.length); in setColor()
DColorHueView.java52 private float[] mHSVO = {0.f,0.f,0.f,0.f}; field in ColorHueView
133 mHSVO[0] = 360 * (mDotX - mBorder) / (mWidth - mBorder * 2); in onTouchEvent()
134 notifyColorListeners(mHSVO); in onTouchEvent()
148 float pos = mHSVO[0] / 360 * (mWidth - mBorder * 2); in setupButton()
204 System.arraycopy(hsv, 0, mHSVO, 0, mHSVO.length); in setColor()
DColorPickerDialog.java44 float[] mHSVO = new float[4]; // hue=0..360, sat & val opacity = 0...1 field in ColorPickerDialog
70 cl.setColor(mHSVO); in ColorPickerDialog()
94 System.arraycopy(hsvo, 0, mHSVO, 0, mHSVO.length); in ColorPickerDialog()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/controller/
DParameterColor.java27 float[] mHSVO = new float[4]; field in ParameterColor
41 Color.colorToHSV(defaultColor, mHSVO); in ParameterColor()
42 mHSVO[3] = ((defaultColor >> 24) & 0xFF) / (float) 255; in ParameterColor()
51 mHSVO = hsvo; in setColor()
52 mValue = Color.HSVToColor((int) (hsvo[3] * 255), mHSVO); in setColor()
56 return mHSVO; in getColor()
66 System.arraycopy(p.mHSVO, 0, mHSVO, 0, 4); in copyFrom()
90 Color.colorToHSV(mValue, mHSVO); in setValue()
91 mHSVO[3] = ((mValue >> 24) & 0xFF) / (float) 255; in setValue()
DParameterBrightness.java21 float[] mHSVO = new float[4]; field in ParameterBrightness
33 mHSVO = hsvo; in setColor()
37 mHSVO[3] = getValue() / (float) getMaximum(); in getColor()
38 return mHSVO; in getColor()
DParameterHue.java21 float[] mHSVO = new float[4]; field in ParameterHue
33 mHSVO = hsvo; in setColor()
37 mHSVO[3] = getValue() / (float) getMaximum(); in getColor()
38 return mHSVO; in getColor()
DParameterOpacity.java20 float[] mHSVO = new float[4]; field in ParameterOpacity
32 mHSVO = hsvo; in setColor()
36 mHSVO[3] = getValue() / (float) getMaximum(); in getColor()
37 return mHSVO; in getColor()
DParameterSaturation.java21 float[] mHSVO = new float[4]; field in ParameterSaturation
33 mHSVO = hsvo; in setColor()
37 mHSVO[3] = getValue() / (float) getMaximum(); in getColor()
38 return mHSVO; in getColor()