Package org.robolectric.nativeruntime
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 Summary
Modifier and Type Method Description static void
nAddChild(long groupPtr, long nodePtr)
static long
nCreateClipPath()
static long
nCreateClipPath(long clipPathPtr)
static long
nCreateFullPath()
static long
nCreateFullPath(long nativeFullPathPtr)
static long
nCreateGroup()
static long
nCreateGroup(long groupPtr)
static long
nCreateTree(long rootGroupPtr)
static long
nCreateTreeFromCopy(long treeToCopy, long rootGroupPtr)
static int
nDraw(long rendererPtr, long canvasWrapperPtr, long colorFilterPtr, Rect bounds, boolean needsMirroring, boolean canReuseCache)
static float
nGetFillAlpha(long pathPtr)
static int
nGetFillColor(long pathPtr)
static boolean
nGetFullPathProperties(long pathPtr, byte[] properties, int length)
static boolean
nGetGroupProperties(long groupPtr, float[] properties, int length)
static float
nGetPivotX(long groupPtr)
static float
nGetPivotY(long groupPtr)
static float
nGetRootAlpha(long rendererPtr)
static float
nGetRotation(long groupPtr)
static float
nGetScaleX(long groupPtr)
static float
nGetScaleY(long groupPtr)
static float
nGetStrokeAlpha(long pathPtr)
static int
nGetStrokeColor(long pathPtr)
static float
nGetStrokeWidth(long pathPtr)
static float
nGetTranslateX(long groupPtr)
static float
nGetTranslateY(long groupPtr)
static float
nGetTrimPathEnd(long pathPtr)
static float
nGetTrimPathOffset(long pathPtr)
static float
nGetTrimPathStart(long pathPtr)
static void
nSetAllowCaching(long rendererPtr, boolean allowCaching)
static void
nSetAntiAlias(long rendererPtr, boolean aa)
static void
nSetFillAlpha(long pathPtr, float fillAlpha)
static void
nSetFillColor(long pathPtr, int fillColor)
static void
nSetName(long nodePtr, String name)
static void
nSetPathData(long pathPtr, long pathDataPtr)
static void
nSetPathString(long pathPtr, String pathString, int length)
static void
nSetPivotX(long groupPtr, float pivotX)
static void
nSetPivotY(long groupPtr, float pivotY)
static void
nSetRendererViewportSize(long rendererPtr, float viewportWidth, float viewportHeight)
static boolean
nSetRootAlpha(long rendererPtr, float alpha)
static void
nSetRotation(long groupPtr, float rotation)
static void
nSetScaleX(long groupPtr, float scaleX)
static void
nSetScaleY(long groupPtr, float scaleY)
static void
nSetStrokeAlpha(long pathPtr, float alpha)
static void
nSetStrokeColor(long pathPtr, int strokeColor)
static void
nSetStrokeWidth(long pathPtr, float width)
static void
nSetTranslateX(long groupPtr, float translateX)
static void
nSetTranslateY(long groupPtr, float translateY)
static void
nSetTrimPathEnd(long pathPtr, float trimPathEnd)
static void
nSetTrimPathOffset(long pathPtr, float trimPathOffset)
static void
nSetTrimPathStart(long pathPtr, float trimPathStart)
static void
nUpdateFullPathFillGradient(long pathPtr, long fillGradientPtr)
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)
static void
nUpdateFullPathStrokeGradient(long pathPtr, long strokeGradientPtr)
static void
nUpdateGroupProperties(long groupPtr, float rotate, float pivotX, float pivotY, float scaleX, float scaleY, float translateX, float translateY)
-
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
-
nGetGroupProperties
public static boolean nGetGroupProperties(long groupPtr, float[] properties, int length) -
nSetPathString
-
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)
-