Home
last modified time | relevance | path

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

/frameworks/layoutlib/bridge/src/android/graphics/
DCanvas_Delegate.java133 public static boolean nIsOpaque(long nativeCanvas) { in nIsOpaque() argument
135 Canvas_Delegate canvasDelegate = Canvas_Delegate.getDelegate(nativeCanvas); in nIsOpaque()
144 public static void nSetHighContrastText(long nativeCanvas, boolean highContrastText){} in nSetHighContrastText() argument
147 public static int nGetWidth(long nativeCanvas) { in nGetWidth() argument
149 Canvas_Delegate canvasDelegate = Canvas_Delegate.getDelegate(nativeCanvas); in nGetWidth()
158 public static int nGetHeight(long nativeCanvas) { in nGetHeight() argument
160 Canvas_Delegate canvasDelegate = Canvas_Delegate.getDelegate(nativeCanvas); in nGetHeight()
169 public static int nSave(long nativeCanvas, int saveFlags) { in nSave() argument
171 Canvas_Delegate canvasDelegate = Canvas_Delegate.getDelegate(nativeCanvas); in nSave()
180 public static int nSaveLayer(long nativeCanvas, float l, in nSaveLayer() argument
[all …]
DBaseCanvas_Delegate.java78 /*package*/ static void nDrawBitmap(long nativeCanvas, Bitmap bitmap, float left, float top, in nDrawBitmap() argument
90 drawBitmap(nativeCanvas, bitmapDelegate, nativePaintOrZero, in nDrawBitmap()
96 … /*package*/ static void nDrawBitmap(long nativeCanvas, Bitmap bitmap, float srcLeft, float srcTop, in nDrawBitmap() argument
105 drawBitmap(nativeCanvas, bitmapDelegate, nativePaintOrZero, (int) srcLeft, (int) srcTop, in nDrawBitmap()
111 /*package*/ static void nDrawBitmap(long nativeCanvas, int[] colors, int offset, int stride, in nDrawBitmap() argument
119 draw(nativeCanvas, nativePaintOrZero, true /*compositeOnly*/, false /*forceSrcMode*/, in nDrawBitmap()
131 /*package*/ static void nDrawColor(long nativeCanvas, final int color, final int mode) { in nDrawColor() argument
133 BaseCanvas_Delegate canvasDelegate = sManager.getDelegate(nativeCanvas); in nDrawColor()
140 draw(nativeCanvas, (graphics, paint) -> { in nDrawColor()
158 /*package*/ static void nDrawPaint(long nativeCanvas, long paint) { in nDrawPaint() argument
[all …]
/frameworks/base/graphics/java/android/graphics/
DPicture.java178 private static native long nativeBeginRecording(long nativeCanvas, int w, int h); in nativeBeginRecording() argument
179 private static native void nativeEndRecording(long nativeCanvas); in nativeEndRecording() argument
180 private static native void nativeDraw(long nativeCanvas, long nativePicture); in nativeDraw() argument
188 public RecordingCanvas(Picture pict, long nativeCanvas) { in RecordingCanvas() argument
189 super(nativeCanvas); in RecordingCanvas()
DBaseCanvas.java556 private static native void nDrawBitmap(long nativeCanvas, Bitmap bitmap, float left, float top, in nDrawBitmap() argument
559 private static native void nDrawBitmap(long nativeCanvas, Bitmap bitmap, float srcLeft, in nDrawBitmap() argument
564 private static native void nDrawBitmap(long nativeCanvas, int[] colors, int offset, int stride, in nDrawBitmap() argument
567 private static native void nDrawColor(long nativeCanvas, int color, int mode); in nDrawColor() argument
569 private static native void nDrawPaint(long nativeCanvas, long nativePaint); in nDrawPaint() argument
576 private static native void nDrawLine(long nativeCanvas, float startX, float startY, float stopX, in nDrawLine() argument
582 private static native void nDrawRect(long nativeCanvas, float left, float top, float right, in nDrawRect() argument
585 private static native void nDrawOval(long nativeCanvas, float left, float top, float right, in nDrawOval() argument
588 private static native void nDrawCircle(long nativeCanvas, float cx, float cy, float radius, in nDrawCircle() argument
591 private static native void nDrawArc(long nativeCanvas, float left, float top, float right, in nDrawArc() argument
[all …]
DCanvas.java125 public Canvas(long nativeCanvas) { in Canvas() argument
126 if (nativeCanvas == 0) { in Canvas()
129 mNativeCanvasWrapper = nativeCanvas; in Canvas()
1238 private static native boolean nGetClipBounds(long nativeCanvas, Rect bounds); in nGetClipBounds() argument
1254 private static native int nSaveLayer(long nativeCanvas, float l, float t, float r, float b, in nSaveLayer() argument
1257 private static native int nSaveLayerAlpha(long nativeCanvas, float l, float t, float r, float b, in nSaveLayerAlpha() argument
1275 private static native void nConcat(long nativeCanvas, long nativeMatrix); in nConcat() argument
1277 private static native void nSetMatrix(long nativeCanvas, long nativeMatrix); in nSetMatrix() argument
1279 private static native boolean nClipRect(long nativeCanvas, in nClipRect() argument
1282 private static native boolean nClipPath(long nativeCanvas, long nativePath, int regionOp); in nClipPath() argument
[all …]
DMovie.java40 private native void nDraw(long nativeCanvas, float x, float y, long paintHandle); in nDraw() argument
/frameworks/base/core/java/android/view/
DRecordingCanvas.java52 public RecordingCanvas(long nativeCanvas) { in RecordingCanvas() argument
53 super(nativeCanvas); in RecordingCanvas()
536 private static native void nDrawBitmap(long nativeCanvas, Bitmap bitmap, float left, float top, in nDrawBitmap() argument
540 private static native void nDrawBitmap(long nativeCanvas, Bitmap bitmap, in nDrawBitmap() argument
546 private static native void nDrawBitmap(long nativeCanvas, int[] colors, int offset, int stride, in nDrawBitmap() argument
550 private static native void nDrawColor(long nativeCanvas, int color, int mode); in nDrawColor() argument
553 private static native void nDrawPaint(long nativeCanvas, long nativePaint); in nDrawPaint() argument
563 private static native void nDrawLine(long nativeCanvas, float startX, float startY, float stopX, in nDrawLine() argument
571 private static native void nDrawRect(long nativeCanvas, float left, float top, float right, in nDrawRect() argument
575 private static native void nDrawOval(long nativeCanvas, float left, float top, float right, in nDrawOval() argument
[all …]
/frameworks/base/core/jni/
Dandroid_view_TextureView.cpp171 Canvas* nativeCanvas = GraphicsJNI::getNativeCanvas(env, canvas); in android_view_TextureView_lockCanvas() local
172 nativeCanvas->setBitmap(bitmap); in android_view_TextureView_lockCanvas()
173 nativeCanvas->clipRect(rect.left, rect.top, rect.right, rect.bottom, in android_view_TextureView_lockCanvas()
187 Canvas* nativeCanvas = GraphicsJNI::getNativeCanvas(env, canvas); in android_view_TextureView_unlockCanvasAndPost() local
188 nativeCanvas->setBitmap(SkBitmap()); in android_view_TextureView_unlockCanvasAndPost()
Dandroid_view_Surface.cpp348 Canvas* nativeCanvas = GraphicsJNI::getNativeCanvas(env, canvasObj); in nativeLockCanvas() local
349 nativeCanvas->setBitmap(bitmap); in nativeLockCanvas()
352 nativeCanvas->clipRect(dirtyRect.left, dirtyRect.top, in nativeLockCanvas()
379 Canvas* nativeCanvas = GraphicsJNI::getNativeCanvas(env, canvasObj); in nativeUnlockCanvasAndPost() local
380 nativeCanvas->setBitmap(SkBitmap()); in nativeUnlockCanvasAndPost()
/frameworks/webview/chromium/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/jni/android/graphics/
DGraphicBuffer.cpp209 Canvas* nativeCanvas = GraphicsJNI::getNativeCanvas(env, canvas); in android_graphics_GraphicBuffer_lockCanvas() local
210 nativeCanvas->setBitmap(bitmap); in android_graphics_GraphicBuffer_lockCanvas()
211 nativeCanvas->clipRect(rect.left, rect.top, rect.right, rect.bottom, in android_graphics_GraphicBuffer_lockCanvas()
227 Canvas* nativeCanvas = GraphicsJNI::getNativeCanvas(env, canvas); in android_graphics_GraphicBuffer_unlockCanvasAndPost() local
228 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()