Searched defs:mPaint (Results 1 - 25 of 85) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/text/
H A DTextLayoutTest.java30 protected TextPaint mPaint; field in class:TextLayoutTest
35 mPaint = new TextPaint();
40 Layout l = new StaticLayout(mString, mPaint, 200,
47 Layout l = new DynamicLayout(mString, mPaint, 200,
/frameworks/base/libs/hwui/tests/common/scenes/
H A DOpPropAnimation.cpp30 sp<CanvasPropertyPaint> mPaint = new CanvasPropertyPaint(SkPaint()); member in class:OpPropAnimation
47 mPaint->value.setAntiAlias(true);
48 mPaint->value.setColor(Color::Blue_500);
59 mRoundRectRx.get(), mRoundRectRy.get(), mPaint.get());
60 canvas.drawCircle(mCircleX.get(), mCircleY.get(), mCircleRadius.get(), mPaint.get());
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/
H A DFakeView.java49 final Paint mPaint = new Paint(); field in class:FakeView
72 mPaint.setTextSize(mRandom.nextInt(40) + 10);
73 mPaint.setColor(0xff000000 + mRandom.nextInt(0x1000000));
77 x, y, mPaint);
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
H A DMainView.java26 Paint mPaint = new Paint(); field in class:MainView
44 mPaint.reset();
45 DisplayModifier.apply(mPaint, canvas);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DMultiLayersActivity.java60 private final Paint mPaint; field in class:MultiLayersActivity.LayerView
64 mPaint = new Paint();
65 mPaint.setColor(color);
71 canvas.drawRect(0.0f, 0.0f, getWidth(), getHeight(), mPaint);
H A DNoAATextActivity.java40 private final Paint mPaint; field in class:NoAATextActivity.ScaledNoAA
45 mPaint = new Paint();
46 mPaint.setTextSize(60.0f);
54 canvas.drawText(TEXT, 30.0f, 150.0f, mPaint);
H A DPathOffsetActivity.java40 private Paint mPaint; field in class:PathOffsetActivity.PathsView
45 mPaint = new Paint();
46 mPaint.setStyle(Paint.Style.STROKE);
47 mPaint.setStrokeWidth(3);
57 mPaint.setColor(Color.RED);
58 canvas.drawPath(mPath, mPaint);
H A DRotate3dTextActivity.java62 private final Paint mPaint; field in class:Rotate3dTextActivity.Rotate3dTextView
67 mPaint = new Paint();
68 mPaint.setAntiAlias(true);
69 mPaint.setTextSize(50.0f);
70 mPaint.setTextAlign(Paint.Align.CENTER);
79 canvas.drawText(TEXT, getWidth() / 2.0f, getHeight() / 2.0f, mPaint);
H A DRotationActivity.java43 private final Paint mPaint; field in class:RotationActivity.DrawingView
47 mPaint = new Paint();
48 mPaint.setAntiAlias(true);
57 mPaint.setColor(0xffff0000);
58 canvas.drawRect(-80.0f, -80.0f, 80.0f, 80.0f, mPaint);
59 canvas.drawRect(0.0f, 0.0f, 220.0f, 220.0f, mPaint);
H A DSmallCircleActivity.java48 private final Paint mPaint; field in class:SmallCircleActivity.PathView
58 mPaint = new Paint();
59 mPaint.setAntiAlias(true);
60 mPaint.setColor(0xff00ffff);
67 canvas.drawPath(mPath, mPaint);
H A DTJunctionActivity.java35 private final Paint mPaint; field in class:TJunctionActivity.TJunctionView
42 mPaint = new Paint();
49 mPaint.setColor(0xffff0000);
52 canvas.drawRect(0.0f, 0.0f, 100.0f, 50.0f, mPaint);
54 mPaint.setColor(0xff00ff00);
57 canvas.drawRect(0.0f, 0.0f, 100.0f, 50.0f, mPaint);
59 mPaint.setColor(0xff0000ff);
62 canvas.drawRect(0.0f, 0.0f, 100.0f, 50.0f, mPaint);
64 mPaint.setColor(0xffffffff);
67 canvas.drawRect(0.0f, 0.0f, 100.0f, 50.0f, mPaint);
[all...]
H A DAdvancedGradientsActivity.java40 private final Paint mPaint; field in class:AdvancedGradientsActivity.GradientsView
65 mPaint = new Paint();
77 mPaint.setShader(mSweepGradient);
78 canvas.drawRect(0.0f, 0.0f, 200.0f, 200.0f, mPaint);
83 mPaint.setShader(mSweepGradient);
84 canvas.drawRect(0.0f, 0.0f, 200.0f, 200.0f, mPaint);
89 mPaint.setShader(mSweepGradient);
90 canvas.drawRect(0.0f, 0.0f, 200.0f, 200.0f, mPaint);
95 mPaint.setShader(mRadialGradient);
96 canvas.drawRect(0.0f, 0.0f, 200.0f, 200.0f, mPaint);
[all...]
H A DAlphaLayersActivity.java72 private final Paint mPaint; field in class:AlphaLayersActivity.DirtyBitmapView
76 mPaint = new Paint();
83 mPaint.setColor(0xffff0000);
84 canvas.drawRect(200.0f, 0.0f, 220.0f, 20.0f, mPaint);
119 mPaint.setColor(0xff00ff00);
120 canvas.drawRect(0.0f, 0.0f, 20.0f, 20.0f, mPaint);
122 mPaint.setColor(0xff0000ff);
123 canvas.drawRect(20.0f, 0.0f, 40.0f, 20.0f, mPaint);
130 mPaint.setColor(0xff0000ff);
131 canvas.drawRect(0.0f, 100.0f, 40.0f, 150.0f, mPaint);
[all...]
H A DCirclePropActivity.java68 CanvasProperty<Paint> mPaint; field in class:CirclePropActivity.CircleView
83 mPaint = CanvasProperty.createPaint(p);
92 displayListCanvas.drawCircle(mX, mY, mRadius, mPaint);
115 mPaint, RenderNodeAnimator.PAINT_STROKE_WIDTH,
119 mPaint, RenderNodeAnimator.PAINT_ALPHA, 64.0f));
123 mPaint, RenderNodeAnimator.PAINT_ALPHA, 255.0f));
H A DFramebufferBlendActivity.java46 private Paint mPaint; field in class:FramebufferBlendActivity.BlendView
60 mPaint = new Paint();
88 mPaint.setShader(null);
89 mPaint.setXfermode(null);
90 canvas.drawBitmap(mTexture, 0.0f, 0.0f, mPaint);
92 mPaint.setShader(mHorGradient);
93 mPaint.setXfermode(new PorterDuffXfermode(mode));
94 canvas.drawRect(0.0f, 0.0f, mTexWidth, mTexHeight, mPaint);
100 mPaint.setXfermode(null);
101 mPaint
[all...]
H A DPathOpsActivity.java39 private final Paint mPaint; field in class:PathOpsActivity.PathsView
47 mPaint = new Paint();
48 mPaint.setAntiAlias(true);
49 mPaint.setStyle(Paint.Style.FILL);
50 mPaint.setColor(Color.RED);
82 canvas.drawPath(path, mPaint);
H A DProjectionActivity.java24 private final Paint mPaint = new Paint(); field in class:ProjectionActivity.ProjectedView
69 mPaint.setAntiAlias(true);
70 mPaint.setColor(0x5f00ff00);
71 canvas.drawOval(mRectF, mPaint);
H A DAdvancedBlendActivity.java48 private Paint mPaint; field in class:AdvancedBlendActivity.ShadersView
97 mPaint = new Paint();
108 mPaint.setShader(mComposeShader);
109 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint);
112 mPaint.setShader(mCompose2Shader);
113 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint);
116 mPaint.setShader(mCompose3Shader);
117 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint);
124 mPaint.setShader(mCompose4Shader);
125 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint);
[all...]
H A DGradientsActivity.java92 private final Paint mPaint; field in class:GradientsActivity.BitmapView
100 mPaint = new Paint();
101 mPaint.setShader(shader);
113 canvas.drawRect(0.0f, 0.0f, getWidth(), getHeight(), mPaint);
118 private final Paint mPaint; field in class:GradientsActivity.GradientView
125 mPaint = new Paint();
126 mPaint.setShader(gradient);
138 canvas.drawRect(0.0f, 0.0f, getWidth(), getHeight(), mPaint);
143 private final Paint mPaint; field in class:GradientsActivity.RadialGradientView
150 mPaint
168 private final Paint mPaint; field in class:GradientsActivity.SweepGradientView
192 private final Paint mPaint; field in class:GradientsActivity.ShadersView
[all...]
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DHitRectBug.java43 private Paint mPaint; field in class:HitRectBug.TestDrawingView
51 mPaint = new Paint();
52 mPaint.setColor(Color.RED);
53 mPaint.setStyle(Paint.Style.STROKE);
88 canvas.drawRect(mRect, mPaint);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DMediaRowFocusView.java29 private final Paint mPaint; field in class:MediaRowFocusView
35 mPaint = createPaint(context);
40 mPaint = createPaint(context);
45 mPaint = createPaint(context);
55 canvas.drawRoundRect(mRoundRectF, mRoundRectRadius, mRoundRectRadius, mPaint);
/frameworks/base/core/tests/coretests/src/android/widget/
H A DTextViewPerformanceTest.java36 private Paint mPaint; field in class:TextViewPerformanceTest
55 mPaint = new Paint();
97 mCanvas.drawText(mString, 30, 30, mPaint);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
H A DCircleFramedDrawable.java44 private final Paint mPaint; field in class:CircleFramedDrawable
78 mPaint = new Paint();
79 mPaint.setAntiAlias(true);
80 mPaint.setColor(Color.BLACK);
81 mPaint.setStyle(Paint.Style.FILL);
82 canvas.drawPath(fillPath, mPaint);
85 mPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));
86 canvas.drawBitmap(icon, cropRect, circleRect, mPaint);
89 mPaint.setXfermode(null);
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
H A DDividerHandleView.java69 private final Paint mPaint = new Paint(); field in class:DividerHandleView
80 mPaint.setColor(getResources().getColor(R.color.docked_divider_handle, null));
81 mPaint.setAntiAlias(true);
141 radius, radius, mPaint);
/frameworks/base/services/core/java/com/android/server/policy/
H A DIconUtilities.java50 private final Paint mPaint = new Paint(); field in class:IconUtilities
185 dest.drawBitmap(src, 0, 0, mPaint);

Completed in 516 milliseconds

1234