Package org.robolectric.nativeruntime
Class PathMeasureNatives
java.lang.Object
org.robolectric.nativeruntime.PathMeasureNatives
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 SummaryModifier and TypeMethodDescriptionstatic 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 Details- 
native_createpublic static long native_create(long nativePath, boolean forceClosed) 
- 
native_setPathpublic static void native_setPath(long nativeInstance, long nativePath, boolean forceClosed) 
- 
native_getLengthpublic static float native_getLength(long nativeInstance) 
- 
native_getPosTanpublic static boolean native_getPosTan(long nativeInstance, float distance, float[] pos, float[] tan) 
- 
native_getMatrixpublic static boolean native_getMatrix(long nativeInstance, float distance, long nativeMatrix, int flags) 
- 
native_getSegmentpublic static boolean native_getSegment(long nativeInstance, float startD, float stopD, long nativePath, boolean startWithMoveTo) 
- 
native_isClosedpublic static boolean native_isClosed(long nativeInstance) 
- 
native_nextContourpublic static boolean native_nextContour(long nativeInstance) 
- 
native_destroypublic static void native_destroy(long nativeInstance) 
 
-