/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | ScaledTextActivity.java | 49 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 …]
|
D | TJunctionActivity.java | 35 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 …]
|
D | AdvancedGradientsActivity.java | 40 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 …]
|
D | GradientsActivity.java | 92 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 …]
|
D | FramebufferBlendActivity.java | 46 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 …]
|
D | AlphaLayersActivity.java | 72 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() 113 mPaint.setColor(0xff00ff00); in dispatchDraw() 114 canvas.drawRect(0.0f, 0.0f, 20.0f, 20.0f, mPaint); in dispatchDraw() 116 mPaint.setColor(0xff0000ff); in dispatchDraw() 117 canvas.drawRect(20.0f, 0.0f, 40.0f, 20.0f, mPaint); in dispatchDraw() 124 mPaint.setColor(0xff0000ff); in dispatchDraw() 125 canvas.drawRect(0.0f, 100.0f, 40.0f, 150.0f, mPaint); in dispatchDraw() [all …]
|
D | ShadersActivity.java | 48 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 …]
|
D | AdvancedBlendActivity.java | 48 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 …]
|
D | TextOnPathActivity.java | 71 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 …]
|
D | RotationActivity.java | 43 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()
|
D | BlurActivity.java | 56 private final Paint mPaint; field in BlurActivity.BlurGradientView 61 mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in BlurGradientView() 86 mPaint.setShader(gradient); in onLayout() 98 mPaint in onLayout() 113 private final Paint mPaint; field in BlurActivity.BlurView 120 mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in BlurView() 139 mPaint.setColor(Color.BLUE); in onLayout() 146 mPaint in onLayout() 149 mPaint.setColor(Color.RED); in onLayout() 150 canvas.drawCircle((right - left) / 2f, (bottom - top) / 2f, 50f, mPaint); in onLayout() local
|
D | PathOffsetActivity.java | 40 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()
|
D | PixelCopyWindow.java | 51 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()
|
D | Rotate3dTextActivity.java | 62 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()
|
D | PathOpsActivity.java | 39 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()
|
D | RenderEffectShaderActivity.java | 55 private final Paint mPaint; field in RenderEffectShaderActivity.ShaderRenderEffectView 61 mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in ShaderRenderEffectView() 84 mPaint.setColor(Color.BLUE); in onLayout() 91 mPaint in onLayout() 94 mPaint.setColor(Color.RED); in onLayout() 95 canvas.drawCircle((right - left) / 2f, (bottom - top) / 2f, 50f, mPaint); in onLayout() local
|
/frameworks/base/core/java/com/android/internal/widget/remotecompose/player/platform/ |
D | ClickAreaView.java | 29 Paint mPaint = new Paint(); field in ClickAreaView 53 mPaint.setARGB(200, 200, 0, 0); in onDraw() 54 mPaint.setStrokeWidth(3f); in onDraw() 55 canvas.drawLine(0, 0, getWidth(), 0, mPaint); in onDraw() 56 canvas.drawLine(getWidth(), 0, getWidth(), getHeight(), mPaint); in onDraw() local 57 canvas.drawLine(getWidth(), getHeight(), 0, getHeight(), mPaint); in onDraw() local 58 canvas.drawLine(0, getHeight(), 0, 0, mPaint); in onDraw() 60 mPaint.setTextSize(20f); in onDraw() 61 canvas.drawText("id: " + mId + " : " + mMetadata, 4, 22, mPaint); in onDraw()
|
D | AndroidPaintContext.java | 47 Paint mPaint = new Paint(); field in AndroidPaintContext 96 new Rect(dstLeft, dstTop, dstRight, dstBottom), mPaint in drawBitmap() 119 sweepAngle, true, mPaint); in drawArc() 135 mCanvas.drawBitmap(bitmap, src, dst, mPaint); in drawBitmap() 141 mCanvas.drawCircle(centerX, centerY, radius, mPaint); in drawCircle() 146 mCanvas.drawLine(x1, y1, x2, y2, mPaint); in drawLine() 151 mCanvas.drawOval(left, top, right, bottom, mPaint); in drawOval() 156 mCanvas.drawPath(getPath(id, start, end), mPaint); in drawPath() local 161 mCanvas.drawRect(left, top, right, bottom, mPaint); in drawRect() 172 radiusX, radiusY, mPaint); in drawRoundRect() [all …]
|
/frameworks/base/libs/hwui/apex/include/android/graphics/ |
D | paint.h | 62 Paint() : mPaint(APaint_createPaint()) {} in Paint() 63 ~Paint() { APaint_destroyPaint(mPaint); } in ~Paint() 65 void setBlendMode(ABlendMode blendMode) { APaint_setBlendMode(mPaint, blendMode); } in setBlendMode() 68 APaint_setImageFilter(mPaint, imageFilter); in setImageFilter() 71 const APaint& get() const { return *mPaint; } in get() 74 APaint* mPaint;
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
D | TileDrawable.java | 37 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/android/text/ |
D | PrecomputedText.java | 90 private final @NonNull TextPaint mPaint; field in PrecomputedText.Params 109 private final @NonNull TextPaint mPaint; field in PrecomputedText.Params.Builder 130 mPaint = paint; in Builder() 137 mPaint = params.mPaint; in Builder() 206 return new Params(mPaint, mLineBreakConfig, mTextDir, mBreakStrategy, in build() 219 mPaint = paint; in Params() 232 return mPaint; in getTextPaint() 304 && mPaint.equalsForTextMeasurement(paint)) { in checkResultUsable() 325 return checkResultUsable(param.mPaint, param.mTextDir, param.mBreakStrategy, in equals() 332 return Objects.hash(mPaint.getTextSize(), mPaint.getTextScaleX(), mPaint.getTextSkewX(), in hashCode() [all …]
|
/frameworks/base/tests/HandwritingIme/src/com/google/android/test/handwritingime/ |
D | InkView.java | 35 private final Paint mPaint; field in InkView 50 mPaint = new Paint(); in InkView() 51 mPaint.setAntiAlias(true); in InkView() 52 mPaint.setDither(true); in InkView() 53 mPaint.setColor(Color.GREEN); in InkView() 54 mPaint.setStyle(Paint.Style.STROKE); in InkView() 55 mPaint.setStrokeJoin(Paint.Join.ROUND); in InkView() 56 mPaint.setStrokeCap(Paint.Cap.ROUND); in InkView() 57 mPaint.setStrokeWidth(14); in InkView() 71 canvas.drawPath(mPath, mPaint); in onDraw()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | RenderingJitter.java | 110 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/core/tests/coretests/src/android/text/ |
D | TextLayoutTest.java | 33 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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/scrim/ |
D | ScrimDrawable.java | 46 private final Paint mPaint; field in ScrimDrawable 61 mPaint = new Paint(); in ScrimDrawable() 62 mPaint.setStyle(Paint.Style.FILL); in ScrimDrawable() 124 mPaint.setXfermode(mode); in setXfermode() 130 mPaint.setColorFilter(colorFilter); in setColorFilter() 135 return mPaint.getColorFilter(); in getColorFilter() 214 mPaint.setColor(mMainColor); in draw() 215 mPaint.setAlpha(mAlpha); in draw() 257 canvas.drawPath(mPath, mPaint); in draw() 261 getBounds().bottom, mPaint); in draw() local [all …]
|