Package org.robolectric.shadows
Class ShadowNativeNinePatch
java.lang.Object
org.robolectric.shadows.ShadowNativeNinePatch
@Implements(value=android.graphics.NinePatch.class, minSdk=26, shadowPicker=Picker.class, isInAndroidSdk=false) public class ShadowNativeNinePatch extends Object
Shadow for
NinePatch
that is backed by native code-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShadowNativeNinePatch.Picker
Shadow picker forNinePatch
. -
Constructor Summary
Constructors Constructor Description ShadowNativeNinePatch()
-
Method Summary
Modifier and Type Method Description protected static boolean
isNinePatchChunk(byte[] chunk)
protected static void
nativeFinalize(long chunk)
protected static long
nativeGetTransparentRegion(long bitmapHandle, long chunk, Rect location)
protected static long
validateNinePatchChunk(byte[] chunk)
-
Constructor Details
-
ShadowNativeNinePatch
public ShadowNativeNinePatch()
-
-
Method Details
-
isNinePatchChunk
-
validateNinePatchChunk
-
nativeFinalize
-
nativeGetTransparentRegion
@Implementation(minSdk=29) protected static long nativeGetTransparentRegion(long bitmapHandle, long chunk, Rect location)
-