Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea1831d2 authored by Elliott Hughes's avatar Elliott Hughes Committed by Android Git Automerger
Browse files

am b57dd722: resolved conflicts for a884d81e to stage-aosp-master

* commit 'b57dd722':
  constify JNINativeMethod function pointer tables
parents 64f6236c b57dd722
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -218,7 +218,7 @@ static void com_android_internal_os_RuntimeInit_nativeSetExitWithoutCleanup(JNIE
/*
 * JNI registration.
 */
static JNINativeMethod gMethods[] = {
static const JNINativeMethod gMethods[] = {
    { "nativeFinishInit", "()V",
        (void*) com_android_internal_os_RuntimeInit_nativeFinishInit },
    { "nativeZygoteInit", "()V",
+1 −1
Original line number Diff line number Diff line
@@ -1348,7 +1348,7 @@ static jlong Bitmap_refPixelRef(JNIEnv* env, jobject, jlong bitmapHandle) {

///////////////////////////////////////////////////////////////////////////////

static JNINativeMethod gBitmapMethods[] = {
static const JNINativeMethod gBitmapMethods[] = {
    {   "nativeCreate",             "([IIIIIIZ)Landroid/graphics/Bitmap;",
        (void*)Bitmap_creator },
    {   "nativeCopy",               "(JIZ)Landroid/graphics/Bitmap;",
+2 −2
Original line number Diff line number Diff line
@@ -542,7 +542,7 @@ jobject decodeBitmap(JNIEnv* env, void* data, size_t size) {

///////////////////////////////////////////////////////////////////////////////

static JNINativeMethod gMethods[] = {
static const JNINativeMethod gMethods[] = {
    {   "nativeDecodeStream",
        "(Ljava/io/InputStream;[BLandroid/graphics/Rect;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;",
        (void*)nativeDecodeStream
@@ -569,7 +569,7 @@ static JNINativeMethod gMethods[] = {
    },
};

static JNINativeMethod gOptionsMethods[] = {
static const JNINativeMethod gOptionsMethods[] = {
    {   "requestCancel", "()V", (void*)nativeRequestCancel }
};

+1 −1
Original line number Diff line number Diff line
@@ -264,7 +264,7 @@ static void nativeClean(JNIEnv* env, jobject, jlong brdHandle) {

///////////////////////////////////////////////////////////////////////////////

static JNINativeMethod gBitmapRegionDecoderMethods[] = {
static const JNINativeMethod gBitmapRegionDecoderMethods[] = {
    {   "nativeDecodeRegion",
        "(JIIIILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;",
        (void*)nativeDecodeRegion},
+1 −1
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ static jfloat Camera_dotWithNormal(JNIEnv* env, jobject obj,
/*
 * JNI registration.
 */
static JNINativeMethod gCameraMethods[] = {
static const JNINativeMethod gCameraMethods[] = {
    /* name, signature, funcPtr */

    { "nativeConstructor",   "()V",    (void*)Camera_constructor   },
Loading