Package org.robolectric.shadows
Class ShadowNativeAnimatedVectorDrawable
java.lang.Object
org.robolectric.shadows.ShadowDrawable
org.robolectric.shadows.ShadowNativeAnimatedVectorDrawable
@Implements(value=android.graphics.drawable.AnimatedVectorDrawable.class,
minSdk=26,
callNativeMethodsByDefault=true,
shadowPicker=Picker.class)
public class ShadowNativeAnimatedVectorDrawable
extends ShadowDrawable
Shadow for
AnimatedVectorDrawable
that is backed by native code-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
protected static void
nAddAnimator
(long setPtr, long propertyValuesHolder, long nativeInterpolator, long startDelay, long duration, int repeatCount, int repeatMode) protected static long
protected static long
nCreateGroupPropertyHolder
(long nativePtr, int propertyId, float startValue, float endValue) protected static long
nCreatePathColorPropertyHolder
(long nativePtr, int propertyId, int startValue, int endValue) protected static long
nCreatePathDataPropertyHolder
(long nativePtr, long startValuePtr, long endValuePtr) protected static long
nCreatePathPropertyHolder
(long nativePtr, int propertyId, float startValue, float endValue) protected static long
nCreateRootAlphaPropertyHolder
(long nativePtr, float startValue, float endValue) protected static void
nEnd
(long animatorSetPtr) protected static void
nReset
(long animatorSetPtr) protected static void
nReverse
(long animatorSetPtr, AnimatedVectorDrawable.VectorDrawableAnimatorRT set, int id) protected static void
nSetPropertyHolderData
(long nativePtr, float[] data, int length) protected static void
nSetPropertyHolderData
(long nativePtr, int[] data, int length) protected static void
nSetVectorDrawableTarget
(long animatorPtr, long vectorDrawablePtr) protected static void
nStart
(long animatorSetPtr, AnimatedVectorDrawable.VectorDrawableAnimatorRT set, int id) protected void
start()
protected void
stop()
Methods inherited from class org.robolectric.shadows.ShadowDrawable
createFromResourceId, getCreatedFromResId, getInputStream, invalidateSelf, setCreatedFromResId, validate, wasInvalidated
-
Field Details
-
realAnimatedVectorDrawable
-
-
Constructor Details
-
ShadowNativeAnimatedVectorDrawable
public ShadowNativeAnimatedVectorDrawable()
-
-
Method Details
-
start
-
stop
-
isStartInitiated
public final boolean isStartInitiated() -
nCreateAnimatorSet
-
nSetVectorDrawableTarget
@Implementation(minSdk=25, maxSdk=34) protected static void nSetVectorDrawableTarget(long animatorPtr, long vectorDrawablePtr) -
nAddAnimator
@Implementation(minSdk=25, maxSdk=34) protected static void nAddAnimator(long setPtr, long propertyValuesHolder, long nativeInterpolator, long startDelay, long duration, int repeatCount, int repeatMode) -
nSetPropertyHolderData
@Implementation(minSdk=24, maxSdk=34) protected static void nSetPropertyHolderData(long nativePtr, float[] data, int length) -
nSetPropertyHolderData
@Implementation(minSdk=25, maxSdk=34) protected static void nSetPropertyHolderData(long nativePtr, int[] data, int length) -
nStart
@Implementation(minSdk=24, maxSdk=34) protected static void nStart(long animatorSetPtr, AnimatedVectorDrawable.VectorDrawableAnimatorRT set, int id) -
nReverse
@Implementation(minSdk=24, maxSdk=34) protected static void nReverse(long animatorSetPtr, AnimatedVectorDrawable.VectorDrawableAnimatorRT set, int id) -
nCreateGroupPropertyHolder
@Implementation(minSdk=24, maxSdk=34) protected static long nCreateGroupPropertyHolder(long nativePtr, int propertyId, float startValue, float endValue) -
nCreatePathDataPropertyHolder
@Implementation(minSdk=24, maxSdk=34) protected static long nCreatePathDataPropertyHolder(long nativePtr, long startValuePtr, long endValuePtr) -
nCreatePathColorPropertyHolder
@Implementation(minSdk=24, maxSdk=34) protected static long nCreatePathColorPropertyHolder(long nativePtr, int propertyId, int startValue, int endValue) -
nCreatePathPropertyHolder
@Implementation(minSdk=24, maxSdk=34) protected static long nCreatePathPropertyHolder(long nativePtr, int propertyId, float startValue, float endValue) -
nCreateRootAlphaPropertyHolder
@Implementation(minSdk=24, maxSdk=34) protected static long nCreateRootAlphaPropertyHolder(long nativePtr, float startValue, float endValue) -
nEnd
-
nReset
-