/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/ |
D | IconView.java | 41 private Paint mPaint = new Paint(); field in IconView 81 mPaint.setTextSize(mTextSize); in computeTextPosition() 85 mPaint.setTypeface(Typeface.DEFAULT_BOLD); in computeTextPosition() 87 mPaint.getTextBounds(text, 0, text.length(), mTextBounds); in computeTextPosition() 101 float textWidth = mPaint.measureText(text); in drawText() 112 canvas.drawText(text, x, y, mPaint); in drawText() 116 mPaint.setColor(getBackgroundColor()); in drawOutlinedText() 117 mPaint.setStyle(Paint.Style.STROKE); in drawOutlinedText() 118 mPaint.setStrokeWidth(3); in drawOutlinedText() 120 mPaint.setColor(getTextColor()); in drawOutlinedText() [all …]
|
D | CategorySelected.java | 13 private Paint mPaint = new Paint(); field in CategorySelected 22 mPaint.reset(); in onDraw() 23 mPaint.setStrokeWidth(mMargin); in onDraw() 24 mPaint.setAntiAlias(true); in onDraw() 25 mPaint.setStyle(Paint.Style.STROKE); in onDraw() 26 mPaint.setColor(Color.argb(128, 128, 128, 128)); in onDraw() 28 getWidth()/2 - mMargin, mPaint); in onDraw() local
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/ |
D | HistogramView.java | 34 private Paint mPaint = new Paint(); field in HistogramView 94 mPaint.reset(); in drawHistogram() 95 mPaint.setAntiAlias(true); in drawHistogram() 96 mPaint.setARGB(100, 255, 255, 255); in drawHistogram() 97 mPaint.setStrokeWidth((int) Math.ceil(wl)); in drawHistogram() 100 mPaint.setStyle(Paint.Style.STROKE); in drawHistogram() 101 canvas.drawRect(dx, 0, dx + w, h, mPaint); in drawHistogram() 102 canvas.drawLine(dx + w / 3, 0, dx + w / 3, h, mPaint); in drawHistogram() 103 canvas.drawLine(dx + 2 * w / 3, 0, dx + 2 * w / 3, h, mPaint); in drawHistogram() 105 mPaint.setStyle(Paint.Style.FILL); in drawHistogram() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | CircleTimerView.java | 35 private final Paint mPaint = new Paint(); field in CircleTimerView 121 mPaint.setAntiAlias(true); in init() 122 mPaint.setStyle(Paint.Style.STROKE); in init() 141 mPaint.setStrokeWidth(mStrokeSize); in onDraw() 146 mPaint.setColor(mWhiteColor); in onDraw() 147 canvas.drawCircle (xCenter, yCenter, radius, mPaint); in onDraw() 166 mPaint.setColor(mAccentColor); in onDraw() 168 canvas.drawArc (mArcRect, 270, - redPercent * 360 , false, mPaint); in onDraw() 170 canvas.drawArc (mArcRect, 270, + redPercent * 360 , false, mPaint); in onDraw() 174 mPaint.setStrokeWidth(mStrokeSize); in onDraw() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | ImageStraighten.java | 74 private final Paint mPaint = new Paint(); field in ImageStraighten 259 mPaint.reset(); in onDraw() 260 mPaint.setAntiAlias(true); in onDraw() 261 mPaint.setFilterBitmap(true); in onDraw() 262 canvas.drawBitmap(image, m, mPaint); in onDraw() 264 mPaint.setFilterBitmap(false); in onDraw() 265 mPaint.setColor(Color.WHITE); in onDraw() 266 mPaint.setStrokeWidth(2); in onDraw() 267 mPaint.setStyle(Paint.Style.FILL_AND_STROKE); in onDraw() 289 mPaint.setAlpha(alpha); in onDraw() [all …]
|
D | GradControl.java | 52 Paint mPaint = new Paint(); field in GradControl 214 mPaint.setAntiAlias(true); in paintLines() 215 mPaint.setStyle(Paint.Style.STROKE); in paintLines() 217 mPaint.setStrokeWidth(6); in paintLines() 218 mPaint.setColor(mlineShadowColor); in paintLines() 219 mPaint.setPathEffect(mDash); in paintLines() 220 paintOvallines(canvas, mPaint, p1x, p1y, p2x, p2y); in paintLines() 222 mPaint.setStrokeWidth(3); in paintLines() 223 mPaint.setColor(mLineColor); in paintLines() 224 mPaint.setPathEffect(mDash); in paintLines() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/ |
D | StateView.java | 36 private Paint mPaint = new Paint(); field in StateView 115 mPaint.reset(); in drawText() 117 mPaint.setColor(mSelectedTextColor); in drawText() 119 mPaint.setColor(mTextColor); in drawText() 122 mPaint.setColor(mEndsTextColor); in drawText() 124 mPaint.setTypeface(Typeface.DEFAULT_BOLD); in drawText() 125 mPaint.setAntiAlias(true); in drawText() 126 mPaint.setTextSize(mTextSize); in drawText() 127 mPaint.getTextBounds(mText, 0, mText.length(), mTextBounds); in drawText() 130 canvas.drawText(mText, x, y, mPaint); in drawText() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | PreloadIconDrawable.java | 32 private final Paint mPaint; field in PreloadIconDrawable 52 mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in PreloadIconDrawable() 53 mPaint.setStyle(Paint.Style.STROKE); in PreloadIconDrawable() 54 mPaint.setStrokeCap(Paint.Cap.ROUND); in PreloadIconDrawable() 65 mPaint.setStrokeWidth(ta.getDimension(R.styleable.PreloadIconDrawable_indicatorSize, 0)); in applyPreloaderTheme() 105 float inset = mPaint.getStrokeWidth() / 2; in initIndicatorRect() 124 mPaint.setAlpha((int) ((1 - mAnimationProgress) * 255)); in draw() 125 mBgDrawable.setAlpha(mPaint.getAlpha()); in draw() 127 canvas.drawOval(mIndicatorRect, mPaint); in draw() 131 mPaint.setAlpha(255); in draw() [all …]
|
D | DragView.java | 47 @Thunk Paint mPaint; field in DragView 132 mPaint = new Paint(Paint.FILTER_BITMAP_FLAG); in DragView() 212 mPaint.setAlpha(alpha); in onDraw() 214 canvas.drawBitmap(mBitmap, 0.0f, 0.0f, mPaint); in onDraw() 216 mPaint.setAlpha((int) (255 * mCrossFadeProgress)); in onDraw() 221 canvas.drawBitmap(mCrossFadeBitmap, 0.0f, 0.0f, mPaint); in onDraw() 244 if (mPaint == null) { in setColor() 245 mPaint = new Paint(Paint.FILTER_BITMAP_FLAG); in setColor() 258 mPaint.setColorFilter(new ColorMatrixColorFilter(m1)); in setColor() 263 mPaint.setColorFilter(null); in setColor() [all …]
|
D | FastBitmapDrawable.java | 65 private final Paint mPaint = new Paint(Paint.FILTER_BITMAP_FLAG); field in FastBitmapDrawable 85 canvas.drawBitmap(mBitmap, null, r, mPaint); in draw() 101 mPaint.setAlpha(alpha); in setAlpha() 106 mPaint.setFilterBitmap(filterBitmap); in setFilterBitmap() 107 mPaint.setAntiAlias(filterBitmap); in setFilterBitmap() 199 mPaint.setColorFilter(new ColorMatrixColorFilter(sGhostModeMatrix)); in updateFilter() 203 mPaint.setColorFilter(new ColorMatrixColorFilter(sTempMatrix)); in updateFilter() 212 mPaint.setColorFilter(filter); in updateFilter() 214 mPaint.setColorFilter(null); in updateFilter()
|
D | ClickShadowView.java | 33 private final Paint mPaint; field in ClickShadowView 42 mPaint = new Paint(Paint.FILTER_BITMAP_FLAG); in ClickShadowView() 43 mPaint.setColor(Color.BLACK); in ClickShadowView() 72 mPaint.setAlpha(SHADOW_LOW_ALPHA); in onDraw() 73 canvas.drawBitmap(mBitmap, 0, 0, mPaint); in onDraw() 74 mPaint.setAlpha(SHADOW_HIGH_ALPHA); in onDraw() 75 canvas.drawBitmap(mBitmap, 0, mShadowOffset, mPaint); in onDraw()
|
/packages/apps/Camera/src/com/android/camera/drawable/ |
D | TextDrawable.java | 35 private Paint mPaint; field in TextDrawable 42 mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in TextDrawable() 43 mPaint.setColor(DEFAULT_COLOR); in TextDrawable() 44 mPaint.setTextAlign(Align.CENTER); in TextDrawable() 47 mPaint.setTextSize(textSize); in TextDrawable() 48 mIntrinsicWidth = (int) (mPaint.measureText(mText, 0, mText.length()) + .5); in TextDrawable() 49 mIntrinsicHeight = mPaint.getFontMetricsInt(null); in TextDrawable() 56 bounds.centerX(), bounds.centerY(), mPaint); in draw() 61 return mPaint.getAlpha(); in getOpacity() 76 mPaint.setAlpha(alpha); in setAlpha() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
D | CheckableContactFlipDrawable.java | 140 private final Paint mPaint; field in CheckableContactFlipDrawable.CheckmarkDrawable 152 mPaint = new Paint(); in CheckmarkDrawable() 153 mPaint.setAntiAlias(true); in CheckmarkDrawable() 154 mPaint.setFilterBitmap(true); in CheckmarkDrawable() 155 mPaint.setColor(sBackgroundColor); in CheckmarkDrawable() 165 canvas.drawCircle(bounds.centerX(), bounds.centerY(), bounds.width() / 2, mPaint); in draw() local 175 final int oldAlpha = mPaint.getAlpha(); in draw() 177 mPaint.setAlpha((int) (oldAlpha * mAlphaFraction)); in draw() 178 canvas.drawBitmap(CHECKMARK, sMatrix, mPaint); in draw() 180 mPaint.setAlpha(oldAlpha); in draw() [all …]
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | ZoomRenderer.java | 39 private Paint mPaint; field in ZoomRenderer 60 mPaint = new Paint(); in ZoomRenderer() 61 mPaint.setAntiAlias(true); in ZoomRenderer() 62 mPaint.setColor(Color.WHITE); in ZoomRenderer() 63 mPaint.setStyle(Paint.Style.STROKE); in ZoomRenderer() 64 mTextPaint = new Paint(mPaint); in ZoomRenderer() 112 mPaint.setStrokeWidth(mInnerStroke); in onDraw() 113 canvas.drawCircle(mCenterX, mCenterY, mMinCircle, mPaint); in onDraw() 114 canvas.drawCircle(mCenterX, mCenterY, mMaxCircle, mPaint); in onDraw() 116 mCenterX - mMaxCircle - 4, mCenterY, mPaint); in onDraw() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | PreviewOverlay.java | 296 private final Paint mPaint; field in PreviewOverlay.ZoomProcessor 308 mPaint = new Paint(); in ZoomProcessor() 309 mPaint.setAntiAlias(true); in ZoomProcessor() 310 mPaint.setColor(Color.WHITE); in ZoomProcessor() 311 mPaint.setStyle(Paint.Style.STROKE); in ZoomProcessor() 312 mPaint.setStrokeWidth(mZoomStroke); in ZoomProcessor() 313 mPaint.setStrokeCap(Paint.Cap.ROUND); in ZoomProcessor() 340 mPaint.setAlpha(70); in draw() 344 mCenterY - mOuterRadius * (float) Math.sin(mFingerAngle), mPaint); in draw() 348 mCenterY + mOuterRadius * (float) Math.sin(mFingerAngle), mPaint); in draw() [all …]
|
D | MarginDrawable.java | 35 private final Paint mPaint; field in MarginDrawable 40 mPaint = new Paint(); in MarginDrawable() 41 mPaint.setAntiAlias(true); in MarginDrawable() 42 mPaint.setColor(color); in MarginDrawable() 62 canvas.drawRect(0, 0, cb.right, s.top + 1, mPaint); in draw() 65 canvas.drawRect(0, s.top, s.left + 1, s.bottom, mPaint); in draw() 68 canvas.drawRect(s.right - 1, s.top, cb.right, s.bottom, mPaint); in draw() 71 canvas.drawRect(0, s.bottom - 1, cb.right, cb.bottom, mPaint); in draw()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | DayOfMonthDrawable.java | 35 private final Paint mPaint; field in DayOfMonthDrawable 41 mPaint = new Paint(); in DayOfMonthDrawable() 42 mPaint.setAlpha(255); in DayOfMonthDrawable() 43 mPaint.setColor(0xFF777777); in DayOfMonthDrawable() 44 mPaint.setTypeface(Typeface.DEFAULT_BOLD); in DayOfMonthDrawable() 45 mPaint.setTextSize(mTextSize); in DayOfMonthDrawable() 46 mPaint.setTextAlign(Paint.Align.CENTER); in DayOfMonthDrawable() 51 mPaint.getTextBounds(mDayOfMonth, 0, mDayOfMonth.length(), mTextBounds); in draw() 55 mPaint); in draw() 60 mPaint.setAlpha(alpha); in setAlpha()
|
D | ColorChipView.java | 48 private Paint mPaint; field in ColorChipView 67 mPaint = new Paint(); in init() 68 mDefStrokeWidth = mPaint.getStrokeWidth(); in init() 69 mPaint.setStyle(Style.FILL_AND_STROKE); in init() 98 mPaint.setColor(mDrawStyle == DRAW_FADED ? in onDraw() 104 mPaint.setStrokeWidth(mDefStrokeWidth); in onDraw() 105 c.drawRect(0, 0, right, bottom, mPaint); in onDraw() 114 mPaint.setStrokeWidth(mBorderWidth); in onDraw() 134 c.drawLines(lines, mPaint); in onDraw()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | DragView.java | 40 private Paint mPaint; field in DragView 120 mPaint = new Paint(Paint.FILTER_BITMAP_FLAG); in DragView() 187 mPaint.setAlpha(alpha); in onDraw() 189 canvas.drawBitmap(mBitmap, 0.0f, 0.0f, mPaint); in onDraw() 191 mPaint.setAlpha((int) (255 * mCrossFadeProgress)); in onDraw() 196 canvas.drawBitmap(mCrossFadeBitmap, 0.0f, 0.0f, mPaint); in onDraw() 219 if (mPaint == null) { in setColor() 220 mPaint = new Paint(Paint.FILTER_BITMAP_FLAG); in setColor() 223 mPaint.setColorFilter(new PorterDuffColorFilter(color, PorterDuff.Mode.SRC_ATOP)); in setColor() 225 mPaint.setColorFilter(null); in setColor() [all …]
|
/packages/apps/Settings/src/com/android/settings/drawable/ |
D | CircleFramedDrawable.java | 44 private final Paint mPaint; field in CircleFramedDrawable 78 mPaint = new Paint(); in CircleFramedDrawable() 79 mPaint.setAntiAlias(true); in CircleFramedDrawable() 80 mPaint.setColor(Color.BLACK); in CircleFramedDrawable() 81 mPaint.setStyle(Paint.Style.FILL); in CircleFramedDrawable() 82 canvas.drawPath(fillPath, mPaint); in CircleFramedDrawable() 85 mPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN)); in CircleFramedDrawable() 86 canvas.drawBitmap(icon, cropRect, circleRect, mPaint); in CircleFramedDrawable() 89 mPaint.setXfermode(null); in CircleFramedDrawable()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | GestureFloatingTextDrawingPreview.java | 58 private final Paint mPaint = new Paint(); field in GestureFloatingTextDrawingPreview.GesturePreviewTextParams 86 mPaint.setAntiAlias(true); in getTextPaint() 87 mPaint.setTextAlign(Align.CENTER); in getTextPaint() 88 mPaint.setTextSize(mGesturePreviewTextSize); in getTextPaint() 89 mPaint.setColor(mGesturePreviewTextColor); in getTextPaint() 90 return mPaint; in getTextPaint() 94 mPaint.setColor(mGesturePreviewColor); in getBackgroundPaint() 95 return mPaint; in getBackgroundPaint()
|
/packages/apps/Gallery2/src/com/android/photos/shims/ |
D | BitmapJobDrawable.java | 41 private Paint mPaint = new Paint(); field in BitmapJobDrawable 91 canvas.drawBitmap(mBitmap, 0, 0, mPaint); in draw() 94 mPaint.setColor(0xFFCCCCCC); in draw() 95 canvas.drawRect(bounds, mPaint); in draw() 141 return (bm == null || bm.hasAlpha() || mPaint.getAlpha() < 255) ? in getOpacity() 147 int oldAlpha = mPaint.getAlpha(); in setAlpha() 149 mPaint.setAlpha(alpha); in setAlpha() 156 mPaint.setColorFilter(cf); in setColorFilter()
|
/packages/apps/UnifiedEmail/src/com/android/mail/photomanager/ |
D | LetterTileProvider.java | 54 private final TextPaint mPaint = new TextPaint(); field in LetterTileProvider 71 mPaint.setTypeface(mSansSerifLight); in LetterTileProvider() 72 mPaint.setColor(mTileFontColor); in LetterTileProvider() 73 mPaint.setTextAlign(Align.CENTER); in LetterTileProvider() 74 mPaint.setAntiAlias(true); in LetterTileProvider() 104 mPaint.setTextSize( in getLetterTile() 106 mPaint.getTextBounds(mFirstChar, 0, 1, mBounds); in getLetterTile() 108 0 + dimensions.height / 2 + (mBounds.bottom - mBounds.top) / 2, mPaint); in getLetterTile()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/ |
D | LetterTileDrawable.java | 46 private final Paint mPaint; field in LetterTileDrawable 76 mPaint = new Paint(); in LetterTileDrawable() 77 mPaint.setFilterBitmap(true); in LetterTileDrawable() 78 mPaint.setDither(true); in LetterTileDrawable() 128 canvas.drawBitmap(bitmap, sRect, destRect, mPaint); in drawBitmap() 135 sPaint.setAlpha(mPaint.getAlpha()); in drawLetterTile() 206 mPaint.setAlpha(alpha); in setAlpha() 211 mPaint.setColorFilter(cf); in setColorFilter()
|
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/ |
D | PointCloud.java | 36 private Paint mPaint; field in PointCloud 118 mPaint = new Paint(); in PointCloud() 119 mPaint.setFilterBitmap(true); in PointCloud() 120 mPaint.setColor(Color.rgb(255, 255, 255)); // TODO: make configurable in PointCloud() 121 mPaint.setAntiAlias(true); in PointCloud() 122 mPaint.setDither(true); in PointCloud() 228 mPaint.setAlpha(alpha); in draw() 229 canvas.drawCircle(px, py, pointSize, mPaint); in draw()
|