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 Details

    • isNinePatchChunk

      public static boolean isNinePatchChunk(byte[] chunk)
    • validateNinePatchChunk

      public static long validateNinePatchChunk(byte[] chunk)
    • nativeFinalize

      public static void nativeFinalize(long chunk)
    • nativeGetTransparentRegion

      public static long nativeGetTransparentRegion(long bitmapHandle, long chunk, Rect location)