Home
last modified time | relevance | path

Searched refs:mBorder (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
DColorSaturationView.java52 private float mBorder; field in ColorSaturationView
56 private float mDotX = mBorder;
57 private float mDotY = mBorder;
68 mBorder = BORDER_SIZE * mDpToPix; in ColorSaturationView()
111 if (mDotX < mBorder) { in onTouchEvent()
112 mDotX = mBorder; in onTouchEvent()
115 if (mDotX > mWidth - mBorder) { in onTouchEvent()
116 mDotX = mWidth - mBorder; in onTouchEvent()
118 mHSVO[3] = (mDotX - mBorder) / (mWidth - mBorder * 2); in onTouchEvent()
131 float pos = mHSVO[3] * (mWidth - mBorder * 2); in setupButton()
[all …]
DColorBrightnessView.java52 private float mBorder; field in ColorBrightnessView
56 private float mDotX = mBorder;
57 private float mDotY = mBorder;
68 mBorder = BORDER_SIZE * mDpToPix; in ColorBrightnessView()
111 if (mDotX < mBorder) { in onTouchEvent()
112 mDotX = mBorder; in onTouchEvent()
115 if (mDotX > mWidth - mBorder) { in onTouchEvent()
116 mDotX = mWidth - mBorder; in onTouchEvent()
118 mHSVO[3] = (mDotX - mBorder) / (mWidth - mBorder * 2); in onTouchEvent()
131 float pos = mHSVO[3] * (mWidth - mBorder * 2); in setupButton()
[all …]
DColorRectView.java47 private float mBorder; field in ColorRectView
73 mBorder = BORDER_SIZE * mDpToPix; in ColorRectView()
100 x = Math.max(Math.min(x, mWidth - mBorder), mBorder); in onTouchEvent()
101 y = Math.max(Math.min(y, mHeight - mBorder), mBorder); in onTouchEvent()
104 float sat = 1 - (mDotY - mBorder) / (mHeight - 2 * mBorder); in onTouchEvent()
109 double hue = Math.PI * 2 * (mDotX - mBorder) / (mHeight - 2 * mBorder); in onTouchEvent()
126 mRadius = Math.min(mCtrY, mCtrX) - 2 * mBorder; in onSizeChanged()
148 mBorder, 0, mWidth - mBorder, 0, wheelColor, null, Shader.TileMode.CLAMP); in setUpColorPanel()
152 0, mBorder, 0, mHeight - mBorder, colors, null, Shader.TileMode.CLAMP); in setUpColorPanel()
155 0, mBorder, 0, mHeight - mBorder, colors2, null, Shader.TileMode.CLAMP); in setUpColorPanel()
[all …]
DColorValueView.java46 private float mBorder; field in ColorValueView
51 private float mDotY = mBorder;
62 mBorder = BORDER_SIZE * mDpToPix; in ColorValueView()
94 if (mDotY < mBorder) { in onTouchEvent()
95 mDotY = mBorder; in onTouchEvent()
98 if (mDotY > mHeight - mBorder) { in onTouchEvent()
99 mDotY = mHeight - mBorder; in onTouchEvent()
101 mHSVO[2] = (mDotY - mBorder) / (mHeight - mBorder * 2); in onTouchEvent()
113 float pos = mHSVO[2] * (mHeight - mBorder * 2); in setupButton()
114 mDotY = pos + mBorder; in setupButton()
[all …]
DColorOpacityView.java52 private float mBorder; field in ColorOpacityView
56 private float mDotX = mBorder;
57 private float mDotY = mBorder;
66 mBorder = BORDER_SIZE * mDpToPix; in ColorOpacityView()
116 if (mDotX < mBorder) { in onTouchEvent()
117 mDotX = mBorder; in onTouchEvent()
120 if (mDotX > mWidth - mBorder) { in onTouchEvent()
121 mDotX = mWidth - mBorder; in onTouchEvent()
123 mHSVO[3] = (mDotX - mBorder) / (mWidth - mBorder * 2); in onTouchEvent()
136 float pos = mHSVO[3] * (mWidth - mBorder * 2); in setupButton()
[all …]
DColorSVRectView.java48 private float mBorder; field in ColorSVRectView
68 mBorder = BORDER_SIZE * mDpToPix; in ColorSVRectView()
123 mRect.top += mBorder; in onDraw()
124 mRect.bottom -= mBorder; in onDraw()
125 mRect.left += mBorder; in onDraw()
126 mRect.right -= mBorder; in onDraw()
148 x = Math.max(Math.min(x, mWidth - mBorder), mBorder); in onTouchEvent()
149 y = Math.max(Math.min(y, mHeight - mBorder), mBorder); in onTouchEvent()
152 float sat = 1 - (mDotY - mBorder) / (mHeight - 2 * mBorder); in onTouchEvent()
157 float value = (mDotX - mBorder) / (mHeight - 2 * mBorder); in onTouchEvent()
[all …]
DColorHueView.java50 private float mBorder; field in ColorHueView
54 private float mDotX = mBorder;
55 private float mDotY = mBorder;
69 mBorder = BORDER_SIZE * mDpToPix; in ColorHueView()
126 if (mDotX < mBorder) { in onTouchEvent()
127 mDotX = mBorder; in onTouchEvent()
130 if (mDotX > mWidth - mBorder) { in onTouchEvent()
131 mDotX = mWidth - mBorder; in onTouchEvent()
133 mHSVO[0] = 360 * (mDotX - mBorder) / (mWidth - mBorder * 2); in onTouchEvent()
148 float pos = mHSVO[0] / 360 * (mWidth - mBorder * 2); in setupButton()
[all …]
DColorCompareView.java49 private float mBorder; field in ColorCompareView
63 mBorder = BORDER_SIZE * mDpToPix; in ColorCompareView()
142 canvas.drawRect(mBorder, 0, mWidth, mHeight, mCheckPaint); in onDraw()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/
DUploadedTexture.java64 private int mBorder; field in UploadedTexture
74 mBorder = 1; in UploadedTexture()
138 int w = mBitmap.getWidth() + mBorder * 2; in getBitmap()
139 int h = mBitmap.getHeight() + mBorder * 2; in getBitmap()
197 canvas.texSubImage2D(this, mBorder, mBorder, bitmap, format, type); in updateContent()
218 int width = bWidth + mBorder * 2; in uploadToCanvas()
219 int height = bHeight + mBorder * 2; in uploadToCanvas()
237 canvas.texSubImage2D(this, mBorder, mBorder, bitmap, format, type); in uploadToCanvas()
239 if (mBorder > 0) { in uploadToCanvas()
250 if (mBorder + bWidth < texWidth) { in uploadToCanvas()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DUploadedTexture.java63 private int mBorder; field in UploadedTexture
73 mBorder = 1; in UploadedTexture()
137 int w = mBitmap.getWidth() + mBorder * 2; in getBitmap()
138 int h = mBitmap.getHeight() + mBorder * 2; in getBitmap()
196 canvas.texSubImage2D(this, mBorder, mBorder, bitmap, format, type); in updateContent()
217 int width = bWidth + mBorder * 2; in uploadToCanvas()
218 int height = bHeight + mBorder * 2; in uploadToCanvas()
236 canvas.texSubImage2D(this, mBorder, mBorder, bitmap, format, type); in uploadToCanvas()
238 if (mBorder > 0) { in uploadToCanvas()
249 if (mBorder + bWidth < texWidth) { in uploadToCanvas()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DChartGridView.java48 private Drawable mBorder; field in ChartGridView
75 mBorder = a.getDrawable(R.styleable.ChartGridView_borderDrawable); in ChartGridView()
135 mBorder.setBounds(0, 0, width, height); in onDraw()
136 mBorder.draw(canvas); in onDraw()