Package org.robolectric.shadows
Class ShadowNativeRenderNode
java.lang.Object
org.robolectric.shadows.ShadowNativeRenderNode
@Implements(value=android.graphics.RenderNode.class,
minSdk=29,
shadowPicker=Picker.class)
public class ShadowNativeRenderNode
extends Object
Shadow for
RenderNode
that is backed by native code-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
nAddAnimator
(long renderNode, long animatorPtr) protected static boolean
nClearStretch
(long renderNode) protected static long
protected static void
nDiscardDisplayList
(long renderNode) protected static void
nEndAllAnimators
(long renderNode) protected static int
nGetAllocatedSize
(long renderNode) protected static boolean
nGetAllowForceDark
(long renderNode) protected static float
nGetAlpha
(long renderNode) protected static int
nGetAmbientShadowColor
(long renderNode) protected static boolean
nGetAnimationMatrix
(long renderNode, long animationMatrix) protected static int
nGetBottom
(long renderNode) protected static float
nGetCameraDistance
(long renderNode) protected static boolean
nGetClipToBounds
(long renderNode) protected static boolean
nGetClipToOutline
(long renderNode) protected static float
nGetElevation
(long renderNode) protected static int
nGetHeight
(long renderNode) protected static void
nGetInverseTransformMatrix
(long renderNode, long nativeMatrix) protected static int
nGetLayerType
(long renderNode) protected static int
nGetLeft
(long renderNode) protected static long
protected static float
nGetPivotX
(long renderNode) protected static float
nGetPivotY
(long renderNode) protected static int
nGetRight
(long renderNode) protected static float
nGetRotation
(long renderNode) protected static float
nGetRotationX
(long renderNode) protected static float
nGetRotationY
(long renderNode) protected static float
nGetScaleX
(long renderNode) protected static float
nGetScaleY
(long renderNode) protected static int
nGetSpotShadowColor
(long renderNode) protected static int
nGetTop
(long renderNode) protected static void
nGetTransformMatrix
(long renderNode, long nativeMatrix) protected static float
nGetTranslationX
(long renderNode) protected static float
nGetTranslationY
(long renderNode) protected static float
nGetTranslationZ
(long renderNode) protected static long
nGetUniqueId
(long renderNode) protected static int
nGetUsageSize
(long renderNode) protected static int
nGetWidth
(long renderNode) protected static boolean
nHasIdentityMatrix
(long renderNode) protected static boolean
nHasOverlappingRendering
(long renderNode) protected static boolean
nHasShadow
(long renderNode) protected static boolean
nIsPivotExplicitlySet
(long renderNode) protected static boolean
nIsValid
(long renderNode) protected static boolean
nOffsetLeftAndRight
(long renderNode, int offset) protected static boolean
nOffsetTopAndBottom
(long renderNode, int offset) protected static void
nOutput
(long renderNode) protected static void
nRequestPositionUpdates
(long renderNode, RenderNode.PositionUpdateListener callback) protected static boolean
nResetPivot
(long renderNode) protected static boolean
nSetAllowForceDark
(long renderNode, boolean allowForceDark) protected static boolean
nSetAlpha
(long renderNode, float alpha) protected static boolean
nSetAmbientShadowColor
(long renderNode, int color) protected static boolean
nSetAnimationMatrix
(long renderNode, long animationMatrix) protected static boolean
nSetBottom
(long renderNode, int bottom) protected static boolean
nSetCameraDistance
(long renderNode, float distance) protected static boolean
nSetClipBounds
(long renderNode, int left, int top, int right, int bottom) protected static boolean
nSetClipBoundsEmpty
(long renderNode) protected static boolean
nSetClipToBounds
(long renderNode, boolean clipToBounds) protected static boolean
nSetClipToOutline
(long renderNode, boolean clipToOutline) protected static boolean
nSetElevation
(long renderNode, float lift) protected static boolean
nSetHasOverlappingRendering
(long renderNode, boolean hasOverlappingRendering) protected static boolean
nSetLayerPaint
(long renderNode, long paint) protected static boolean
nSetLayerType
(long renderNode, int layerType) protected static boolean
nSetLeft
(long renderNode, int left) protected static boolean
nSetLeftTopRightBottom
(long renderNode, int left, int top, int right, int bottom) protected static boolean
nSetOutlineEmpty
(long renderNode) protected static boolean
nSetOutlineNone
(long renderNode) protected static boolean
nSetOutlinePath
(long renderNode, long nativePath, float alpha) protected static boolean
nSetOutlineRoundRect
(long renderNode, int left, int top, int right, int bottom, float radius, float alpha) protected static boolean
nSetPivotX
(long renderNode, float pivotX) protected static boolean
nSetPivotY
(long renderNode, float pivotY) protected static boolean
nSetProjectBackwards
(long renderNode, boolean shouldProject) protected static boolean
nSetProjectionReceiver
(long renderNode, boolean shouldReceive) protected static boolean
nSetRenderEffect
(long renderNode, long renderEffect) protected static boolean
nSetRevealClip
(long renderNode, boolean shouldClip, float x, float y, float radius) protected static boolean
nSetRight
(long renderNode, int right) protected static boolean
nSetRotation
(long renderNode, float rotation) protected static boolean
nSetRotationX
(long renderNode, float rotationX) protected static boolean
nSetRotationY
(long renderNode, float rotationY) protected static boolean
nSetScaleX
(long renderNode, float scaleX) protected static boolean
nSetScaleY
(long renderNode, float scaleY) protected static boolean
nSetSpotShadowColor
(long renderNode, int color) protected static boolean
nSetStaticMatrix
(long renderNode, long nativeMatrix) protected static boolean
nSetTop
(long renderNode, int top) protected static boolean
nSetTranslationX
(long renderNode, float translationX) protected static boolean
nSetTranslationY
(long renderNode, float translationY) protected static boolean
nSetTranslationZ
(long renderNode, float translationZ) protected static void
nSetUsageHint
(long renderNode, int usageHint) protected static boolean
nStretch
(long renderNode, float vecX, float vecY, float maxStretchX, float maxStretchY)
-
Constructor Details
-
ShadowNativeRenderNode
public ShadowNativeRenderNode()
-
-
Method Details
-
nCreate
-
nGetNativeFinalizer
-
nOutput
-
nGetUsageSize
-
nGetAllocatedSize
-
nRequestPositionUpdates
@Implementation(maxSdk=32) protected static void nRequestPositionUpdates(long renderNode, RenderNode.PositionUpdateListener callback) -
nAddAnimator
-
nEndAllAnimators
-
nDiscardDisplayList
-
nIsValid
-
nGetTransformMatrix
-
nGetInverseTransformMatrix
@Implementation protected static void nGetInverseTransformMatrix(long renderNode, long nativeMatrix) -
nHasIdentityMatrix
-
nOffsetTopAndBottom
-
nOffsetLeftAndRight
-
nSetLeftTopRightBottom
@Implementation protected static boolean nSetLeftTopRightBottom(long renderNode, int left, int top, int right, int bottom) -
nSetLeft
-
nSetTop
-
nSetRight
-
nSetBottom
-
nGetLeft
-
nGetTop
-
nGetRight
-
nGetBottom
-
nSetCameraDistance
-
nSetPivotY
-
nSetPivotX
-
nResetPivot
-
nSetLayerType
-
nGetLayerType
-
nSetLayerPaint
-
nSetClipToBounds
-
nGetClipToBounds
-
nSetClipBounds
@Implementation protected static boolean nSetClipBounds(long renderNode, int left, int top, int right, int bottom) -
nSetClipBoundsEmpty
-
nSetProjectBackwards
@Implementation protected static boolean nSetProjectBackwards(long renderNode, boolean shouldProject) -
nSetProjectionReceiver
@Implementation protected static boolean nSetProjectionReceiver(long renderNode, boolean shouldReceive) -
nSetOutlineRoundRect
@Implementation protected static boolean nSetOutlineRoundRect(long renderNode, int left, int top, int right, int bottom, float radius, float alpha) -
nSetOutlinePath
@Implementation(minSdk=30) protected static boolean nSetOutlinePath(long renderNode, long nativePath, float alpha) -
nSetOutlineEmpty
-
nSetOutlineNone
-
nClearStretch
-
nStretch
@Implementation(minSdk=31) protected static boolean nStretch(long renderNode, float vecX, float vecY, float maxStretchX, float maxStretchY) -
nHasShadow
-
nSetSpotShadowColor
-
nSetAmbientShadowColor
-
nGetSpotShadowColor
-
nGetAmbientShadowColor
-
nSetClipToOutline
-
nSetRevealClip
@Implementation protected static boolean nSetRevealClip(long renderNode, boolean shouldClip, float x, float y, float radius) -
nSetAlpha
-
nSetRenderEffect
@Implementation(minSdk=31) protected static boolean nSetRenderEffect(long renderNode, long renderEffect) -
nSetHasOverlappingRendering
@Implementation protected static boolean nSetHasOverlappingRendering(long renderNode, boolean hasOverlappingRendering) -
nSetUsageHint
-
nSetElevation
-
nSetTranslationX
-
nSetTranslationY
-
nSetTranslationZ
-
nSetRotation
-
nSetRotationX
-
nSetRotationY
-
nSetScaleX
-
nSetScaleY
-
nSetStaticMatrix
-
nSetAnimationMatrix
-
nHasOverlappingRendering
-
nGetAnimationMatrix
-
nGetClipToOutline
-
nGetAlpha
-
nGetCameraDistance
-
nGetScaleX
-
nGetScaleY
-
nGetElevation
-
nGetTranslationX
-
nGetTranslationY
-
nGetTranslationZ
-
nGetRotation
-
nGetRotationX
-
nGetRotationY
-
nIsPivotExplicitlySet
-
nGetPivotX
-
nGetPivotY
-
nGetWidth
-
nGetHeight
-
nSetAllowForceDark
@Implementation protected static boolean nSetAllowForceDark(long renderNode, boolean allowForceDark) -
nGetAllowForceDark
-
nGetUniqueId
-