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 classShadowNativeRegion.PickerShadow 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 booleancontains(int x, int y)protected booleanisComplex()protected booleanisEmpty()protected booleanisRect()protected static longnativeConstructor()protected static longnativeCreateFromParcel(Parcel p)protected static voidnativeDestructor(long nativeRegion)protected static booleannativeEquals(long nativeR1, long nativeR2)protected static booleannativeGetBoundaryPath(long nativeRegion, long nativePath)protected static booleannativeGetBounds(long nativeRegion, Rect rect)protected static booleannativeOp(long nativeDst, int left, int top, int right, int bottom, int op)protected static booleannativeOp(long nativeDst, long nativeRegion1, long nativeRegion2, int op)protected static booleannativeOp(long nativeDst, Rect rect, long nativeRegion, int op)protected static booleannativeSetPath(long nativeDst, long nativePath, long nativeClip)protected static booleannativeSetRect(long nativeDst, int left, int top, int right, int bottom)protected static voidnativeSetRegion(long nativeDst, long nativeSrc)protected static StringnativeToString(long nativeRegion)protected static booleannativeWriteToParcel(long nativeRegion, Parcel p)protected booleanquickContains(int left, int top, int right, int bottom)protected booleanquickReject(int left, int top, int right, int bottom)protected booleanquickReject(Region rgn)protected voidscale(float scale, Region dst)protected voidtranslate(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
-