Package org.robolectric.nativeruntime
Class NinePatchNatives
java.lang.Object
org.robolectric.nativeruntime.NinePatchNatives
public final class NinePatchNatives extends Object
Native methods for NinePatch 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/NinePatch.java
-
Method Summary
Modifier and Type Method Description static boolean
isNinePatchChunk(byte[] chunk)
static void
nativeFinalize(long chunk)
static long
nativeGetTransparentRegion(long bitmapHandle, long chunk, Rect location)
static long
validateNinePatchChunk(byte[] chunk)
-
Method Details
-
isNinePatchChunk
public static boolean isNinePatchChunk(byte[] chunk) -
validateNinePatchChunk
public static long validateNinePatchChunk(byte[] chunk) -
nativeFinalize
public static void nativeFinalize(long chunk) -
nativeGetTransparentRegion
-