Package org.robolectric.shadows
Class ShadowNativeBitmapShader
java.lang.Object
org.robolectric.shadows.ShadowNativeBitmapShader
@Implements(value=android.graphics.BitmapShader.class, minSdk=26, shadowPicker=Picker.class) public class ShadowNativeBitmapShader extends Object
Shadow for
BitmapShader
that is backed by native code-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShadowNativeBitmapShader.Picker
Shadow picker forBitmapShader
. -
Constructor Summary
Constructors Constructor Description ShadowNativeBitmapShader()
-
Method Summary
Modifier and Type Method Description protected 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) protected static long nativeCreate(long nativeMatrix, long bitmapHandle, int shaderTileModeX, int shaderTileModeY, boolean filter, boolean isDirectSampled)
-