Package org.robolectric.shadows
Class ShadowNativeRegion
java.lang.Object
org.robolectric.shadows.ShadowNativeRegion
@Implements(value=android.graphics.Region.class,
minSdk=26,
shadowPicker=Picker.class,
isInAndroidSdk=false,
callNativeMethodsByDefault=true)
public class ShadowNativeRegion
extends Object
Shadow for
Region
that is backed by native code-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
__constructor__
(int left, int top, int right, int bottom) protected void
__constructor__
(long ni) protected void
__constructor__
(Rect rect) protected boolean
contains
(int x, int y) protected boolean
protected boolean
isEmpty()
protected boolean
isRect()
protected static long
protected static long
protected static void
nativeDestructor
(long nativeRegion) protected static boolean
nativeEquals
(long nativeR1, long nativeR2) protected static boolean
nativeGetBoundaryPath
(long nativeRegion, long nativePath) protected static boolean
nativeGetBounds
(long nativeRegion, Rect rect) protected static boolean
nativeOp
(long nativeDst, int left, int top, int right, int bottom, int op) protected static boolean
nativeOp
(long nativeDst, long nativeRegion1, long nativeRegion2, int op) protected static boolean
protected static boolean
nativeSetPath
(long nativeDst, long nativePath, long nativeClip) protected static boolean
nativeSetRect
(long nativeDst, int left, int top, int right, int bottom) protected static void
nativeSetRegion
(long nativeDst, long nativeSrc) protected static String
nativeToString
(long nativeRegion) protected static boolean
nativeWriteToParcel
(long nativeRegion, Parcel p) protected boolean
quickContains
(int left, int top, int right, int bottom) protected boolean
quickReject
(int left, int top, int right, int bottom) protected boolean
quickReject
(Region rgn) protected void
protected void
-
Constructor Details
-
ShadowNativeRegion
public ShadowNativeRegion()
-
-
Method Details
-
__constructor__
-
__constructor__
@Implementation(minSdk=26, maxSdk=34) protected void __constructor__(int left, int top, int right, int bottom) -
__constructor__
-
nativeEquals
@Implementation(minSdk=26, maxSdk=34) protected static boolean nativeEquals(long nativeR1, long nativeR2) -
nativeConstructor
-
nativeDestructor
-
nativeSetRegion
@Implementation(minSdk=26, maxSdk=34) protected static void nativeSetRegion(long nativeDst, long nativeSrc) -
nativeSetRect
@Implementation(minSdk=26, maxSdk=34) protected static boolean nativeSetRect(long nativeDst, int left, int top, int right, int bottom) -
nativeSetPath
@Implementation(minSdk=26, maxSdk=34) protected static boolean nativeSetPath(long nativeDst, long nativePath, long nativeClip) -
nativeGetBounds
@Implementation(minSdk=26, maxSdk=34) protected static boolean nativeGetBounds(long nativeRegion, Rect rect) -
nativeGetBoundaryPath
@Implementation(minSdk=26, maxSdk=34) protected static boolean nativeGetBoundaryPath(long nativeRegion, long nativePath) -
nativeOp
@Implementation(minSdk=26, maxSdk=34) protected static boolean nativeOp(long nativeDst, int left, int top, int right, int bottom, int op) -
nativeOp
@Implementation(minSdk=26, maxSdk=34) protected static boolean nativeOp(long nativeDst, Rect rect, long nativeRegion, int op) -
nativeOp
@Implementation(minSdk=26, maxSdk=34) protected static boolean nativeOp(long nativeDst, long nativeRegion1, long nativeRegion2, int op) -
nativeCreateFromParcel
-
nativeWriteToParcel
@Implementation(minSdk=26, maxSdk=34) protected static boolean nativeWriteToParcel(long nativeRegion, Parcel p) -
nativeToString
-
isEmpty
-
isRect
-
isComplex
-
contains
-
quickContains
@Implementation(minSdk=26, maxSdk=34) protected boolean quickContains(int left, int top, int right, int bottom) -
quickReject
@Implementation(minSdk=26, maxSdk=34) protected boolean quickReject(int left, int top, int right, int bottom) -
quickReject
-
translate
-
scale
-