Class BitmapFactoryNatives

java.lang.Object
org.robolectric.nativeruntime.BitmapFactoryNatives

public final class BitmapFactoryNatives extends Object
Native methods for BitmapFactory 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/BitmapFactory.java

  • Method Details

    • nativeDecodeStream

      public static Bitmap nativeDecodeStream(InputStream is, byte[] storage, Rect padding, BitmapFactory.Options opts, long inBitmapHandle, long colorSpaceHandle)
    • nativeDecodeFileDescriptor

      public static Bitmap nativeDecodeFileDescriptor(FileDescriptor fd, Rect padding, BitmapFactory.Options opts, long inBitmapHandle, long colorSpaceHandle)
    • nativeDecodeAsset

      public static Bitmap nativeDecodeAsset(long nativeAsset, Rect padding, BitmapFactory.Options opts, long inBitmapHandle, long colorSpaceHandle)
    • nativeDecodeByteArray

      public static Bitmap nativeDecodeByteArray(byte[] data, int offset, int length, BitmapFactory.Options opts, long inBitmapHandle, long colorSpaceHandle)
    • nativeIsSeekable

      public static boolean nativeIsSeekable(FileDescriptor fd)