Package org.robolectric.shadows
Class ShadowNativeAnimatedImageDrawable
java.lang.Object
org.robolectric.shadows.ShadowDrawable
org.robolectric.shadows.ShadowNativeAnimatedImageDrawable
@Implements(value=android.graphics.drawable.AnimatedImageDrawable.class,
shadowPicker=Picker.class,
minSdk=28,
callNativeMethodsByDefault=true)
public class ShadowNativeAnimatedImageDrawable
extends ShadowDrawable
Shadow for
AnimatedImageDrawable
that is backed by native code-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static long
nCreate
(long nativeImageDecoder, ImageDecoder decoder, int width, int height, long colorSpaceHandle, boolean extended, Rect cropRect) protected static long
nCreate
(long nativeImageDecoder, ImageDecoder decoder, int width, int height, Rect cropRect) protected static long
nDraw
(long nativePtr, long canvasNativePtr) protected static int
nGetAlpha
(long nativePtr) protected static long
protected static int
nGetRepeatCount
(long nativePtr) protected static boolean
nIsRunning
(long nativePtr) protected static long
nNativeByteSize
(long nativePtr) protected static void
nSetAlpha
(long nativePtr, int alpha) protected static void
nSetBounds
(long nativePtr, Rect rect) protected static void
nSetColorFilter
(long nativePtr, long nativeFilter) protected static void
nSetMirrored
(long nativePtr, boolean mirror) protected static void
nSetOnAnimationEndListener
(long nativePtr, AnimatedImageDrawable drawable) protected static void
nSetOnAnimationEndListener
(long nativePtr, WeakReference<AnimatedImageDrawable> drawable) protected static void
nSetRepeatCount
(long nativePtr, int repeatCount) protected static boolean
nStart
(long nativePtr) protected static boolean
nStop
(long nativePtr) Methods inherited from class org.robolectric.shadows.ShadowDrawable
createFromResourceId, getCreatedFromResId, getInputStream, invalidateSelf, setCreatedFromResId, validate, wasInvalidated
-
Constructor Details
-
ShadowNativeAnimatedImageDrawable
public ShadowNativeAnimatedImageDrawable()
-
-
Method Details
-
nCreate
@Implementation(minSdk=29, maxSdk=34) protected static long nCreate(long nativeImageDecoder, ImageDecoder decoder, int width, int height, long colorSpaceHandle, boolean extended, Rect cropRect) throws IOException - Throws:
IOException
-
nCreate
@Implementation(minSdk=28, maxSdk=28) protected static long nCreate(long nativeImageDecoder, ImageDecoder decoder, int width, int height, Rect cropRect) throws IOException - Throws:
IOException
-
nGetNativeFinalizer
-
nDraw
-
nSetAlpha
-
nGetAlpha
-
nSetColorFilter
-
nIsRunning
-
nStart
-
nStop
-
nGetRepeatCount
-
nSetRepeatCount
-
nSetOnAnimationEndListener
@Implementation(maxSdk=32) protected static void nSetOnAnimationEndListener(long nativePtr, AnimatedImageDrawable drawable) -
nSetOnAnimationEndListener
@Implementation(minSdk=33, maxSdk=34) protected static void nSetOnAnimationEndListener(long nativePtr, WeakReference<AnimatedImageDrawable> drawable) -
nNativeByteSize
-
nSetMirrored
-
nSetBounds
-