Class BitmapRegionDecoderNatives

java.lang.Object
org.robolectric.nativeruntime.BitmapRegionDecoderNatives

public class BitmapRegionDecoderNatives extends Object
Native methods for BitmapRegionDecoder JNI registration.

Native method signatures are derived from https://cs.android.com/android/platform/superproject/+/android-12.0.0_r1:frameworks/base/graphics/java/android/graphics/BitmapRegionDecoder.java

  • Constructor Details

    • BitmapRegionDecoderNatives

      public BitmapRegionDecoderNatives()
  • Method Details

    • nativeDecodeRegion

      public static Bitmap nativeDecodeRegion(long lbm, int startX, int startY, int width, int height, BitmapFactory.Options options, long inBitmapHandle, long colorSpaceHandle)
    • nativeGetWidth

      public static int nativeGetWidth(long lbm)
    • nativeGetHeight

      public static int nativeGetHeight(long lbm)
    • nativeClean

      public static void nativeClean(long lbm)
    • nativeNewInstance

      public static BitmapRegionDecoder nativeNewInstance(byte[] data, int offset, int length)
    • nativeNewInstance

      public static BitmapRegionDecoder nativeNewInstance(FileDescriptor fd)
    • nativeNewInstance

      public static BitmapRegionDecoder nativeNewInstance(InputStream is, byte[] storage)
    • nativeNewInstance

      public static BitmapRegionDecoder nativeNewInstance(long asset)