Package org.robolectric.nativeruntime
Class PictureNatives
- java.lang.Object
-
- org.robolectric.nativeruntime.PictureNatives
-
public class PictureNatives extends Object
Native methods for Picture JNI registration.Native method signatures are derived from https://cs.android.com/android/platform/superproject/+/android-12.0.0_r1:frameworks/base/graphics/java/android/graphics/Picture.java
-
-
Constructor Summary
Constructors Constructor Description PictureNatives()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longnativeBeginRecording(long nativeCanvas, int w, int h)static longnativeConstructor(long nativeSrcOr0)static longnativeCreateFromStream(InputStream stream, byte[] storage)static voidnativeDestructor(long nativePicture)static voidnativeDraw(long nativeCanvas, long nativePicture)static voidnativeEndRecording(long nativeCanvas)static intnativeGetHeight(long nativePicture)static intnativeGetWidth(long nativePicture)static booleannativeWriteToStream(long nativePicture, OutputStream stream, byte[] storage)
-
-
-
Method Detail
-
nativeConstructor
public static long nativeConstructor(long nativeSrcOr0)
-
nativeCreateFromStream
public static long nativeCreateFromStream(InputStream stream, byte[] storage)
-
nativeGetWidth
public static int nativeGetWidth(long nativePicture)
-
nativeGetHeight
public static int nativeGetHeight(long nativePicture)
-
nativeBeginRecording
public static long nativeBeginRecording(long nativeCanvas, int w, int h)
-
nativeEndRecording
public static void nativeEndRecording(long nativeCanvas)
-
nativeDraw
public static void nativeDraw(long nativeCanvas, long nativePicture)
-
nativeWriteToStream
public static boolean nativeWriteToStream(long nativePicture, OutputStream stream, byte[] storage)
-
nativeDestructor
public static void nativeDestructor(long nativePicture)
-
-