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 classShadowNativePicture.PickerShadow picker forPicture. -
Constructor Summary
Constructors Constructor Description ShadowNativePicture() -
Method Summary
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)
-
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
-