Package org.robolectric.shadows
Class ShadowNativeVectorDrawable
java.lang.Object
org.robolectric.shadows.ShadowDrawable
org.robolectric.shadows.ShadowNativeVectorDrawable
@Implements(value=android.graphics.drawable.VectorDrawable.class,
minSdk=26,
shadowPicker=Picker.class,
isInAndroidSdk=false,
callNativeMethodsByDefault=true)
public class ShadowNativeVectorDrawable
extends ShadowDrawable
Shadow for
VectorDrawable that is backed by native code-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidnAddChild(long groupPtr, long nodePtr) protected static longprotected static longnCreateClipPath(long clipPathPtr) protected static longprotected static longnCreateFullPath(long nativeFullPathPtr) protected static longprotected static longnCreateGroup(long groupPtr) protected static longnCreateTree(long rootGroupPtr) protected static longnCreateTreeFromCopy(long treeToCopy, long rootGroupPtr) protected static intnDraw(long rendererPtr, long canvasWrapperPtr, long colorFilterPtr, Rect bounds, boolean needsMirroring, boolean canReuseCache) protected static floatnGetFillAlpha(long pathPtr) protected static intnGetFillColor(long pathPtr) protected static booleannGetFullPathProperties(long pathPtr, byte[] properties, int length) protected static booleannGetGroupProperties(long groupPtr, float[] properties, int length) protected static floatnGetPivotX(long groupPtr) protected static floatnGetPivotY(long groupPtr) protected static floatnGetRootAlpha(long rendererPtr) protected static floatnGetRotation(long groupPtr) protected static floatnGetScaleX(long groupPtr) protected static floatnGetScaleY(long groupPtr) protected static floatnGetStrokeAlpha(long pathPtr) protected static intnGetStrokeColor(long pathPtr) protected static floatnGetStrokeWidth(long pathPtr) protected static floatnGetTranslateX(long groupPtr) protected static floatnGetTranslateY(long groupPtr) protected static floatnGetTrimPathEnd(long pathPtr) protected static floatnGetTrimPathOffset(long pathPtr) protected static floatnGetTrimPathStart(long pathPtr) protected static voidnSetAllowCaching(long rendererPtr, boolean allowCaching) protected static voidnSetAntiAlias(long rendererPtr, boolean aa) protected static voidnSetFillAlpha(long pathPtr, float fillAlpha) protected static voidnSetFillColor(long pathPtr, int fillColor) protected static voidprotected static voidnSetPathData(long pathPtr, long pathDataPtr) protected static voidnSetPathString(long pathPtr, String pathString, int length) protected static voidnSetPivotX(long groupPtr, float pivotX) protected static voidnSetPivotY(long groupPtr, float pivotY) protected static voidnSetRendererViewportSize(long rendererPtr, float viewportWidth, float viewportHeight) protected static booleannSetRootAlpha(long rendererPtr, float alpha) protected static voidnSetRotation(long groupPtr, float rotation) protected static voidnSetScaleX(long groupPtr, float scaleX) protected static voidnSetScaleY(long groupPtr, float scaleY) protected static voidnSetStrokeAlpha(long pathPtr, float alpha) protected static voidnSetStrokeColor(long pathPtr, int strokeColor) protected static voidnSetStrokeWidth(long pathPtr, float width) protected static voidnSetTranslateX(long groupPtr, float translateX) protected static voidnSetTranslateY(long groupPtr, float translateY) protected static voidnSetTrimPathEnd(long pathPtr, float trimPathEnd) protected static voidnSetTrimPathOffset(long pathPtr, float trimPathOffset) protected static voidnSetTrimPathStart(long pathPtr, float trimPathStart) protected static voidnUpdateFullPathFillGradient(long pathPtr, long fillGradientPtr) protected 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) protected static voidnUpdateFullPathStrokeGradient(long pathPtr, long strokeGradientPtr) protected static voidnUpdateGroupProperties(long groupPtr, float rotate, float pivotX, float pivotY, float scaleX, float scaleY, float translateX, float translateY) Methods inherited from class org.robolectric.shadows.ShadowDrawable
createFromResourceId, getCreatedFromResId, getInputStream, invalidateSelf, setCreatedFromResId, validate, wasInvalidated
-
Constructor Details
-
ShadowNativeVectorDrawable
public ShadowNativeVectorDrawable()
-
-
Method Details
-
nDraw
@Implementation(minSdk=26, maxSdk=34) protected static int nDraw(long rendererPtr, long canvasWrapperPtr, long colorFilterPtr, Rect bounds, boolean needsMirroring, boolean canReuseCache) -
nGetFullPathProperties
@Implementation(minSdk=26, maxSdk=34) protected static boolean nGetFullPathProperties(long pathPtr, byte[] properties, int length) -
nSetName
-
nGetGroupProperties
@Implementation(minSdk=26, maxSdk=34) protected static boolean nGetGroupProperties(long groupPtr, float[] properties, int length) -
nSetPathString
@Implementation(minSdk=26, maxSdk=34) protected static void nSetPathString(long pathPtr, String pathString, int length) -
nCreateTree
-
nCreateTreeFromCopy
@Implementation(minSdk=26, maxSdk=34) protected static long nCreateTreeFromCopy(long treeToCopy, long rootGroupPtr) -
nSetRendererViewportSize
@Implementation(minSdk=26, maxSdk=34) protected static void nSetRendererViewportSize(long rendererPtr, float viewportWidth, float viewportHeight) -
nSetRootAlpha
@Implementation(minSdk=26, maxSdk=34) protected static boolean nSetRootAlpha(long rendererPtr, float alpha) -
nGetRootAlpha
-
nSetAntiAlias
@Implementation(minSdk=29, maxSdk=34) protected static void nSetAntiAlias(long rendererPtr, boolean aa) -
nSetAllowCaching
@Implementation(minSdk=26, maxSdk=34) protected static void nSetAllowCaching(long rendererPtr, boolean allowCaching) -
nCreateFullPath
-
nCreateFullPath
-
nUpdateFullPathProperties
@Implementation(minSdk=26, maxSdk=34) protected 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
@Implementation(minSdk=26, maxSdk=34) protected static void nUpdateFullPathFillGradient(long pathPtr, long fillGradientPtr) -
nUpdateFullPathStrokeGradient
@Implementation(minSdk=26, maxSdk=34) protected static void nUpdateFullPathStrokeGradient(long pathPtr, long strokeGradientPtr) -
nCreateClipPath
-
nCreateClipPath
-
nCreateGroup
-
nCreateGroup
-
nUpdateGroupProperties
@Implementation(minSdk=26, maxSdk=34) protected static void nUpdateGroupProperties(long groupPtr, float rotate, float pivotX, float pivotY, float scaleX, float scaleY, float translateX, float translateY) -
nAddChild
-
nGetRotation
-
nSetRotation
@Implementation(minSdk=26, maxSdk=34) protected static void nSetRotation(long groupPtr, float rotation) -
nGetPivotX
-
nSetPivotX
-
nGetPivotY
-
nSetPivotY
-
nGetScaleX
-
nSetScaleX
-
nGetScaleY
-
nSetScaleY
-
nGetTranslateX
-
nSetTranslateX
@Implementation(minSdk=26, maxSdk=34) protected static void nSetTranslateX(long groupPtr, float translateX) -
nGetTranslateY
-
nSetTranslateY
@Implementation(minSdk=26, maxSdk=34) protected static void nSetTranslateY(long groupPtr, float translateY) -
nSetPathData
@Implementation(minSdk=26, maxSdk=34) protected static void nSetPathData(long pathPtr, long pathDataPtr) -
nGetStrokeWidth
-
nSetStrokeWidth
@Implementation(minSdk=26, maxSdk=34) protected static void nSetStrokeWidth(long pathPtr, float width) -
nGetStrokeColor
-
nSetStrokeColor
@Implementation(minSdk=26, maxSdk=34) protected static void nSetStrokeColor(long pathPtr, int strokeColor) -
nGetStrokeAlpha
-
nSetStrokeAlpha
@Implementation(minSdk=26, maxSdk=34) protected static void nSetStrokeAlpha(long pathPtr, float alpha) -
nGetFillColor
-
nSetFillColor
@Implementation(minSdk=26, maxSdk=34) protected static void nSetFillColor(long pathPtr, int fillColor) -
nGetFillAlpha
-
nSetFillAlpha
@Implementation(minSdk=26, maxSdk=34) protected static void nSetFillAlpha(long pathPtr, float fillAlpha) -
nGetTrimPathStart
-
nSetTrimPathStart
@Implementation(minSdk=26, maxSdk=34) protected static void nSetTrimPathStart(long pathPtr, float trimPathStart) -
nGetTrimPathEnd
-
nSetTrimPathEnd
@Implementation(minSdk=26, maxSdk=34) protected static void nSetTrimPathEnd(long pathPtr, float trimPathEnd) -
nGetTrimPathOffset
-
nSetTrimPathOffset
@Implementation(minSdk=26, maxSdk=34) protected static void nSetTrimPathOffset(long pathPtr, float trimPathOffset)
-