/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
Alpha8BitmapActivity.java | 43 private final Bitmap mBitmap1; 50 mBitmap1 = Bitmap.createBitmap(texture.getWidth(), texture.getHeight(), 52 Canvas canvas = new Canvas(mBitmap1); 79 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint); 83 matrix.postTranslate(0.0f, mBitmap1.getHeight()); 84 canvas.drawBitmap(mBitmap1, matrix, mBitmapPaint); 86 Rect src = new Rect(0, 0, mBitmap1.getWidth() / 2, mBitmap1.getHeight() / 2); 87 Rect dst = new Rect(0, mBitmap1.getHeight() * 3, mBitmap1.getWidth() [all...] |
BitmapMeshActivity.java | 39 private final Bitmap mBitmap1; 46 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); 48 final float width = mBitmap1.getWidth() / 3.0f; 49 final float height = mBitmap1.getHeight() / 3.0f; 73 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, null, 0, null); 78 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, null, 0, null); 82 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, mColors, 0, null);
|
BitmapsRectActivity.java | 41 private final Bitmap mBitmap1; 50 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); 56 final float fourth = mBitmap1.getWidth() / 4.0f; 57 final float half = mBitmap1.getHeight() / 2.0f; 70 canvas.drawBitmap(mBitmap1, mSrcRect, mDstRect, mBitmapPaint); 72 canvas.translate(0.0f, mBitmap1.getHeight()); 74 canvas.drawBitmap(mBitmap1, mSrcRect, mDstRect2, mBitmapPaint);
|
BitmapMutateActivity.java | 61 private final Bitmap mBitmap1; 71 mBitmap1 = Bitmap.createBitmap(PATTERN_SIZE, PATTERN_SIZE, Bitmap.Config.ARGB_8888); 74 mPixels = new int[mBitmap1.getWidth() * mBitmap1.getHeight()]; 75 mSlice = mBitmap1.getWidth() / 3; 87 int width = mBitmap1.getWidth(); 88 int height = mBitmap1.getHeight(); 102 mBitmap1.setPixels(mPixels, 0, width, 0, 0, width, height); 103 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint);
|
BitmapsSkewActivity.java | 39 private final Bitmap mBitmap1; 44 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); 53 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint);
|
BitmapMeshLayerActivity.java | 40 private final Bitmap mBitmap1; 47 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); 49 final float width = mBitmap1.getWidth() / 3.0f; 50 final float height = mBitmap1.getHeight() / 3.0f; 72 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, null, 0, null); 75 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, mColors, 0, null);
|
ColorFiltersActivity.java | 43 private final Bitmap mBitmap1; 52 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); 76 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mColorMatrixPaint); 78 canvas.translate(0.0f, 50.0f + mBitmap1.getHeight()); 79 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mLightingPaint); 81 canvas.translate(0.0f, 50.0f + mBitmap1.getHeight()); 82 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBlendPaint); 86 canvas.translate(120.0f + mBitmap1.getWidth() + 120.0f, 50.0f);
|
Transform3dActivity.java | 39 private final Bitmap mBitmap1; 46 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); 57 final float centerX = getWidth() / 2.0f - mBitmap1.getWidth() / 2.0f; 58 final float centerY = getHeight() / 2.0f - mBitmap1.getHeight() / 2.0f; 67 drawBitmap(canvas, centerX, centerY, -mBitmap1.getWidth(), matrix); 70 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth(), matrix); 73 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth() * 2.0f, matrix); 82 canvas.drawBitmap(mBitmap1, centerX, centerY, null);
|
MipMapActivity.java | 46 private final Bitmap mBitmap1; 52 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.very_large_photo); 55 mBitmap1.setHasMipMap(true); 67 canvas.drawBitmap(mBitmap1, 0, 0, mBitmapPaint); 71 canvas.translate(mBitmap1.getWidth() * 0.3f + 96.0f, 0.0f);
|
QuickRejectActivity.java | 40 private final Bitmap mBitmap1; 45 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); 83 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint); 84 canvas.drawBitmap(mBitmap1, -mBitmap1.getWidth(), 0.0f, mBitmapPaint); 85 canvas.drawBitmap(mBitmap1, 50.0f, 0.0f, mBitmapPaint);
|
Bitmaps3dActivity.java | 45 private final Bitmap mBitmap1; 51 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); 69 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint);
|
BitmapsActivity.java | 56 private final Bitmap mBitmap1; 63 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); 66 Log.d("Bitmap", "mBitmap1.isMutable() = " + mBitmap1.isMutable()); 83 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint); 85 canvas.translate(0.0f, mBitmap1.getHeight()); 92 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint); 95 canvas.translate(0.0f, mBitmap1.getHeight());
|
BitmapsAlphaActivity.java | 44 private final Bitmap mBitmap1; 52 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); 71 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint); 73 canvas.translate(0.0f, mBitmap1.getHeight());
|
ColorFiltersMutateActivity.java | 45 private final Bitmap mBitmap1; 59 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); 159 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mColorMatrixPaint); 161 canvas.translate(0.0f, 50.0f + mBitmap1.getHeight()); 162 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mLightingPaint); 164 canvas.translate(0.0f, 50.0f + mBitmap1.getHeight()); 165 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBlendPaint); 169 canvas.translate(120.0f + mBitmap1.getWidth() + 120.0f, 50.0f);
|
ClearActivity.java | 41 private final Bitmap mBitmap1; 48 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset2); 74 canvas.drawBitmap(mBitmap1, 400.0f, 100.0f, mClearPaint);
|
LinesActivity.java | 58 private final Bitmap mBitmap1; 72 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); 99 mShader = new BitmapShader(mBitmap1, BitmapShader.TileMode.MIRROR,
|
PathsActivity.java | 41 private final Bitmap mBitmap1; 56 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); 82 mShader = new BitmapShader(mBitmap1, BitmapShader.TileMode.MIRROR,
|
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/ |
BoundsCheckTest.java | 37 private final BitmapDrawable mBitmap1; 43 mBitmap1 = (BitmapDrawable) res.getDrawable(R.drawable.icon); 50 mBitmap1.setBounds(100, 100, 400, 400); 51 mBitmap1.draw(canvas);
|
/art/test/079-phantom/src/ |
Main.java | 18 Bitmap mBitmap1, mBitmap2, mBitmap3, mBitmap4; 47 mBitmap1 = null; 81 mBitmap1 = new Bitmap("one", 10, 10, dataA);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
BitmapPixels.java | 36 private Bitmap mBitmap1; 141 mBitmap1 = Bitmap.createBitmap(N, N, Bitmap.Config.ARGB_8888); 145 mBitmap1.copyPixelsFromBuffer(makeBuffer(data8888, N)); 154 canvas.drawBitmap(mBitmap1, 10, y, null); 155 y += mBitmap1.getHeight() + 10;
|