/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
MainView.java | 26 Paint mPaint = new Paint(); 44 mPaint.reset(); 45 DisplayModifier.apply(mPaint, canvas);
|
/packages/apps/Calendar/src/com/android/calendar/ |
DayOfMonthDrawable.java | 35 private final Paint mPaint; 41 mPaint = new Paint(); 42 mPaint.setAlpha(255); 43 mPaint.setColor(0xFF777777); 44 mPaint.setTypeface(Typeface.DEFAULT_BOLD); 45 mPaint.setTextSize(mTextSize); 46 mPaint.setTextAlign(Paint.Align.CENTER); 51 mPaint.getTextBounds(mDayOfMonth, 0, mDayOfMonth.length(), mTextBounds); 55 mPaint); 60 mPaint.setAlpha(alpha) [all...] |
ColorChipView.java | 48 private Paint mPaint; 67 mPaint = new Paint(); 68 mDefStrokeWidth = mPaint.getStrokeWidth(); 69 mPaint.setStyle(Style.FILL_AND_STROKE); 98 mPaint.setColor(mDrawStyle == DRAW_FADED ? 104 mPaint.setStrokeWidth(mDefStrokeWidth); 105 c.drawRect(0, 0, right, bottom, mPaint); 114 mPaint.setStrokeWidth(mBorderWidth); 134 c.drawLines(lines, mPaint);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
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...] |
NoAATextActivity.java | 40 private final Paint mPaint; 45 mPaint = new Paint(); 46 mPaint.setTextSize(60.0f); 54 canvas.drawText(TEXT, 30.0f, 150.0f, mPaint);
|
PathOffsetActivity.java | 40 private Paint mPaint; 45 mPaint = new Paint(); 46 mPaint.setStyle(Paint.Style.STROKE); 47 mPaint.setStrokeWidth(3); 57 mPaint.setColor(Color.RED); 58 canvas.drawPath(mPath, mPaint);
|
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);
|
TJunctionActivity.java | 35 private final Paint mPaint; 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...] |
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...] |
MultiLayersActivity.java | 60 private final Paint mPaint; 64 mPaint = new Paint(); 65 mPaint.setColor(color); 71 canvas.drawRect(0.0f, 0.0f, getWidth(), getHeight(), mPaint);
|
SmallCircleActivity.java | 48 private final Paint mPaint; 58 mPaint = new Paint(); 59 mPaint.setAntiAlias(true); 60 mPaint.setColor(0xffffffff); 67 canvas.drawPath(mPath, mPaint);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
SlidingKeyInputPreview.java | 41 private final Paint mPaint = new Paint(); 59 mPaint.setShadowLayer(shadowRadius, 0.0f, 0.0f, previewColor); 61 mPaint.setColor(previewColor); 84 canvas.drawPath(path, mPaint);
|
/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);
|
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);
|
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...] |
DrawPoints.java | 33 private Paint mPaint = new Paint(); 63 Paint paint = mPaint;
|
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);
|
/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/policy/src/com/android/internal/policy/impl/keyguard/ |
KeyguardCircleFramedDrawable.java | 38 private final Paint mPaint; 82 mPaint = new Paint(); 83 mPaint.setAntiAlias(true); 84 mPaint.setColor(Color.BLACK); 85 mPaint.setStyle(Paint.Style.FILL); 86 canvas.drawPath(fillPath, mPaint); 89 mPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_ATOP)); 90 canvas.drawBitmap(bitmap, cropRect, circleRect, mPaint); 93 mPaint.setXfermode(null); 127 mPaint.setStyle(Paint.Style.FILL) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/ |
CameraPreviewView.java | 19 private Paint mPaint = new Paint(); 45 mPaint.setStyle(Paint.Style.STROKE); 46 mPaint.setColor(Color.GREEN); 47 mPaint.setStrokeWidth(3); 48 canvas.drawLine(centerX, 0, centerX, canvas.getHeight(), mPaint); 51 mPaint.setAlpha(GRID_ALPHA); 56 canvas.drawLine(0, y, canvas.getWidth(), y, mPaint); 58 canvas.drawLine(0, y, canvas.getWidth(), y, mPaint); 62 canvas.drawLine(x, 0, x, canvas.getHeight(), mPaint); 64 canvas.drawLine(x, 0, x, canvas.getHeight(), mPaint); [all...] |
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
FakeView.java | 49 final Paint mPaint = new Paint(); 72 mPaint.setTextSize(mRandom.nextInt(40) + 10); 73 mPaint.setColor(0xff000000 + mRandom.nextInt(0x1000000)); 77 x, y, mPaint);
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
StringTexture.java | 34 private final TextPaint mPaint; 41 mPaint = paint; 86 canvas.drawText(mText, 0, 0, mPaint);
|
/packages/apps/Settings/src/com/android/settings/users/ |
CircleFramedDrawable.java | 44 private final Paint mPaint; 103 mPaint = new Paint(); 104 mPaint.setAntiAlias(true); 105 mPaint.setColor(Color.BLACK); 106 mPaint.setStyle(Paint.Style.FILL); 107 canvas.drawPath(fillPath, mPaint); 110 mPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_ATOP)); 111 canvas.drawBitmap(icon, cropRect, circleRect, mPaint); 114 mPaint.setXfermode(null); 141 mPaint.setStyle(Paint.Style.FILL) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/ |
CategoryView.java | 37 private Paint mPaint = new Paint(); 78 mPaint.setTextSize(sTextSize); 79 mPaint.setTypeface(Typeface.DEFAULT_BOLD); 80 float textWidth = mPaint.measureText(text); 81 mPaint.getTextBounds(text, 0, text.length(), mTextBounds); 84 canvas.drawText(text, x, y, mPaint); 91 mPaint.reset(); 92 mPaint.setAntiAlias(true); 97 canvas.drawBitmap(bitmap, 0, 0, mPaint); 105 mPaint.setColor(mBackgroundColor) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/ |
StateView.java | 36 private Paint mPaint = new Paint(); 129 mPaint.reset(); 131 mPaint.setColor(mSelectedTextColor); 133 mPaint.setColor(mTextColor); 136 mPaint.setColor(mEndsTextColor); 138 mPaint.setTypeface(Typeface.DEFAULT_BOLD); 139 mPaint.setAntiAlias(true); 140 mPaint.setTextSize(mTextSize); 141 mPaint.getTextBounds(mText, 0, mText.length(), mTextBounds); 144 canvas.drawText(mText, x, y, mPaint); [all...] |