Class RegionNatives

java.lang.Object
org.robolectric.nativeruntime.RegionNatives

public final class RegionNatives
extends Object
Native methods for Region 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/Region.java

  • Field Details

  • Constructor Details

  • Method Details

    • nativeEquals

      public static boolean nativeEquals​(long nativeR1, long nativeR2)
    • nativeConstructor

      public static long nativeConstructor()
    • nativeDestructor

      public static void nativeDestructor​(long nativeRegion)
    • nativeSetRegion

      public static void nativeSetRegion​(long nativeDst, long nativeSrc)
    • nativeSetRect

      public static boolean nativeSetRect​(long nativeDst, int left, int top, int right, int bottom)
    • nativeSetPath

      public static boolean nativeSetPath​(long nativeDst, long nativePath, long nativeClip)
    • nativeGetBounds

      public static boolean nativeGetBounds​(long nativeRegion, Rect rect)
    • nativeGetBoundaryPath

      public static boolean nativeGetBoundaryPath​(long nativeRegion, long nativePath)
    • nativeOp

      public static boolean nativeOp​(long nativeDst, int left, int top, int right, int bottom, int op)
    • nativeOp

      public static boolean nativeOp​(long nativeDst, Rect rect, long nativeRegion, int op)
    • nativeOp

      public static boolean nativeOp​(long nativeDst, long nativeRegion1, long nativeRegion2, int op)
    • nativeCreateFromParcel

      public static long nativeCreateFromParcel​(Parcel p)
    • nativeWriteToParcel

      public static boolean nativeWriteToParcel​(long nativeRegion, Parcel p)
    • nativeToString

      public static String nativeToString​(long nativeRegion)
    • isEmpty

      public boolean isEmpty()
    • isRect

      public boolean isRect()
    • isComplex

      public boolean isComplex()
    • contains

      public boolean contains​(int x, int y)
    • quickContains

      public boolean quickContains​(int left, int top, int right, int bottom)
    • quickReject

      public boolean quickReject​(int left, int top, int right, int bottom)
    • quickReject

      public boolean quickReject​(Region rgn)
    • translate

      public void translate​(int dx, int dy, Region dst)
    • scale

      public void scale​(float scale, Region dst)