You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
reimplement Bitmap and Path using GdkTexture and GskPath
This allows us to use GskCanvas for Bitmap rendering This increases the required GTK version to >= 4.14.
This commit is contained in:
@@ -7,241 +7,53 @@
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#undef android_graphics_Bitmap_DENSITY_NONE
|
||||
#define android_graphics_Bitmap_DENSITY_NONE 0L
|
||||
#undef android_graphics_Bitmap_WORKING_COMPRESS_STORAGE
|
||||
#define android_graphics_Bitmap_WORKING_COMPRESS_STORAGE 4096L
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: getWidth
|
||||
* Signature: ()I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL Java_android_graphics_Bitmap_getWidth
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: getHeight
|
||||
* Signature: ()I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL Java_android_graphics_Bitmap_getHeight
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: native_bitmap_from_path
|
||||
* Signature: (Ljava/lang/CharSequence;)J
|
||||
*/
|
||||
JNIEXPORT jlong JNICALL Java_android_graphics_Bitmap_native_1bitmap_1from_1path
|
||||
(JNIEnv *, jobject, jobject);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: native_copy
|
||||
* Method: native_create_snapshot
|
||||
* Signature: (J)J
|
||||
*/
|
||||
JNIEXPORT jlong JNICALL Java_android_graphics_Bitmap_native_1copy
|
||||
JNIEXPORT jlong JNICALL Java_android_graphics_Bitmap_native_1create_1snapshot
|
||||
(JNIEnv *, jclass, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: native_subpixbuf
|
||||
* Signature: (JIIII)J
|
||||
* Method: native_create_texture
|
||||
* Signature: (JII)J
|
||||
*/
|
||||
JNIEXPORT jlong JNICALL Java_android_graphics_Bitmap_native_1subpixbuf
|
||||
(JNIEnv *, jclass, jlong, jint, jint, jint, jint);
|
||||
JNIEXPORT jlong JNICALL Java_android_graphics_Bitmap_native_1create_1texture
|
||||
(JNIEnv *, jclass, jlong, jint, jint);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: native_create
|
||||
* Signature: (II)J
|
||||
*/
|
||||
JNIEXPORT jlong JNICALL Java_android_graphics_Bitmap_native_1create
|
||||
(JNIEnv *, jclass, jint, jint);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: native_paintable_from_pixbuf
|
||||
* Signature: (J)J
|
||||
*/
|
||||
JNIEXPORT jlong JNICALL Java_android_graphics_Bitmap_native_1paintable_1from_1pixbuf
|
||||
(JNIEnv *, jclass, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: native_unref_texture
|
||||
* Signature: (J)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Bitmap_native_1unref_1texture
|
||||
(JNIEnv *, jclass, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeCopy
|
||||
* Signature: (IIZ)Landroid/graphics/Bitmap;
|
||||
*/
|
||||
JNIEXPORT jobject JNICALL Java_android_graphics_Bitmap_nativeCopy
|
||||
(JNIEnv *, jclass, jint, jint, jboolean);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeDestructor
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Bitmap_nativeDestructor
|
||||
(JNIEnv *, jclass, jint);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeRecycle
|
||||
* Signature: (JJ)Z
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL Java_android_graphics_Bitmap_nativeRecycle
|
||||
(JNIEnv *, jclass, jlong, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeReconfigure
|
||||
* Signature: (IIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Bitmap_nativeReconfigure
|
||||
(JNIEnv *, jclass, jint, jint, jint, jint, jint);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeCompress
|
||||
* Signature: (IIILjava/io/OutputStream;[B)Z
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL Java_android_graphics_Bitmap_nativeCompress
|
||||
(JNIEnv *, jclass, jint, jint, jint, jobject, jbyteArray);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeErase
|
||||
* Signature: (II)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Bitmap_nativeErase
|
||||
(JNIEnv *, jclass, jint, jint);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeRowBytes
|
||||
* Method: native_get_width
|
||||
* Signature: (J)I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL Java_android_graphics_Bitmap_nativeRowBytes
|
||||
JNIEXPORT jint JNICALL Java_android_graphics_Bitmap_native_1get_1width
|
||||
(JNIEnv *, jclass, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeConfig
|
||||
* Signature: (I)I
|
||||
* Method: native_get_height
|
||||
* Signature: (J)I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL Java_android_graphics_Bitmap_nativeConfig
|
||||
(JNIEnv *, jclass, jint);
|
||||
JNIEXPORT jint JNICALL Java_android_graphics_Bitmap_native_1get_1height
|
||||
(JNIEnv *, jclass, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeGetPixel
|
||||
* Signature: (IIIZ)I
|
||||
* Method: native_erase_color
|
||||
* Signature: (III)J
|
||||
*/
|
||||
JNIEXPORT jint JNICALL Java_android_graphics_Bitmap_nativeGetPixel
|
||||
(JNIEnv *, jclass, jint, jint, jint, jboolean);
|
||||
JNIEXPORT jlong JNICALL Java_android_graphics_Bitmap_native_1erase_1color
|
||||
(JNIEnv *, jclass, jint, jint, jint);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeGetPixels
|
||||
* Signature: (J[IIIIIIIZ)V
|
||||
* Method: native_recycle
|
||||
* Signature: (JJ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Bitmap_nativeGetPixels
|
||||
(JNIEnv *, jclass, jlong, jintArray, jint, jint, jint, jint, jint, jint, jboolean);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeSetPixel
|
||||
* Signature: (IIIIZ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Bitmap_nativeSetPixel
|
||||
(JNIEnv *, jclass, jint, jint, jint, jint, jboolean);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeSetPixels
|
||||
* Signature: (I[IIIIIIIZ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Bitmap_nativeSetPixels
|
||||
(JNIEnv *, jclass, jint, jintArray, jint, jint, jint, jint, jint, jint, jboolean);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeCopyPixelsToBuffer
|
||||
* Signature: (JLjava/nio/Buffer;)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Bitmap_nativeCopyPixelsToBuffer
|
||||
(JNIEnv *, jclass, jlong, jobject);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeCopyPixelsFromBuffer
|
||||
* Signature: (JLjava/nio/Buffer;)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Bitmap_nativeCopyPixelsFromBuffer
|
||||
(JNIEnv *, jclass, jlong, jobject);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeGenerationId
|
||||
* Signature: (I)I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL Java_android_graphics_Bitmap_nativeGenerationId
|
||||
(JNIEnv *, jclass, jint);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeExtractAlpha
|
||||
* Signature: (II[I)Landroid/graphics/Bitmap;
|
||||
*/
|
||||
JNIEXPORT jobject JNICALL Java_android_graphics_Bitmap_nativeExtractAlpha
|
||||
(JNIEnv *, jclass, jint, jint, jintArray);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativePrepareToDraw
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Bitmap_nativePrepareToDraw
|
||||
(JNIEnv *, jclass, jint);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeSetAlphaAndPremultiplied
|
||||
* Signature: (IZZ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Bitmap_nativeSetAlphaAndPremultiplied
|
||||
(JNIEnv *, jclass, jint, jboolean, jboolean);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeHasMipMap
|
||||
* Signature: (I)Z
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL Java_android_graphics_Bitmap_nativeHasMipMap
|
||||
(JNIEnv *, jclass, jint);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeSetHasMipMap
|
||||
* Signature: (IZ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Bitmap_nativeSetHasMipMap
|
||||
(JNIEnv *, jclass, jint, jboolean);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Bitmap
|
||||
* Method: nativeSameAs
|
||||
* Signature: (II)Z
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL Java_android_graphics_Bitmap_nativeSameAs
|
||||
(JNIEnv *, jclass, jint, jint);
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Bitmap_native_1recycle
|
||||
(JNIEnv *, jclass, jlong, jlong);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -1,111 +0,0 @@
|
||||
/* DO NOT EDIT THIS FILE - it is machine generated */
|
||||
#include <jni.h>
|
||||
/* Header for class android_graphics_Canvas */
|
||||
|
||||
#ifndef _Included_android_graphics_Canvas
|
||||
#define _Included_android_graphics_Canvas
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#undef android_graphics_Canvas_HAS_ALPHA_LAYER_SAVE_FLAG
|
||||
#define android_graphics_Canvas_HAS_ALPHA_LAYER_SAVE_FLAG 4L
|
||||
/*
|
||||
* Class: android_graphics_Canvas
|
||||
* Method: native_canvas_from_bitmap
|
||||
* Signature: (J)J
|
||||
*/
|
||||
JNIEXPORT jlong JNICALL Java_android_graphics_Canvas_native_1canvas_1from_1bitmap
|
||||
(JNIEnv *, jclass, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Canvas
|
||||
* Method: native_save
|
||||
* Signature: (JJ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Canvas_native_1save
|
||||
(JNIEnv *, jclass, jlong, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Canvas
|
||||
* Method: native_restore
|
||||
* Signature: (JJ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Canvas_native_1restore
|
||||
(JNIEnv *, jclass, jlong, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Canvas
|
||||
* Method: native_drawText
|
||||
* Signature: (JLjava/lang/CharSequence;IIFFJJ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Canvas_native_1drawText
|
||||
(JNIEnv *, jclass, jlong, jobject, jint, jint, jfloat, jfloat, jlong, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Canvas
|
||||
* Method: native_drawRect
|
||||
* Signature: (JFFFFJ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Canvas_native_1drawRect
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat, jfloat, jfloat, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Canvas
|
||||
* Method: native_drawLine
|
||||
* Signature: (JJFFFFJ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Canvas_native_1drawLine
|
||||
(JNIEnv *, jclass, jlong, jlong, jfloat, jfloat, jfloat, jfloat, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Canvas
|
||||
* Method: native_drawBitmap
|
||||
* Signature: (JJJFFFFFFFFJ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Canvas_native_1drawBitmap
|
||||
(JNIEnv *, jclass, jlong, jlong, jlong, jfloat, jfloat, jfloat, jfloat, jfloat, jfloat, jfloat, jfloat, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Canvas
|
||||
* Method: native_rotate
|
||||
* Signature: (JJF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Canvas_native_1rotate
|
||||
(JNIEnv *, jclass, jlong, jlong, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Canvas
|
||||
* Method: native_rotate_and_translate
|
||||
* Signature: (JJFFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Canvas_native_1rotate_1and_1translate
|
||||
(JNIEnv *, jclass, jlong, jlong, jfloat, jfloat, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Canvas
|
||||
* Method: native_drawPath
|
||||
* Signature: (JJJ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Canvas_native_1drawPath
|
||||
(JNIEnv *, jclass, jlong, jlong, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Canvas
|
||||
* Method: native_destroy_canvas
|
||||
* Signature: (J)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Canvas_native_1destroy_1canvas
|
||||
(JNIEnv *, jclass, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Canvas
|
||||
* Method: native_scale
|
||||
* Signature: (JFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Canvas_native_1scale
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
@@ -9,164 +9,36 @@ extern "C" {
|
||||
#endif
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: init1
|
||||
* Signature: ()J
|
||||
* Method: native_create_builder
|
||||
* Signature: (J)J
|
||||
*/
|
||||
JNIEXPORT jlong JNICALL Java_android_graphics_Path_init1
|
||||
(JNIEnv *, jclass);
|
||||
JNIEXPORT jlong JNICALL Java_android_graphics_Path_native_1create_1builder
|
||||
(JNIEnv *, jclass, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: init2
|
||||
* Method: native_create_path
|
||||
* Signature: (J)J
|
||||
*/
|
||||
JNIEXPORT jlong JNICALL Java_android_graphics_Path_init2
|
||||
JNIEXPORT jlong JNICALL Java_android_graphics_Path_native_1create_1path
|
||||
(JNIEnv *, jclass, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_ref_path
|
||||
* Signature: (J)J
|
||||
*/
|
||||
JNIEXPORT jlong JNICALL Java_android_graphics_Path_native_1ref_1path
|
||||
(JNIEnv *, jclass, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_reset
|
||||
* Signature: (J)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1reset
|
||||
(JNIEnv *, jclass, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_rewind
|
||||
* Signature: (J)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1rewind
|
||||
(JNIEnv *, jclass, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_set
|
||||
* Signature: (JJ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1set
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1reset
|
||||
(JNIEnv *, jclass, jlong, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_getFillType
|
||||
* Signature: (J)I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL Java_android_graphics_Path_native_1getFillType
|
||||
(JNIEnv *, jclass, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_setFillType
|
||||
* Signature: (JI)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1setFillType
|
||||
(JNIEnv *, jclass, jlong, jint);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_isEmpty
|
||||
* Signature: (J)Z
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL Java_android_graphics_Path_native_1isEmpty
|
||||
(JNIEnv *, jclass, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_isRect
|
||||
* Signature: (JLandroid/graphics/RectF;)Z
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL Java_android_graphics_Path_native_1isRect
|
||||
(JNIEnv *, jclass, jlong, jobject);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_computeBounds
|
||||
* Signature: (JLandroid/graphics/RectF;)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1computeBounds
|
||||
(JNIEnv *, jclass, jlong, jobject);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_incReserve
|
||||
* Signature: (JI)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1incReserve
|
||||
(JNIEnv *, jclass, jlong, jint);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_moveTo
|
||||
* Signature: (JFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1moveTo
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_rMoveTo
|
||||
* Signature: (JFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1rMoveTo
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_lineTo
|
||||
* Signature: (JFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1lineTo
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_rLineTo
|
||||
* Signature: (JFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1rLineTo
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_quadTo
|
||||
* Signature: (JFFFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1quadTo
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat, jfloat, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_rQuadTo
|
||||
* Signature: (JFFFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1rQuadTo
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat, jfloat, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_cubicTo
|
||||
* Signature: (JFFFFFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1cubicTo
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat, jfloat, jfloat, jfloat, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_rCubicTo
|
||||
* Signature: (JFFFFFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1rCubicTo
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat, jfloat, jfloat, jfloat, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_arcTo
|
||||
* Signature: (JLandroid/graphics/RectF;FFZ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1arcTo
|
||||
(JNIEnv *, jclass, jlong, jobject, jfloat, jfloat, jboolean);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_close
|
||||
@@ -177,139 +49,83 @@ JNIEXPORT void JNICALL Java_android_graphics_Path_native_1close
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_addRect
|
||||
* Signature: (JLandroid/graphics/RectF;I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1addRect__JLandroid_graphics_RectF_2I
|
||||
(JNIEnv *, jclass, jlong, jobject, jint);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_addRect
|
||||
* Signature: (JFFFFI)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1addRect__JFFFFI
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat, jfloat, jfloat, jint);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_addOval
|
||||
* Signature: (JLandroid/graphics/RectF;I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1addOval
|
||||
(JNIEnv *, jclass, jlong, jobject, jint);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_addCircle
|
||||
* Signature: (JFFFI)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1addCircle
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat, jfloat, jint);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_addArc
|
||||
* Signature: (JLandroid/graphics/RectF;FF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1addArc
|
||||
(JNIEnv *, jclass, jlong, jobject, jfloat, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_addRoundRect
|
||||
* Signature: (JFFFFFFI)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1addRoundRect__JFFFFFFI
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat, jfloat, jfloat, jfloat, jfloat, jint);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_addRoundRect
|
||||
* Signature: (JLandroid/graphics/RectF;[FI)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1addRoundRect__JLandroid_graphics_RectF_2_3FI
|
||||
(JNIEnv *, jclass, jlong, jobject, jfloatArray, jint);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_addPath
|
||||
* Signature: (JJFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1addPath__JJFF
|
||||
(JNIEnv *, jclass, jlong, jlong, jfloat, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_addPath
|
||||
* Signature: (JJ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1addPath__JJ
|
||||
(JNIEnv *, jclass, jlong, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_addPath
|
||||
* Signature: (JJJ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1addPath__JJJ
|
||||
(JNIEnv *, jclass, jlong, jlong, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_offset
|
||||
* Signature: (JFFJ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1offset__JFFJ
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_offset
|
||||
* Method: native_move_to
|
||||
* Signature: (JFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1offset__JFF
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1move_1to
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_setLastPoint
|
||||
* Method: native_line_to
|
||||
* Signature: (JFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1setLastPoint
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1line_1to
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_transform
|
||||
* Method: native_cubic_to
|
||||
* Signature: (JFFFFFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1cubic_1to
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat, jfloat, jfloat, jfloat, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_quad_to
|
||||
* Signature: (JFFFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1quad_1to
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat, jfloat, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_rel_move_to
|
||||
* Signature: (JFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1rel_1move_1to
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_rel_line_to
|
||||
* Signature: (JFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1rel_1line_1to
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_rel_cubic_to
|
||||
* Signature: (JFFFFFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1rel_1cubic_1to
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat, jfloat, jfloat, jfloat, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_add_path
|
||||
* Signature: (JJJ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1transform__JJJ
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1add_1path
|
||||
(JNIEnv *, jclass, jlong, jlong, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_transform
|
||||
* Signature: (JJ)V
|
||||
* Method: native_add_rect
|
||||
* Signature: (JFFFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1transform__JJ
|
||||
(JNIEnv *, jclass, jlong, jlong);
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1add_1rect
|
||||
(JNIEnv *, jclass, jlong, jfloat, jfloat, jfloat, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: native_op
|
||||
* Signature: (JJIJ)Z
|
||||
* Method: native_get_bounds
|
||||
* Signature: (JLandroid/graphics/RectF;)V
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL Java_android_graphics_Path_native_1op
|
||||
(JNIEnv *, jclass, jlong, jlong, jint, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Path
|
||||
* Method: finalizer
|
||||
* Signature: (J)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_finalizer
|
||||
(JNIEnv *, jclass, jlong);
|
||||
JNIEXPORT void JNICALL Java_android_graphics_Path_native_1get_1bounds
|
||||
(JNIEnv *, jclass, jlong, jobject);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -207,14 +207,6 @@ extern "C" {
|
||||
JNIEXPORT jlong JNICALL Java_android_widget_ImageButton_native_1constructor
|
||||
(JNIEnv *, jobject, jobject, jobject);
|
||||
|
||||
/*
|
||||
* Class: android_widget_ImageButton
|
||||
* Method: native_setPixbuf
|
||||
* Signature: (JJ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_widget_ImageButton_native_1setPixbuf
|
||||
(JNIEnv *, jobject, jlong, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_widget_ImageButton
|
||||
* Method: native_setDrawable
|
||||
|
||||
@@ -207,14 +207,6 @@ extern "C" {
|
||||
JNIEXPORT jlong JNICALL Java_android_widget_ImageView_native_1constructor
|
||||
(JNIEnv *, jobject, jobject, jobject);
|
||||
|
||||
/*
|
||||
* Class: android_widget_ImageView
|
||||
* Method: native_setPixbuf
|
||||
* Signature: (JJ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_widget_ImageView_native_1setPixbuf
|
||||
(JNIEnv *, jobject, jlong, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_widget_ImageView
|
||||
* Method: native_setDrawable
|
||||
|
||||
Reference in New Issue
Block a user