Package org.robolectric.shadows
Class ShadowNativeBitmapShader
java.lang.Object
org.robolectric.shadows.ShadowNativeBitmapShader
@Implements(value=android.graphics.BitmapShader.class,
minSdk=26,
shadowPicker=Picker.class,
callNativeMethodsByDefault=true)
public class ShadowNativeBitmapShader
extends Object
Shadow for
BitmapShader
that is backed by native code-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static long
nativeCreate
(long nativeMatrix, long bitmapHandle, int shaderTileModeX, int shaderTileModeY) protected static long
nativeCreate
(long nativeMatrix, long bitmapHandle, int shaderTileModeX, int shaderTileModeY, boolean filter) protected static long
nativeCreate
(long nativeMatrix, long bitmapHandle, int shaderTileModeX, int shaderTileModeY, boolean filter, boolean isDirectSampled) protected static long
nativeCreate
(long nativeMatrix, Bitmap bitmap, int shaderTileModeX, int shaderTileModeY)
-
Constructor Details
-
ShadowNativeBitmapShader
public ShadowNativeBitmapShader()
-
-
Method Details
-
nativeCreate
@Implementation(minSdk=26, maxSdk=28) protected static long nativeCreate(long nativeMatrix, Bitmap bitmap, int shaderTileModeX, int shaderTileModeY) -
nativeCreate
@Implementation(minSdk=29, maxSdk=30) protected static long nativeCreate(long nativeMatrix, long bitmapHandle, int shaderTileModeX, int shaderTileModeY) -
nativeCreate
@Implementation(minSdk=31, maxSdk=32) protected static long nativeCreate(long nativeMatrix, long bitmapHandle, int shaderTileModeX, int shaderTileModeY, boolean filter) -
nativeCreate
@Implementation(minSdk=33, maxSdk=34) protected static long nativeCreate(long nativeMatrix, long bitmapHandle, int shaderTileModeX, int shaderTileModeY, boolean filter, boolean isDirectSampled)
-