Home
last modified time | relevance | path

Searched refs:mLayerPaint (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DLayersActivity.java37 private Paint mLayerPaint; field in LayersActivity.LayersView
43 mLayerPaint = new Paint(); in LayersView()
55 int count = canvas.saveLayer(0.0f, 0.0f, 200.0f, 100.0f, mLayerPaint, in onDraw()
65 count = canvas.saveLayer(0.0f, 0.0f, 200.0f, 100.0f, mLayerPaint, in onDraw()
80 mLayerPaint.setAlpha(127); in onDraw()
81 mLayerPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_OUT)); in onDraw()
82 count = canvas.saveLayer(50.0f, 25.0f, 150.0f, 75.0f, mLayerPaint, in onDraw()
96 mLayerPaint.setColor(0xffff0000); in onDraw()
97 mLayerPaint.setAlpha(127); in onDraw()
98 mLayerPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_ATOP)); in onDraw()
[all …]
DNewLayersActivity.java35 private Paint mLayerPaint; field in NewLayersActivity.LayersView
41 mLayerPaint = new Paint(); in LayersView()
42 mLayerPaint.setAlpha(127); in LayersView()
65 int count = canvas.saveLayer(0.0f, 0.0f, 200.0f, 100.0f, mLayerPaint, saveFlags); in drawStuff()
/frameworks/base/core/java/android/view/
DTextureView.java296 if (paint != mLayerPaint) { in setLayerPaint()
297 mLayerPaint = paint; in setLayerPaint()
356 mLayer.setLayerPaint(mLayerPaint); // ensure layer paint is up to date in draw()
404 mLayer.setLayerPaint(mLayerPaint); in getTextureLayer()
DView.java5162 Paint mLayerPaint; field in View
20910 mLayerPaint = mLayerType == LAYER_TYPE_NONE ? null : paint; in setLayerType()
20911 mRenderNode.setLayerPaint(mLayerPaint); in setLayerType()
20947 mLayerPaint = paint; in setLayerPaint()
21206 canvas.drawBitmap(cache, 0, 0, mLayerPaint); in updateDisplayListIfDirty()
22228 if (layerType == LAYER_TYPE_NONE || mLayerPaint == null) { in draw()
22240 int layerPaintAlpha = mLayerPaint.getAlpha(); in draw()
22242 mLayerPaint.setAlpha((int) (alpha * layerPaintAlpha)); in draw()
22244 canvas.drawBitmap(cache, 0.0f, 0.0f, mLayerPaint); in draw()
22246 mLayerPaint.setAlpha(layerPaintAlpha); in draw()
/frameworks/base/graphics/java/android/graphics/drawable/
DGradientDrawable.java189 private Paint mLayerPaint; // internal, used if we use saveLayer() field in GradientDrawable
763 if (mLayerPaint == null) { in draw()
764 mLayerPaint = new Paint(); in draw()
766 mLayerPaint.setDither(st.mDither); in draw()
767 mLayerPaint.setAlpha(mAlpha); in draw()
768 mLayerPaint.setColorFilter(colorFilter); in draw()
773 mLayerPaint); in draw()