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

1234

/frameworks/base/core/tests/coretests/src/android/text/
H A DTextLayoutTest.java30 private TextPaint mPaint; field in class:TextLayoutTest
35 mPaint = new TextPaint();
40 new StaticLayout(mString, mPaint, 200,
47 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);
/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/frameworks/support/samples/SupportAnimationDemos/src/com/example/android/support/animation/
H A DSpringView.java29 final Paint mPaint = new Paint(); field in class:SpringView
35 mPaint.setColor(context.getResources().getColor(R.color.springColor));
36 mPaint.setStrokeWidth(10);
60 canvas.drawLine(x, 0, x + sectionWidth / 2, sectionHeight / 2, mPaint);
64 canvas.drawLine(lastX, lastY, 2 * x - lastX, lastY + sectionHeight, mPaint);
68 canvas.drawLine(lastX, lastY, x, mLastHeight, mPaint);
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DPlaybackSeekDataProviderSample.java29 Paint mPaint; field in class:PlaybackSeekDataProviderSample
38 mPaint = new Paint();
39 mPaint.setTextSize(16);
40 mPaint.setColor(Color.BLUE);
55 canvas.drawText(formatTime(position), 10, 80, mPaint);
56 canvas.drawText(Integer.toString(index), 10, 150, mPaint);
H A DPlaybackSeekDiskDataProvider.java35 final Paint mPaint; field in class:PlaybackSeekDiskDataProvider
45 mPaint = new Paint();
46 mPaint.setTextSize(16);
47 mPaint.setColor(Color.BLUE);
66 canvas.drawText(path, 10, 80, mPaint);
67 canvas.drawText(Integer.toString(index), 10, 150, mPaint);
/frameworks/support/samples/SupportAnimationDemos/src/com/example/android/support/animation/
H A DSpringView.java29 final Paint mPaint = new Paint(); field in class:SpringView
35 mPaint.setColor(context.getResources().getColor(R.color.springColor));
36 mPaint.setStrokeWidth(10);
60 canvas.drawLine(x, 0, x + sectionWidth / 2, sectionHeight / 2, mPaint);
64 canvas.drawLine(lastX, lastY, 2 * x - lastX, lastY + sectionHeight, mPaint);
68 canvas.drawLine(lastX, lastY, x, mLastHeight, mPaint);
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DPlaybackSeekDataProviderSample.java29 Paint mPaint; field in class:PlaybackSeekDataProviderSample
38 mPaint = new Paint();
39 mPaint.setTextSize(16);
40 mPaint.setColor(Color.BLUE);
55 canvas.drawText(formatTime(position), 10, 80, mPaint);
56 canvas.drawText(Integer.toString(index), 10, 150, mPaint);
H A DPlaybackSeekDiskDataProvider.java35 final Paint mPaint; field in class:PlaybackSeekDiskDataProvider
45 mPaint = new Paint();
46 mPaint.setTextSize(16);
47 mPaint.setColor(Color.BLUE);
66 canvas.drawText(path, 10, 80, mPaint);
67 canvas.drawText(Integer.toString(index), 10, 150, mPaint);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DMediaRowFocusView.java30 private final Paint mPaint; field in class:MediaRowFocusView
36 mPaint = createPaint(context);
41 mPaint = createPaint(context);
46 mPaint = createPaint(context);
56 canvas.drawRoundRect(mRoundRectF, mRoundRectRadius, mRoundRectRadius, mPaint);

Completed in 7448 milliseconds

1234