/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
D | ColorBrightnessView.java | 52 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 …]
|
D | ColorSaturationView.java | 52 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 …]
|
D | ColorRectView.java | 47 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 …]
|
D | ColorValueView.java | 46 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 …]
|
D | ColorOpacityView.java | 52 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 …]
|
D | ColorSVRectView.java | 48 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() 147 x = Math.max(Math.min(x, mWidth - mBorder), mBorder); in onTouchEvent() 148 y = Math.max(Math.min(y, mHeight - mBorder), mBorder); in onTouchEvent() 151 float sat = 1 - (mDotY - mBorder) / (mHeight - 2 * mBorder); in onTouchEvent() 156 float value = (mDotX - mBorder) / (mHeight - 2 * mBorder); in onTouchEvent() [all …]
|
D | ColorHueView.java | 50 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 …]
|
D | ColorCompareView.java | 49 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/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | UploadedTexture.java | 63 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/ |
D | ChartGridView.java | 48 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()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | ChartGridView.java | 49 private Drawable mBorder; field in ChartGridView 76 mBorder = a.getDrawable(R.styleable.ChartGridView_borderDrawable); in ChartGridView() 136 mBorder.setBounds(0, 0, width, height); in onDraw() 137 mBorder.draw(canvas); in onDraw()
|