Class VectorDrawableNatives

java.lang.Object
org.robolectric.nativeruntime.VectorDrawableNatives

public final class VectorDrawableNatives
extends Object
Native methods for VectorDrawable 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/VectorDrawable.java

  • Method Details

    • nDraw

      public static int nDraw​(long rendererPtr, long canvasWrapperPtr, long colorFilterPtr, Rect bounds, boolean needsMirroring, boolean canReuseCache)
    • nGetFullPathProperties

      public static boolean nGetFullPathProperties​(long pathPtr, byte[] properties, int length)
    • nSetName

      public static void nSetName​(long nodePtr, String name)
    • nGetGroupProperties

      public static boolean nGetGroupProperties​(long groupPtr, float[] properties, int length)
    • nSetPathString

      public static void nSetPathString​(long pathPtr, String pathString, int length)
    • nCreateTree

      public static long nCreateTree​(long rootGroupPtr)
    • nCreateTreeFromCopy

      public static long nCreateTreeFromCopy​(long treeToCopy, long rootGroupPtr)
    • nSetRendererViewportSize

      public static void nSetRendererViewportSize​(long rendererPtr, float viewportWidth, float viewportHeight)
    • nSetRootAlpha

      public static boolean nSetRootAlpha​(long rendererPtr, float alpha)
    • nGetRootAlpha

      public static float nGetRootAlpha​(long rendererPtr)
    • nSetAntiAlias

      public static void nSetAntiAlias​(long rendererPtr, boolean aa)
    • nSetAllowCaching

      public static void nSetAllowCaching​(long rendererPtr, boolean allowCaching)
    • nCreateFullPath

      public static long nCreateFullPath()
    • nCreateFullPath

      public static long nCreateFullPath​(long nativeFullPathPtr)
    • nUpdateFullPathProperties

      public static void nUpdateFullPathProperties​(long pathPtr, float strokeWidth, int strokeColor, float strokeAlpha, int fillColor, float fillAlpha, float trimPathStart, float trimPathEnd, float trimPathOffset, float strokeMiterLimit, int strokeLineCap, int strokeLineJoin, int fillType)
    • nUpdateFullPathFillGradient

      public static void nUpdateFullPathFillGradient​(long pathPtr, long fillGradientPtr)
    • nUpdateFullPathStrokeGradient

      public static void nUpdateFullPathStrokeGradient​(long pathPtr, long strokeGradientPtr)
    • nCreateClipPath

      public static long nCreateClipPath()
    • nCreateClipPath

      public static long nCreateClipPath​(long clipPathPtr)
    • nCreateGroup

      public static long nCreateGroup()
    • nCreateGroup

      public static long nCreateGroup​(long groupPtr)
    • nUpdateGroupProperties

      public static void nUpdateGroupProperties​(long groupPtr, float rotate, float pivotX, float pivotY, float scaleX, float scaleY, float translateX, float translateY)
    • nAddChild

      public static void nAddChild​(long groupPtr, long nodePtr)
    • nGetRotation

      public static float nGetRotation​(long groupPtr)
    • nSetRotation

      public static void nSetRotation​(long groupPtr, float rotation)
    • nGetPivotX

      public static float nGetPivotX​(long groupPtr)
    • nSetPivotX

      public static void nSetPivotX​(long groupPtr, float pivotX)
    • nGetPivotY

      public static float nGetPivotY​(long groupPtr)
    • nSetPivotY

      public static void nSetPivotY​(long groupPtr, float pivotY)
    • nGetScaleX

      public static float nGetScaleX​(long groupPtr)
    • nSetScaleX

      public static void nSetScaleX​(long groupPtr, float scaleX)
    • nGetScaleY

      public static float nGetScaleY​(long groupPtr)
    • nSetScaleY

      public static void nSetScaleY​(long groupPtr, float scaleY)
    • nGetTranslateX

      public static float nGetTranslateX​(long groupPtr)
    • nSetTranslateX

      public static void nSetTranslateX​(long groupPtr, float translateX)
    • nGetTranslateY

      public static float nGetTranslateY​(long groupPtr)
    • nSetTranslateY

      public static void nSetTranslateY​(long groupPtr, float translateY)
    • nSetPathData

      public static void nSetPathData​(long pathPtr, long pathDataPtr)
    • nGetStrokeWidth

      public static float nGetStrokeWidth​(long pathPtr)
    • nSetStrokeWidth

      public static void nSetStrokeWidth​(long pathPtr, float width)
    • nGetStrokeColor

      public static int nGetStrokeColor​(long pathPtr)
    • nSetStrokeColor

      public static void nSetStrokeColor​(long pathPtr, int strokeColor)
    • nGetStrokeAlpha

      public static float nGetStrokeAlpha​(long pathPtr)
    • nSetStrokeAlpha

      public static void nSetStrokeAlpha​(long pathPtr, float alpha)
    • nGetFillColor

      public static int nGetFillColor​(long pathPtr)
    • nSetFillColor

      public static void nSetFillColor​(long pathPtr, int fillColor)
    • nGetFillAlpha

      public static float nGetFillAlpha​(long pathPtr)
    • nSetFillAlpha

      public static void nSetFillAlpha​(long pathPtr, float fillAlpha)
    • nGetTrimPathStart

      public static float nGetTrimPathStart​(long pathPtr)
    • nSetTrimPathStart

      public static void nSetTrimPathStart​(long pathPtr, float trimPathStart)
    • nGetTrimPathEnd

      public static float nGetTrimPathEnd​(long pathPtr)
    • nSetTrimPathEnd

      public static void nSetTrimPathEnd​(long pathPtr, float trimPathEnd)
    • nGetTrimPathOffset

      public static float nGetTrimPathOffset​(long pathPtr)
    • nSetTrimPathOffset

      public static void nSetTrimPathOffset​(long pathPtr, float trimPathOffset)