Package org.robolectric.nativeruntime
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 Summary
Fields Modifier and Type Field Description long
mNativeRegion
-
Constructor Summary
Constructors Constructor Description RegionNatives()
-
Method Summary
Modifier and Type Method Description boolean
contains(int x, int y)
boolean
isComplex()
boolean
isEmpty()
boolean
isRect()
static long
nativeConstructor()
static long
nativeCreateFromParcel(Parcel p)
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
nativeOp(long nativeDst, Rect rect, long nativeRegion, int op)
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
scale(float scale, Region dst)
void
translate(int dx, int dy, Region dst)
-
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
-