Home
last modified time | relevance | path

Searched refs:mBitmapPaint (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DBitmapsActivity.java55 private Paint mBitmapPaint; field in BitmapsActivity.BitmapsView
74 mBitmapPaint = new Paint(); in BitmapsView()
83 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint); in onDraw()
89 mBitmapPaint.setAlpha(127); in onDraw()
92 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint); in onDraw()
94 mBitmapPaint.setAlpha(255); in onDraw()
97 mBitmapPaint.setColor(0xffff0000); in onDraw()
98 canvas.drawRect(0.0f, 0.0f, mBitmap2.getWidth(), mBitmap2.getHeight(), mBitmapPaint); in onDraw()
99 mBitmapPaint.setXfermode(mDstIn); in onDraw()
100 canvas.drawBitmap(mBitmap2, 0.0f, 0.0f, mBitmapPaint); in onDraw()
[all …]
DAlpha8BitmapActivity.java42 private Paint mBitmapPaint; field in Alpha8BitmapActivity.BitmapsView
69 mBitmapPaint = new Paint(); in BitmapsView()
70 mBitmapPaint.setFilterBitmap(true); in BitmapsView()
71 mBitmapPaint.setShader(shader); in BitmapsView()
79 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint); in onDraw()
84 canvas.drawBitmap(mBitmap1, matrix, mBitmapPaint); in onDraw()
89 canvas.drawBitmap(mBitmap1, src, dst, mBitmapPaint); in onDraw()
92 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, null, 0, mBitmapPaint); in onDraw()
DQuickRejectActivity.java39 private Paint mBitmapPaint; field in QuickRejectActivity.QuickRejectView
47 mBitmapPaint = new Paint(); in QuickRejectView()
48 mBitmapPaint.setFilterBitmap(true); in QuickRejectView()
73 count = canvas.saveLayer(0, 0, 10, 10, mBitmapPaint, Canvas.ALL_SAVE_FLAG); in onDraw()
83 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint); in onDraw()
84 canvas.drawBitmap(mBitmap1, -mBitmap1.getWidth(), 0.0f, mBitmapPaint); in onDraw()
85 canvas.drawBitmap(mBitmap1, 50.0f, 0.0f, mBitmapPaint); in onDraw()
DMipMapActivity.java45 private Paint mBitmapPaint; field in MipMapActivity.BitmapsView
57 mBitmapPaint = new Paint(); in BitmapsView()
58 mBitmapPaint.setFilterBitmap(true); in BitmapsView()
67 canvas.drawBitmap(mBitmap1, 0, 0, mBitmapPaint); in onDraw()
73 canvas.drawBitmap(mBitmap2, 0, 0, mBitmapPaint); in onDraw()
DBitmapsRectActivity.java40 private Paint mBitmapPaint; field in BitmapsRectActivity.BitmapsView
53 mBitmapPaint = new Paint(); in BitmapsView()
54 mBitmapPaint.setFilterBitmap(true); in BitmapsView()
70 canvas.drawBitmap(mBitmap1, mSrcRect, mDstRect, mBitmapPaint); in onDraw()
74 canvas.drawBitmap(mBitmap1, mSrcRect, mDstRect2, mBitmapPaint); in onDraw()
DBitmapMutateActivity.java60 private final Paint mBitmapPaint; field in BitmapMutateActivity.BitmapsView
72 mBitmapPaint = new Paint(); in BitmapsView()
103 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint); in onDraw()
107 canvas.drawBitmap(mPixels, 0, width, 0.0f, 0.0f, width, height, false, mBitmapPaint); in onDraw()
DBitmaps3dActivity.java44 private final Paint mBitmapPaint; field in Bitmaps3dActivity.BitmapsView
52 mBitmapPaint = new Paint(); in BitmapsView()
69 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint); in onDraw()
DBitmapsAlphaActivity.java43 private Paint mBitmapPaint; field in BitmapsAlphaActivity.BitmapsView
61 mBitmapPaint = new Paint(); in BitmapsView()
71 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint); in onDraw()
DBitmapsSkewActivity.java38 private Paint mBitmapPaint; field in BitmapsSkewActivity.BitmapsView
53 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint); in onDraw()
DBitmapMeshLayerActivity.java39 private Paint mBitmapPaint; field in BitmapMeshLayerActivity.BitmapMeshView
DBitmapMeshActivity.java38 private Paint mBitmapPaint; field in BitmapMeshActivity.BitmapMeshView
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DCircularBitmapDrawable.java40 private final Paint mBitmapPaint = new Paint(); field in CircularBitmapDrawable
57 mBitmapPaint.setAntiAlias(true); in CircularBitmapDrawable()
58 mBitmapPaint.setFilterBitmap(true); in CircularBitmapDrawable()
59 mBitmapPaint.setDither(true); in CircularBitmapDrawable()
134 BitmapShader shader = (BitmapShader) mBitmapPaint.getShader(); in onDrawCircularBitmap()
148 mBitmapPaint.setShader(shader); in onDrawCircularBitmap()
150 int oldAlpha = mBitmapPaint.getAlpha(); in onDrawCircularBitmap()
151 mBitmapPaint.setAlpha((int) (oldAlpha * alpha)); in onDrawCircularBitmap()
153 mBitmapPaint); in onDrawCircularBitmap() local
154 mBitmapPaint.setAlpha(oldAlpha); in onDrawCircularBitmap()
[all …]