Package org.robolectric.nativeruntime
Class RegionNatives
java.lang.Object
org.robolectric.nativeruntime.RegionNatives
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(int x, int y) boolean
boolean
isEmpty()
boolean
isRect()
static long
static long
static void
nativeDestructor
(long nativeRegion) static boolean
nativeEquals
(long nativeR1, long nativeR2) static boolean
nativeGetBoundaryPath
(long nativeRegion, long nativePath) static boolean
nativeGetBounds
(long nativeRegion, Rect rect) static boolean
nativeOp
(long nativeDst, int left, int top, int right, int bottom, int op) static boolean
nativeOp
(long nativeDst, long nativeRegion1, long nativeRegion2, int op) static boolean
static boolean
nativeSetPath
(long nativeDst, long nativePath, long nativeClip) static boolean
nativeSetRect
(long nativeDst, int left, int top, int right, int bottom) static void
nativeSetRegion
(long nativeDst, long nativeSrc) static String
nativeToString
(long nativeRegion) static boolean
nativeWriteToParcel
(long nativeRegion, Parcel p) boolean
quickContains
(int left, int top, int right, int bottom) boolean
quickReject
(int left, int top, int right, int bottom) boolean
quickReject
(Region rgn) void
void
-
Field Details
-
mNativeRegion
public long mNativeRegion
-
-
Constructor Details
-
RegionNatives
public RegionNatives()
-
-
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
-
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
-
nativeOp
public static boolean nativeOp(long nativeDst, long nativeRegion1, long nativeRegion2, int op) -
nativeCreateFromParcel
-
nativeWriteToParcel
-
nativeToString
-
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
-
translate
-
scale
-