Package org.robolectric.nativeruntime
Class PathMeasureNatives
- java.lang.Object
-
- org.robolectric.nativeruntime.PathMeasureNatives
-
public final class PathMeasureNatives extends Object
Native methods for PathMeasure 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/PathMeasure.java
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longnative_create(long nativePath, boolean forceClosed)static voidnative_destroy(long nativeInstance)static floatnative_getLength(long nativeInstance)static booleannative_getMatrix(long nativeInstance, float distance, long nativeMatrix, int flags)static booleannative_getPosTan(long nativeInstance, float distance, float[] pos, float[] tan)static booleannative_getSegment(long nativeInstance, float startD, float stopD, long nativePath, boolean startWithMoveTo)static booleannative_isClosed(long nativeInstance)static booleannative_nextContour(long nativeInstance)static voidnative_setPath(long nativeInstance, long nativePath, boolean forceClosed)
-
-
-
Method Detail
-
native_create
public static long native_create(long nativePath, boolean forceClosed)
-
native_setPath
public static void native_setPath(long nativeInstance, long nativePath, boolean forceClosed)
-
native_getLength
public static float native_getLength(long nativeInstance)
-
native_getPosTan
public static boolean native_getPosTan(long nativeInstance, float distance, float[] pos, float[] tan)
-
native_getMatrix
public static boolean native_getMatrix(long nativeInstance, float distance, long nativeMatrix, int flags)
-
native_getSegment
public static boolean native_getSegment(long nativeInstance, float startD, float stopD, long nativePath, boolean startWithMoveTo)
-
native_isClosed
public static boolean native_isClosed(long nativeInstance)
-
native_nextContour
public static boolean native_nextContour(long nativeInstance)
-
native_destroy
public static void native_destroy(long nativeInstance)
-
-