Home
last modified time | relevance | path

Searched refs:mPaint (Results 1 – 25 of 66) sorted by relevance

123

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/
DHistogramView.java34 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/Gallery2/src/com/android/gallery3d/filtershow/category/
DIconView.java41 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 …]
DCategorySelected.java13 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/Calendar/src/com/android/calendar/
DDayOfMonthDrawable.java35 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()
DColorChipView.java48 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/UnifiedEmail/src/com/android/mail/bitmap/
DCheckableContactFlipDrawable.java140 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/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchCircleView.java62 private final Paint mPaint = new Paint(); field in StopwatchCircleView
86 mPaint.setAntiAlias(true); in StopwatchCircleView()
87 mPaint.setStyle(Paint.Style.STROKE); in StopwatchCircleView()
109 mPaint.setColor(mRemainderColor); in onDraw()
110 mPaint.setStrokeWidth(mStrokeSize); in onDraw()
117 canvas.drawCircle(xCenter, yCenter, radius, mPaint); in onDraw()
140 canvas.drawArc(mArcRect, 270 + (1 - whitePercent) * 360, whitePercent * 360, false, mPaint); in onDraw()
143 mPaint.setColor(mCompletedColor); in onDraw()
144 canvas.drawArc(mArcRect, 270, redPercent * 360 , false, mPaint); in onDraw()
148 mPaint.setColor(mRemainderColor); in onDraw()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerCircleView.java52 private final Paint mPaint = new Paint(); field in TimerCircleView
76 mPaint.setAntiAlias(true); in TimerCircleView()
77 mPaint.setStyle(Paint.Style.STROKE); in TimerCircleView()
103 mPaint.setColor(mRemainderColor); in onDraw()
104 mPaint.setStrokeWidth(mStrokeSize); in onDraw()
110 canvas.drawCircle(xCenter, yCenter, radius, mPaint); in onDraw()
115 mPaint.setColor(mCompletedColor); in onDraw()
118 canvas.drawCircle(xCenter, yCenter, radius, mPaint); in onDraw()
132 canvas.drawArc(mArcRect, 270, whitePercent * 360, false, mPaint); in onDraw()
135 mPaint.setColor(mCompletedColor); in onDraw()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DPreloadIconDrawable.java32 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 …]
DDragView.java47 @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 …]
DClickShadowView.java33 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/PackageInstaller/src/android/support/wearable/view/
DCircledImageView.java55 private final Paint mPaint; field in CircledImageView
179 mPaint = new Paint(); in CircledImageView()
180 mPaint.setAntiAlias(true); in CircledImageView()
220 mPaint.setColor(Color.BLACK); in onDraw()
221 mPaint.setAlpha(Math.round(mPaint.getAlpha() * getAlpha())); in onDraw()
222 mPaint.setStyle(Style.FILL); in onDraw()
224 mPaint.setShader(new RadialGradient(mOval.centerX(), mOval.centerY(), radius, in onDraw()
227 canvas.drawCircle(mOval.centerX(), mOval.centerY(), radius, mPaint); in onDraw() local
228 mPaint.setShader(null); in onDraw()
237 mPaint.setColor(mCircleBorderColor); in onDraw()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageStraighten.java74 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 …]
DGradControl.java52 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/DevCamera/src/com/android/devcamera/
DPreviewOverlay.java35 private Paint mPaint; field in PreviewOverlay
55 mPaint = new Paint(); in PreviewOverlay()
56 mPaint.setColor(mColor); in PreviewOverlay()
57 mPaint.setAntiAlias(true); in PreviewOverlay()
58 mPaint.setStyle(Paint.Style.STROKE); in PreviewOverlay()
59 mPaint.setStrokeWidth(res.getDimension(R.dimen.face_circle_stroke)); in PreviewOverlay()
202 mPaint.setColor(0xFFFFFFFF); in onDraw()
203 mPaint.setTextSize(36f); in onDraw()
204 canvas.drawText(text, x2, y2 - mLens * 0.25f * previewW - 7f, mPaint); in onDraw()
216 canvas.drawRoundRect(newR1, dP, dP, mPaint); in onDraw()
[all …]
/packages/apps/Camera2/src/com/android/camera/ui/
DMarginDrawable.java35 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()
DPreviewOverlay.java296 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 …]
DFaceView.java56 private Paint mPaint; field in FaceView
80 mPaint = new Paint(); in FaceView()
81 mPaint.setAntiAlias(true); in FaceView()
82 mPaint.setStyle(Style.STROKE); in FaceView()
83 mPaint.setStrokeWidth(res.getDimension(R.dimen.face_circle_stroke)); in FaceView()
185 mPaint.setColor(mColor); in onDraw()
187 canvas.drawRect(mRect, mPaint); in onDraw()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
DStateView.java36 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/services/Car/car-support-lib/src/android/support/car/ui/
DDrawerArrowDrawable.java36 private final Paint mPaint = new Paint(); field in DrawerArrowDrawable
73 mPaint.setAntiAlias(true); in DrawerArrowDrawable()
74 mPaint.setColor(typedArray.getColor(R.styleable.DrawerArrowDrawable_carArrowColor, 0)); in DrawerArrowDrawable()
93 mPaint.setStyle(Paint.Style.STROKE); in DrawerArrowDrawable()
94 mPaint.setStrokeJoin(Paint.Join.MITER); in DrawerArrowDrawable()
95 mPaint.setStrokeCap(Paint.Cap.BUTT); in DrawerArrowDrawable()
96 mPaint.setStrokeWidth(mBarThickness); in DrawerArrowDrawable()
158 canvas.drawPath(mPath, mPaint); in draw()
165 mPaint.setAlpha(i); in setAlpha()
176 mPaint.setColorFilter(colorFilter); in setColorFilter()
/packages/apps/Launcher2/src/com/android/launcher2/
DDragView.java40 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureFloatingTextDrawingPreview.java58 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/
DBitmapJobDrawable.java41 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/
DLetterTileProvider.java54 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/Dialer/InCallUI/src/com/android/incallui/widget/multiwaveview/
DPointCloud.java36 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()

123