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 for
Picture
that is backed by native code-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShadowNativePicture.Picker
Shadow picker forPicture
. -
Constructor Summary
Constructors Constructor Description ShadowNativePicture()
-
Method Summary
Modifier and Type Method Description protected static long
nativeBeginRecording(long nativeCanvas, int w, int h)
protected static long
nativeConstructor(long nativeSrcOr0)
protected static long
nativeCreateFromStream(InputStream stream, byte[] storage)
protected static void
nativeDestructor(long nativePicture)
protected static void
nativeDraw(long nativeCanvas, long nativePicture)
protected static void
nativeEndRecording(long nativeCanvas)
protected static int
nativeGetHeight(long nativePicture)
protected static int
nativeGetWidth(long nativePicture)
protected static boolean
nativeWriteToStream(long nativePicture, OutputStream stream, byte[] storage)
-
Constructor Details
-
ShadowNativePicture
public ShadowNativePicture()
-
-
Method Details
-
nativeConstructor
-
nativeCreateFromStream
-
nativeGetWidth
-
nativeGetHeight
-
nativeBeginRecording
-
nativeEndRecording
-
nativeDraw
-
nativeWriteToStream
@Implementation protected static boolean nativeWriteToStream(long nativePicture, OutputStream stream, byte[] storage) -
nativeDestructor
-