/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
Patterns.java | 56 private final Paint mPaint; 83 mPaint = new Paint(Paint.FILTER_BITMAP_FLAG); 89 mPaint.setShader(mShader1); 90 canvas.drawPaint(mPaint); 95 mPaint.setShader(mShader2); 96 canvas.drawPaint(mPaint);
|
PurgeableBitmapView.java | 49 private final Paint mPaint = new Paint(); 63 mPaint.setTextSize(textSize); 64 mPaint.setColor(Color.GRAY); 106 HEIGHT / 2, 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...] |
Vertices.java | 35 private final Paint mPaint = new Paint(); 56 mPaint.setShader(s); 84 mTexs, 0, null, 0, null, 0, 0, mPaint); 88 mTexs, 0, null, 0, mIndices, 0, 6, mPaint);
|
/frameworks/base/graphics/java/android/graphics/ |
NinePatch.java | 89 private Paint mPaint; 123 if (patch.mPaint != null) { 124 mPaint = new Paint(patch.mPaint); 160 return mPaint; 173 mPaint = p; 190 canvas.drawPatch(this, location, mPaint); 200 canvas.drawPatch(this, location, mPaint);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/ |
DividerHandleView.java | 69 private final Paint mPaint = new Paint(); 80 mPaint.setColor(getResources().getColor(R.color.docked_divider_handle, null)); 81 mPaint.setAntiAlias(true); 141 radius, radius, mPaint);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
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...] |
CirclePropActivity.java | 68 CanvasProperty<Paint> mPaint; 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));
|
DisplayListLayersActivity.java | 90 private final Paint mPaint = new Paint(); 99 mPaint.setColor(color); 116 canvas.drawRect(0, 0, getWidth(), getHeight(), mPaint);
|
MoreShadersActivity.java | 50 private Paint mPaint; 110 mPaint = new Paint(); 121 mPaint.setShader(mComposeShader); 122 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); 125 mPaint.setShader(mCompose2Shader); 126 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint);
|
ScaledTextActivity.java | 49 private final Paint mPaint; 61 mPaint = new Paint(); 62 mPaint.setAntiAlias(true); 63 mPaint.setTextSize(20.0f); 97 canvas.drawText(TEXT, 30.0f, 30.0f, mPaint); 98 mPaint.setTextAlign(Paint.Align.CENTER); 99 canvas.drawText(TEXT, 30.0f, 50.0f, mPaint); 100 mPaint.setTextAlign(Paint.Align.RIGHT); 101 canvas.drawText(TEXT, 30.0f, 70.0f, mPaint); 106 mPaint.setTextAlign(Paint.Align.LEFT) [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...] |
TextOnPathActivity.java | 71 private final Paint mPaint; 83 mPaint = new Paint(); 84 mPaint.setAntiAlias(true); 85 mPaint.setColor(0xff000000); 114 mPaint.setTextAlign(Paint.Align.LEFT); 115 canvas.drawTextOnPath(mText + mText, mPath, 0.0f, 0.0f, mPaint); 128 canvas.drawTextOnPath(mText + mText, mStraightPath, 0.0f, 0.0f, mPaint); 135 canvas.drawTextOnPath(mText, mPath, 0.0f, 10.0f, mPaint); 142 mPaint.setTextAlign(Paint.Align.CENTER); 143 canvas.drawTextOnPath(mText, mPath, 0.0f, 0.0f, mPaint); [all...] |
ViewPropertyAlphaActivity.java | 119 private Paint mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); 124 mPaint.setColor(Color.RED); 130 mPaint.setAlpha(mMyAlpha); 132 canvas.drawCircle(30, 30, 30, mPaint);
|
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/ |
AllEmojisTest.java | 70 private Paint mPaint; 118 mPaint = new Paint(); 133 mPaint.setTypeface(metadata.getTypeface()); 137 PaintCompat.hasGlyph(mPaint, codepoint));
|
/frameworks/support/wear/src/android/support/wear/widget/ |
ProgressDrawable.java | 81 private final Paint mPaint = new Paint(); 87 mPaint.setAntiAlias(true); 88 mPaint.setStyle(Paint.Style.STROKE); 129 mPaint.setStrokeWidth(mCircleBorderWidth); 130 mPaint.setColor(mCircleBorderColor); 160 mPaint);
|
/packages/apps/Camera2/src/com/android/camera/tinyplanet/ |
TinyPlanetPreview.java | 45 private Paint mPaint = new Paint(); 85 canvas.drawBitmap(mPreview, 0, 0, mPaint);
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
AnimatedCircleDrawable.java | 37 private Paint mPaint; 42 mPaint = new Paint(); 43 mPaint.setAntiAlias(true); 54 mPaint.setColor(paintColor); 124 mRadius, mPaint);
|
CaptureAnimationOverlay.java | 53 private final Paint mPaint = new Paint(); 60 mPaint.setColor(FLASH_COLOR); 66 mPaint.setAlpha((int) alpha); 141 // mPaint alpha is animated by the animation. 142 canvas.drawRect(mPreviewArea, mPaint);
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
TimerCircleView.java | 53 private final Paint mPaint = new Paint(); 77 mPaint.setAntiAlias(true); 78 mPaint.setStyle(Paint.Style.STROKE); 104 mPaint.setColor(mRemainderColor); 105 mPaint.setStrokeWidth(mStrokeSize); 111 canvas.drawCircle(xCenter, yCenter, radius, mPaint); 116 mPaint.setColor(mCompletedColor); 119 canvas.drawCircle(xCenter, yCenter, radius, mPaint); 133 canvas.drawArc(mArcRect, 270, whitePercent * 360, false, mPaint); 136 mPaint.setColor(mCompletedColor) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
ClickShadowView.java | 35 private final Paint mPaint; 46 mPaint = new Paint(Paint.FILTER_BITMAP_FLAG); 47 mPaint.setColor(Color.BLACK); 76 mPaint.setAlpha(SHADOW_LOW_ALPHA); 77 canvas.drawBitmap(mBitmap, 0, 0, mPaint); 78 mPaint.setAlpha(SHADOW_HIGH_ALPHA); 79 canvas.drawBitmap(mBitmap, 0, mShadowOffset, mPaint);
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
WidgetImageView.java | 38 private final Paint mPaint = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.FILTER_BITMAP_FLAG); 74 canvas.drawBitmap(mBitmap, null, mDstRectF, mPaint);
|
/packages/apps/SoundRecorder/src/com/android/soundrecorder/ |
VUMeter.java | 37 Paint mPaint, mShadow; 56 mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); 57 mPaint.setColor(Color.WHITE); 100 canvas.drawLine(x0, y0, pivotX, pivotY, mPaint); 101 canvas.drawCircle(pivotX, pivotY, PIVOT_RADIUS, mPaint);
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/touch/ |
TouchPointView.java | 48 Paint mPaint; 58 mPaint = new Paint(); 59 mPaint.setStyle(Paint.Style.FILL); 112 mPaint.setColor(color); 113 canvas.drawCircle(point.x, point.y, radius, mPaint);
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
LetterTileDrawable.java | 57 private final Paint mPaint; 69 mPaint = new Paint(); 70 mPaint.setFilterBitmap(true); 71 mPaint.setDither(true); 131 drawable.setAlpha(mPaint.getAlpha()); 141 sPaint.setAlpha(mPaint.getAlpha()); 211 mPaint.setAlpha(alpha); 216 mPaint.setColorFilter(cf);
|