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
Modifier and Type Method Description static long
nativeBeginRecording(long nativeCanvas, int w, int h)
static long
nativeConstructor(long nativeSrcOr0)
static long
nativeCreateFromStream(InputStream stream, byte[] storage)
static void
nativeDestructor(long nativePicture)
static void
nativeDraw(long nativeCanvas, long nativePicture)
static void
nativeEndRecording(long nativeCanvas)
static int
nativeGetHeight(long nativePicture)
static int
nativeGetWidth(long nativePicture)
static boolean
nativeWriteToStream(long nativePicture, OutputStream stream, byte[] storage)
-
Constructor Details
-
PictureNatives
public PictureNatives()
-
-
Method Details
-
nativeConstructor
public static long nativeConstructor(long nativeSrcOr0) -
nativeCreateFromStream
-
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
-
nativeDestructor
public static void nativeDestructor(long nativePicture)
-