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 java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ShadowImageDecoder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static android.graphics.ImageDecoderImageDecoder_nCreateAsset(long asset_ptr, android.graphics.ImageDecoder.Source source)protected static android.graphics.ImageDecoderImageDecoder_nCreateByteArray(byte[] byteArray, int offset, int length, android.graphics.ImageDecoder.Source source)protected static android.graphics.ImageDecoderImageDecoder_nCreateByteBuffer(java.nio.ByteBuffer jbyteBuffer, int initialPosition, int limit, android.graphics.ImageDecoder.Source source)protected static android.graphics.ImageDecoderImageDecoder_nCreateFd(java.io.FileDescriptor fileDescriptor, android.graphics.ImageDecoder.Source source)protected static android.graphics.ImageDecoderImageDecoder_nCreateInputStream(java.io.InputStream is, byte[] storage, android.graphics.ImageDecoder.Source source)protected static android.graphics.BitmapImageDecoder_nDecodeBitmap(long nativePtr, android.graphics.ImageDecoder decoder, boolean doPostProcess, int width, int height, android.graphics.Rect cropRect, boolean mutable, int allocator, boolean unpremulRequired, boolean conserveMemory, boolean decodeAsAlphaMask, android.graphics.ColorSpace desiredColorSpace)protected static voidnClose(long nativePtr)protected static android.graphics.ImageDecodernCreate(byte[] data, int offset, int length, android.graphics.ImageDecoder.Source src)protected static android.graphics.ImageDecodernCreate(long asset, android.graphics.ImageDecoder.Source source)protected static android.graphics.ImageDecodernCreate(java.io.FileDescriptor fd, android.graphics.ImageDecoder.Source src)protected static android.graphics.ImageDecodernCreate(java.io.InputStream is, byte[] storage, android.graphics.ImageDecoder.Source source)protected static android.graphics.ImageDecodernCreate(java.nio.ByteBuffer buffer, int position, int limit, android.graphics.ImageDecoder.Source src)protected static android.graphics.BitmapnDecodeBitmap(long nativePtr, android.graphics.ImageDecoder decoder, boolean doPostProcess, int width, int height, android.graphics.Rect cropRect, boolean mutable, int allocator, boolean unpremulRequired, boolean conserveMemory, boolean decodeAsAlphaMask, long desiredColorSpace, boolean extended)protected static android.graphics.BitmapnDecodeBitmap(long nativePtr, android.graphics.ImageDecoder decoder, boolean doPostProcess, int width, int height, android.graphics.Rect cropRect, boolean mutable, int allocator, boolean unpremulRequired, boolean conserveMemory, boolean decodeAsAlphaMask, android.graphics.ColorSpace desiredColorSpace)protected static android.graphics.ColorSpacenGetColorSpace(long nativePtr)protected static java.lang.StringnGetMimeType(long nativePtr)protected static voidnGetPadding(long nativePtr, android.graphics.Rect outRect)protected static android.util.SizenGetSampledSize(long nativePtr, int sampleSize)
-
-
-
Method Detail
-
ImageDecoder_nCreateFd
protected static android.graphics.ImageDecoder ImageDecoder_nCreateFd(java.io.FileDescriptor fileDescriptor, android.graphics.ImageDecoder.Source source)
-
ImageDecoder_nCreateInputStream
protected static android.graphics.ImageDecoder ImageDecoder_nCreateInputStream(java.io.InputStream is, byte[] storage, android.graphics.ImageDecoder.Source source)
-
ImageDecoder_nCreateAsset
protected static android.graphics.ImageDecoder ImageDecoder_nCreateAsset(long asset_ptr, android.graphics.ImageDecoder.Source source) throws android.graphics.ImageDecoder.DecodeException- Throws:
android.graphics.ImageDecoder.DecodeException
-
ImageDecoder_nCreateByteBuffer
protected static android.graphics.ImageDecoder ImageDecoder_nCreateByteBuffer(java.nio.ByteBuffer jbyteBuffer, int initialPosition, int limit, android.graphics.ImageDecoder.Source source) throws android.graphics.ImageDecoder.DecodeException- Throws:
android.graphics.ImageDecoder.DecodeException
-
ImageDecoder_nCreateByteArray
protected static android.graphics.ImageDecoder ImageDecoder_nCreateByteArray(byte[] byteArray, int offset, int length, android.graphics.ImageDecoder.Source source)
-
ImageDecoder_nDecodeBitmap
protected static android.graphics.Bitmap ImageDecoder_nDecodeBitmap(long nativePtr, android.graphics.ImageDecoder decoder, boolean doPostProcess, int width, int height, android.graphics.Rect cropRect, boolean mutable, int allocator, boolean unpremulRequired, boolean conserveMemory, boolean decodeAsAlphaMask, android.graphics.ColorSpace desiredColorSpace) throws java.io.IOException- Throws:
java.io.IOException
-
nCreate
@Implementation protected static android.graphics.ImageDecoder nCreate(long asset, android.graphics.ImageDecoder.Source source) throws java.io.IOException- Throws:
java.io.IOException
-
nCreate
@Implementation protected static android.graphics.ImageDecoder nCreate(java.nio.ByteBuffer buffer, int position, int limit, android.graphics.ImageDecoder.Source src) throws java.io.IOException- Throws:
java.io.IOException
-
nCreate
@Implementation protected static android.graphics.ImageDecoder nCreate(byte[] data, int offset, int length, android.graphics.ImageDecoder.Source src) throws java.io.IOException- Throws:
java.io.IOException
-
nCreate
@Implementation protected static android.graphics.ImageDecoder nCreate(java.io.InputStream is, byte[] storage, android.graphics.ImageDecoder.Source source)
-
nCreate
@Implementation protected static android.graphics.ImageDecoder nCreate(java.io.FileDescriptor fd, android.graphics.ImageDecoder.Source src) throws java.io.IOException- Throws:
java.io.IOException
-
nDecodeBitmap
@Implementation(maxSdk=28) protected static android.graphics.Bitmap nDecodeBitmap(long nativePtr, android.graphics.ImageDecoder decoder, boolean doPostProcess, int width, int height, android.graphics.Rect cropRect, boolean mutable, int allocator, boolean unpremulRequired, boolean conserveMemory, boolean decodeAsAlphaMask, android.graphics.ColorSpace desiredColorSpace) throws java.io.IOException- Throws:
java.io.IOException
-
nDecodeBitmap
@Implementation(minSdk=29) protected static android.graphics.Bitmap nDecodeBitmap(long nativePtr, android.graphics.ImageDecoder decoder, boolean doPostProcess, int width, int height, android.graphics.Rect cropRect, boolean mutable, int allocator, boolean unpremulRequired, boolean conserveMemory, boolean decodeAsAlphaMask, long desiredColorSpace, boolean extended) throws java.io.IOException- Throws:
java.io.IOException
-
nGetSampledSize
@Implementation protected static android.util.Size nGetSampledSize(long nativePtr, int sampleSize)
-
nGetPadding
@Implementation protected static void nGetPadding(long nativePtr, android.graphics.Rect outRect)
-
nClose
@Implementation protected static void nClose(long nativePtr)
-
nGetMimeType
@Implementation protected static java.lang.String nGetMimeType(long nativePtr)
-
nGetColorSpace
@Implementation protected static android.graphics.ColorSpace nGetColorSpace(long nativePtr)
-
-