Package org.robolectric.shadows
Class ShadowImageDecoder
- java.lang.Object
-
- org.robolectric.shadows.ShadowImageDecoder
-
@Implements(value=android.graphics.ImageDecoder.class, isInAndroidSdk=false, minSdk=28) public class ShadowImageDecoder extends Object
-
-
Constructor Summary
Constructors Constructor Description ShadowImageDecoder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static ImageDecoder
ImageDecoder_nCreateAsset(long asset_ptr, ImageDecoder.Source source)
protected static ImageDecoder
ImageDecoder_nCreateByteArray(byte[] byteArray, int offset, int length, ImageDecoder.Source source)
protected static ImageDecoder
ImageDecoder_nCreateByteBuffer(ByteBuffer jbyteBuffer, int initialPosition, int limit, ImageDecoder.Source source)
protected static ImageDecoder
ImageDecoder_nCreateFd(FileDescriptor fileDescriptor, ImageDecoder.Source source)
protected static ImageDecoder
ImageDecoder_nCreateInputStream(InputStream is, byte[] storage, ImageDecoder.Source source)
protected static Bitmap
ImageDecoder_nDecodeBitmap(long nativePtr, ImageDecoder decoder, boolean doPostProcess, int width, int height, Rect cropRect, boolean mutable, int allocator, boolean unpremulRequired, boolean conserveMemory, boolean decodeAsAlphaMask, ColorSpace desiredColorSpace)
protected static void
nClose(long nativePtr)
protected static ImageDecoder
nCreate(byte[] data, int offset, int length, boolean preferAnimation, ImageDecoder.Source src)
protected static ImageDecoder
nCreate(byte[] data, int offset, int length, ImageDecoder.Source src)
protected static ImageDecoder
nCreate(long asset, boolean preferAnimation, ImageDecoder.Source source)
protected static ImageDecoder
nCreate(long asset, ImageDecoder.Source source)
protected static ImageDecoder
nCreate(FileDescriptor fd, boolean preferAnimation, ImageDecoder.Source src)
protected static ImageDecoder
nCreate(FileDescriptor fd, ImageDecoder.Source src)
protected static ImageDecoder
nCreate(InputStream is, byte[] storage, boolean preferAnimation, ImageDecoder.Source source)
protected static ImageDecoder
nCreate(InputStream is, byte[] storage, ImageDecoder.Source source)
protected static ImageDecoder
nCreate(ByteBuffer buffer, int position, int limit, boolean preferAnimation, ImageDecoder.Source src)
protected static ImageDecoder
nCreate(ByteBuffer buffer, int position, int limit, ImageDecoder.Source src)
protected static Bitmap
nDecodeBitmap(long nativePtr, ImageDecoder decoder, boolean doPostProcess, int width, int height, Rect cropRect, boolean mutable, int allocator, boolean unpremulRequired, boolean conserveMemory, boolean decodeAsAlphaMask, long desiredColorSpace, boolean extended)
protected static Bitmap
nDecodeBitmap(long nativePtr, ImageDecoder decoder, boolean doPostProcess, int width, int height, Rect cropRect, boolean mutable, int allocator, boolean unpremulRequired, boolean conserveMemory, boolean decodeAsAlphaMask, ColorSpace desiredColorSpace)
protected static ColorSpace
nGetColorSpace(long nativePtr)
protected static String
nGetMimeType(long nativePtr)
protected static void
nGetPadding(long nativePtr, Rect outRect)
protected static Size
nGetSampledSize(long nativePtr, int sampleSize)
-
-
-
Method Detail
-
ImageDecoder_nCreateFd
protected static ImageDecoder ImageDecoder_nCreateFd(FileDescriptor fileDescriptor, ImageDecoder.Source source)
-
ImageDecoder_nCreateInputStream
protected static ImageDecoder ImageDecoder_nCreateInputStream(InputStream is, byte[] storage, ImageDecoder.Source source)
-
ImageDecoder_nCreateAsset
protected static ImageDecoder ImageDecoder_nCreateAsset(long asset_ptr, ImageDecoder.Source source) throws ImageDecoder.DecodeException
- Throws:
ImageDecoder.DecodeException
-
ImageDecoder_nCreateByteBuffer
protected static ImageDecoder ImageDecoder_nCreateByteBuffer(ByteBuffer jbyteBuffer, int initialPosition, int limit, ImageDecoder.Source source) throws ImageDecoder.DecodeException
- Throws:
ImageDecoder.DecodeException
-
ImageDecoder_nCreateByteArray
protected static ImageDecoder ImageDecoder_nCreateByteArray(byte[] byteArray, int offset, int length, ImageDecoder.Source source)
-
ImageDecoder_nDecodeBitmap
protected static Bitmap ImageDecoder_nDecodeBitmap(long nativePtr, ImageDecoder decoder, boolean doPostProcess, int width, int height, Rect cropRect, boolean mutable, int allocator, boolean unpremulRequired, boolean conserveMemory, boolean decodeAsAlphaMask, ColorSpace desiredColorSpace) throws IOException
- Throws:
IOException
-
nCreate
@Implementation(maxSdk=29) protected static ImageDecoder nCreate(long asset, ImageDecoder.Source source) throws IOException
- Throws:
IOException
-
nCreate
@Implementation(maxSdk=29) protected static ImageDecoder nCreate(ByteBuffer buffer, int position, int limit, ImageDecoder.Source src) throws IOException
- Throws:
IOException
-
nCreate
@Implementation(maxSdk=29) protected static ImageDecoder nCreate(byte[] data, int offset, int length, ImageDecoder.Source src) throws IOException
- Throws:
IOException
-
nCreate
@Implementation(maxSdk=29) protected static ImageDecoder nCreate(InputStream is, byte[] storage, ImageDecoder.Source source)
-
nCreate
@Implementation(maxSdk=29) protected static ImageDecoder nCreate(FileDescriptor fd, ImageDecoder.Source src) throws IOException
- Throws:
IOException
-
nCreate
@Implementation(minSdk=30) protected static ImageDecoder nCreate(long asset, boolean preferAnimation, ImageDecoder.Source source) throws IOException
- Throws:
IOException
-
nCreate
@Implementation(minSdk=30) protected static ImageDecoder nCreate(ByteBuffer buffer, int position, int limit, boolean preferAnimation, ImageDecoder.Source src) throws IOException
- Throws:
IOException
-
nCreate
@Implementation(minSdk=30) protected static ImageDecoder nCreate(byte[] data, int offset, int length, boolean preferAnimation, ImageDecoder.Source src) throws IOException
- Throws:
IOException
-
nCreate
@Implementation(minSdk=30) protected static ImageDecoder nCreate(InputStream is, byte[] storage, boolean preferAnimation, ImageDecoder.Source source)
-
nCreate
@Implementation(minSdk=30, maxSdk=30) protected static ImageDecoder nCreate(FileDescriptor fd, boolean preferAnimation, ImageDecoder.Source src) throws IOException
- Throws:
IOException
-
nDecodeBitmap
@Implementation(maxSdk=28) protected static Bitmap nDecodeBitmap(long nativePtr, ImageDecoder decoder, boolean doPostProcess, int width, int height, Rect cropRect, boolean mutable, int allocator, boolean unpremulRequired, boolean conserveMemory, boolean decodeAsAlphaMask, ColorSpace desiredColorSpace) throws IOException
- Throws:
IOException
-
nDecodeBitmap
@Implementation(minSdk=29) protected static Bitmap nDecodeBitmap(long nativePtr, ImageDecoder decoder, boolean doPostProcess, int width, int height, Rect cropRect, boolean mutable, int allocator, boolean unpremulRequired, boolean conserveMemory, boolean decodeAsAlphaMask, long desiredColorSpace, boolean extended) throws IOException
- Throws:
IOException
-
nGetSampledSize
@Implementation protected static Size nGetSampledSize(long nativePtr, int sampleSize)
-
nGetPadding
@Implementation protected static void nGetPadding(long nativePtr, Rect outRect)
-
nClose
@Implementation protected static void nClose(long nativePtr)
-
nGetMimeType
@Implementation protected static String nGetMimeType(long nativePtr)
-
nGetColorSpace
@Implementation protected static ColorSpace nGetColorSpace(long nativePtr)
-
-