Package org.robolectric.nativeruntime
Class AnimatedImageDrawableNatives
java.lang.Object
org.robolectric.nativeruntime.AnimatedImageDrawableNatives
public final class AnimatedImageDrawableNatives extends Object
Native methods for AnimatedImageDrawable 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/drawable/AnimatedImageDrawable.java
-
Method Summary
Modifier and Type Method Description static long
nCreate(long nativeImageDecoder, ImageDecoder decoder, int width, int height, long colorSpaceHandle, boolean extended, Rect cropRect)
static long
nDraw(long nativePtr, long canvasNativePtr)
static int
nGetAlpha(long nativePtr)
static long
nGetNativeFinalizer()
static int
nGetRepeatCount(long nativePtr)
static boolean
nIsRunning(long nativePtr)
static long
nNativeByteSize(long nativePtr)
static void
nSetAlpha(long nativePtr, int alpha)
static void
nSetBounds(long nativePtr, Rect rect)
static void
nSetColorFilter(long nativePtr, long nativeFilter)
static void
nSetMirrored(long nativePtr, boolean mirror)
static void
nSetOnAnimationEndListener(long nativePtr, AnimatedImageDrawable drawable)
static void
nSetRepeatCount(long nativePtr, int repeatCount)
static boolean
nStart(long nativePtr)
static boolean
nStop(long nativePtr)
-
Method Details
-
nCreate
public static long nCreate(long nativeImageDecoder, ImageDecoder decoder, int width, int height, long colorSpaceHandle, boolean extended, Rect cropRect) -
nGetNativeFinalizer
public static long nGetNativeFinalizer() -
nDraw
public static long nDraw(long nativePtr, long canvasNativePtr) -
nSetAlpha
public static void nSetAlpha(long nativePtr, int alpha) -
nGetAlpha
public static int nGetAlpha(long nativePtr) -
nSetColorFilter
public static void nSetColorFilter(long nativePtr, long nativeFilter) -
nIsRunning
public static boolean nIsRunning(long nativePtr) -
nStart
public static boolean nStart(long nativePtr) -
nStop
public static boolean nStop(long nativePtr) -
nGetRepeatCount
public static int nGetRepeatCount(long nativePtr) -
nSetRepeatCount
public static void nSetRepeatCount(long nativePtr, int repeatCount) -
nSetOnAnimationEndListener
-
nNativeByteSize
public static long nNativeByteSize(long nativePtr) -
nSetMirrored
public static void nSetMirrored(long nativePtr, boolean mirror) -
nSetBounds
-