Searched refs:mLayerPaint (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | LayersActivity.java | 37 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 …]
|
D | NewLayersActivity.java | 35 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/ |
D | TextureView.java | 182 mLayerPaint = new Paint(); in init() 268 if (paint != mLayerPaint) { in setLayerType() 269 mLayerPaint = paint == null ? new Paint() : paint; in setLayerType() 372 mLayer.setLayerPaint(mLayerPaint); in getHardwareLayer()
|
D | View.java | 3493 Paint mLayerPaint; field in View 13876 mLayerPaint = layerDisabled ? null : (paint == null ? new Paint() : paint); 13877 mRenderNode.setLayerPaint(mLayerPaint); 13913 mLayerPaint = paint == null ? new Paint() : paint; 13915 if (mRenderNode.setLayerPaint(mLayerPaint)) { 14146 canvas.drawHardwareLayer(layer, 0, 0, mLayerPaint); 14151 canvas.drawBitmap(cache, 0, 0, mLayerPaint); 15119 int restoreAlpha = mLayerPaint.getAlpha(); 15120 mLayerPaint.setAlpha((int) (alpha * 255)); 15121 ((HardwareCanvas) canvas).drawHardwareLayer(layer, 0, 0, mLayerPaint); [all …]
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | GradientDrawable.java | 145 private Paint mLayerPaint; // internal, used if we use saveLayer() field in GradientDrawable 547 if (mLayerPaint == null) { in draw() 548 mLayerPaint = new Paint(); in draw() 550 mLayerPaint.setDither(st.mDither); in draw() 551 mLayerPaint.setAlpha(mAlpha); in draw() 552 mLayerPaint.setColorFilter(colorFilter); in draw() 557 mLayerPaint, Canvas.HAS_ALPHA_LAYER_SAVE_FLAG); in draw()
|