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,
callNativeMethodsByDefault=true)
public class ShadowNativePicture
extends Object
Shadow for
Picture
that is backed by native code-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
@Implementation(maxSdk=34) protected static long nativeCreateFromStream(InputStream stream, byte[] storage) -
nativeGetWidth
-
nativeGetHeight
-
nativeBeginRecording
@Implementation(maxSdk=34) protected static long nativeBeginRecording(long nativeCanvas, int w, int h) -
nativeEndRecording
-
nativeDraw
-
nativeWriteToStream
@Implementation(maxSdk=34) protected static boolean nativeWriteToStream(long nativePicture, OutputStream stream, byte[] storage) -
nativeDestructor
-