/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/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/Launcher3/src/com/android/launcher3/folder/ |
D | PreviewBackground.java | 66 private final Paint mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); field in PreviewBackground 239 mPaint.setStyle(Paint.Style.FILL); in drawBackground() 240 mPaint.setColor(getBgColor()); in drawBackground() 242 getShape().drawShape(canvas, getOffsetX(), getOffsetY(), getScaledRadius(), mPaint); in drawBackground() 256 mPaint.setStyle(Paint.Style.FILL); in drawShadow() 257 mPaint.setColor(Color.BLACK); in drawShadow() 273 mPaint.setAlpha(mShadowAlpha); in drawShadow() 274 mPaint.setShader(mShadowShader); in drawShadow() 275 canvas.drawPaint(mPaint); in drawShadow() 276 mPaint.setAlpha(255); in drawShadow() [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()
|
/packages/apps/Settings/src/com/android/settings/biometrics/face/ |
D | AnimationParticle.java | 58 private final Paint mPaint; field in AnimationParticle 90 mPaint = new Paint(); in AnimationParticle() 92 mPaint.setColor(mAssignedColor); in AnimationParticle() 93 mPaint.setAntiAlias(true); in AnimationParticle() 94 mPaint.setStrokeWidth(mCurrentSize); in AnimationParticle() 95 mPaint.setStyle(Paint.Style.FILL); in AnimationParticle() 96 mPaint.setStrokeCap(Paint.Cap.ROUND); in AnimationParticle() 105 mPaint.setStyle(Paint.Style.STROKE); in updateState() 160 mPaint.setColor(color); in updateDot() 161 mPaint.setStrokeWidth(mCurrentSize); in updateDot() [all …]
|
/packages/modules/Permission/PermissionController/src/android/support/wearable/view/ |
D | CircledImageView.java | 54 private final Paint mPaint; field in CircledImageView 178 mPaint = new Paint(); in CircledImageView() 179 mPaint.setAntiAlias(true); in CircledImageView() 219 mPaint.setColor(Color.BLACK); in onDraw() 220 mPaint.setAlpha(Math.round(mPaint.getAlpha() * getAlpha())); in onDraw() 221 mPaint.setStyle(Style.FILL); in onDraw() 223 mPaint.setShader(new RadialGradient(mOval.centerX(), mOval.centerY(), radius, in onDraw() 226 canvas.drawCircle(mOval.centerX(), mOval.centerY(), radius, mPaint); in onDraw() local 227 mPaint.setShader(null); in onDraw() 236 mPaint.setColor(mCircleBorderColor); 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/DeskClock/src/com/android/deskclock/stopwatch/ |
D | StopwatchCircleView.kt | 65 private val mPaint: Paint = Paint() constant 85 mPaint.setAntiAlias(true) 86 mPaint.setStyle(Paint.Style.STROKE) 107 mPaint.setColor(mRemainderColor) in onDraw() 108 mPaint.setStrokeWidth(mStrokeSize) in onDraw() 114 canvas.drawCircle(xCenter.toFloat(), yCenter.toFloat(), radius, mPaint) in onDraw() 137 canvas.drawArc(mArcRect, 270 + (1 - whitePercent) * 360, whitePercent * 360, false, mPaint) in onDraw() 140 mPaint.setColor(mCompletedColor) in onDraw() 141 canvas.drawArc(mArcRect, 270f, redPercent * 360, false, mPaint) in onDraw() 145 mPaint.setColor(mRemainderColor) in onDraw() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerCircleView.kt | 58 private val mPaint = Paint() constant 75 mPaint.isAntiAlias = true 76 mPaint.style = Paint.Style.STROKE 101 mPaint.color = mRemainderColor in onDraw() 102 mPaint.strokeWidth = mStrokeSize in onDraw() 109 canvas.drawCircle(xCenter.toFloat(), yCenter.toFloat(), radius, mPaint) in onDraw() 115 mPaint.color = mCompletedColor in onDraw() 118 canvas.drawCircle(xCenter.toFloat(), yCenter.toFloat(), radius, mPaint) in onDraw() 134 canvas.drawArc(mArcRect, 270f, whitePercent * 360, false, mPaint) in onDraw() 137 mPaint.color = mCompletedColor in onDraw() [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/DevCamera/src/com/android/devcamera/ |
D | PreviewOverlay.java | 35 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/ |
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/EmergencyInfo/src/com/android/emergency/ |
D | CircleFramedDrawable.java | 41 private final Paint mPaint; field in CircleFramedDrawable 75 mPaint = new Paint(); in CircleFramedDrawable() 76 mPaint.setAntiAlias(true); in CircleFramedDrawable() 77 mPaint.setColor(Color.BLACK); in CircleFramedDrawable() 78 mPaint.setStyle(Paint.Style.FILL); in CircleFramedDrawable() 79 canvas.drawPath(fillPath, mPaint); in CircleFramedDrawable() 82 mPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN)); in CircleFramedDrawable() 83 canvas.drawBitmap(icon, cropRect, circleRect, mPaint); in CircleFramedDrawable() 86 mPaint.setXfermode(null); in CircleFramedDrawable()
|
/packages/apps/Car/tests/RotaryPlayground/src/com/android/car/rotaryplayground/ |
D | DirectManipulationView.java | 53 private Paint mPaint; field in DirectManipulationView 86 mPaint); in onDraw() local 111 mPaint = new Paint(); in init() 112 mPaint.setColor(Color.GREEN); in init() 113 mPaint.setAntiAlias(true); in init() 114 mPaint.setStrokeWidth(5); in init() 115 mPaint.setStyle(Paint.Style.FILL_AND_STROKE); in init() 116 mPaint.setStrokeJoin(Paint.Join.ROUND); in init() 117 mPaint.setStrokeCap(Paint.Cap.ROUND); in init()
|
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/ |
D | VoiceRecordingView.java | 43 private final Paint mPaint; field in VoiceRecordingView 54 mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in VoiceRecordingView() 55 mPaint.setColor(Color.LTGRAY); in VoiceRecordingView() 56 mPaint.setStyle(Paint.Style.FILL); in VoiceRecordingView() 110 canvas.drawCircle(mx, my, height / 2, mPaint); in onDraw() 111 canvas.drawCircle(mx - mCurrentRadius, my, height / 2, mPaint); in onDraw() 112 canvas.drawCircle(mx + mCurrentRadius, my, height / 2, mPaint); in onDraw() 113 canvas.drawRect(mx - mCurrentRadius, 0, mx + mCurrentRadius, height, mPaint); in onDraw()
|
/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
D | DaveyView.java | 37 private Paint mPaint; field in DaveyView 53 mPaint = new Paint(); in DaveyView() 54 mPaint.setColor(Color.BLACK); in DaveyView() 55 mPaint.setTextSize(20); in DaveyView() 56 FontMetrics metric = mPaint.getFontMetrics(); in DaveyView() 70 canvas.drawText("Davey!", 0, mTexty, mPaint); in onDraw() 74 canvas.drawText("No Davey", 0, mTexty, mPaint); in onDraw()
|
/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
D | RoundedArrowDrawable.java | 42 private final Paint mPaint; field in RoundedArrowDrawable 64 mPaint = new Paint(); in RoundedArrowDrawable() 65 mPaint.setColor(color); in RoundedArrowDrawable() 66 mPaint.setStyle(Paint.Style.FILL); in RoundedArrowDrawable() 67 mPaint.setAntiAlias(true); in RoundedArrowDrawable() 83 canvas.drawPath(mPath, mPaint); in draw() 98 mPaint.setAlpha(i); in setAlpha() 103 mPaint.setColorFilter(colorFilter); in setColorFilter()
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | LetterTileDrawable.java | 56 private final Paint mPaint; field in LetterTileDrawable 81 mPaint = new Paint(); in LetterTileDrawable() 82 mPaint.setFilterBitmap(true); in LetterTileDrawable() 83 mPaint.setDither(true); in LetterTileDrawable() 148 drawable.setAlpha(mPaint.getAlpha()); in drawDrawableOnCanvas() 159 mPaint.setColor(mColor); in drawLetterTile() 161 canvas.drawCircle(bounds.centerX(), bounds.centerY(), minDimension / 2, mPaint); in drawLetterTile() local 163 canvas.drawRect(bounds, mPaint); in drawLetterTile() 215 mPaint.setAlpha(alpha); in setAlpha() 220 mPaint.setColorFilter(cf); in setColorFilter()
|
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/draw/ |
D | CanvasView.java | 31 private final Paint mPaint; field in CanvasView 40 mPaint = new Paint(); in CanvasView() 41 mPaint.setStyle(Paint.Style.STROKE); in CanvasView() 42 mPaint.setStrokeJoin(Paint.Join.ROUND); in CanvasView() 43 mPaint.setStrokeWidth(4f); in CanvasView() 44 mPaint.setColor(Color.WHITE); in CanvasView() 50 canvas.drawPath(mPath, mPaint); in onDraw()
|
/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/Launcher3/quickstep/src/com/android/launcher3/appprediction/ |
D | AppsDividerView.java | 62 private final TextPaint mPaint = new TextPaint(); field in AppsDividerView 161 mPaint.setColor(mStrokeColor); in updateDividerType() 168 mPaint.setColor(mAllAppsLabelTextColor); in updateDividerType() 198 mPaint); in onDraw() 211 mPaint.setAntiAlias(true); in getAllAppsLabelLayout() 212 mPaint.setTypeface(Typeface.create("sans-serif-medium", Typeface.NORMAL)); in getAllAppsLabelLayout() 213 mPaint.setTextSize( in getAllAppsLabelLayout() 218 allAppsLabelText, 0, allAppsLabelText.length(), mPaint, in getAllAppsLabelLayout() 219 Math.round(mPaint.measureText(allAppsLabelText.toString()))) in getAllAppsLabelLayout()
|