HomeSort by relevance Sort by last modified time
    Searched refs:mPaint (Results 1 - 25 of 95) sorted by null

1 2 3 4

  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
Layers.java 39 private Paint mPaint;
45 mPaint = new Paint();
46 mPaint.setAntiAlias(true);
56 mPaint.setColor(Color.RED);
57 canvas.drawCircle(75, 75, 75, mPaint);
58 mPaint.setColor(Color.BLUE);
59 canvas.drawCircle(125, 125, 75, mPaint);
MeasureText.java 51 private Paint mPaint;
59 mPaint = new Paint();
60 mPaint.setAntiAlias(true);
61 mPaint.setStrokeWidth(5);
62 mPaint.setStrokeCap(Paint.Cap.ROUND);
63 mPaint.setTextSize(64);
64 mPaint.setTypeface(Typeface.create(Typeface.SERIF,
69 // mPaint.setTextAlign(align);
74 int count = mPaint.getTextWidths(text, 0, text.length(), widths);
75 float w = mPaint.measureText(text, 0, text.length())
    [all...]
PolyToPoly.java 37 private Paint mPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
46 mPaint.setColor(Color.GRAY);
47 mPaint.setStyle(Paint.Style.STROKE);
48 canvas.drawRect(0, 0, 64, 64, mPaint);
49 canvas.drawLine(0, 0, 64, 64, mPaint);
50 canvas.drawLine(0, 64, 64, 0, mPaint);
52 mPaint.setColor(Color.RED);
53 mPaint.setStyle(Paint.Style.FILL);
59 canvas.drawText(src.length/2 + "", x, y, mPaint);
68 mPaint.setStrokeWidth(4)
    [all...]
Typefaces.java 33 private Paint mPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
42 mPaint.setTextSize(64);
48 mPaint.setTypeface(null);
49 canvas.drawText("Default", 10, 100, mPaint);
50 mPaint.setTypeface(mFace);
51 canvas.drawText("Custom", 10, 200, mPaint);
Regions.java 33 private final Paint mPaint = new Paint();
41 mPaint.setAntiAlias(true);
42 mPaint.setTextSize(16);
43 mPaint.setTextAlign(Paint.Align.CENTER);
50 mPaint.setStyle(Paint.Style.STROKE);
51 mPaint.setColor(Color.RED);
52 mPaint.setAlpha(alpha);
53 drawCentered(canvas, mRect1, mPaint);
54 mPaint.setColor(Color.BLUE);
55 mPaint.setAlpha(alpha)
    [all...]
Clipping.java 33 private Paint mPaint;
40 mPaint = new Paint();
41 mPaint.setAntiAlias(true);
42 mPaint.setStrokeWidth(6);
43 mPaint.setTextSize(16);
44 mPaint.setTextAlign(Paint.Align.RIGHT);
54 mPaint.setColor(Color.RED);
55 canvas.drawLine(0, 0, 100, 100, mPaint);
57 mPaint.setColor(Color.GREEN);
58 canvas.drawCircle(30, 70, 30, mPaint);
    [all...]
FingerPaint.java 35 mPaint = new Paint();
36 mPaint.setAntiAlias(true);
37 mPaint.setDither(true);
38 mPaint.setColor(0xFFFF0000);
39 mPaint.setStyle(Paint.Style.STROKE);
40 mPaint.setStrokeJoin(Paint.Join.ROUND);
41 mPaint.setStrokeCap(Paint.Cap.ROUND);
42 mPaint.setStrokeWidth(12);
50 private Paint mPaint;
55 mPaint.setColor(color)
    [all...]
ColorFilters.java 41 private Paint mPaint;
82 mPaint = new Paint();
83 mPaint.setAntiAlias(true);
84 mPaint.setTextSize(16);
85 mPaint.setTextAlign(Paint.Align.CENTER);
87 mPaint2 = new Paint(mPaint);
90 Paint.FontMetrics fm = mPaint.getFontMetrics();
113 if (mPaint.getColor() == 0xFF000000) {
114 mPaint.setColor(0xFFFFFFFF);
117 mPaint.setColor(0xFF000000)
    [all...]
PathEffects.java 34 private Paint mPaint;
59 mPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
60 mPaint.setStyle(Paint.Style.STROKE);
61 mPaint.setStrokeWidth(6);
84 mPaint.setPathEffect(mEffects[i]);
85 mPaint.setColor(mColors[i]);
86 canvas.drawPath(mPath, mPaint);
Sweep.java 34 private Paint mPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
51 mPaint.setShader(mShader);
55 Paint paint = mPaint;
85 mPaint.setDither(!mPaint.isDither());
  /frameworks/base/core/tests/coretests/src/android/text/
TextLayoutTest.java 30 protected TextPaint mPaint;
35 mPaint = new TextPaint();
40 Layout l = new StaticLayout(mString, mPaint, 200,
47 Layout l = new DynamicLayout(mString, mPaint, 200,
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
AdvancedGradientsActivity.java 40 private final Paint mPaint;
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...]
FramebufferBlendActivity.java 46 private Paint mPaint;
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.setShader(mHorGradient)
    [all...]
RotationActivity.java 43 private final Paint mPaint;
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);
AdvancedBlendActivity.java 48 private Paint mPaint;
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...]
ShadersActivity.java 48 private Paint mPaint;
98 mPaint = new Paint();
111 mPaint.setShader(mRepeatShader);
112 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint);
115 mPaint.setShader(mTranslatedShader);
116 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint);
119 mPaint.setShader(mScaledShader);
120 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint);
128 mPaint.setShader(mHorGradient);
129 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint);
    [all...]
SmallCircleActivity.java 48 private final Paint mPaint;
58 mPaint = new Paint();
59 mPaint.setAntiAlias(true);
60 mPaint.setColor(0xffffffff);
67 canvas.drawPath(mPath, mPaint);
GradientsActivity.java 92 private final Paint mPaint;
100 mPaint = new Paint();
101 mPaint.setShader(shader);
113 canvas.drawRect(0.0f, 0.0f, getWidth(), getHeight(), mPaint);
118 private final Paint mPaint;
125 mPaint = new Paint();
126 mPaint.setShader(gradient);
138 canvas.drawRect(0.0f, 0.0f, getWidth(), getHeight(), mPaint);
143 private final Paint mPaint;
150 mPaint = new Paint()
    [all...]
  /frameworks/base/graphics/java/android/graphics/
NinePatch.java 40 private Paint mPaint;
66 if (patch.mPaint != null) {
67 mPaint = new Paint(patch.mPaint);
73 mPaint = p;
86 mPaint != null ? mPaint.mNativePaint : 0,
89 canvas.drawPatch(mBitmap, mChunk, location, mPaint);
103 mPaint != null ? mPaint.mNativePaint : 0
    [all...]
  /packages/apps/Launcher2/src/com/android/launcher2/
FastBitmapDrawable.java 32 private final Paint mPaint = new Paint();
48 canvas.drawBitmap(mBitmap, r.left, r.top, mPaint);
53 mPaint.setColorFilter(cf);
64 mPaint.setAlpha(alpha);
68 mPaint.setFilterBitmap(filterBitmap);
HolographicPagedViewIcon.java 33 Paint mPaint;
38 mPaint = new Paint();
52 mPaint);
StrokedTextView.java 38 private final Paint mPaint = new Paint();
70 mPaint.setAntiAlias(true);
71 mPaint.setStyle(Paint.Style.FILL_AND_STROKE);
122 mPaint.setStrokeWidth(mStrokeWidth);
123 mPaint.setColor(mStrokeColor);
124 mPaint.setTextSize(getTextSize());
125 mCanvas.drawText(text, left, bottom, mPaint);
128 mPaint.setStrokeWidth(0);
129 mPaint.setColor(mTextColor);
130 mCanvas.drawText(text, left, bottom, mPaint);
    [all...]
  /packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
ComposingView.java 82 private Paint mPaint;
122 mPaint = new Paint();
123 mPaint.setColor(mStrColor);
124 mPaint.setAntiAlias(true);
125 mPaint.setTextSize(mFontSize);
127 mFmi = mPaint.getFontMetricsInt();
208 width += mPaint.measureText(str, 0, str.length());
225 mPaint.setColor(mStrColorHl);
231 canvas.drawText(splStr, 0, splStr.length(), x, y, mPaint);
245 mPaint.setColor(mStrColor)
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
TrackingPatternView.java 31 private Paint mPaint;
43 mPaint = new Paint();
44 mPaint.setDither(false);
50 final Paint paint = mPaint;
  /packages/apps/Gallery/src/com/android/camera/
ActionMenuButton.java 40 private Paint mPaint;
62 mPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
63 mPaint.setColor(getContext().getResources()
85 canvas.drawRoundRect(rect, CORNER_RADIUS, CORNER_RADIUS, mPaint);

Completed in 491 milliseconds

1 2 3 4