/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
D | DisplayModifier.java | 22 import android.graphics.Canvas; 40 abstract public void modifyDrawing(Paint paint, Canvas canvas); in modifyDrawing() 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) { [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | AlphaLayersActivity.java | 21 import android.graphics.Canvas; 65 protected void onDraw(Canvas canvas) { in onDraw() 80 public void dispatchDraw(Canvas canvas) { in dispatchDraw() 90 Canvas.EdgeType.BW)); in dispatchDraw() 92 Canvas.EdgeType.BW)); in dispatchDraw() 100 Canvas.EdgeType.BW)); in dispatchDraw() 102 Canvas.EdgeType.BW)); in dispatchDraw() 110 Canvas.EdgeType.BW)); in dispatchDraw() 112 Canvas.EdgeType.BW)); in dispatchDraw() 129 Canvas.HAS_ALPHA_LAYER_SAVE_FLAG | Canvas.CLIP_TO_LAYER_SAVE_FLAG); in dispatchDraw()
|
D | LayersActivity.java | 21 import android.graphics.Canvas; 48 protected void onDraw(Canvas canvas) { in onDraw() 56 Canvas.ALL_SAVE_FLAG); in onDraw() 66 Canvas.ALL_SAVE_FLAG); in onDraw() 83 Canvas.ALL_SAVE_FLAG); in onDraw() 100 Canvas.ALL_SAVE_FLAG); in onDraw()
|
D | NewLayersActivity.java | 21 import android.graphics.Canvas; 49 protected void onDraw(Canvas canvas) { in onDraw() 56 drawStuff(canvas, Canvas.ALL_SAVE_FLAG); in onDraw() 59 drawStuff(canvas, Canvas.HAS_ALPHA_LAYER_SAVE_FLAG); in onDraw() 64 private void drawStuff(Canvas canvas, int saveFlags) { in drawStuff()
|
/frameworks/base/core/java/android/view/ |
D | GraphicBuffer.java | 19 import android.graphics.Canvas; 62 private Canvas mCanvas; 143 public Canvas lockCanvas() { in lockCanvas() 162 public Canvas lockCanvas(Rect dirty) { in lockCanvas() 168 mCanvas = new Canvas(); in lockCanvas() 191 public void unlockCanvasAndPost(Canvas canvas) { in unlockCanvasAndPost() 290 private static native boolean nLockCanvas(long nativeObject, Canvas canvas, Rect dirty); in nLockCanvas() 291 private static native boolean nUnlockCanvasAndPost(long nativeObject, Canvas canvas); in nUnlockCanvasAndPost()
|
D | Surface.java | 21 import android.graphics.Canvas; 44 private static native long nativeLockCanvas(long nativeObject, Canvas canvas, Rect dirty) in nativeLockCanvas() 46 private static native void nativeUnlockCanvasAndPost(long nativeObject, Canvas canvas); in nativeUnlockCanvasAndPost() 87 private final Canvas mCanvas = new CompatibleCanvas(); 253 public Canvas lockCanvas(Rect inOutDirty) in lockCanvas() 275 public void unlockCanvasAndPost(Canvas canvas) { in unlockCanvasAndPost() 287 private void unlockSwCanvasAndPost(Canvas canvas) { in unlockSwCanvasAndPost() 326 public Canvas lockHardwareCanvas() { in lockHardwareCanvas() 342 public void unlockCanvas(Canvas canvas) { in unlockCanvas() 544 private final class CompatibleCanvas extends Canvas { [all …]
|
D | SurfaceHolder.java | 19 import android.graphics.Canvas; 224 public Canvas lockCanvas(); in lockCanvas() 238 public Canvas lockCanvas(Rect dirty); in lockCanvas() 250 public void unlockCanvasAndPost(Canvas canvas); in unlockCanvasAndPost()
|
D | TextureView.java | 21 import android.graphics.Canvas; 121 private Canvas mCanvas; 304 public final void draw(Canvas canvas) { in draw() 319 protected final void onDraw(Canvas canvas) { in onDraw() 628 public Canvas lockCanvas() { in lockCanvas() 651 public Canvas lockCanvas(Rect dirty) { in lockCanvas() 655 mCanvas = new Canvas(); in lockCanvas() 679 public void unlockCanvasAndPost(Canvas canvas) { in unlockCanvasAndPost() 824 private static native boolean nLockCanvas(long nativeWindow, Canvas canvas, Rect dirty); in nLockCanvas() 825 private static native void nUnlockCanvasAndPost(long nativeWindow, Canvas canvas); in nUnlockCanvasAndPost()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/ |
D | ItemTouchUIUtilImpl.java | 19 import android.graphics.Canvas; 33 public void onDraw(Canvas c, RecyclerView recyclerView, View view, in onDraw() 88 public void onDraw(Canvas c, RecyclerView recyclerView, View view, in onDraw() 95 public void onDrawOver(Canvas c, RecyclerView recyclerView, in onDrawOver() 103 private void draw(Canvas c, RecyclerView parent, View view, in draw() 122 public void onDraw(Canvas c, RecyclerView recyclerView, View view, in onDraw() 130 public void onDrawOver(Canvas c, RecyclerView recyclerView, in onDrawOver()
|
D | ItemTouchUIUtil.java | 19 import android.graphics.Canvas; 42 void onDraw(Canvas c, RecyclerView recyclerView, View view, in onDraw() 49 void onDrawOver(Canvas c, RecyclerView recyclerView, View view, in onDrawOver()
|
/frameworks/base/docs/html/training/custom-views/ |
D | custom-drawing.jd | 27 Canvas and Drawables</a></li> 45 android.view.View#onDraw(android.graphics.Canvas) onDraw()} method. The parameter to {@link 46 android.view.View#onDraw(android.graphics.Canvas) onDraw()} is a {@link 47 android.graphics.Canvas Canvas} object that the view can use to draw itself. The {@link 48 android.graphics.Canvas Canvas} 52 android.view.View#onDraw(android.graphics.Canvas) onDraw()} to create your custom user interface (U… 63 <li><i>What</i> to draw, handled by {@link android.graphics.Canvas Canvas}</li> 67 <p>For instance, {@link android.graphics.Canvas Canvas} provides a method to draw a line, while 70 android.graphics.Canvas Canvas} has a 73 color or leave it empty. Simply put, {@link android.graphics.Canvas Canvas} defines shapes that you [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
D | SurfaceView.java | 22 import android.graphics.Canvas; 92 public Canvas lockCanvas() { 97 public Canvas lockCanvas(Rect dirty) { 102 public void unlockCanvasAndPost(Canvas canvas) {
|
/frameworks/base/docs/html/guide/topics/graphics/ |
D | 2d-graphics.jd | 1 page.title=Canvas and Drawables 10 <li><a href="#draw-with-canvas">Draw with a Canvas</a> 43 <li>Draw your graphics directly to a Canvas. This way, you personally call the appropriate class's 44 {@link android.view.View#onDraw onDraw()} method (passing it your Canvas), or one of the Canvas 46 …<code>{@link android.graphics.Canvas#drawPicture(Picture,Rect) drawPicture()}</code>). In doing so… 56 <p>Option "b," drawing to a Canvas, is better when your application needs to regularly re-draw itse… 57 Applications such as video games should be drawing to the Canvas on its own. However, there's more … 63 <code>{@link android.view.View#onDraw(Canvas) onDraw()}</code> callback.</li> 65 perform draws to the Canvas as fast as your thread is capable 69 <h2 id="draw-with-canvas">Draw with a Canvas</h2> [all …]
|
/frameworks/base/core/java/com/android/internal/view/ |
D | BaseSurfaceHolder.java | 19 import android.graphics.Canvas; 156 public Canvas lockCanvas() { in lockCanvas() 160 public Canvas lockCanvas(Rect dirty) { in lockCanvas() 164 private final Canvas internalLockCanvas(Rect dirty) { in internalLockCanvas() 173 Canvas c = null; in internalLockCanvas() 214 public void unlockCanvasAndPost(Canvas canvas) { in unlockCanvasAndPost()
|
/frameworks/base/graphics/java/android/graphics/pdf/ |
D | PdfDocument.java | 20 import android.graphics.Canvas; 121 Canvas canvas = new PdfCanvas(nativeStartPage(mNativeDocument, pageInfo.mPageWidth, in startPage() 249 private final class PdfCanvas extends Canvas { 385 private Canvas mCanvas; 393 private Page(Canvas canvas, PageInfo pageInfo) { in Page() 430 public Canvas getCanvas() { in getCanvas()
|
/frameworks/base/core/jni/android/graphics/ |
D | Picture.h | 30 class Canvas; variable 40 Canvas* beginRecording(int width, int height); 52 void draw(Canvas* canvas);
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ImageUtils.java | 21 import android.graphics.Canvas; 46 private Canvas mTempCompactBitmapCanvas; 68 mTempCompactBitmapCanvas = new Canvas(mTempCompactBitmap); in isGrayscale() 153 Canvas canvas = new Canvas(result); in buildScaledBitmap()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Picture.java | 31 private Canvas mRecordingCanvas; 76 public Canvas beginRecording(int width, int height) { in beginRecording() 124 public void draw(Canvas canvas) { in draw() 189 private static class RecordingCanvas extends Canvas {
|
D | NinePatch.java | 175 public void draw(Canvas canvas, RectF location) { in draw() 185 public void draw(Canvas canvas, Rect location) { in draw() 197 public void draw(Canvas canvas, Rect location, Paint paint) { in draw() 201 void drawSoftware(Canvas canvas, RectF location, Paint paint) { in drawSoftware() 206 void drawSoftware(Canvas canvas, Rect location, Paint paint) { in drawSoftware()
|
/frameworks/base/core/java/android/text/ |
D | GraphicsOperations.java | 19 import android.graphics.Canvas; 33 void drawText(Canvas c, int start, int end, in drawText() 40 void drawTextRun(Canvas c, int start, int end, int contextStart, int contextEnd, in drawTextRun()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewPerformanceTest.java | 21 import android.graphics.Canvas; 34 private Canvas mCanvas; 44 mCanvas = new Canvas(mBitmap); in setUp() 110 final void myDraw(Canvas c) { in myDraw() 124 final void myDraw(Canvas c) { in myDraw()
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | EdgeEffectCompat.java | 19 import android.graphics.Canvas; 54 public boolean draw(Object edgeEffect, Canvas canvas); in draw() 88 public boolean draw(Object edgeEffect, Canvas canvas) { in draw() 126 public boolean draw(Object edgeEffect, Canvas canvas) { in draw() 253 public boolean draw(Canvas canvas) { in draw()
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | DirectoryContainerView.java | 20 import android.graphics.Canvas; 39 protected void dispatchDraw(Canvas canvas) { in dispatchDraw() 50 protected boolean drawChild(Canvas canvas, View child, long drawingTime) { in drawChild()
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/ |
D | IconTest.java | 20 import android.graphics.Canvas; 50 final Canvas can1 = new Canvas(bm1); in testWithBitmap() 52 final Canvas can2 = new Canvas(bm2); in testWithBitmap() 71 draw1.draw(new Canvas(test1)); in testWithBitmap() 74 draw2.draw(new Canvas(test2)); in testWithBitmap() 77 draw3.draw(new Canvas(test3)); in testWithBitmap() 120 draw1.draw(new Canvas(test1)); in testWithBitmapResource() 147 draw1.draw(new Canvas(test1)); in testWithFile() 180 draw1.draw(new Canvas(test1)); in testAsync() 253 draw1.draw(new Canvas(test1)); in testParcel()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | IconUtilities.java | 25 import android.graphics.Canvas; 55 private final Canvas mCanvas = new Canvas(); 147 final Canvas canvas = mCanvas; in createIconBitmap() 173 final Canvas dest = new Canvas(result); in createSelectedBitmap()
|