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) public class ShadowNativeRegion extends Object
Shadow for
Region
that is backed by native code-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShadowNativeRegion.Picker
Shadow picker forRegion
. -
Constructor Summary
Constructors Constructor Description ShadowNativeRegion()
-
Method Summary
Modifier and Type Method Description protected 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
isComplex()
protected boolean
isEmpty()
protected boolean
isRect()
protected static long
nativeConstructor()
protected static long
nativeCreateFromParcel(Parcel p)
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
nativeOp(long nativeDst, Rect rect, long nativeRegion, int op)
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
scale(float scale, Region dst)
protected void
translate(int dx, int dy, Region dst)
-
Constructor Details
-
ShadowNativeRegion
public ShadowNativeRegion()
-
-
Method Details
-
__constructor__
-
__constructor__
@Implementation(minSdk=26) protected void __constructor__(int left, int top, int right, int bottom) -
__constructor__
-
nativeEquals
-
nativeConstructor
-
nativeDestructor
-
nativeSetRegion
-
nativeSetRect
@Implementation(minSdk=26) protected static boolean nativeSetRect(long nativeDst, int left, int top, int right, int bottom) -
nativeSetPath
@Implementation(minSdk=26) protected static boolean nativeSetPath(long nativeDst, long nativePath, long nativeClip) -
nativeGetBounds
-
nativeGetBoundaryPath
@Implementation(minSdk=26) protected static boolean nativeGetBoundaryPath(long nativeRegion, long nativePath) -
nativeOp
@Implementation(minSdk=26) protected static boolean nativeOp(long nativeDst, int left, int top, int right, int bottom, int op) -
nativeOp
@Implementation(minSdk=26) protected static boolean nativeOp(long nativeDst, Rect rect, long nativeRegion, int op) -
nativeOp
@Implementation(minSdk=26) protected static boolean nativeOp(long nativeDst, long nativeRegion1, long nativeRegion2, int op) -
nativeCreateFromParcel
-
nativeWriteToParcel
@Implementation(minSdk=26) protected static boolean nativeWriteToParcel(long nativeRegion, Parcel p) -
nativeToString
-
isEmpty
-
isRect
-
isComplex
-
contains
-
quickContains
@Implementation(minSdk=26) protected boolean quickContains(int left, int top, int right, int bottom) -
quickReject
-
quickReject
-
translate
-
scale
-