Searched defs:canvas (Results 1 - 25 of 339) sorted by relevance

1234567891011>>

/frameworks/base/graphics/java/android/graphics/drawable/shapes/
H A DOvalShape.java35 public void draw(Canvas canvas, Paint paint) { argument
36 canvas.drawOval(rect(), paint);
H A DArcShape.java47 public void draw(Canvas canvas, Paint paint) { argument
48 canvas.drawArc(rect(), mStart, mSweep, true, paint);
H A DRectShape.java36 public void draw(Canvas canvas, Paint paint) { argument
37 canvas.drawRect(mRect, paint);
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
H A DDrawableRecipientChip.java35 void draw(Canvas canvas); argument
/frameworks/base/core/java/android/widget/
H A DSpace.java64 * @param canvas an unused parameter.
67 public void draw(Canvas canvas) { argument
/frameworks/base/core/tests/coretests/src/android/view/
H A DViewAttachView.java76 protected void onDraw(Canvas canvas) { argument
77 super.onDraw(canvas);
78 canvas.drawColor(Color.BLUE);
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/
H A DFakeView.java69 protected void onDraw(Canvas canvas) { argument
70 super.onDraw(canvas);
71 canvas.drawColor(0xff000000);
76 canvas.drawText("abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DAppIconDragShadowBuilder.java49 public void onDrawShadow(Canvas canvas) { argument
54 mDrawable.draw(canvas);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DTexture.java41 public void draw(GLCanvas canvas, int x, int y); argument
42 public void draw(GLCanvas canvas, int x, int y, int w, int h); argument
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
H A DBiDiTestViewDrawText.java54 protected void onDraw(Canvas canvas) { argument
55 super.onDraw(canvas);
64 canvas.drawText(mText, width / 2, height * 2 / 3, paint);
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
H A DMainView.java41 protected void onDraw(Canvas canvas) { argument
42 super.onDraw(canvas);
45 DisplayModifier.apply(mPaint, canvas);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DAlpha8BitmapActivity.java52 Canvas canvas = new Canvas(mBitmap1);
53 canvas.drawBitmap(texture, 0.0f, 0.0f, null);
75 protected void onDraw(Canvas canvas) { argument
76 super.onDraw(canvas);
78 canvas.drawColor(0xffffffff);
79 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint);
84 canvas.drawBitmap(mBitmap1, matrix, mBitmapPaint);
89 canvas.drawBitmap(mBitmap1, src, dst, mBitmapPaint);
91 canvas.translate(0.0f, mBitmap1.getHeight() * 4);
92 canvas
[all...]
H A DAssetsAtlasActivity.java50 protected void onDraw(Canvas canvas) { argument
51 super.onDraw(canvas);
59 canvas.drawBitmap(mBitmap, 0.0f, 0.0f, null);
60 canvas.translate(0.0f, mBitmap.getHeight());
61 canvas.drawBitmap(mBitmap, matrix, null);
62 canvas.translate(0.0f, mBitmap.getHeight());
63 canvas.drawBitmap(mBitmap, src, dst, null);
H A DBigGradientActivity.java42 protected void onDraw(Canvas canvas) { argument
47 canvas.drawRect(0.0f, 0.0f, getWidth(), getHeight(), p);
H A DBitmapMeshActivity.java67 protected void onDraw(Canvas canvas) { argument
68 super.onDraw(canvas);
70 canvas.drawARGB(255, 255, 255, 255);
72 canvas.translate(100, 100);
73 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, null, 0, null);
75 canvas.save();
76 canvas.translate(0, 400);
77 canvas.clipRect(0.0f, 0.0f, 80.0f, 80.0f);
78 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, null, 0, null);
79 canvas
[all...]
H A DBitmapMeshLayerActivity.java68 protected void onDraw(Canvas canvas) { argument
69 super.onDraw(canvas);
71 canvas.translate(100, 100);
72 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, null, 0, null);
74 canvas.translate(400, 0);
75 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, mColors, 0, null);
H A DBitmaps3dActivity.java60 protected void onDraw(Canvas canvas) { argument
61 super.onDraw(canvas);
63 canvas.drawColor(0xffffffff);
65 canvas.save();
66 canvas.translate(120.0f, 50.0f);
68 canvas.concat(mMatrix);
69 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint);
71 canvas.restore();
H A DBitmapsActivity.java79 protected void onDraw(Canvas canvas) { argument
80 super.onDraw(canvas);
82 canvas.translate(120.0f, 50.0f);
83 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint);
85 canvas.translate(0.0f, mBitmap1.getHeight());
86 canvas.translate(0.0f, 25.0f);
87 canvas.drawBitmap(mBitmap2, 0.0f, 0.0f, null);
90 canvas.translate(0.0f, mBitmap2.getHeight());
91 canvas.translate(0.0f, 25.0f);
92 canvas
[all...]
H A DBitmapsAlphaActivity.java65 protected void onDraw(Canvas canvas) { argument
66 super.onDraw(canvas);
70 canvas.translate(120.0f, 50.0f);
71 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint);
73 canvas.translate(0.0f, mBitmap1.getHeight());
74 canvas.translate(0.0f, 25.0f);
75 canvas.drawBitmap(mBitmap2, 0.0f, 0.0f, null);
77 canvas.translate(0.0f, mBitmap2.getHeight());
78 canvas.translate(0.0f, 25.0f);
79 canvas
[all...]
H A DBitmapsSkewActivity.java48 protected void onDraw(Canvas canvas) { argument
49 super.onDraw(canvas);
51 canvas.translate(120.0f, 50.0f);
52 canvas.skew(0.2f, 0.3f);
53 canvas.drawBitmap(mBitmap1, 0.0f, 0.0f, mBitmapPaint);
H A DClearActivity.java67 protected void onDraw(Canvas canvas) { argument
68 super.onDraw(canvas);
70 canvas.save(); {
71 canvas.drawARGB(255, 255, 255, 255);
72 canvas.drawRect(100.0f, 100.0f, 200.0f, 200.0f, mClearPaint);
73 canvas.drawCircle(150.0f, 400.0f, 100.0f, mClearPaint);
74 canvas.drawBitmap(mBitmap1, 400.0f, 100.0f, mClearPaint);
75 canvas.save(); {
76 canvas.translate(400.0f, 400.0f);
77 canvas
[all...]
H A DColorFiltersActivity.java69 protected void onDraw(Canvas canvas) { argument
70 super.onDraw(canvas);
72 canvas.drawARGB(255, 255, 255, 255);
74 canvas.save();
75 canvas.translate(120.0f, 50.0f);
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
[all...]
H A DGradientStopsActivity.java44 protected void onDraw(Canvas canvas) { argument
53 canvas.drawRect(0.0f, 0.0f, 256.0f, 50.0f, paint);
62 canvas.translate(0.0f, 75.0f);
63 canvas.drawRect(0.0f, 0.0f, 256.0f, 50.0f, paint);
72 canvas.translate(0.0f, 75.0f);
73 canvas.drawRect(0.0f, 0.0f, 256.0f, 50.0f, paint);
81 canvas.translate(0.0f, 75.0f);
82 canvas.drawRect(0.0f, 0.0f, 256.0f, 50.0f, paint);
89 canvas.translate(0.0f, 75.0f);
90 canvas
[all...]
H A DLayersActivity.java48 protected void onDraw(Canvas canvas) { argument
49 super.onDraw(canvas);
51 canvas.translate(140.0f, 100.0f);
53 //canvas.drawRGB(255, 255, 255);
55 int count = canvas.saveLayer(0.0f, 0.0f, 200.0f, 100.0f, mLayerPaint,
59 canvas.drawRect(0.0f, 0.0f, 200.0f, 100.0f, mRectPaint);
61 canvas.restoreToCount(count);
63 canvas.translate(0.0f, 125.0f);
65 count = canvas.saveLayer(0.0f, 0.0f, 200.0f, 100.0f, mLayerPaint,
70 canvas
[all...]
H A DLooperAcceleration.java44 protected void onDraw(Canvas canvas) { argument
45 super.onDraw(canvas);
46 if (canvas.isHardwareAccelerated()) {
47 canvas.drawARGB(0xFF, 0x00, 0xFF, 0x00);
49 canvas.drawARGB(0xFF, 0xFF, 0x00, 0x00);

Completed in 564 milliseconds

1234567891011>>