Home
last modified time | relevance | path

Searched refs:mBitmap1 (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DAlpha8BitmapActivity.java43 private final Bitmap mBitmap1; field in Alpha8BitmapActivity.BitmapsView
50 mBitmap1 = Bitmap.createBitmap(texture.getWidth(), texture.getHeight(), in BitmapsView()
52 Canvas canvas = new Canvas(mBitmap1); in BitmapsView()
79 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint); in onDraw()
83 matrix.postTranslate(0.0f, mBitmap1.getHeight()); in onDraw()
84 canvas.drawBitmap(mBitmap1, matrix, mBitmapPaint); in onDraw()
86 Rect src = new Rect(0, 0, mBitmap1.getWidth() / 2, mBitmap1.getHeight() / 2); in onDraw()
87 Rect dst = new Rect(0, mBitmap1.getHeight() * 3, mBitmap1.getWidth(), in onDraw()
88 mBitmap1.getHeight() * 4); in onDraw()
89 canvas.drawBitmap(mBitmap1, src, dst, mBitmapPaint); in onDraw()
[all …]
DBitmapMutateActivity.java61 private final Bitmap mBitmap1; field in BitmapMutateActivity.BitmapsView
71 mBitmap1 = Bitmap.createBitmap(PATTERN_SIZE, PATTERN_SIZE, Bitmap.Config.ARGB_8888); in BitmapsView()
74 mPixels = new int[mBitmap1.getWidth() * mBitmap1.getHeight()]; in BitmapsView()
75 mSlice = mBitmap1.getWidth() / 3; in BitmapsView()
87 int width = mBitmap1.getWidth(); in onDraw()
88 int height = mBitmap1.getHeight(); in onDraw()
102 mBitmap1.setPixels(mPixels, 0, width, 0, 0, width, height); in onDraw()
103 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint); in onDraw()
DColorFiltersActivity.java43 private final Bitmap mBitmap1; field in ColorFiltersActivity.BitmapsView
52 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
76 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mColorMatrixPaint); in onDraw()
78 canvas.translate(0.0f, 50.0f + mBitmap1.getHeight()); in onDraw()
79 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mLightingPaint); in onDraw()
81 canvas.translate(0.0f, 50.0f + mBitmap1.getHeight()); in onDraw()
82 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBlendPaint); in onDraw()
86 canvas.translate(120.0f + mBitmap1.getWidth() + 120.0f, 50.0f); in onDraw()
DBitmapMeshActivity.java39 private final Bitmap mBitmap1; field in BitmapMeshActivity.BitmapMeshView
46 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapMeshView()
48 final float width = mBitmap1.getWidth() / 3.0f; in BitmapMeshView()
49 final float height = mBitmap1.getHeight() / 3.0f; in BitmapMeshView()
73 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, null, 0, null); in onDraw()
78 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, null, 0, null); in onDraw()
82 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, mColors, 0, null); in onDraw()
DTransform3dActivity.java39 private final Bitmap mBitmap1; field in Transform3dActivity.Transform3dView
46 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in Transform3dView()
57 final float centerX = getWidth() / 2.0f - mBitmap1.getWidth() / 2.0f; in onDraw()
58 final float centerY = getHeight() / 2.0f - mBitmap1.getHeight() / 2.0f; in onDraw()
67 drawBitmap(canvas, centerX, centerY, -mBitmap1.getWidth(), matrix); in onDraw()
70 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth(), matrix); in onDraw()
73 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth() * 2.0f, matrix); in onDraw()
82 canvas.drawBitmap(mBitmap1, centerX, centerY, null); in drawBitmap()
DBitmapsRectActivity.java41 private final Bitmap mBitmap1; field in BitmapsRectActivity.BitmapsView
50 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
56 final float fourth = mBitmap1.getWidth() / 4.0f; in BitmapsView()
57 final float half = mBitmap1.getHeight() / 2.0f; in BitmapsView()
70 canvas.drawBitmap(mBitmap1, mSrcRect, mDstRect, mBitmapPaint); in onDraw()
72 canvas.translate(0.0f, mBitmap1.getHeight()); in onDraw()
74 canvas.drawBitmap(mBitmap1, mSrcRect, mDstRect2, mBitmapPaint); in onDraw()
DColorFiltersMutateActivity.java48 private final Bitmap mBitmap1; field in ColorFiltersMutateActivity.BitmapsView
72 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
88 mRuntimeShader.setInputShader("bitmapShader", new BitmapShader(mBitmap1, in BitmapsView()
198 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mColorMatrixPaint); in onDraw()
200 canvas.translate(0.0f, 50.0f + mBitmap1.getHeight()); in onDraw()
201 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mLightingPaint); in onDraw()
203 canvas.translate(0.0f, 50.0f + mBitmap1.getHeight()); in onDraw()
204 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBlendPaint); in onDraw()
206 canvas.translate(0.0f, 50.0f + mBitmap1.getHeight()); in onDraw()
207 canvas.drawRect(0.0f, 0.0f, mBitmap1.getWidth(), mBitmap1.getHeight(), in onDraw()
[all …]
DBitmapMeshLayerActivity.java40 private final Bitmap mBitmap1; field in BitmapMeshLayerActivity.BitmapMeshView
47 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapMeshView()
49 final float width = mBitmap1.getWidth() / 3.0f; in BitmapMeshView()
50 final float height = mBitmap1.getHeight() / 3.0f; in BitmapMeshView()
72 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, null, 0, null); in onDraw()
75 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, mColors, 0, null); in onDraw()
DBitmapsActivity.java56 private final Bitmap mBitmap1; field in BitmapsActivity.BitmapsView
63 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
66 Log.d("Bitmap", "mBitmap1.isMutable() = " + mBitmap1.isMutable()); in BitmapsView()
83 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint); in onDraw()
85 canvas.translate(0.0f, mBitmap1.getHeight()); in onDraw()
92 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint); in onDraw()
95 canvas.translate(0.0f, mBitmap1.getHeight()); in onDraw()
DQuickRejectActivity.java40 private final Bitmap mBitmap1; field in QuickRejectActivity.QuickRejectView
45 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in QuickRejectView()
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.java46 private final Bitmap mBitmap1; field in MipMapActivity.BitmapsView
52 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.very_large_photo); in BitmapsView()
55 mBitmap1.setHasMipMap(true); in BitmapsView()
67 canvas.drawBitmap(mBitmap1, 0, 0, mBitmapPaint); in onDraw()
71 canvas.translate(mBitmap1.getWidth() * 0.3f + 96.0f, 0.0f); in onDraw()
DBitmapsAlphaActivity.java44 private final Bitmap mBitmap1; field in BitmapsAlphaActivity.BitmapsView
52 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
71 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint); in onDraw()
73 canvas.translate(0.0f, mBitmap1.getHeight()); in onDraw()
DBitmapsSkewActivity.java39 private final Bitmap mBitmap1; field in BitmapsSkewActivity.BitmapsView
44 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
53 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint); in onDraw()
DBitmaps3dActivity.java45 private final Bitmap mBitmap1; field in Bitmaps3dActivity.BitmapsView
51 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
69 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint); in onDraw()
DClearActivity.java41 private final Bitmap mBitmap1; field in ClearActivity.PathsView
48 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset2); in PathsView()
74 canvas.drawBitmap(mBitmap1, 400.0f, 100.0f, mClearPaint); in onDraw()
DLinesActivity.java58 private final Bitmap mBitmap1; field in LinesActivity.LinesView
72 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in LinesView()
99 mShader = new BitmapShader(mBitmap1, BitmapShader.TileMode.MIRROR, in LinesView()
DPathsActivity.java41 private final Bitmap mBitmap1; field in PathsActivity.PathsView
56 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in PathsView()
82 mShader = new BitmapShader(mBitmap1, BitmapShader.TileMode.MIRROR, in PathsView()
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
DBoundsCheckTest.java37 private final BitmapDrawable mBitmap1; field in BoundsCheckTest.BitmapsView
43 mBitmap1 = (BitmapDrawable) res.getDrawable(R.drawable.icon); in BitmapsView()
50 mBitmap1.setBounds(100, 100, 400, 400); in onDraw()
51 mBitmap1.draw(canvas); in onDraw()