Package org.robolectric.shadows
Class ShadowNativeBitmapRegionDecoder
java.lang.Object
org.robolectric.shadows.ShadowNativeBitmapRegionDecoder
@Implements(value=android.graphics.BitmapRegionDecoder.class,
isInAndroidSdk=false,
minSdk=26,
shadowPicker=Picker.class,
callNativeMethodsByDefault=true)
public class ShadowNativeBitmapRegionDecoder
extends Object
Shadow for
BitmapRegionDecoder that is backed by native code-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidnativeClean(long lbm) protected static BitmapnativeDecodeRegion(long lbm, int startX, int startY, int width, int height, BitmapFactory.Options options) protected static BitmapnativeDecodeRegion(long lbm, int startX, int startY, int width, int height, BitmapFactory.Options options, long inBitmapHandle, long colorSpaceHandle) protected static intnativeGetHeight(long lbm) protected static intnativeGetWidth(long lbm) protected static BitmapRegionDecodernativeNewInstance(byte[] data, int offset, int length) protected static BitmapRegionDecodernativeNewInstance(byte[] data, int offset, int length, boolean isShareable) protected static BitmapRegionDecodernativeNewInstance(long asset) protected static BitmapRegionDecodernativeNewInstance(long asset, boolean isShareable) protected static BitmapRegionDecoderprotected static BitmapRegionDecodernativeNewInstance(FileDescriptor fd, boolean isShareable) protected static BitmapRegionDecodernativeNewInstance(InputStream is, byte[] storage) protected static BitmapRegionDecodernativeNewInstance(InputStream is, byte[] storage, boolean isShareable) protected static BitmapRegionDecoderThe real implementation checks to see if the InputStream is an AssetInputStream.protected static BitmapRegionDecodernewInstance(InputStream is, boolean isShareable) The real implementation checks to see if the InputStream is an AssetInputStream.
-
Constructor Details
-
ShadowNativeBitmapRegionDecoder
public ShadowNativeBitmapRegionDecoder()
-
-
Method Details
-
newInstance
@Implementation(minSdk=31) protected static BitmapRegionDecoder newInstance(InputStream is) throws IOException The real implementation checks to see if the InputStream is an AssetInputStream. However, Robolectric does not support native assets for all SDK levels.- Throws:
IOException
-
newInstance
@Implementation(maxSdk=34) protected static BitmapRegionDecoder newInstance(InputStream is, boolean isShareable) throws IOException The real implementation checks to see if the InputStream is an AssetInputStream. However, Robolectric does not support native assets for all SDK levels.- Throws:
IOException
-
nativeDecodeRegion
@Implementation(minSdk=29, maxSdk=34) protected static Bitmap nativeDecodeRegion(long lbm, int startX, int startY, int width, int height, BitmapFactory.Options options, long inBitmapHandle, long colorSpaceHandle) -
nativeDecodeRegion
@Implementation(minSdk=26, maxSdk=28) protected static Bitmap nativeDecodeRegion(long lbm, int startX, int startY, int width, int height, BitmapFactory.Options options) -
nativeGetWidth
-
nativeGetHeight
-
nativeClean
-
nativeNewInstance
@Implementation(minSdk=31, maxSdk=34) protected static BitmapRegionDecoder nativeNewInstance(byte[] data, int offset, int length) -
nativeNewInstance
@Implementation(minSdk=26, maxSdk=30) protected static BitmapRegionDecoder nativeNewInstance(byte[] data, int offset, int length, boolean isShareable) -
nativeNewInstance
@Implementation(minSdk=31, maxSdk=34) protected static BitmapRegionDecoder nativeNewInstance(FileDescriptor fd) -
nativeNewInstance
@Implementation(minSdk=26, maxSdk=30) protected static BitmapRegionDecoder nativeNewInstance(FileDescriptor fd, boolean isShareable) -
nativeNewInstance
@Implementation(minSdk=31, maxSdk=34) protected static BitmapRegionDecoder nativeNewInstance(InputStream is, byte[] storage) -
nativeNewInstance
@Implementation(minSdk=26, maxSdk=30) protected static BitmapRegionDecoder nativeNewInstance(InputStream is, byte[] storage, boolean isShareable) -
nativeNewInstance
@Implementation(minSdk=31, maxSdk=34) protected static BitmapRegionDecoder nativeNewInstance(long asset) -
nativeNewInstance
@Implementation(minSdk=26, maxSdk=30) protected static BitmapRegionDecoder nativeNewInstance(long asset, boolean isShareable)
-