Home
last modified time | relevance | path

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

12

/packages/apps/Gallery2/src/com/android/camera/drawable/
DTextDrawable.java36 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/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DComposingView.java82 private Paint mPaint; field in ComposingView
122 mPaint = new Paint(); in ComposingView()
123 mPaint.setColor(mStrColor); in ComposingView()
124 mPaint.setAntiAlias(true); in ComposingView()
125 mPaint.setTextSize(mFontSize); in ComposingView()
127 mFmi = mPaint.getFontMetricsInt(); in ComposingView()
208 width += mPaint.measureText(str, 0, str.length()); in onMeasure()
225 mPaint.setColor(mStrColorHl); in onDraw()
231 canvas.drawText(splStr, 0, splStr.length(), x, y, mPaint); in onDraw()
245 mPaint.setColor(mStrColor); in drawForPinyin()
[all …]
DSoftKeyboardView.java117 private Paint mPaint; field in SoftKeyboardView
126 mPaint = new Paint(); in SoftKeyboardView()
127 mPaint.setAntiAlias(true); in SoftKeyboardView()
128 mFmi = mPaint.getFontMetricsInt(); in SoftKeyboardView()
420 mPaint.setTextSize(mNormalKeyTextSize); in onDraw()
422 mPaint.setTextSize(mFunctionKeyTextSize); in onDraw()
429 mPaint.setColor(0xa0000000); in onDraw()
430 canvas.drawRect(0, 0, getWidth(), getHeight(), mPaint); in onDraw()
469 mPaint.setColor(textColor); in drawSoftKey()
471 + (softKey.width() - mPaint.measureText(keyLabel)) / 2.0f; in drawSoftKey()
[all …]
/packages/apps/Settings/src/com/android/settings/users/
DCircleFramedDrawable.java44 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_ATOP)); 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/Gallery2/src/com/android/gallery3d/filtershow/category/
DCategoryView.java37 private Paint mPaint = new Paint(); field in CategoryView
78 mPaint.setTextSize(sTextSize); in drawText()
79 mPaint.setTypeface(Typeface.DEFAULT_BOLD); in drawText()
80 float textWidth = mPaint.measureText(text); in drawText()
81 mPaint.getTextBounds(text, 0, text.length(), mTextBounds); in drawText()
84 canvas.drawText(text, x, y, mPaint); in drawText()
91 mPaint.reset(); in onDraw()
92 mPaint.setAntiAlias(true); in onDraw()
97 canvas.drawBitmap(bitmap, 0, 0, mPaint); in onDraw()
105 mPaint.setColor(mBackgroundColor); in onDraw()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
DStateView.java36 private Paint mPaint = new Paint(); field in StateView
129 mPaint.reset(); in drawText()
131 mPaint.setColor(mSelectedTextColor); in drawText()
133 mPaint.setColor(mTextColor); in drawText()
136 mPaint.setColor(mEndsTextColor); in drawText()
138 mPaint.setTypeface(Typeface.DEFAULT_BOLD); in drawText()
139 mPaint.setAntiAlias(true); in drawText()
140 mPaint.setTextSize(mTextSize); in drawText()
141 mPaint.getTextBounds(mText, 0, mText.length(), mTextBounds); in drawText()
144 canvas.drawText(mText, x, y, mPaint); in drawText()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DCircleTimerView.java34 private final Paint mPaint = new Paint(); field in CircleTimerView
126 mPaint.setAntiAlias(true); in init()
127 mPaint.setStyle(Paint.Style.STROKE); in init()
146 mPaint.setStrokeWidth(mStrokeSize); in onDraw()
158 mPaint.setColor(mWhiteColor); in onDraw()
159 canvas.drawCircle (xCenter, yCenter, radius, mPaint); in onDraw()
178 mPaint.setColor(mRedColor); in onDraw()
180 canvas.drawArc (mArcRect, 270, - redPercent * 360 , false, mPaint); in onDraw()
182 canvas.drawArc (mArcRect, 270, + redPercent * 360 , false, mPaint); in onDraw()
186 mPaint.setStrokeWidth(mStrokeSize); in onDraw()
[all …]
/packages/apps/Gallery2/src/com/android/camera/ui/
DZoomRenderer.java39 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 …]
DFaceView.java64 private Paint mPaint; field in FaceView
92 mPaint = new Paint(); in FaceView()
93 mPaint.setAntiAlias(true); in FaceView()
94 mPaint.setStyle(Style.STROKE); in FaceView()
95 mPaint.setStrokeWidth(res.getDimension(R.dimen.face_circle_stroke)); in FaceView()
220 mPaint.setColor(mColor); in onDraw()
222 canvas.drawOval(mRect, mPaint); in onDraw()
/packages/apps/Camera/src/com/android/camera/ui/
DZoomRenderer.java39 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 …]
DFaceView.java63 private Paint mPaint; field in FaceView
89 mPaint = new Paint(); in FaceView()
90 mPaint.setAntiAlias(true); in FaceView()
91 mPaint.setStyle(Style.STROKE); in FaceView()
92 mPaint.setStrokeWidth(res.getDimension(R.dimen.face_circle_stroke)); in FaceView()
209 mPaint.setColor(mColor); in onDraw()
211 canvas.drawOval(mRect, mPaint); in onDraw()
/packages/apps/Camera/src/com/android/camera/drawable/
DTextDrawable.java35 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/Launcher2/src/com/android/launcher2/
DStrokedTextView.java38 private final Paint mPaint = new Paint(); field in StrokedTextView
70 mPaint.setAntiAlias(true); in init()
71 mPaint.setStyle(Paint.Style.FILL_AND_STROKE); in init()
121 mPaint.setStrokeWidth(mStrokeWidth); in onDraw()
122 mPaint.setColor(mStrokeColor); in onDraw()
123 mPaint.setTextSize(getTextSize()); in onDraw()
124 mCanvas.drawText(text, left, bottom, mPaint); in onDraw()
127 mPaint.setStrokeWidth(0); in onDraw()
128 mPaint.setColor(mTextColor); in onDraw()
129 mCanvas.drawText(text, left, bottom, mPaint); in onDraw()
[all …]
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 …]
DFastBitmapDrawable.java32 private final Paint mPaint = new Paint(Paint.FILTER_BITMAP_FLAG); field in FastBitmapDrawable
49 canvas.drawBitmap(mBitmap, null, r, mPaint); in draw()
54 mPaint.setColorFilter(cf); in setColorFilter()
65 mPaint.setAlpha(alpha); in setAlpha()
69 mPaint.setFilterBitmap(filterBitmap); in setFilterBitmap()
/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/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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureFloatingPreviewText.java56 private final Paint mPaint = new Paint(); field in GestureFloatingPreviewText.GesturePreviewTextParams
83 mPaint.setAntiAlias(true); in getTextPaint()
84 mPaint.setTextAlign(Align.CENTER); in getTextPaint()
85 mPaint.setTextSize(mGesturePreviewTextSize); in getTextPaint()
86 mPaint.setColor(mGesturePreviewTextColor); in getTextPaint()
87 return mPaint; in getTextPaint()
91 mPaint.setColor(mGesturePreviewColor); in getBackgroundPaint()
92 return mPaint; in getBackgroundPaint()
/packages/apps/Settings/src/com/android/settings/applications/
DLinearColorBar.java29 final Paint mPaint = new Paint(); field in LinearColorBar
42 mPaint.setStyle(Paint.Style.FILL); in LinearColorBar()
149 mPaint.setColor(LEFT_COLOR); in onDraw()
150 canvas.drawRect(mRect, mPaint); in onDraw()
160 mPaint.setColor(MIDDLE_COLOR); in onDraw()
161 canvas.drawRect(mRect, mPaint); in onDraw()
171 mPaint.setColor(RIGHT_COLOR); in onDraw()
172 canvas.drawRect(mRect, mPaint); in onDraw()
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/
DPointCloud.java37 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/Gallery2/src/com/android/photos/drawables/
DAutoThumbnailDrawable.java45 private Paint mPaint = new Paint(); field in AutoThumbnailDrawable
61 mPaint.setAntiAlias(true); in AutoThumbnailDrawable()
62 mPaint.setFilterBitmap(true); in AutoThumbnailDrawable()
114 canvas.drawBitmap(mBitmap, 0, 0, mPaint); in draw()
206 return (bm == null || bm.hasAlpha() || mPaint.getAlpha() < 255) ? in getOpacity()
212 int oldAlpha = mPaint.getAlpha(); in setAlpha()
214 mPaint.setAlpha(alpha); in setAlpha()
221 mPaint.setColorFilter(cf); in setColorFilter()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DCountingTimerView.java87 protected Paint mPaint; field in CountingTimerView.UnsignedTime
95 mPaint = paint; in UnsignedTime()
104 int ll = mPaint.getTextWidths(allDigits, widths); in UnsignedTime()
117 this.mPaint = unsignedTime.mPaint; in UnsignedTime()
125 mEm = mPaint.measureText(mWidest); in updateWidth()
156 canvas.drawText(time.substring(ii, ii + 1), x, y, mPaint); in drawTime() local
201 mMinusWidth = mPaint.measureText("-"); in updateWidth()
220 canvas.drawText(time.substring(ii, ii + 1), x, y, mPaint); in draw() local
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageShow.java53 protected Paint mPaint = new Paint(); field in ImageShow
332 mPaint.setARGB(200, 0, 0, 0); in onDraw()
333 mPaint.setTextSize(mTextSize); in onDraw()
336 canvas.drawRect(textRect, mPaint); in onDraw()
337 mPaint.setARGB(255, 200, 200, 200); in onDraw()
339 1.5f * mTextPadding, mPaint); in onDraw() local
346 canvas.drawBitmap(partialPreview, src, dest, mPaint); in onDraw()
397 canvas.drawBitmap(image, s, d, mPaint); in drawImage()
471 canvas.drawBitmap(mBackgroundImage, s, d, mPaint); in drawBackground()
/packages/apps/Gallery2/src/com/android/photos/views/
DTiledImageView.java230 private Paint mPaint = new Paint(); field in TiledImageView.ColoredTiles
257 mPaint.setColor(Color.BLACK); in getTile()
258 mPaint.setTextSize(20); in getTile()
259 mPaint.setTextAlign(Align.CENTER); in getTile()
260 mCanvas.drawText(x + "x" + y, 128, 128, mPaint); in getTile()
264 mCanvas.drawText(x + "x" + y + " @ " + level, 128, 30, mPaint); in getTile()

12