Package org.robolectric.nativeruntime
Class InterpolatorNatives
java.lang.Object
org.robolectric.nativeruntime.InterpolatorNatives
public final class InterpolatorNatives extends Object
Native methods for Interpolator 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/Interpolator.java
-
Method Summary
Modifier and Type Method Description static longnativeConstructor(int valueCount, int frameCount)static voidnativeDestructor(long nativeInstance)static voidnativeReset(long nativeInstance, int valueCount, int frameCount)static voidnativeSetKeyFrame(long nativeInstance, int index, int msec, float[] values, float[] blend)static voidnativeSetRepeatMirror(long nativeInstance, float repeatCount, boolean mirror)static intnativeTimeToValues(long nativeInstance, int msec, float[] values)
-
Method Details
-
nativeConstructor
public static long nativeConstructor(int valueCount, int frameCount) -
nativeDestructor
public static void nativeDestructor(long nativeInstance) -
nativeReset
public static void nativeReset(long nativeInstance, int valueCount, int frameCount) -
nativeSetKeyFrame
public static void nativeSetKeyFrame(long nativeInstance, int index, int msec, float[] values, float[] blend) -
nativeSetRepeatMirror
public static void nativeSetRepeatMirror(long nativeInstance, float repeatCount, boolean mirror) -
nativeTimeToValues
public static int nativeTimeToValues(long nativeInstance, int msec, float[] values)
-