Package org.robolectric.nativeruntime
Class BitmapFactoryNatives
java.lang.Object
org.robolectric.nativeruntime.BitmapFactoryNatives
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 Summary
Modifier and TypeMethodDescriptionstatic Bitmap
nativeDecodeAsset
(long nativeAsset, Rect padding, BitmapFactory.Options opts, long inBitmapHandle, long colorSpaceHandle) static Bitmap
nativeDecodeByteArray
(byte[] data, int offset, int length, BitmapFactory.Options opts, long inBitmapHandle, long colorSpaceHandle) static Bitmap
nativeDecodeFileDescriptor
(FileDescriptor fd, Rect padding, BitmapFactory.Options opts, long inBitmapHandle, long colorSpaceHandle) static Bitmap
nativeDecodeStream
(InputStream is, byte[] storage, Rect padding, BitmapFactory.Options opts, long inBitmapHandle, long colorSpaceHandle) static boolean
-
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
-