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 -
Method Summary
Modifier and TypeMethodDescriptionprotected static ImageDecoderImageDecoder_nCreateAsset(long asset_ptr, ImageDecoder.Source source) protected static ImageDecoderImageDecoder_nCreateByteArray(byte[] byteArray, int offset, int length, ImageDecoder.Source source) protected static ImageDecoderImageDecoder_nCreateByteBuffer(ByteBuffer jbyteBuffer, int initialPosition, int limit, ImageDecoder.Source source) protected static ImageDecoderImageDecoder_nCreateFd(FileDescriptor fileDescriptor, ImageDecoder.Source source) protected static ImageDecoderImageDecoder_nCreateInputStream(InputStream is, byte[] storage, ImageDecoder.Source source) protected static BitmapImageDecoder_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 voidnClose(long nativePtr) protected static ImageDecodernCreate(byte[] data, int offset, int length, boolean preferAnimation, ImageDecoder.Source src) protected static ImageDecodernCreate(byte[] data, int offset, int length, ImageDecoder.Source src) protected static ImageDecodernCreate(long asset, boolean preferAnimation, ImageDecoder.Source source) protected static ImageDecodernCreate(long asset, ImageDecoder.Source source) protected static ImageDecodernCreate(FileDescriptor fd, boolean preferAnimation, ImageDecoder.Source src) protected static ImageDecodernCreate(FileDescriptor fd, ImageDecoder.Source src) protected static ImageDecodernCreate(InputStream is, byte[] storage, boolean preferAnimation, ImageDecoder.Source source) protected static ImageDecodernCreate(InputStream is, byte[] storage, ImageDecoder.Source source) protected static ImageDecodernCreate(ByteBuffer buffer, int position, int limit, boolean preferAnimation, ImageDecoder.Source src) protected static ImageDecodernCreate(ByteBuffer buffer, int position, int limit, ImageDecoder.Source src) protected static BitmapnDecodeBitmap(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 BitmapnDecodeBitmap(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 ColorSpacenGetColorSpace(long nativePtr) protected static StringnGetMimeType(long nativePtr) protected static voidnGetPadding(long nativePtr, Rect outRect) protected static SizenGetSampledSize(long nativePtr, int sampleSize)
-
Constructor Details
-
ShadowImageDecoder
public ShadowImageDecoder()
-
-
Method Details
-
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
-
nGetPadding
-
nClose
-
nGetMimeType
-
nGetColorSpace
-