Package org.robolectric.shadows
Class ShadowNativeBitmapFactory
- java.lang.Object
-
- org.robolectric.shadows.ShadowNativeBitmapFactory
-
@Implements(value=android.graphics.BitmapFactory.class, minSdk=26, shadowPicker=Picker.class, isInAndroidSdk=false) public class ShadowNativeBitmapFactory extends Object
Shadow forBitmapFactorythat is backed by native code
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShadowNativeBitmapFactory.PickerShadow picker forBitmapFactory.
-
Constructor Summary
Constructors Constructor Description ShadowNativeBitmapFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static BitmapdecodeResource(Resources res, int id, BitmapFactory.Options options)protected static BitmapdecodeStream(InputStream is, Rect outPadding, BitmapFactory.Options opts)protected static BitmapnativeDecodeAsset(long nativeAsset, Rect padding, BitmapFactory.Options opts)protected static BitmapnativeDecodeAsset(long nativeAsset, Rect padding, BitmapFactory.Options opts, long inBitmapHandle, long colorSpaceHandle)protected static BitmapnativeDecodeByteArray(byte[] data, int offset, int length, BitmapFactory.Options opts)protected static BitmapnativeDecodeByteArray(byte[] data, int offset, int length, BitmapFactory.Options opts, long inBitmapHandle, long colorSpaceHandle)protected static BitmapnativeDecodeFileDescriptor(FileDescriptor fd, Rect padding, BitmapFactory.Options opts)protected static BitmapnativeDecodeFileDescriptor(FileDescriptor fd, Rect padding, BitmapFactory.Options opts, long inBitmapHandle, long colorSpaceHandle)protected static BitmapnativeDecodeStream(InputStream is, byte[] storage, Rect padding, BitmapFactory.Options opts)protected static BitmapnativeDecodeStream(InputStream is, byte[] storage, Rect padding, BitmapFactory.Options opts, long inBitmapHandle, long colorSpaceHandle)protected static booleannativeIsSeekable(FileDescriptor fd)
-
-
-
Method Detail
-
decodeResource
@Implementation protected static Bitmap decodeResource(Resources res, int id, BitmapFactory.Options options)
-
decodeStream
@Implementation protected static Bitmap decodeStream(InputStream is, Rect outPadding, BitmapFactory.Options opts)
-
nativeDecodeStream
@Implementation(minSdk=29) protected static Bitmap nativeDecodeStream(InputStream is, byte[] storage, Rect padding, BitmapFactory.Options opts, long inBitmapHandle, long colorSpaceHandle)
-
nativeDecodeStream
@Implementation(maxSdk=28) protected static Bitmap nativeDecodeStream(InputStream is, byte[] storage, Rect padding, BitmapFactory.Options opts)
-
nativeDecodeFileDescriptor
@Implementation(minSdk=29) protected static Bitmap nativeDecodeFileDescriptor(FileDescriptor fd, Rect padding, BitmapFactory.Options opts, long inBitmapHandle, long colorSpaceHandle)
-
nativeDecodeFileDescriptor
@Implementation(maxSdk=28) protected static Bitmap nativeDecodeFileDescriptor(FileDescriptor fd, Rect padding, BitmapFactory.Options opts)
-
nativeDecodeAsset
@Implementation(minSdk=29) protected static Bitmap nativeDecodeAsset(long nativeAsset, Rect padding, BitmapFactory.Options opts, long inBitmapHandle, long colorSpaceHandle)
-
nativeDecodeAsset
@Implementation(minSdk=21, maxSdk=28) protected static Bitmap nativeDecodeAsset(long nativeAsset, Rect padding, BitmapFactory.Options opts)
-
nativeDecodeByteArray
@Implementation(minSdk=29) protected static Bitmap nativeDecodeByteArray(byte[] data, int offset, int length, BitmapFactory.Options opts, long inBitmapHandle, long colorSpaceHandle)
-
nativeDecodeByteArray
@Implementation(maxSdk=28) protected static Bitmap nativeDecodeByteArray(byte[] data, int offset, int length, BitmapFactory.Options opts)
-
nativeIsSeekable
@Implementation protected static boolean nativeIsSeekable(FileDescriptor fd)
-
-