/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | ColoredRectsActivity.java | 72 protected void onDraw(Canvas canvas) { argument 73 super.onDraw(canvas); 79 canvas.save(); 80 canvas.translate(mOffset, yOffset); 81 canvas.drawRect(0, 0, 20, 10, p); 82 canvas.drawRect(35, 0, 45, 20, p); 83 canvas.translate(0, -yOffset); 84 canvas.scale(2, 2); 85 canvas.translate(60, yOffset/2); 86 canvas [all...] |
H A D | XfermodeActivity.java | 54 protected void onDraw(Canvas canvas) { argument 55 super.onDraw(canvas); 56 //canvas.drawRGB(255, 255, 255); 58 canvas.translate(100.0f, 100.0f); 61 canvas.save(); 63 drawRects(canvas, Mode.SRC_OVER); 64 canvas.translate(0.0f, 100.0f); 66 drawRects(canvas, Mode.SRC_IN); 67 canvas.translate(0.0f, 100.0f); 69 drawRects(canvas, Mod 127 drawRects(Canvas canvas, PorterDuff.Mode mode) argument [all...] |
H A D | MatrixActivity.java | 42 protected void onDraw(Canvas canvas) { argument 43 super.onDraw(canvas); 44 canvas.drawRGB(255, 255, 255); 46 Log.d("Matrix", "m1=" + canvas.getMatrix()); 48 canvas.save(); 49 canvas.translate(10.0f, 10.0f); 50 Log.d("Matrix", "m2=" + canvas.getMatrix()); 51 canvas.translate(20.0f, 20.0f); 52 Log.d("Matrix", "m3=" + canvas.getMatrix()); 53 canvas [all...] |
H A D | ShapesActivity.java | 79 protected void onDraw(Canvas canvas) { argument 80 super.onDraw(canvas); 82 canvas.save(); 83 canvas.translate(50.0f, 50.0f); 84 canvas.drawRoundRect(mRect, 6.0f, 6.0f, mNormalPaint); 86 canvas.translate(0.0f, 110.0f); 87 canvas.drawRoundRect(mRect, 6.0f, 6.0f, mStrokePaint); 89 canvas.translate(0.0f, 110.0f); 90 canvas.drawRoundRect(mRect, 6.0f, 6.0f, mFillPaint); 91 canvas [all...] |
H A D | Lines2Activity.java | 75 private void drawLines(Canvas canvas, Paint p, float xOffset, float yOffset) { argument 76 canvas.drawLine(10 + xOffset, yOffset, 10 + xOffset, 40 + yOffset, p); 77 canvas.drawLine(30 + xOffset, yOffset, 40 + xOffset, 40 + yOffset, p); 78 canvas.drawLine(40 + xOffset, yOffset, 75 + xOffset, 35 + yOffset, p); 79 canvas.drawLine(50 + xOffset, 5+ yOffset, 100 + xOffset, 15 + yOffset, p); 80 canvas.drawLine(60 + xOffset, yOffset, 110 + xOffset, 2 + yOffset, p); 81 canvas.drawLine(60 + xOffset, 40 + yOffset, 110 + xOffset, 40 + yOffset, p); 86 canvas.drawLines(copyPoints, 0, 12, p); 89 private void drawVerticalLine(Canvas canvas, Paint p, float length, float x, float y) { argument 90 canvas 93 drawDiagonalLine(Canvas canvas, Paint p, float length, float x, float y) argument 98 onDraw(Canvas canvas) argument [all...] |
H A D | QuickRejectActivity.java | 52 protected void onDraw(Canvas canvas) { argument 53 super.onDraw(canvas); 55 int count = canvas.getSaveCount(); 57 count = canvas.save(); 59 count = canvas.getSaveCount(); 61 canvas.restore(); 62 count = canvas.getSaveCount(); 64 canvas.save(); 65 Log.d("OpenGLRenderer", "count after save=" + canvas.getSaveCount()); 66 canvas [all...] |
H A D | NewLayersActivity.java | 49 protected void onDraw(Canvas canvas) { argument 50 super.onDraw(canvas); 51 canvas.drawRGB(128, 255, 128); 53 canvas.save(); 55 canvas.translate(140.0f, 100.0f); 56 drawStuff(canvas, Canvas.ALL_SAVE_FLAG); 58 canvas.translate(0.0f, 200.0f); 59 drawStuff(canvas, Canvas.HAS_ALPHA_LAYER_SAVE_FLAG); 61 canvas.restore(); 64 private void drawStuff(Canvas canvas, in argument [all...] |
H A D | FramebufferBlendActivity.java | 64 protected void onDraw(Canvas canvas) { argument 65 super.onDraw(canvas); 66 canvas.drawRGB(255, 255, 255); 68 canvas.save(); 69 canvas.translate(40.0f, 40.0f); 71 drawBlendedBitmap(canvas, PorterDuff.Mode.DARKEN); 72 drawBlendedBitmap(canvas, PorterDuff.Mode.LIGHTEN); 73 drawBlendedBitmap(canvas, PorterDuff.Mode.MULTIPLY); 75 canvas.restore(); 77 canvas 87 drawBlendedBitmap(Canvas canvas, PorterDuff.Mode mode) argument 99 drawBlendedBitmapInverse(Canvas canvas, PorterDuff.Mode mode) argument [all...] |
H A D | TJunctionActivity.java | 46 protected void onDraw(Canvas canvas) { argument 47 super.onDraw(canvas); 51 canvas.translate(10.0f, 10.0f); 52 canvas.drawRect(0.0f, 0.0f, 100.0f, 50.0f, mPaint); 56 canvas.translate(50.0f, 50.0f); 57 canvas.drawRect(0.0f, 0.0f, 100.0f, 50.0f, mPaint); 61 canvas.translate(-25.0f, 50.0f); 62 canvas.drawRect(0.0f, 0.0f, 100.0f, 50.0f, mPaint); 66 canvas.translate(150.0f, 75.0f); 67 canvas [all...] |
H A D | LayersActivity.java | 48 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 D | SimplePatchActivity.java | 45 protected void onDraw(Canvas canvas) { argument 46 super.onDraw(canvas); 47 canvas.save(); 48 canvas.translate(200, 200); 50 mDrawable.draw(canvas); 52 mDrawable.draw(canvas); 53 canvas.restore();
|
H A D | TextActivity.java | 83 protected void onDraw(Canvas canvas) { argument 84 super.onDraw(canvas); 85 canvas.drawRGB(255, 255, 255); 87 canvas.drawText("Hello OpenGL renderer!", 300, 20, mEventPaint); 91 canvas.drawText("Hello OpenGL renderer!", 100, 20, mMediumPaint); 95 canvas.drawText("Hello OpenGL renderer!", 100, 40, mMediumPaint); 100 canvas.drawText("Hello OpenGL renderer!", 100, 60, mMediumPaint); 104 canvas.drawText("Hello OpenGL renderer!", 100, 100, mMediumPaint); 107 canvas.drawText("Hello OpenGL renderer!", 100, 150, mMediumPaint); 109 canvas [all...] |
H A D | ColorFiltersActivity.java | 69 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 D | ScaledPathsActivity.java | 61 protected void onDraw(Canvas canvas) { argument 62 super.onDraw(canvas); 63 canvas.drawARGB(255, 255, 255, 255); 68 canvas.save(); 69 drawPath(canvas, 1.0f, 1.0f); 70 drawPath(canvas, 2.0f, 2.0f); 71 drawPath(canvas, 4.0f, 4.0f); 72 canvas.restore(); 77 canvas.save(); 78 drawPath(canvas, 1. 84 drawPath(Canvas canvas, float scaleX, float scaleY) argument [all...] |
H A D | ScaledTextActivity.java | 94 protected void onDraw(Canvas canvas) { argument 95 super.onDraw(canvas); 97 canvas.drawText(TEXT, 30.0f, 30.0f, mPaint); 99 canvas.drawText(TEXT, 30.0f, 50.0f, mPaint); 101 canvas.drawText(TEXT, 30.0f, 70.0f, mPaint); 103 canvas.save(); 104 canvas.translate(400.0f, 0.0f); 105 canvas.scale(3.0f, 3.0f); 108 canvas.drawText(TEXT, 30.0f, 30.0f, mPaint); 111 canvas [all...] |
H A D | AlphaLayersActivity.java | 65 protected void onDraw(Canvas canvas) { argument 66 super.onDraw(canvas); 67 canvas.drawRGB(0, 255, 0); 80 public void dispatchDraw(Canvas canvas) { argument 81 canvas.drawRGB(255, 255, 255); 84 canvas.drawRect(200.0f, 0.0f, 220.0f, 20.0f, mPaint); 86 canvas.save(); 87 canvas.clipRect(20.0f, 0.0f, 40.0f, 20.0f); 88 Log.d(LOG_TAG, "clipRect = " + canvas.getClipBounds()); 89 Log.d(LOG_TAG, "rejected = " + canvas [all...] |
H A D | AdvancedGradientsActivity.java | 69 protected void onDraw(Canvas canvas) { argument 70 super.onDraw(canvas); 71 canvas.drawRGB(255, 255, 255); 73 canvas.save(); 74 canvas.translate(130.0f, 100.0f); 78 canvas.drawRect(0.0f, 0.0f, 200.0f, 200.0f, mPaint); 80 canvas.translate(400.0f, 000.0f); 84 canvas.drawRect(0.0f, 0.0f, 200.0f, 200.0f, mPaint); 86 canvas.translate(400.0f, 000.0f); 90 canvas [all...] |
H A D | TextOnPathActivity.java | 107 protected void onDraw(Canvas canvas) { argument 108 super.onDraw(canvas); 110 canvas.drawARGB(255, 255, 255, 255); 112 canvas.save(); 113 canvas.translate(400.0f, 350.0f); 115 canvas.drawTextOnPath(mText + mText, mPath, 0.0f, 0.0f, mPaint); 116 canvas.drawPath(mPath, mPathPaint); 125 canvas.drawLines(mLines, mPathPaint); 127 canvas.translate(200.0f, 0.0f); 128 canvas [all...] |
H A D | BitmapMeshActivity.java | 67 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 D | PosTextActivity.java | 56 protected void onDraw(Canvas canvas) { argument 57 super.onDraw(canvas); 58 canvas.drawRGB(255, 255, 255); 60 canvas.save(); 62 canvas.drawLine(100.0f, 0.0f, 100.0f, getHeight(), mLargePaint); 64 canvas.translate(100.0f, 100.0f); 66 canvas.drawPosText(mText, mPos, mLargePaint); 68 canvas.translate(0.0f, 50.0f); 70 canvas.drawPosText(mText, mPos, mLargePaint); 72 canvas [all...] |
H A D | TextPathActivity.java | 57 protected void onDraw(Canvas canvas) { argument 58 super.onDraw(canvas); 59 canvas.drawRGB(255, 255, 255); 63 canvas.translate(100.0f, 300.0f); 64 drawTextAsPath(canvas, "Hello", path); 66 canvas.translate(0.0f, 400.0f); 67 drawTextAsPath(canvas, "OpenGL", path); 70 private void drawTextAsPath(Canvas canvas, String text, Path path) { argument 74 canvas.drawPath(path, mHugePaint);
|
H A D | MipMapActivity.java | 62 protected void onDraw(Canvas canvas) { argument 63 super.onDraw(canvas); 65 canvas.save(); 66 canvas.scale(0.3f, 0.3f); 67 canvas.drawBitmap(mBitmap1, 0, 0, mBitmapPaint); 68 canvas.restore(); 70 canvas.save(); 71 canvas.translate(mBitmap1.getWidth() * 0.3f + 96.0f, 0.0f); 72 canvas.scale(0.3f, 0.3f); 73 canvas [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | Texture.java | 41 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
|
H A D | RawTexture.java | 48 protected void prepare(GLCanvas canvas) { argument 49 GLId glId = canvas.getGLId(); 51 canvas.initializeTextureSize(this, GL11.GL_RGBA, GL11.GL_UNSIGNED_BYTE); 52 canvas.setTextureParameters(this); 54 setAssociatedCanvas(canvas); 58 protected boolean onBind(GLCanvas canvas) { argument
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
H A D | DisplayModifier.java | 40 abstract public void modifyDrawing(Paint paint, Canvas canvas); argument 85 public void modifyDrawing(Paint paint, Canvas canvas) { 91 public void modifyDrawing(Paint paint, Canvas canvas) { 101 public void modifyDrawing(Paint paint, Canvas canvas) { 107 public void modifyDrawing(Paint paint, Canvas canvas) { 115 public void modifyDrawing(Paint paint, Canvas canvas) { 128 public void modifyDrawing(Paint paint, Canvas canvas) { 136 public void modifyDrawing(Paint paint, Canvas canvas) { 142 public void modifyDrawing(Paint paint, Canvas canvas) { 148 public void modifyDrawing(Paint paint, Canvas canvas) { 459 apply(Paint paint, Canvas canvas) argument [all...] |