Home
last modified time | relevance | path

Searched refs:mPaint (Results 1 – 25 of 78) 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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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()
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/support/v4/donut/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable.java49 private final Paint mPaint = new Paint(DEFAULT_PAINT_FLAGS); field in RoundedBitmapDrawable
68 return mPaint; in getPaint()
189 mPaint.setAntiAlias(aa); in setAntiAlias()
201 return mPaint.isAntiAlias(); in hasAntiAlias()
206 mPaint.setFilterBitmap(filter); in setFilterBitmap()
212 mPaint.setDither(dither); in setDither()
246 mPaint.setShader(mBitmapShader); in updateDstRect()
261 if (mPaint.getShader() == null) { in draw()
262 canvas.drawBitmap(bitmap, null, mDstRect, mPaint); in draw()
264 canvas.drawRoundRect(mDstRectF, mCornerRadius, mCornerRadius, mPaint); in draw()
[all …]
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
DAmPmCirclesView.java43 private final Paint mPaint = new Paint(); field in AmPmCirclesView
83 mPaint.setTypeface(tf); in initialize()
84 mPaint.setAntiAlias(true); in initialize()
85 mPaint.setTextAlign(Align.CENTER); in initialize()
164 mPaint.setTextSize(textSize); in onDraw()
198 mPaint.setColor(amColor); in onDraw()
199 mPaint.setAlpha(amAlpha); in onDraw()
200 canvas.drawCircle(mAmXCenter, mAmPmYCenter, mAmPmCircleRadius, mPaint); in onDraw()
201 mPaint.setColor(pmColor); in onDraw()
202 mPaint.setAlpha(pmAlpha); in onDraw()
[all …]
DRadialTextsView.java41 private final Paint mPaint = new Paint(); field in RadialTextsView
91 mPaint.setColor(numbersTextColor); in initialize()
96 mPaint.setAntiAlias(true); in initialize()
97 mPaint.setTextAlign(Align.CENTER); in initialize()
154 mPaint.setColor(textColor); in setTheme()
245 mPaint.setTextSize(textSize); in calculateGridSizes()
247 yCenter -= (mPaint.descent() + mPaint.ascent()) / 2; in calculateGridSizes()
270 mPaint.setTextSize(textSize); in drawTexts()
271 mPaint.setTypeface(typeface); in drawTexts()
272 canvas.drawText(texts[0], textGridWidths[3], textGridHeights[0], mPaint); in drawTexts()
[all …]
DCircleView.java34 private final Paint mPaint = new Paint(); field in CircleView
53 mPaint.setAntiAlias(true); in CircleView()
115 mPaint.setColor(mCircleColor); in onDraw()
116 canvas.drawCircle(mXCenter, mYCenter, mCircleRadius, mPaint); in onDraw()
119 mPaint.setColor(mDotColor); in onDraw()
120 canvas.drawCircle(mXCenter, mYCenter, 2, mPaint); in onDraw()
/frameworks/support/v7/appcompat/src/android/support/v7/graphics/drawable/
DDrawerArrowDrawable.java92 private final Paint mPaint = new Paint(); field in DrawerArrowDrawable
124 mPaint.setStyle(Paint.Style.STROKE); in DrawerArrowDrawable()
125 mPaint.setStrokeJoin(Paint.Join.MITER); in DrawerArrowDrawable()
126 mPaint.setStrokeCap(Paint.Cap.BUTT); in DrawerArrowDrawable()
127 mPaint.setAntiAlias(true); in DrawerArrowDrawable()
211 if (color != mPaint.getColor()) { in setColor()
212 mPaint.setColor(color); in setColor()
222 return mPaint.getColor(); in getColor()
231 if (mPaint.getStrokeWidth() != width) { in setBarThickness()
232 mPaint.setStrokeWidth(width); in setBarThickness()
[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/support/design/base/android/support/design/widget/
DCircularBorderDrawable.java42 final Paint mPaint; field in CircularBorderDrawable
58 mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in CircularBorderDrawable()
59 mPaint.setStyle(Paint.Style.STROKE); in CircularBorderDrawable()
76 mPaint.setStrokeWidth(width * DRAW_STROKE_WIDTH_MULTIPLE); in setBorderWidth()
85 mPaint.setShader(createGradientShader()); in draw()
89 final float halfBorderWidth = mPaint.getStrokeWidth() / 2f; in draw()
102 canvas.drawOval(rectF, mPaint); in draw()
114 mPaint.setAlpha(alpha); in setAlpha()
126 mPaint.setColorFilter(colorFilter); in setColorFilter()
/frameworks/base/graphics/java/android/graphics/
DNinePatch.java76 private Paint mPaint; field in NinePatch
110 if (patch.mPaint != null) { in NinePatch()
111 mPaint = new Paint(patch.mPaint); in NinePatch()
146 return mPaint; in getPaint()
159 mPaint = p; in setPaint()
176 canvas.drawPatch(this, location, mPaint); in draw()
186 canvas.drawPatch(this, location, mPaint); in draw()
/frameworks/base/libs/hwui/
DDisplayListOp.h112 : mPaint(paint), mQuickRejected(false) {} in DrawOp()
176 return OpenGLRenderer::getAlphaDirect(mPaint); in getPaintAlpha()
189 return std::max(mPaint->getStrokeWidth(), 1.0f) * 0.5f; in strokeWidthOutset()
202 if (mPaint) { in isOpaqueOverBounds()
203 if (mPaint->getAlpha() != 0xFF) { in isOpaqueOverBounds()
206 if (mPaint->getShader() && !mPaint->getShader()->isOpaque()) { in isOpaqueOverBounds()
209 if (PaintUtils::isBlendedColorFilter(mPaint->getColorFilter())) { in isOpaqueOverBounds()
216 SkXfermode::Mode mode = OpenGLRenderer::getXfermodeDirect(mPaint); in isOpaqueOverBounds()
222 const SkPaint* mPaint; variable
253 if (OpenGLRenderer::getTextShadow(mPaint, &textShadow)) { in getLocalBounds()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/
DColorOverlayDimmer.java33 private final Paint mPaint; field in ColorOverlayDimmer
74 mPaint = new Paint(); in ColorOverlayDimmer()
76 mPaint.setColor(dimColor); in ColorOverlayDimmer()
91 mPaint.setAlpha(mAlpha); in setActiveLevel()
120 return mPaint; in getPaint()
156 c.drawRect(v.getLeft(), v.getTop(), v.getRight(), v.getBottom(), mPaint); in drawColorOverlay() local
161 v.getBottom() - v.getPaddingBottom(), mPaint); in drawColorOverlay() local
/frameworks/base/core/tests/coretests/src/android/text/
DTextLayoutTest.java30 protected TextPaint mPaint; field in TextLayoutTest
35 mPaint = new TextPaint(); in setUp()
40 Layout l = new StaticLayout(mString, mPaint, 200, in testStaticLayout()
47 Layout l = new DynamicLayout(mString, mPaint, 200, in testDynamicLayoutTest()

1234