Package org.robolectric.shadows
Class ShadowBitmapFactory
- java.lang.Object
-
- org.robolectric.shadows.ShadowBitmapFactory
-
@Implements(android.graphics.BitmapFactory.class) public class ShadowBitmapFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ShadowBitmapFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static android.graphics.Bitmapcreate(java.lang.String name, android.graphics.BitmapFactory.Options options)static android.graphics.Bitmapcreate(java.lang.String name, android.graphics.BitmapFactory.Options options, android.graphics.Point widthAndHeight)protected static android.graphics.BitmapdecodeByteArray(byte[] data, int offset, int length)protected static android.graphics.BitmapdecodeByteArray(byte[] data, int offset, int length, android.graphics.BitmapFactory.Options opts)protected static android.graphics.BitmapdecodeFile(java.lang.String pathName)protected static android.graphics.BitmapdecodeFile(java.lang.String pathName, android.graphics.BitmapFactory.Options options)protected static android.graphics.BitmapdecodeFileDescriptor(java.io.FileDescriptor fd, android.graphics.Rect outPadding, android.graphics.BitmapFactory.Options opts)protected static android.graphics.BitmapdecodeResource(android.content.res.Resources res, int id, android.graphics.BitmapFactory.Options options)protected static android.graphics.BitmapdecodeResourceStream(android.content.res.Resources res, android.util.TypedValue value, java.io.InputStream is, android.graphics.Rect pad, android.graphics.BitmapFactory.Options opts)protected static android.graphics.BitmapdecodeStream(java.io.InputStream is)protected static android.graphics.BitmapdecodeStream(java.io.InputStream is, android.graphics.Rect outPadding, android.graphics.BitmapFactory.Options opts)static voidprovideWidthAndHeightHints(int resourceId, int width, int height)static voidprovideWidthAndHeightHints(android.net.Uri uri, int width, int height)static voidprovideWidthAndHeightHints(java.io.FileDescriptor fd, int width, int height)static voidprovideWidthAndHeightHints(java.lang.String file, int width, int height)static voidreset()
-
-
-
Method Detail
-
decodeResourceStream
@Implementation protected static android.graphics.Bitmap decodeResourceStream(android.content.res.Resources res, android.util.TypedValue value, java.io.InputStream is, android.graphics.Rect pad, android.graphics.BitmapFactory.Options opts)
-
decodeResource
@Implementation protected static android.graphics.Bitmap decodeResource(android.content.res.Resources res, int id, android.graphics.BitmapFactory.Options options)
-
decodeFile
@Implementation protected static android.graphics.Bitmap decodeFile(java.lang.String pathName)
-
decodeFile
@Implementation protected static android.graphics.Bitmap decodeFile(java.lang.String pathName, android.graphics.BitmapFactory.Options options)
-
decodeFileDescriptor
@Implementation protected static android.graphics.Bitmap decodeFileDescriptor(java.io.FileDescriptor fd, android.graphics.Rect outPadding, android.graphics.BitmapFactory.Options opts)
-
decodeStream
@Implementation protected static android.graphics.Bitmap decodeStream(java.io.InputStream is)
-
decodeStream
@Implementation protected static android.graphics.Bitmap decodeStream(java.io.InputStream is, android.graphics.Rect outPadding, android.graphics.BitmapFactory.Options opts)
-
decodeByteArray
@Implementation protected static android.graphics.Bitmap decodeByteArray(byte[] data, int offset, int length)
-
decodeByteArray
@Implementation protected static android.graphics.Bitmap decodeByteArray(byte[] data, int offset, int length, android.graphics.BitmapFactory.Options opts)
-
create
public static android.graphics.Bitmap create(java.lang.String name, android.graphics.BitmapFactory.Options options)
-
create
public static android.graphics.Bitmap create(java.lang.String name, android.graphics.BitmapFactory.Options options, android.graphics.Point widthAndHeight)
-
provideWidthAndHeightHints
public static void provideWidthAndHeightHints(android.net.Uri uri, int width, int height)
-
provideWidthAndHeightHints
public static void provideWidthAndHeightHints(int resourceId, int width, int height)
-
provideWidthAndHeightHints
public static void provideWidthAndHeightHints(java.lang.String file, int width, int height)
-
provideWidthAndHeightHints
public static void provideWidthAndHeightHints(java.io.FileDescriptor fd, int width, int height)
-
reset
@Resetter public static void reset()
-
-