Package org.robolectric.shadows
Class ShadowNativePicture
- java.lang.Object
-
- org.robolectric.shadows.ShadowNativePicture
-
@Implements(value=android.graphics.Picture.class, minSdk=26, shadowPicker=Picker.class, isInAndroidSdk=false) public class ShadowNativePicture extends Object
Shadow forPicturethat is backed by native code
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShadowNativePicture.PickerShadow picker forPicture.
-
Constructor Summary
Constructors Constructor Description ShadowNativePicture()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static longnativeBeginRecording(long nativeCanvas, int w, int h)protected static longnativeConstructor(long nativeSrcOr0)protected static longnativeCreateFromStream(InputStream stream, byte[] storage)protected static voidnativeDestructor(long nativePicture)protected static voidnativeDraw(long nativeCanvas, long nativePicture)protected static voidnativeEndRecording(long nativeCanvas)protected static intnativeGetHeight(long nativePicture)protected static intnativeGetWidth(long nativePicture)protected static booleannativeWriteToStream(long nativePicture, OutputStream stream, byte[] storage)
-
-
-
Method Detail
-
nativeConstructor
@Implementation protected static long nativeConstructor(long nativeSrcOr0)
-
nativeCreateFromStream
@Implementation protected static long nativeCreateFromStream(InputStream stream, byte[] storage)
-
nativeGetWidth
@Implementation protected static int nativeGetWidth(long nativePicture)
-
nativeGetHeight
@Implementation protected static int nativeGetHeight(long nativePicture)
-
nativeBeginRecording
@Implementation protected static long nativeBeginRecording(long nativeCanvas, int w, int h)
-
nativeEndRecording
@Implementation protected static void nativeEndRecording(long nativeCanvas)
-
nativeDraw
@Implementation protected static void nativeDraw(long nativeCanvas, long nativePicture)
-
nativeWriteToStream
@Implementation protected static boolean nativeWriteToStream(long nativePicture, OutputStream stream, byte[] storage)
-
nativeDestructor
@Implementation protected static void nativeDestructor(long nativePicture)
-
-