/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/Launcher3/src/com/android/launcher3/folder/ |
D | PreviewBackground.java | 62 private final Paint mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); field in PreviewBackground 214 mPaint.setStyle(Paint.Style.FILL); in drawBackground() 215 mPaint.setColor(getBgColor()); in drawBackground() 217 getShape().drawShape(canvas, getOffsetX(), getOffsetY(), getScaledRadius(), mPaint); in drawBackground() 228 mPaint.setStyle(Paint.Style.FILL); in drawShadow() 229 mPaint.setColor(Color.BLACK); in drawShadow() 245 mPaint.setAlpha(mShadowAlpha); in drawShadow() 246 mPaint.setShader(mShadowShader); in drawShadow() 247 canvas.drawPaint(mPaint); in drawShadow() 248 mPaint.setAlpha(255); in drawShadow() [all …]
|
/packages/apps/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/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/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/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.java | 63 private final Paint mPaint = new Paint(); field in StopwatchCircleView 87 mPaint.setAntiAlias(true); in StopwatchCircleView() 88 mPaint.setStyle(Paint.Style.STROKE); in StopwatchCircleView() 110 mPaint.setColor(mRemainderColor); in onDraw() 111 mPaint.setStrokeWidth(mStrokeSize); in onDraw() 118 canvas.drawCircle(xCenter, yCenter, radius, mPaint); in onDraw() 141 canvas.drawArc(mArcRect, 270 + (1 - whitePercent) * 360, whitePercent * 360, false, mPaint); in onDraw() 144 mPaint.setColor(mCompletedColor); in onDraw() 145 canvas.drawArc(mArcRect, 270, redPercent * 360 , false, mPaint); in onDraw() 149 mPaint.setColor(mRemainderColor); in onDraw() [all …]
|
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.java | 53 private final Paint mPaint = new Paint(); field in TimerCircleView 77 mPaint.setAntiAlias(true); in TimerCircleView() 78 mPaint.setStyle(Paint.Style.STROKE); in TimerCircleView() 104 mPaint.setColor(mRemainderColor); in onDraw() 105 mPaint.setStrokeWidth(mStrokeSize); in onDraw() 111 canvas.drawCircle(xCenter, yCenter, radius, mPaint); in onDraw() 116 mPaint.setColor(mCompletedColor); in onDraw() 119 canvas.drawCircle(xCenter, yCenter, radius, mPaint); in onDraw() 133 canvas.drawArc(mArcRect, 270, whitePercent * 360, false, mPaint); in onDraw() 136 mPaint.setColor(mCompletedColor); in onDraw() [all …]
|
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/Launcher3/go/quickstep/src/com/android/quickstep/ |
D | ThumbnailDrawable.java | 45 private final Paint mPaint = new Paint(); field in ThumbnailDrawable 59 mPaint.setShader(mShader); in ThumbnailDrawable() 60 mPaint.setAntiAlias(true); in ThumbnailDrawable() 81 canvas.drawRoundRect(mDestRect, mCornerRadius, mCornerRadius, mPaint); in draw() 93 final int oldAlpha = mPaint.getAlpha(); in setAlpha() 95 mPaint.setAlpha(alpha); in setAlpha() 102 return mPaint.getAlpha(); in getAlpha() 107 mPaint.setColorFilter(colorFilter); in setColorFilter() 113 return mPaint.getColorFilter(); in getColorFilter()
|
/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/services/Car/tests/BugReportApp/src/com/google/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/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/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/ |
D | AppsDividerView.java | 64 private final TextPaint mPaint = new TextPaint(); field in AppsDividerView 92 … mPaint.setStrokeWidth(getResources().getDimensionPixelSize(R.dimen.all_apps_divider_height)); in AppsDividerView() 158 mPaint.setColor(mStrokeColor); in updateDividerType() 165 mPaint.setColor(mAllAppsLabelTextColor); in updateDividerType() 195 canvas.drawLine(x1, y, x2, y, mPaint); in onDraw() 208 mPaint.setAntiAlias(true); in getAllAppsLabelLayout() 209 mPaint.setTypeface(Typeface.create("sans-serif-medium", Typeface.NORMAL)); in getAllAppsLabelLayout() 210 mPaint.setTextSize( in getAllAppsLabelLayout() 215 allAppsLabelText, 0, allAppsLabelText.length(), mPaint, in getAllAppsLabelLayout() 216 Math.round(mPaint.measureText(allAppsLabelText.toString()))) in getAllAppsLabelLayout()
|
/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()
|