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