/packages/apps/Camera2/src/com/android/camera/drawable/ |
D | TextDrawable.java | 36 private Paint mPaint; field in TextDrawable 51 mPaint.setTextSize(textSize); in TextDrawable() 52 mIntrinsicWidth = (int) (mPaint.measureText(mText, 0, mText.length()) + .5); in TextDrawable() 53 mIntrinsicHeight = mPaint.getFontMetricsInt(null); in TextDrawable() 57 if (mPaint == null) { in updatePaint() 58 mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in updatePaint() 60 mPaint.setColor(DEFAULT_COLOR); in updatePaint() 61 mPaint.setTextAlign(Align.CENTER); in updatePaint() 63 mPaint.setTypeface(Typeface.DEFAULT_BOLD); in updatePaint() 64 mPaint.setShadowLayer(10, 0, 0, 0xff000000); in updatePaint() [all …]
|
/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/Settings/src/com/android/settings/drawable/ |
D | CircleFramedDrawable.java | 44 private final Paint mPaint; field in CircleFramedDrawable 103 mPaint = new Paint(); in CircleFramedDrawable() 104 mPaint.setAntiAlias(true); in CircleFramedDrawable() 105 mPaint.setColor(Color.BLACK); in CircleFramedDrawable() 106 mPaint.setStyle(Paint.Style.FILL); in CircleFramedDrawable() 107 canvas.drawPath(fillPath, mPaint); in CircleFramedDrawable() 110 mPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN)); in CircleFramedDrawable() 111 canvas.drawBitmap(icon, cropRect, circleRect, mPaint); in CircleFramedDrawable() 114 mPaint.setXfermode(null); in CircleFramedDrawable() 141 mPaint.setStyle(Paint.Style.FILL); in draw() [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() 66 mPaint.setStrokeWidth(ta.getDimension(R.styleable.PreloadIconDrawable_indicatorSize, 0)); in applyTheme() 106 float inset = mPaint.getStrokeWidth() / 2; in initIndicatorRect() 125 mPaint.setAlpha((int) ((1 - mAnimationProgress) * 255)); in draw() 126 mBgDrawable.setAlpha(mPaint.getAlpha()); in draw() 128 canvas.drawOval(mIndicatorRect, mPaint); in draw() 132 mPaint.setAlpha(255); in draw() [all …]
|
D | DragView.java | 37 private Paint mPaint; field in DragView 120 mPaint = new Paint(Paint.FILTER_BITMAP_FLAG); in DragView() 196 mPaint.setAlpha(alpha); in onDraw() 198 canvas.drawBitmap(mBitmap, 0.0f, 0.0f, mPaint); in onDraw() 200 mPaint.setAlpha((int) (255 * mCrossFadeProgress)); in onDraw() 205 canvas.drawBitmap(mCrossFadeBitmap, 0.0f, 0.0f, mPaint); in onDraw() 228 if (mPaint == null) { in setColor() 229 mPaint = new Paint(Paint.FILTER_BITMAP_FLAG); in setColor() 232 mPaint.setColorFilter(new PorterDuffColorFilter(color, PorterDuff.Mode.SRC_ATOP)); in setColor() 234 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()
|
/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/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/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/Camera2/src/com/android/camera/ui/ |
D | PreviewOverlay.java | 231 private final Paint mPaint; field in PreviewOverlay.ZoomProcessor 243 mPaint = new Paint(); in ZoomProcessor() 244 mPaint.setAntiAlias(true); in ZoomProcessor() 245 mPaint.setColor(Color.WHITE); in ZoomProcessor() 246 mPaint.setStyle(Paint.Style.STROKE); in ZoomProcessor() 247 mPaint.setStrokeWidth(mZoomStroke); in ZoomProcessor() 248 mPaint.setStrokeCap(Paint.Cap.ROUND); in ZoomProcessor() 276 mPaint.setAlpha(70); in draw() 280 mCenterY - mOuterRadius * (float) Math.sin(mFingerAngle), mPaint); in draw() 284 mCenterY + mOuterRadius * (float) Math.sin(mFingerAngle), mPaint); in draw() [all …]
|
/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/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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | GestureFloatingTextDrawingPreview.java | 56 private final Paint mPaint = new Paint(); field in GestureFloatingTextDrawingPreview.GesturePreviewTextParams 84 mPaint.setAntiAlias(true); in getTextPaint() 85 mPaint.setTextAlign(Align.CENTER); in getTextPaint() 86 mPaint.setTextSize(mGesturePreviewTextSize); in getTextPaint() 87 mPaint.setColor(mGesturePreviewTextColor); in getTextPaint() 88 return mPaint; in getTextPaint() 92 mPaint.setColor(mGesturePreviewColor); in getBackgroundPaint() 93 return mPaint; in getBackgroundPaint()
|
/packages/apps/UnifiedEmail/src/com/android/mail/photomanager/ |
D | LetterTileProvider.java | 56 private final TextPaint mPaint = new TextPaint(); field in LetterTileProvider 74 mPaint.setTypeface(mSansSerifLight); in LetterTileProvider() 75 mPaint.setColor(mTileFontColor); in LetterTileProvider() 76 mPaint.setTextAlign(Align.CENTER); in LetterTileProvider() 77 mPaint.setAntiAlias(true); in LetterTileProvider() 109 mPaint.setTextSize(getFontSize(dimensions.scale)); in getLetterTile() 110 mPaint.getTextBounds(mFirstChar, 0, 1, mBounds); in getLetterTile() 112 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 | 37 private Paint mPaint; field in PointCloud 119 mPaint = new Paint(); in PointCloud() 120 mPaint.setFilterBitmap(true); in PointCloud() 121 mPaint.setColor(Color.rgb(255, 255, 255)); // TODO: make configurable in PointCloud() 122 mPaint.setAntiAlias(true); in PointCloud() 123 mPaint.setDither(true); in PointCloud() 229 mPaint.setAlpha(alpha); in draw() 230 canvas.drawCircle(px, py, pointSize, mPaint); in draw()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | LinearColorBar.java | 40 final Paint mPaint = new Paint(); field in LinearColorBar 65 mPaint.setStyle(Paint.Style.FILL); in LinearColorBar() 245 mPaint.setColor(pickColor(mLeftColor, REGION_RED)); in onDraw() 246 canvas.drawRect(mRect, mPaint); in onDraw() 259 mPaint.setColor(pickColor(mMiddleColor, REGION_YELLOW)); in onDraw() 260 canvas.drawRect(mRect, mPaint); in onDraw() 270 mPaint.setColor(pickColor(mRightColor, REGION_GREEN)); in onDraw() 271 canvas.drawRect(mRect, mPaint); in onDraw()
|