/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
ColorBrightnessView.java | 52 private float mBorder; 56 private float mDotX = mBorder; 57 private float mDotY = mBorder; 68 mBorder = BORDER_SIZE * mDpToPix; 111 if (mDotX < mBorder) { 112 mDotX = mBorder; 115 if (mDotX > mWidth - mBorder) { 116 mDotX = mWidth - mBorder; 118 mHSVO[3] = (mDotX - mBorder) / (mWidth - mBorder * 2) [all...] |
ColorSaturationView.java | 52 private float mBorder; 56 private float mDotX = mBorder; 57 private float mDotY = mBorder; 68 mBorder = BORDER_SIZE * mDpToPix; 111 if (mDotX < mBorder) { 112 mDotX = mBorder; 115 if (mDotX > mWidth - mBorder) { 116 mDotX = mWidth - mBorder; 118 mHSVO[3] = (mDotX - mBorder) / (mWidth - mBorder * 2) [all...] |
ColorRectView.java | 47 private float mBorder; 73 mBorder = BORDER_SIZE * mDpToPix; 100 x = Math.max(Math.min(x, mWidth - mBorder), mBorder); 101 y = Math.max(Math.min(y, mHeight - mBorder), mBorder); 104 float sat = 1 - (mDotY - mBorder) / (mHeight - 2 * mBorder); 109 double hue = Math.PI * 2 * (mDotX - mBorder) / (mHeight - 2 * mBorder); [all...] |
ColorOpacityView.java | 52 private float mBorder; 56 private float mDotX = mBorder; 57 private float mDotY = mBorder; 66 mBorder = BORDER_SIZE * mDpToPix; 116 if (mDotX < mBorder) { 117 mDotX = mBorder; 120 if (mDotX > mWidth - mBorder) { 121 mDotX = mWidth - mBorder; 123 mHSVO[3] = (mDotX - mBorder) / (mWidth - mBorder * 2) [all...] |
ColorValueView.java | 46 private float mBorder; 51 private float mDotY = mBorder; 62 mBorder = BORDER_SIZE * mDpToPix; 94 if (mDotY < mBorder) { 95 mDotY = mBorder; 98 if (mDotY > mHeight - mBorder) { 99 mDotY = mHeight - mBorder; 101 mHSVO[2] = (mDotY - mBorder) / (mHeight - mBorder * 2); 113 float pos = mHSVO[2] * (mHeight - mBorder * 2) [all...] |
ColorSVRectView.java | 48 private float mBorder; 68 mBorder = BORDER_SIZE * mDpToPix; 123 mRect.top += mBorder; 124 mRect.bottom -= mBorder; 125 mRect.left += mBorder; 126 mRect.right -= mBorder; 148 x = Math.max(Math.min(x, mWidth - mBorder), mBorder); 149 y = Math.max(Math.min(y, mHeight - mBorder), mBorder); [all...] |
ColorHueView.java | 50 private float mBorder; 54 private float mDotX = mBorder; 55 private float mDotY = mBorder; 69 mBorder = BORDER_SIZE * mDpToPix; 126 if (mDotX < mBorder) { 127 mDotX = mBorder; 130 if (mDotX > mWidth - mBorder) { 131 mDotX = mWidth - mBorder; 133 mHSVO[0] = 360 * (mDotX - mBorder) / (mWidth - mBorder * 2) [all...] |
ColorCompareView.java | 49 private float mBorder; 63 mBorder = BORDER_SIZE * mDpToPix; 142 canvas.drawRect(mBorder, 0, mWidth, mHeight, mCheckPaint);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
UploadedTexture.java | 63 private int mBorder; 73 mBorder = 1; 137 int w = mBitmap.getWidth() + mBorder * 2; 138 int h = mBitmap.getHeight() + mBorder * 2; 196 canvas.texSubImage2D(this, mBorder, mBorder, bitmap, format, type); 217 int width = bWidth + mBorder * 2; 218 int height = bHeight + mBorder * 2; 236 canvas.texSubImage2D(this, mBorder, mBorder, bitmap, format, type) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
UploadedTexture.java | 63 private int mBorder; 73 mBorder = 1; 137 int w = mBitmap.getWidth() + mBorder * 2; 138 int h = mBitmap.getHeight() + mBorder * 2; 196 canvas.texSubImage2D(this, mBorder, mBorder, bitmap, format, type); 217 int width = bWidth + mBorder * 2; 218 int height = bHeight + mBorder * 2; 236 canvas.texSubImage2D(this, mBorder, mBorder, bitmap, format, type) [all...] |
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
UploadedTexture.java | 63 private int mBorder; 73 mBorder = 1; 137 int w = mBitmap.getWidth() + mBorder * 2; 138 int h = mBitmap.getHeight() + mBorder * 2; 196 canvas.texSubImage2D(this, mBorder, mBorder, bitmap, format, type); 217 int width = bWidth + mBorder * 2; 218 int height = bHeight + mBorder * 2; 236 canvas.texSubImage2D(this, mBorder, mBorder, bitmap, format, type) [all...] |
/packages/apps/Camera/src/com/android/camera/ |
PreviewFrameLayout.java | 43 private View mBorder; 55 mBorder = findViewById(R.id.preview_border); 77 mBorder.setVisibility(enabled ? View.VISIBLE : View.INVISIBLE); 81 Util.fadeOut(mBorder);
|
/packages/apps/Settings/src/com/android/settings/widget/ |
ChartGridView.java | 49 private Drawable mBorder; 73 mBorder = a.getDrawable(R.styleable.ChartGridView_borderDrawable); 117 mBorder.setBounds(0, 0, width, height); 118 mBorder.draw(canvas);
|
/frameworks/ex/carousel/test/src/com/android/carouseltest/ |
CarouselTestActivity.java | 52 private Bitmap mBorder; 157 mBorder = BitmapFactory.decodeResource(res, R.drawable.border); 158 mView.setDefaultBitmap(mBorder); 159 mView.setLoadingBitmap(mBorder);
|