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 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

      public static void nSetOnAnimationEndListener​(long nativePtr, AnimatedImageDrawable drawable)
    • nNativeByteSize

      public static long nNativeByteSize​(long nativePtr)
    • nSetMirrored

      public static void nSetMirrored​(long nativePtr, boolean mirror)
    • nSetBounds

      public static void nSetBounds​(long nativePtr, Rect rect)