Info Call to native methods

Description

List of all calls to methods using Java Native Interface to interact with native code (written in C/C++).

Recommendation

Data passed to NewStringUTF must be in Modified UTF-8 format

UTF-16 strings are not zero-terminated

Object references should never be compared using == or != in native code. When testing for object equality, the IsSameObject() function should be used instead of ==.

Technical details
  • Method com.facebook.imagepipeline.memory.NativeMemoryChunk->nativeAllocate((I)J)
  • Method com.facebook.imagepipeline.memory.NativeMemoryChunk->nativeCopyFromByteArray((J [B I I)V)
  • Method com.facebook.imagepipeline.memory.NativeMemoryChunk->nativeCopyToByteArray((J [B I I)V)
  • Method com.facebook.imagepipeline.memory.NativeMemoryChunk->nativeFree((J)V)
  • Method com.facebook.imagepipeline.memory.NativeMemoryChunk->nativeMemcpy((J J I)V)
  • Method com.facebook.imagepipeline.memory.NativeMemoryChunk->nativeReadByte((J)B)
  • Method com.facebook.imagepipeline.nativecode.Bitmaps->nativeCopyBitmap((Landroid/graphics/Bitmap; I Landroid/graphics/Bitmap; I I)V)
  • Method com.facebook.imagepipeline.nativecode.Bitmaps->nativeGetByteBuffer((Landroid/graphics/Bitmap; J J)Ljava/nio/ByteBuffer;)
  • Method com.facebook.imagepipeline.nativecode.Bitmaps->nativePinBitmap((Landroid/graphics/Bitmap;)V)
  • Method com.facebook.imagepipeline.nativecode.Bitmaps->nativeReleaseByteBuffer((Landroid/graphics/Bitmap;)V)
  • Method com.facebook.imagepipeline.nativecode.JpegTranscoder->nativeTranscodeJpeg((Ljava/io/InputStream; Ljava/io/OutputStream; I I I)V)
  • Method com.facebook.imagepipeline.nativecode.NativeBlurFilter->nativeIterativeBoxBlur((Landroid/graphics/Bitmap; I I)V)