Home
last modified time | relevance | path

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

1234

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DScaledTextActivity.java49 private final Paint mPaint; field in ScaledTextActivity.ScaledTextView
61 mPaint = new Paint(); in ScaledTextView()
62 mPaint.setAntiAlias(true); in ScaledTextView()
63 mPaint.setTextSize(20.0f); in ScaledTextView()
97 canvas.drawText(TEXT, 30.0f, 30.0f, mPaint); in onDraw()
98 mPaint.setTextAlign(Paint.Align.CENTER); in onDraw()
99 canvas.drawText(TEXT, 30.0f, 50.0f, mPaint); in onDraw()
100 mPaint.setTextAlign(Paint.Align.RIGHT); in onDraw()
101 canvas.drawText(TEXT, 30.0f, 70.0f, mPaint); in onDraw()
106 mPaint.setTextAlign(Paint.Align.LEFT); in onDraw()
[all …]
DTJunctionActivity.java35 private final Paint mPaint; field in TJunctionActivity.TJunctionView
42 mPaint = new Paint(); in TJunctionView()
49 mPaint.setColor(0xffff0000); in onDraw()
52 canvas.drawRect(0.0f, 0.0f, 100.0f, 50.0f, mPaint); in onDraw()
54 mPaint.setColor(0xff00ff00); in onDraw()
57 canvas.drawRect(0.0f, 0.0f, 100.0f, 50.0f, mPaint); in onDraw()
59 mPaint.setColor(0xff0000ff); in onDraw()
62 canvas.drawRect(0.0f, 0.0f, 100.0f, 50.0f, mPaint); in onDraw()
64 mPaint.setColor(0xffffffff); in onDraw()
67 canvas.drawRect(0.0f, 0.0f, 100.0f, 50.0f, mPaint); in onDraw()
[all …]
DGradientsActivity.java92 private final Paint mPaint; field in GradientsActivity.BitmapView
100 mPaint = new Paint(); in BitmapView()
101 mPaint.setShader(shader); in BitmapView()
113 canvas.drawRect(0.0f, 0.0f, getWidth(), getHeight(), mPaint); in onDraw()
118 private final Paint mPaint; field in GradientsActivity.GradientView
125 mPaint = new Paint(); in GradientView()
126 mPaint.setShader(gradient); in GradientView()
138 canvas.drawRect(0.0f, 0.0f, getWidth(), getHeight(), mPaint); in onDraw()
143 private final Paint mPaint; field in GradientsActivity.RadialGradientView
150 mPaint = new Paint(); in RadialGradientView()
[all …]
DAdvancedGradientsActivity.java40 private final Paint mPaint; field in AdvancedGradientsActivity.GradientsView
65 mPaint = new Paint(); in GradientsView()
77 mPaint.setShader(mSweepGradient); in onDraw()
78 canvas.drawRect(0.0f, 0.0f, 200.0f, 200.0f, mPaint); in onDraw()
83 mPaint.setShader(mSweepGradient); in onDraw()
84 canvas.drawRect(0.0f, 0.0f, 200.0f, 200.0f, mPaint); in onDraw()
89 mPaint.setShader(mSweepGradient); in onDraw()
90 canvas.drawRect(0.0f, 0.0f, 200.0f, 200.0f, mPaint); in onDraw()
95 mPaint.setShader(mRadialGradient); in onDraw()
96 canvas.drawRect(0.0f, 0.0f, 200.0f, 200.0f, mPaint); in onDraw()
[all …]
DFramebufferBlendActivity.java46 private Paint mPaint; field in FramebufferBlendActivity.BlendView
60 mPaint = new Paint(); in BlendView()
88 mPaint.setShader(null); in drawBlendedBitmap()
89 mPaint.setXfermode(null); in drawBlendedBitmap()
90 canvas.drawBitmap(mTexture, 0.0f, 0.0f, mPaint); in drawBlendedBitmap()
92 mPaint.setShader(mHorGradient); in drawBlendedBitmap()
93 mPaint.setXfermode(new PorterDuffXfermode(mode)); in drawBlendedBitmap()
94 canvas.drawRect(0.0f, 0.0f, mTexWidth, mTexHeight, mPaint); in drawBlendedBitmap()
100 mPaint.setXfermode(null); in drawBlendedBitmapInverse()
101 mPaint.setShader(mHorGradient); in drawBlendedBitmapInverse()
[all …]
DAlphaLayersActivity.java72 private final Paint mPaint; field in AlphaLayersActivity.DirtyBitmapView
76 mPaint = new Paint(); in DirtyBitmapView()
83 mPaint.setColor(0xffff0000); in dispatchDraw()
84 canvas.drawRect(200.0f, 0.0f, 220.0f, 20.0f, mPaint); in dispatchDraw()
119 mPaint.setColor(0xff00ff00); in dispatchDraw()
120 canvas.drawRect(0.0f, 0.0f, 20.0f, 20.0f, mPaint); in dispatchDraw()
122 mPaint.setColor(0xff0000ff); in dispatchDraw()
123 canvas.drawRect(20.0f, 0.0f, 40.0f, 20.0f, mPaint); in dispatchDraw()
130 mPaint.setColor(0xff0000ff); in dispatchDraw()
131 canvas.drawRect(0.0f, 100.0f, 40.0f, 150.0f, mPaint); in dispatchDraw()
[all …]
DShadersActivity.java48 private Paint mPaint; field in ShadersActivity.ShadersView
98 mPaint = new Paint(); in ShadersView()
111 mPaint.setShader(mRepeatShader); in onDraw()
112 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
115 mPaint.setShader(mTranslatedShader); in onDraw()
116 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
119 mPaint.setShader(mScaledShader); in onDraw()
120 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
128 mPaint.setShader(mHorGradient); in onDraw()
129 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
[all …]
DAdvancedBlendActivity.java48 private Paint mPaint; field in AdvancedBlendActivity.ShadersView
97 mPaint = new Paint(); in ShadersView()
108 mPaint.setShader(mComposeShader); in onDraw()
109 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
112 mPaint.setShader(mCompose2Shader); in onDraw()
113 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
116 mPaint.setShader(mCompose3Shader); in onDraw()
117 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
124 mPaint.setShader(mCompose4Shader); in onDraw()
125 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
[all …]
DTextOnPathActivity.java71 private final Paint mPaint; field in TextOnPathActivity.TextOnPathView
83 mPaint = new Paint(); in TextOnPathView()
84 mPaint.setAntiAlias(true); in TextOnPathView()
85 mPaint.setColor(0xff000000); in TextOnPathView()
114 mPaint.setTextAlign(Paint.Align.LEFT); in onDraw()
115 canvas.drawTextOnPath(mText + mText, mPath, 0.0f, 0.0f, mPaint); in onDraw()
128 canvas.drawTextOnPath(mText + mText, mStraightPath, 0.0f, 0.0f, mPaint); in onDraw()
135 canvas.drawTextOnPath(mText, mPath, 0.0f, 10.0f, mPaint); in onDraw()
142 mPaint.setTextAlign(Paint.Align.CENTER); in onDraw()
143 canvas.drawTextOnPath(mText, mPath, 0.0f, 0.0f, mPaint); in onDraw()
[all …]
DRotationActivity.java43 private final Paint mPaint; field in RotationActivity.DrawingView
47 mPaint = new Paint(); in DrawingView()
48 mPaint.setAntiAlias(true); in DrawingView()
57 mPaint.setColor(0xffff0000); in onDraw()
58 canvas.drawRect(-80.0f, -80.0f, 80.0f, 80.0f, mPaint); in onDraw()
59 canvas.drawRect(0.0f, 0.0f, 220.0f, 220.0f, mPaint); in onDraw()
DPixelCopyWindow.java51 Paint mPaint = new Paint(); in onCreate()
55 mPaint.setStyle(Style.STROKE); in onCreate()
56 mPaint.setStrokeWidth(4 * density); in onCreate()
57 mPaint.setColor(Color.BLUE); in onCreate()
59 canvas.drawRect(bounds, mPaint); in onCreate()
60 mPaint.setColor(Color.RED); in onCreate()
61 canvas.drawLine(bounds.centerX(), 0, bounds.centerX(), bounds.height(), mPaint); in onCreate()
62 mPaint.setColor(Color.GREEN); in onCreate()
63 canvas.drawLine(0, bounds.centerY(), bounds.width(), bounds.centerY(), mPaint); in onCreate()
DPathOffsetActivity.java40 private Paint mPaint; field in PathOffsetActivity.PathsView
45 mPaint = new Paint(); in PathsView()
46 mPaint.setStyle(Paint.Style.STROKE); in PathsView()
47 mPaint.setStrokeWidth(3); in PathsView()
57 mPaint.setColor(Color.RED); in onDraw()
58 canvas.drawPath(mPath, mPaint); in onDraw()
DRotate3dTextActivity.java62 private final Paint mPaint; field in Rotate3dTextActivity.Rotate3dTextView
67 mPaint = new Paint(); in Rotate3dTextView()
68 mPaint.setAntiAlias(true); in Rotate3dTextView()
69 mPaint.setTextSize(50.0f); in Rotate3dTextView()
70 mPaint.setTextAlign(Paint.Align.CENTER); in Rotate3dTextView()
79 canvas.drawText(TEXT, getWidth() / 2.0f, getHeight() / 2.0f, mPaint); in onDraw()
DPathOpsActivity.java39 private final Paint mPaint; field in PathOpsActivity.PathsView
47 mPaint = new Paint(); in PathsView()
48 mPaint.setAntiAlias(true); in PathsView()
49 mPaint.setStyle(Paint.Style.FILL); in PathsView()
50 mPaint.setColor(Color.RED); in PathsView()
82 canvas.drawPath(path, mPaint); in onDraw()
DSmallCircleActivity.java48 private final Paint mPaint; field in SmallCircleActivity.PathView
58 mPaint = new Paint(); in PathView()
59 mPaint.setAntiAlias(true); in PathView()
60 mPaint.setColor(0xff00ffff); in PathView()
67 canvas.drawPath(mPath, mPaint); in onDraw()
/frameworks/base/core/java/android/text/
DPrecomputedText.java87 private final @NonNull TextPaint mPaint; field in PrecomputedText.Params
103 private final @NonNull TextPaint mPaint; field in PrecomputedText.Params.Builder
121 mPaint = paint; in Builder()
128 mPaint = params.mPaint; in Builder()
184 return new Params(mPaint, mTextDir, mBreakStrategy, mHyphenationFrequency); in build()
193 mPaint = paint; in Params()
205 return mPaint; in getTextPaint()
266 && mPaint.equalsForTextMeasurement(paint)) { in checkResultUsable()
287 return checkResultUsable(param.mPaint, param.mTextDir, param.mBreakStrategy, in equals()
294 return Objects.hash(mPaint.getTextSize(), mPaint.getTextScaleX(), mPaint.getTextSkewX(), in hashCode()
[all …]
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DTileDrawable.java37 private final Paint mPaint = new Paint(); field in TileDrawable
94 if (!isVisible() && mPaint.getAlpha() == 0) { in draw()
97 final int alpha = mPaint.getAlpha(); in draw()
98 mPaint.setColor(mOpts.backgroundColor); in draw()
99 mPaint.setAlpha(alpha); in draw()
100 canvas.drawRect(getBounds(), mPaint); in draw() local
106 final int old = mPaint.getAlpha(); in setAlpha()
107 mPaint.setAlpha(alpha); in setAlpha()
116 mPaint.setColorFilter(cf); in setColorFilter()
126 return mPaint.getAlpha(); in getCurrentAlpha()
[all …]
/frameworks/base/core/java/com/android/internal/colorextraction/drawable/
DScrimDrawable.java42 private final Paint mPaint; field in ScrimDrawable
49 mPaint = new Paint(); in ScrimDrawable()
50 mPaint.setStyle(Paint.Style.FILL); in ScrimDrawable()
111 mPaint.setXfermode(mode); in setXfermode()
117 mPaint.setColorFilter(colorFilter); in setColorFilter()
122 return mPaint.getColorFilter(); in getColorFilter()
132 mPaint.setColor(mMainColor); in draw()
133 mPaint.setAlpha(mAlpha); in draw()
134 canvas.drawRect(getBounds(), mPaint); in draw() local
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
DCircleFramedDrawable.java44 private final Paint mPaint; field in CircleFramedDrawable
78 mPaint = new Paint(); in CircleFramedDrawable()
79 mPaint.setAntiAlias(true); in CircleFramedDrawable()
80 mPaint.setColor(Color.BLACK); in CircleFramedDrawable()
81 mPaint.setStyle(Paint.Style.FILL); in CircleFramedDrawable()
82 canvas.drawPath(fillPath, mPaint); in CircleFramedDrawable()
85 mPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN)); in CircleFramedDrawable()
86 canvas.drawBitmap(icon, cropRect, circleRect, mPaint); in CircleFramedDrawable()
89 mPaint.setXfermode(null); in CircleFramedDrawable()
/frameworks/base/graphics/java/android/graphics/
DNinePatch.java94 private Paint mPaint; field in NinePatch
128 if (patch.mPaint != null) { in NinePatch()
129 mPaint = new Paint(patch.mPaint); in NinePatch()
165 return mPaint; in getPaint()
178 mPaint = p; in setPaint()
195 canvas.drawPatch(this, location, mPaint); in draw()
205 canvas.drawPatch(this, location, mPaint); in draw()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DRenderingJitter.java110 private Paint mPaint = new Paint(); field in RenderingJitter.PointGraphView
125 mPaint.setTextSize(dp(10)); in PointGraphView()
127 mPaint.getTextBounds("8.8", 0, 3, textBounds); in PointGraphView()
153 mPaint.setColor(Color.WHITE); in onDraw()
154 mPaint.setStrokeWidth(dp(1)); in onDraw()
155 canvas.drawLine(mLabelWidth, 0, mLabelWidth, h, mPaint); in onDraw()
158 0, (float) Math.floor(mJitterYs[i] + mLabelHeight * .5f), mPaint); in onDraw()
161 mPaint.setColor(JITTER_LINES_COLORS[i]); in onDraw()
162 canvas.drawLine(mLabelWidth, mJitterYs[i], w, mJitterYs[i], mPaint); in onDraw()
164 mPaint.setStrokeWidth(dp(2)); in onDraw()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DCarUserSwitchingDialog.java106 private final Paint mPaint; field in CarUserSwitchingDialog.CircleFramedDrawable
138 mPaint = new Paint(); in CircleFramedDrawable()
139 mPaint.setAntiAlias(true); in CircleFramedDrawable()
140 mPaint.setColor(Color.BLACK); in CircleFramedDrawable()
141 mPaint.setStyle(Paint.Style.FILL); in CircleFramedDrawable()
142 canvas.drawPath(fillPath, mPaint); in CircleFramedDrawable()
145 mPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN)); in CircleFramedDrawable()
146 canvas.drawBitmap(icon, cropRect, circleRect, mPaint); in CircleFramedDrawable()
149 mPaint.setXfermode(null); in CircleFramedDrawable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DCornerHandleView.java46 private Paint mPaint; field in CornerHandleView
54 mPaint = new Paint(); in CornerHandleView()
55 mPaint.setAntiAlias(true); in CornerHandleView()
56 mPaint.setStyle(Paint.Style.STROKE); in CornerHandleView()
57 mPaint.setStrokeCap(Paint.Cap.ROUND); in CornerHandleView()
58 mPaint.setStrokeWidth(getStrokePx()); in CornerHandleView()
107 mPaint.setColor((int) ArgbEvaluator.getInstance().evaluate(darkIntensity, in updateDarkness()
118 canvas.drawPath(mPath, mPaint); in onDraw()
/frameworks/base/core/java/android/widget/
DEdgeEffect.java119 private final Paint mPaint = new Paint(); field in EdgeEffect
130 mPaint.setAntiAlias(true); in EdgeEffect()
136 mPaint.setColor((themeColor & 0xffffff) | 0x33000000); in EdgeEffect()
137 mPaint.setStyle(Paint.Style.FILL); in EdgeEffect()
138 mPaint.setBlendMode(DEFAULT_BLEND_MODE); in EdgeEffect()
308 mPaint.setColor(color); in setColor()
324 mPaint.setBlendMode(blendmode); in setBlendMode()
333 return mPaint.getColor(); in getColor()
347 return mPaint.getBlendMode(); in getBlendMode()
375 mPaint.setAlpha((int) (0xff * mGlowAlpha)); in draw()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DTextLayoutTest.java33 private TextPaint mPaint; field in TextLayoutTest
38 mPaint = new TextPaint(); in setup()
43 new StaticLayout(mString, mPaint, 200, in testStaticLayout()
50 new DynamicLayout(mString, mPaint, 200, in testDynamicLayoutTest()

1234