Home
last modified time | relevance | path

Searched refs:nativeCanvas (Results 1 – 13 of 13) sorted by relevance

/frameworks/layoutlib/bridge/src/android/graphics/
DCanvas_Delegate.java129 public static boolean nIsOpaque(long nativeCanvas) { in nIsOpaque() argument
131 Canvas_Delegate canvasDelegate = Canvas_Delegate.getDelegate(nativeCanvas); in nIsOpaque()
140 public static int nGetWidth(long nativeCanvas) { in nGetWidth() argument
142 Canvas_Delegate canvasDelegate = Canvas_Delegate.getDelegate(nativeCanvas); in nGetWidth()
151 public static int nGetHeight(long nativeCanvas) { in nGetHeight() argument
153 Canvas_Delegate canvasDelegate = Canvas_Delegate.getDelegate(nativeCanvas); in nGetHeight()
162 public static int nSave(long nativeCanvas, int saveFlags) { in nSave() argument
164 Canvas_Delegate canvasDelegate = Canvas_Delegate.getDelegate(nativeCanvas); in nSave()
173 public static int nSaveLayer(long nativeCanvas, float l, in nSaveLayer() argument
177 Canvas_Delegate canvasDelegate = Canvas_Delegate.getDelegate(nativeCanvas); in nSaveLayer()
[all …]
DBaseCanvas_Delegate.java81 /*package*/ static void nDrawBitmap(long nativeCanvas, long bitmapHandle, float left, float top, in nDrawBitmap() argument
93 drawBitmap(nativeCanvas, bitmapDelegate, nativePaintOrZero, in nDrawBitmap()
99 /*package*/ static void nDrawBitmap(long nativeCanvas, long bitmapHandle, float srcLeft, in nDrawBitmap() argument
109 drawBitmap(nativeCanvas, bitmapDelegate, nativePaintOrZero, (int) srcLeft, (int) srcTop, in nDrawBitmap()
115 /*package*/ static void nDrawBitmap(long nativeCanvas, int[] colors, int offset, int stride, in nDrawBitmap() argument
123 draw(nativeCanvas, nativePaintOrZero, true /*compositeOnly*/, false /*forceSrcMode*/, in nDrawBitmap()
135 /*package*/ static void nDrawColor(long nativeCanvas, final int color, final int mode) { in nDrawColor() argument
137 BaseCanvas_Delegate canvasDelegate = sManager.getDelegate(nativeCanvas); in nDrawColor()
144 draw(nativeCanvas, (graphics, paint) -> { in nDrawColor()
162 /*package*/ static void nDrawColor(long nativeCanvas, long nativeColorSpace, long color, in nDrawColor() argument
[all …]
/frameworks/base/graphics/java/android/graphics/
DBaseRecordingCanvas.java43 public BaseRecordingCanvas(long nativeCanvas) { in BaseRecordingCanvas() argument
44 super(nativeCanvas); in BaseRecordingCanvas()
580 private static native void nDrawBitmap(long nativeCanvas, long bitmapHandle, float left, in nDrawBitmap() argument
585 private static native void nDrawBitmap(long nativeCanvas, long bitmapHandle, in nDrawBitmap() argument
591 private static native void nDrawBitmap(long nativeCanvas, int[] colors, int offset, int stride, in nDrawBitmap() argument
595 private static native void nDrawColor(long nativeCanvas, int color, int mode); in nDrawColor() argument
598 private static native void nDrawColor(long nativeCanvas, long nativeColorSpace, in nDrawColor() argument
602 private static native void nDrawPaint(long nativeCanvas, long nativePaint); in nDrawPaint() argument
612 private static native void nDrawLine(long nativeCanvas, float startX, float startY, float stopX, in nDrawLine() argument
620 private static native void nDrawRect(long nativeCanvas, float left, float top, float right, in nDrawRect() argument
[all …]
DPicture.java236 private static native long nativeBeginRecording(long nativeCanvas, int w, int h); in nativeBeginRecording() argument
237 private static native void nativeEndRecording(long nativeCanvas); in nativeEndRecording() argument
238 private static native void nativeDraw(long nativeCanvas, long nativePicture); in nativeDraw() argument
247 public PictureCanvas(Picture pict, long nativeCanvas) { in PictureCanvas() argument
248 super(nativeCanvas); in PictureCanvas()
DBaseCanvas.java663 private static native void nDrawBitmap(long nativeCanvas, long bitmapHandle, float left, in nDrawBitmap() argument
667 private static native void nDrawBitmap(long nativeCanvas, long bitmapHandle, float srcLeft, in nDrawBitmap() argument
672 private static native void nDrawBitmap(long nativeCanvas, int[] colors, int offset, int stride, in nDrawBitmap() argument
675 private static native void nDrawColor(long nativeCanvas, int color, int mode); in nDrawColor() argument
677 private static native void nDrawColor(long nativeCanvas, long nativeColorSpace, in nDrawColor() argument
680 private static native void nDrawPaint(long nativeCanvas, long nativePaint); in nDrawPaint() argument
687 private static native void nDrawLine(long nativeCanvas, float startX, float startY, float stopX, in nDrawLine() argument
693 private static native void nDrawRect(long nativeCanvas, float left, float top, float right, in nDrawRect() argument
696 private static native void nDrawOval(long nativeCanvas, float left, float top, float right, in nDrawOval() argument
699 private static native void nDrawCircle(long nativeCanvas, float cx, float cy, float radius, in nDrawCircle() argument
[all …]
DCanvas.java129 public Canvas(long nativeCanvas) { in Canvas() argument
130 if (nativeCanvas == 0) { in Canvas()
133 mNativeCanvasWrapper = nativeCanvas; in Canvas()
1389 private static native boolean nGetClipBounds(long nativeCanvas, Rect bounds); in nGetClipBounds() argument
1403 private static native int nSaveLayer(long nativeCanvas, float l, float t, float r, float b, in nSaveLayer() argument
1406 private static native int nSaveLayerAlpha(long nativeCanvas, float l, float t, float r, float b, in nSaveLayerAlpha() argument
1409 private static native int nSaveUnclippedLayer(long nativeCanvas, int l, int t, int r, int b); in nSaveUnclippedLayer() argument
1411 private static native void nRestoreUnclippedLayer(long nativeCanvas, int saveCount, in nRestoreUnclippedLayer() argument
1429 private static native void nConcat(long nativeCanvas, long nativeMatrix); in nConcat() argument
1431 private static native void nSetMatrix(long nativeCanvas, long nativeMatrix); in nSetMatrix() argument
[all …]
DMovie.java49 private native void nDraw(long nativeCanvas, float x, float y, long paintHandle); in nDraw() argument
/frameworks/base/core/jni/
Dandroid_view_TextureView.cpp170 Canvas* nativeCanvas = GraphicsJNI::getNativeCanvas(env, canvas); in android_view_TextureView_lockCanvas() local
171 nativeCanvas->setBitmap(bitmap); in android_view_TextureView_lockCanvas()
172 nativeCanvas->clipRect(rect.left, rect.top, rect.right, rect.bottom, in android_view_TextureView_lockCanvas()
186 Canvas* nativeCanvas = GraphicsJNI::getNativeCanvas(env, canvas); in android_view_TextureView_unlockCanvasAndPost() local
187 nativeCanvas->setBitmap(SkBitmap()); in android_view_TextureView_unlockCanvasAndPost()
Dandroid_view_Surface.cpp273 Canvas* nativeCanvas = GraphicsJNI::getNativeCanvas(env, canvasObj); in nativeLockCanvas() local
274 nativeCanvas->setBitmap(bitmap); in nativeLockCanvas()
277 nativeCanvas->clipRect(dirtyRect.left, dirtyRect.top, in nativeLockCanvas()
304 Canvas* nativeCanvas = GraphicsJNI::getNativeCanvas(env, canvasObj); in nativeUnlockCanvasAndPost() local
305 nativeCanvas->setBitmap(SkBitmap()); in nativeUnlockCanvasAndPost()
/frameworks/base/native/webview/plat_support/
Dgraphics_utils.cpp58 android::Canvas* nativeCanvas = GraphicsJNI::getNativeCanvas(env, java_canvas); in GetPixels() local
59 if (!nativeCanvas) in GetPixels()
62 PixelInfo* pixels = new PixelInfo(nativeCanvas); in GetPixels()
/frameworks/base/core/java/android/view/
DDisplayListCanvas.java34 protected DisplayListCanvas(long nativeCanvas) { in DisplayListCanvas() argument
35 super(nativeCanvas); in DisplayListCanvas()
/frameworks/base/core/jni/android/graphics/
DGraphicBuffer.cpp208 Canvas* nativeCanvas = GraphicsJNI::getNativeCanvas(env, canvas); in android_graphics_GraphicBuffer_lockCanvas() local
209 nativeCanvas->setBitmap(bitmap); in android_graphics_GraphicBuffer_lockCanvas()
210 nativeCanvas->clipRect(rect.left, rect.top, rect.right, rect.bottom, in android_graphics_GraphicBuffer_lockCanvas()
226 Canvas* nativeCanvas = GraphicsJNI::getNativeCanvas(env, canvas); in android_graphics_GraphicBuffer_unlockCanvasAndPost() local
227 nativeCanvas->setBitmap(SkBitmap()); in android_graphics_GraphicBuffer_unlockCanvasAndPost()
/frameworks/base/graphics/java/android/graphics/pdf/
DPdfDocument.java254 public PdfCanvas(long nativeCanvas) { in PdfCanvas() argument
255 super(nativeCanvas); in PdfCanvas()