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 Details

    • 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)