Package org.robolectric.nativeruntime
Class VectorDrawableNatives
java.lang.Object
org.robolectric.nativeruntime.VectorDrawableNatives
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 TypeMethodDescriptionstatic voidnAddChild(long groupPtr, long nodePtr) static longstatic longnCreateClipPath(long clipPathPtr) static longstatic longnCreateFullPath(long nativeFullPathPtr) static longstatic longnCreateGroup(long groupPtr) static longnCreateTree(long rootGroupPtr) static longnCreateTreeFromCopy(long treeToCopy, long rootGroupPtr) static intnDraw(long rendererPtr, long canvasWrapperPtr, long colorFilterPtr, Rect bounds, boolean needsMirroring, boolean canReuseCache) static floatnGetFillAlpha(long pathPtr) static intnGetFillColor(long pathPtr) static booleannGetFullPathProperties(long pathPtr, byte[] properties, int length) static booleannGetGroupProperties(long groupPtr, float[] properties, int length) static floatnGetPivotX(long groupPtr) static floatnGetPivotY(long groupPtr) static floatnGetRootAlpha(long rendererPtr) static floatnGetRotation(long groupPtr) static floatnGetScaleX(long groupPtr) static floatnGetScaleY(long groupPtr) static floatnGetStrokeAlpha(long pathPtr) static intnGetStrokeColor(long pathPtr) static floatnGetStrokeWidth(long pathPtr) static floatnGetTranslateX(long groupPtr) static floatnGetTranslateY(long groupPtr) static floatnGetTrimPathEnd(long pathPtr) static floatnGetTrimPathOffset(long pathPtr) static floatnGetTrimPathStart(long pathPtr) static voidnSetAllowCaching(long rendererPtr, boolean allowCaching) static voidnSetAntiAlias(long rendererPtr, boolean aa) static voidnSetFillAlpha(long pathPtr, float fillAlpha) static voidnSetFillColor(long pathPtr, int fillColor) static voidstatic voidnSetPathData(long pathPtr, long pathDataPtr) static voidnSetPathString(long pathPtr, String pathString, int length) static voidnSetPivotX(long groupPtr, float pivotX) static voidnSetPivotY(long groupPtr, float pivotY) static voidnSetRendererViewportSize(long rendererPtr, float viewportWidth, float viewportHeight) static booleannSetRootAlpha(long rendererPtr, float alpha) static voidnSetRotation(long groupPtr, float rotation) static voidnSetScaleX(long groupPtr, float scaleX) static voidnSetScaleY(long groupPtr, float scaleY) static voidnSetStrokeAlpha(long pathPtr, float alpha) static voidnSetStrokeColor(long pathPtr, int strokeColor) static voidnSetStrokeWidth(long pathPtr, float width) static voidnSetTranslateX(long groupPtr, float translateX) static voidnSetTranslateY(long groupPtr, float translateY) static voidnSetTrimPathEnd(long pathPtr, float trimPathEnd) static voidnSetTrimPathOffset(long pathPtr, float trimPathOffset) static voidnSetTrimPathStart(long pathPtr, float trimPathStart) static voidnUpdateFullPathFillGradient(long pathPtr, long fillGradientPtr) static voidnUpdateFullPathProperties(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 voidnUpdateFullPathStrokeGradient(long pathPtr, long strokeGradientPtr) static voidnUpdateGroupProperties(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)
-