Home
last modified time | relevance | path

Searched refs:canvasHandle (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/jni/
Dandroid_graphics_Canvas.cpp35 static Canvas* get_canvas(jlong canvasHandle) { in get_canvas() argument
36 return reinterpret_cast<Canvas*>(canvasHandle); in get_canvas()
58 static void setBitmap(JNIEnv* env, jobject, jlong canvasHandle, jobject jbitmap) { in setBitmap() argument
63 get_canvas(canvasHandle)->setBitmap(bitmap); in setBitmap()
66 static jboolean isOpaque(JNIEnv*, jobject, jlong canvasHandle) { in isOpaque() argument
67 return get_canvas(canvasHandle)->isOpaque() ? JNI_TRUE : JNI_FALSE; in isOpaque()
70 static jint getWidth(JNIEnv*, jobject, jlong canvasHandle) { in getWidth() argument
71 return static_cast<jint>(get_canvas(canvasHandle)->width()); in getWidth()
74 static jint getHeight(JNIEnv*, jobject, jlong canvasHandle) { in getHeight() argument
75 return static_cast<jint>(get_canvas(canvasHandle)->height()); in getHeight()
[all …]
Dandroid_graphics_Picture.cpp50 static void android_graphics_Picture_draw(JNIEnv* env, jobject, jlong canvasHandle, in android_graphics_Picture_draw() argument
52 Canvas* canvas = reinterpret_cast<Canvas*>(canvasHandle); in android_graphics_Picture_draw()
/frameworks/base/graphics/java/android/graphics/
DCanvas.java1996 private static native void native_setBitmap(long canvasHandle, in native_setBitmap() argument
1998 private static native boolean native_isOpaque(long canvasHandle); in native_isOpaque() argument
2000 private static native int native_getWidth(long canvasHandle); in native_getWidth() argument
2001 private static native int native_getHeight(long canvasHandle); in native_getHeight() argument
2003 private static native int native_save(long canvasHandle, int saveFlags); in native_save() argument
2011 private static native void native_restore(long canvasHandle, boolean tolerateUnderflow); in native_restore() argument
2012 private static native void native_restoreToCount(long canvasHandle, in native_restoreToCount() argument
2015 private static native int native_getSaveCount(long canvasHandle); in native_getSaveCount() argument
2017 private static native void native_translate(long canvasHandle, in native_translate() argument
2019 private static native void native_scale(long canvasHandle, in native_scale() argument
[all …]
/frameworks/base/core/jni/android/graphics/
DMovie.cpp66 static void movie_draw(JNIEnv* env, jobject movie, jlong canvasHandle, in movie_draw() argument
70 android::Canvas* c = reinterpret_cast<android::Canvas*>(canvasHandle); in movie_draw()
DCamera.cpp98 static void Camera_applyToCanvas(JNIEnv* env, jobject obj, jlong canvasHandle) { in Camera_applyToCanvas() argument
99 SkCanvas* canvas = reinterpret_cast<android::Canvas*>(canvasHandle)->asSkCanvas(); in Camera_applyToCanvas()
DGraphics.cpp377 jlong canvasHandle = env->GetLongField(canvas, gCanvas_nativeInstanceID); in getNativeCanvas() local
378 if (!canvasHandle) { in getNativeCanvas()
381 return reinterpret_cast<android::Canvas*>(canvasHandle); in getNativeCanvas()