/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | TJunctionActivity.java | 35 private final Paint mPaint; field in TJunctionActivity.TJunctionView 42 mPaint = new Paint(); in TJunctionView() 49 mPaint.setColor(0xffff0000); in onDraw() 52 canvas.drawRect(0.0f, 0.0f, 100.0f, 50.0f, mPaint); in onDraw() 54 mPaint.setColor(0xff00ff00); in onDraw() 57 canvas.drawRect(0.0f, 0.0f, 100.0f, 50.0f, mPaint); in onDraw() 59 mPaint.setColor(0xff0000ff); in onDraw() 62 canvas.drawRect(0.0f, 0.0f, 100.0f, 50.0f, mPaint); in onDraw() 64 mPaint.setColor(0xffffffff); in onDraw() 67 canvas.drawRect(0.0f, 0.0f, 100.0f, 50.0f, mPaint); in onDraw() [all …]
|
D | AdvancedGradientsActivity.java | 40 private final Paint mPaint; field in AdvancedGradientsActivity.GradientsView 65 mPaint = new Paint(); in GradientsView() 77 mPaint.setShader(mSweepGradient); in onDraw() 78 canvas.drawRect(0.0f, 0.0f, 200.0f, 200.0f, mPaint); in onDraw() 83 mPaint.setShader(mSweepGradient); in onDraw() 84 canvas.drawRect(0.0f, 0.0f, 200.0f, 200.0f, mPaint); in onDraw() 89 mPaint.setShader(mSweepGradient); in onDraw() 90 canvas.drawRect(0.0f, 0.0f, 200.0f, 200.0f, mPaint); in onDraw() 95 mPaint.setShader(mRadialGradient); in onDraw() 96 canvas.drawRect(0.0f, 0.0f, 200.0f, 200.0f, mPaint); in onDraw() [all …]
|
D | GradientsActivity.java | 92 private final Paint mPaint; field in GradientsActivity.BitmapView 100 mPaint = new Paint(); in BitmapView() 101 mPaint.setShader(shader); in BitmapView() 113 canvas.drawRect(0.0f, 0.0f, getWidth(), getHeight(), mPaint); in onDraw() 118 private final Paint mPaint; field in GradientsActivity.GradientView 125 mPaint = new Paint(); in GradientView() 126 mPaint.setShader(gradient); in GradientView() 138 canvas.drawRect(0.0f, 0.0f, getWidth(), getHeight(), mPaint); in onDraw() 143 private final Paint mPaint; field in GradientsActivity.RadialGradientView 150 mPaint = new Paint(); in RadialGradientView() [all …]
|
D | FramebufferBlendActivity.java | 46 private Paint mPaint; field in FramebufferBlendActivity.BlendView 60 mPaint = new Paint(); in BlendView() 88 mPaint.setShader(null); in drawBlendedBitmap() 89 mPaint.setXfermode(null); in drawBlendedBitmap() 90 canvas.drawBitmap(mTexture, 0.0f, 0.0f, mPaint); in drawBlendedBitmap() 92 mPaint.setShader(mHorGradient); in drawBlendedBitmap() 93 mPaint.setXfermode(new PorterDuffXfermode(mode)); in drawBlendedBitmap() 94 canvas.drawRect(0.0f, 0.0f, mTexWidth, mTexHeight, mPaint); in drawBlendedBitmap() 100 mPaint.setXfermode(null); in drawBlendedBitmapInverse() 101 mPaint.setShader(mHorGradient); in drawBlendedBitmapInverse() [all …]
|
D | AlphaLayersActivity.java | 72 private final Paint mPaint; field in AlphaLayersActivity.DirtyBitmapView 76 mPaint = new Paint(); in DirtyBitmapView() 83 mPaint.setColor(0xffff0000); in dispatchDraw() 84 canvas.drawRect(200.0f, 0.0f, 220.0f, 20.0f, mPaint); in dispatchDraw() 119 mPaint.setColor(0xff00ff00); in dispatchDraw() 120 canvas.drawRect(0.0f, 0.0f, 20.0f, 20.0f, mPaint); in dispatchDraw() 122 mPaint.setColor(0xff0000ff); in dispatchDraw() 123 canvas.drawRect(20.0f, 0.0f, 40.0f, 20.0f, mPaint); in dispatchDraw() 130 mPaint.setColor(0xff0000ff); in dispatchDraw() 131 canvas.drawRect(0.0f, 100.0f, 40.0f, 150.0f, mPaint); in dispatchDraw() [all …]
|
D | AdvancedBlendActivity.java | 48 private Paint mPaint; field in AdvancedBlendActivity.ShadersView 97 mPaint = new Paint(); in ShadersView() 108 mPaint.setShader(mComposeShader); in onDraw() 109 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw() 112 mPaint.setShader(mCompose2Shader); in onDraw() 113 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw() 116 mPaint.setShader(mCompose3Shader); in onDraw() 117 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw() 124 mPaint.setShader(mCompose4Shader); in onDraw() 125 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw() [all …]
|
D | ShadersActivity.java | 48 private Paint mPaint; field in ShadersActivity.ShadersView 98 mPaint = new Paint(); in ShadersView() 111 mPaint.setShader(mRepeatShader); in onDraw() 112 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw() 115 mPaint.setShader(mTranslatedShader); in onDraw() 116 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw() 119 mPaint.setShader(mScaledShader); in onDraw() 120 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw() 128 mPaint.setShader(mHorGradient); in onDraw() 129 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw() [all …]
|
D | TextOnPathActivity.java | 71 private final Paint mPaint; field in TextOnPathActivity.TextOnPathView 83 mPaint = new Paint(); in TextOnPathView() 84 mPaint.setAntiAlias(true); in TextOnPathView() 85 mPaint.setColor(0xff000000); in TextOnPathView() 114 mPaint.setTextAlign(Paint.Align.LEFT); in onDraw() 115 canvas.drawTextOnPath(mText + mText, mPath, 0.0f, 0.0f, mPaint); in onDraw() 128 canvas.drawTextOnPath(mText + mText, mStraightPath, 0.0f, 0.0f, mPaint); in onDraw() 135 canvas.drawTextOnPath(mText, mPath, 0.0f, 10.0f, mPaint); in onDraw() 142 mPaint.setTextAlign(Paint.Align.CENTER); in onDraw() 143 canvas.drawTextOnPath(mText, mPath, 0.0f, 0.0f, mPaint); in onDraw() [all …]
|
D | RotationActivity.java | 43 private final Paint mPaint; field in RotationActivity.DrawingView 47 mPaint = new Paint(); in DrawingView() 48 mPaint.setAntiAlias(true); in DrawingView() 57 mPaint.setColor(0xffff0000); in onDraw() 58 canvas.drawRect(-80.0f, -80.0f, 80.0f, 80.0f, mPaint); in onDraw() 59 canvas.drawRect(0.0f, 0.0f, 220.0f, 220.0f, mPaint); in onDraw()
|
D | PathOffsetActivity.java | 40 private Paint mPaint; field in PathOffsetActivity.PathsView 45 mPaint = new Paint(); in PathsView() 46 mPaint.setStyle(Paint.Style.STROKE); in PathsView() 47 mPaint.setStrokeWidth(3); in PathsView() 57 mPaint.setColor(Color.RED); in onDraw() 58 canvas.drawPath(mPath, mPaint); in onDraw()
|
D | SmallCircleActivity.java | 48 private final Paint mPaint; field in SmallCircleActivity.PathView 58 mPaint = new Paint(); in PathView() 59 mPaint.setAntiAlias(true); in PathView() 60 mPaint.setColor(0xffffffff); in PathView() 67 canvas.drawPath(mPath, mPaint); in onDraw()
|
D | MoreShadersActivity.java | 50 private Paint mPaint; field in MoreShadersActivity.ShadersView 101 mPaint = new Paint(); in ShadersView() 112 mPaint.setShader(mComposeShader); in onDraw() 113 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw() 116 mPaint.setShader(mCompose2Shader); in onDraw() 117 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
|
D | MultiLayersActivity.java | 60 private final Paint mPaint; field in MultiLayersActivity.LayerView 64 mPaint = new Paint(); in LayerView() 65 mPaint.setColor(color); in LayerView() 71 canvas.drawRect(0.0f, 0.0f, getWidth(), getHeight(), mPaint); in onDraw()
|
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/ |
D | KeyguardCircleFramedDrawable.java | 38 private final Paint mPaint; field in KeyguardCircleFramedDrawable 82 mPaint = new Paint(); in KeyguardCircleFramedDrawable() 83 mPaint.setAntiAlias(true); in KeyguardCircleFramedDrawable() 84 mPaint.setColor(Color.BLACK); in KeyguardCircleFramedDrawable() 85 mPaint.setStyle(Paint.Style.FILL); in KeyguardCircleFramedDrawable() 86 canvas.drawPath(fillPath, mPaint); in KeyguardCircleFramedDrawable() 89 mPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_ATOP)); in KeyguardCircleFramedDrawable() 90 canvas.drawBitmap(bitmap, cropRect, circleRect, mPaint); in KeyguardCircleFramedDrawable() 93 mPaint.setXfermode(null); in KeyguardCircleFramedDrawable() 122 mPaint.setStyle(Paint.Style.FILL); in draw() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | NinePatch.java | 40 private Paint mPaint; field in NinePatch 66 if (patch.mPaint != null) { in NinePatch() 67 mPaint = new Paint(patch.mPaint); in NinePatch() 73 mPaint = p; in setPaint() 86 mPaint != null ? mPaint.mNativePaint : 0, in draw() 89 canvas.drawPatch(mBitmap, mChunk, location, mPaint); in draw() 103 mPaint != null ? mPaint.mNativePaint : 0, in draw() 107 canvas.drawPatch(mBitmap, mChunk, mRect, mPaint); in draw()
|
/frameworks/ex/carousel/test/src/com/android/carouseltest/ |
D | CarouselTestActivity.java | 49 private Paint mPaint = new Paint(); field in CarouselTestActivity 89 mPaint.setColor(0x40808080); in getTexture() 90 canvas.drawRect(2, 2, TEXTURE_WIDTH-2, TEXTURE_HEIGHT-2, mPaint); in getTexture() 91 mPaint.setTextSize(100.0f); in getTexture() 92 mPaint.setAntiAlias(true); in getTexture() 93 mPaint.setColor(0xffffffff); in getTexture() 94 canvas.drawText("" + n, 2, TEXTURE_HEIGHT-10, mPaint); in getTexture() 97 TEXTURE_WIDTH - PIXEL_BORDER, TEXTURE_HEIGHT - PIXEL_BORDER), mPaint); in getTexture() 107 mPaint.setTextSize(15.0f); in getDetailTexture() 108 mPaint.setAntiAlias(true); in getDetailTexture() [all …]
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | ShapeDrawable.java | 119 return mShapeState.mPaint; in getPaint() 215 Paint paint = mShapeState.mPaint; in draw() 255 mShapeState.mPaint.setColorFilter(cf); in setColorFilter() 262 final Paint p = mShapeState.mPaint; in getOpacity() 279 mShapeState.mPaint.setDither(dither); in setDither() 322 int color = mShapeState.mPaint.getColor(); in inflate() 324 mShapeState.mPaint.setColor(color); in inflate() 327 mShapeState.mPaint.setDither(dither); in inflate() 361 mShapeState.mPaint.setShader(mShapeState.mShaderFactory.resize(w, h)); in updateShape() 376 if (mShapeState.mPaint != null) { in mutate() [all …]
|
D | BitmapDrawable.java | 168 return mBitmapState.mPaint; in getPaint() 266 mBitmapState.mPaint.setAntiAlias(aa); in setAntiAlias() 272 mBitmapState.mPaint.setFilterBitmap(filter); in setFilterBitmap() 278 mBitmapState.mPaint.setDither(dither); in setDither() 375 state.mPaint.setShader(null); in draw() 377 state.mPaint.setShader(new BitmapShader(bitmap, in draw() 385 Shader shader = state.mPaint.getShader(); in draw() 393 canvas.drawBitmap(bitmap, null, mDstRect, state.mPaint); in draw() 399 canvas.drawRect(mDstRect, state.mPaint); in draw() 406 int oldAlpha = mBitmapState.mPaint.getAlpha(); in setAlpha() [all …]
|
D | NinePatchDrawable.java | 60 private Paint mPaint; field in NinePatchDrawable 221 mNinePatch.draw(canvas, getBounds(), mPaint); in draw() 245 if (mPaint == null && alpha == 0xFF) { in setAlpha() 255 if (mPaint == null && cf == null) { in setColorFilter() 265 if (mPaint == null && dither == DEFAULT_DITHER) { in setDither() 333 if (mPaint == null) { in getPaint() 334 mPaint = new Paint(); in getPaint() 335 mPaint.setDither(DEFAULT_DITHER); in getPaint() 337 return mPaint; in getPaint() 372 return mNinePatch.hasAlpha() || (mPaint != null && mPaint.getAlpha() < 255) ? in getOpacity()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | TextLayoutTest.java | 30 protected TextPaint mPaint; field in TextLayoutTest 35 mPaint = new TextPaint(); in setUp() 40 Layout l = new StaticLayout(mString, mPaint, 200, in testStaticLayout() 47 Layout l = new DynamicLayout(mString, mPaint, 200, in testDynamicLayoutTest()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | PointerLocationView.java | 101 private final Paint mPaint; field in PointerLocationView 138 mPaint = new Paint(); in PointerLocationView() 139 mPaint.setAntiAlias(true); in PointerLocationView() 140 mPaint.setARGB(255, 255, 255, 255); in PointerLocationView() 141 mPaint.setStyle(Paint.Style.STROKE); in PointerLocationView() 142 mPaint.setStrokeWidth(2); in PointerLocationView() 149 mPaint.setStyle(Paint.Style.STROKE); in PointerLocationView() 150 mPaint.setStrokeWidth(1); in PointerLocationView() 280 mPaint.setARGB(255, 128, 255, 255); in onDraw() 290 canvas.drawPoint(lastX, lastY, mPaint); in onDraw() [all …]
|
D | RotarySelector.java | 89 private Paint mPaint = new Paint(); field in RotarySelector 298 mPaint.setColor(0xffff0000); in onDraw() 299 mPaint.setStyle(Paint.Style.STROKE); in onDraw() 300 canvas.drawRect(0, 0, width, getHeight(), mPaint); in onDraw() 311 canvas.drawBitmap(mBackground, mBgMatrix, mPaint); in onDraw() 325 canvas.drawBitmap(mArrowLongLeft, mArrowMatrix, mPaint); in onDraw() 334 canvas.drawBitmap(mArrowLongRight, mArrowMatrix, mPaint); in onDraw() 351 canvas.drawCircle(midX, or + bgTop, or, mPaint); in onDraw() 353 canvas.drawCircle(or + bgTop, midX, or, mPaint); in onDraw() 693 c.drawBitmap(d, x - (w / 2), y - (h / 2), mPaint);
|
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/ |
D | PointCloud.java | 37 private Paint mPaint; field in PointCloud 119 mPaint = new Paint(); in PointCloud() 120 mPaint.setFilterBitmap(true); in PointCloud() 121 mPaint.setColor(Color.rgb(255, 255, 255)); // TODO: make configurable in PointCloud() 122 mPaint.setAntiAlias(true); in PointCloud() 123 mPaint.setDither(true); in PointCloud() 228 mPaint.setAlpha(alpha); in draw() 229 canvas.drawCircle(px, py, pointSize, mPaint); in draw()
|
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
D | FakeView.java | 49 final Paint mPaint = new Paint(); field in FakeView 72 mPaint.setTextSize(mRandom.nextInt(40) + 10); in onDraw() 73 mPaint.setColor(0xff000000 + mRandom.nextInt(0x1000000)); in onDraw() 77 x, y, mPaint); in onDraw()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | TrackingPatternView.java | 31 private Paint mPaint; field in TrackingPatternView 43 mPaint = new Paint(); in TrackingPatternView() 44 mPaint.setDither(false); in TrackingPatternView() 50 final Paint paint = mPaint; in onDraw()
|