Package org.robolectric.nativeruntime
Class InterpolatorNatives
java.lang.Object
org.robolectric.nativeruntime.InterpolatorNatives
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 TypeMethodDescriptionstatic long
nativeConstructor
(int valueCount, int frameCount) static void
nativeDestructor
(long nativeInstance) static void
nativeReset
(long nativeInstance, int valueCount, int frameCount) static void
nativeSetKeyFrame
(long nativeInstance, int index, int msec, float[] values, float[] blend) static void
nativeSetRepeatMirror
(long nativeInstance, float repeatCount, boolean mirror) static int
nativeTimeToValues
(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)
-