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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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)
-
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
-