Package org.robolectric.nativeruntime
Class RenderNodeAnimatorNatives
java.lang.Object
org.robolectric.nativeruntime.RenderNodeAnimatorNatives
public final class RenderNodeAnimatorNatives extends Object
Native methods for RenderNodeAnimator 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/RenderNodeAnimator.java
-
Method Summary
Modifier and Type Method Description static long
nCreateAnimator(int property, float finalValue)
static long
nCreateCanvasPropertyFloatAnimator(long canvasProperty, float finalValue)
static long
nCreateCanvasPropertyPaintAnimator(long canvasProperty, int paintField, float finalValue)
static long
nCreateRevealAnimator(int x, int y, float startRadius, float endRadius)
static void
nEnd(long animPtr)
static long
nGetDuration(long nativePtr)
static void
nSetAllowRunningAsync(long animPtr, boolean mayRunAsync)
static void
nSetDuration(long nativePtr, long duration)
static void
nSetInterpolator(long animPtr, long interpolatorPtr)
static void
nSetListener(long animPtr, Object listener)
static void
nSetStartDelay(long nativePtr, long startDelay)
static void
nSetStartValue(long nativePtr, float startValue)
static void
nStart(long animPtr)
-
Method Details
-
nCreateAnimator
public static long nCreateAnimator(int property, float finalValue) -
nCreateCanvasPropertyFloatAnimator
public static long nCreateCanvasPropertyFloatAnimator(long canvasProperty, float finalValue) -
nCreateCanvasPropertyPaintAnimator
public static long nCreateCanvasPropertyPaintAnimator(long canvasProperty, int paintField, float finalValue) -
nCreateRevealAnimator
public static long nCreateRevealAnimator(int x, int y, float startRadius, float endRadius) -
nSetStartValue
public static void nSetStartValue(long nativePtr, float startValue) -
nSetDuration
public static void nSetDuration(long nativePtr, long duration) -
nGetDuration
public static long nGetDuration(long nativePtr) -
nSetStartDelay
public static void nSetStartDelay(long nativePtr, long startDelay) -
nSetInterpolator
public static void nSetInterpolator(long animPtr, long interpolatorPtr) -
nSetAllowRunningAsync
public static void nSetAllowRunningAsync(long animPtr, boolean mayRunAsync) -
nSetListener
-
nStart
public static void nStart(long animPtr) -
nEnd
public static void nEnd(long animPtr)
-