Package org.robolectric.shadows
Class ShadowNativeRenderNode
java.lang.Object
org.robolectric.shadows.ShadowNativeRenderNode
@Implements(value=android.graphics.RenderNode.class,
minSdk=29,
shadowPicker=Picker.class,
callNativeMethodsByDefault=true)
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 void
nForceEndAnimators
(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 void
nRequestPositionUpdates
(long renderNode, WeakReference<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 void
nSetDisplayList
(long renderNode, long newData) protected static boolean
nSetElevation
(long renderNode, float lift) protected static boolean
nSetHasOverlappingRendering
(long renderNode, boolean hasOverlappingRendering) protected static void
nSetIsTextureView
(long renderNode) 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
nSetOutlineConvexPath
(long renderNode, long nativePath, float alpha) 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) -
nRequestPositionUpdates
@Implementation(minSdk=33, maxSdk=34) protected static void nRequestPositionUpdates(long renderNode, WeakReference<RenderNode.PositionUpdateListener> callback) -
nAddAnimator
-
nEndAllAnimators
-
nForceEndAnimators
-
nDiscardDisplayList
-
nIsValid
-
nGetTransformMatrix
@Implementation(maxSdk=34) protected static void nGetTransformMatrix(long renderNode, long nativeMatrix) -
nGetInverseTransformMatrix
@Implementation(maxSdk=34) protected static void nGetInverseTransformMatrix(long renderNode, long nativeMatrix) -
nHasIdentityMatrix
-
nOffsetTopAndBottom
@Implementation(maxSdk=34) protected static boolean nOffsetTopAndBottom(long renderNode, int offset) -
nOffsetLeftAndRight
@Implementation(maxSdk=34) protected static boolean nOffsetLeftAndRight(long renderNode, int offset) -
nSetLeftTopRightBottom
@Implementation(maxSdk=34) protected static boolean nSetLeftTopRightBottom(long renderNode, int left, int top, int right, int bottom) -
nSetLeft
-
nSetTop
-
nSetRight
-
nSetBottom
-
nGetLeft
-
nGetTop
-
nGetRight
-
nGetBottom
-
nSetCameraDistance
@Implementation(maxSdk=34) protected static boolean nSetCameraDistance(long renderNode, float distance) -
nSetPivotY
-
nSetPivotX
-
nResetPivot
-
nSetLayerType
-
nGetLayerType
-
nSetLayerPaint
-
nSetClipToBounds
@Implementation(maxSdk=34) protected static boolean nSetClipToBounds(long renderNode, boolean clipToBounds) -
nGetClipToBounds
-
nSetClipBounds
@Implementation(maxSdk=34) protected static boolean nSetClipBounds(long renderNode, int left, int top, int right, int bottom) -
nSetClipBoundsEmpty
-
nSetProjectBackwards
@Implementation(maxSdk=34) protected static boolean nSetProjectBackwards(long renderNode, boolean shouldProject) -
nSetProjectionReceiver
@Implementation(maxSdk=34) protected static boolean nSetProjectionReceiver(long renderNode, boolean shouldReceive) -
nSetOutlineRoundRect
@Implementation(maxSdk=34) protected static boolean nSetOutlineRoundRect(long renderNode, int left, int top, int right, int bottom, float radius, float alpha) -
nSetOutlinePath
@Implementation(minSdk=30, maxSdk=34) protected static boolean nSetOutlinePath(long renderNode, long nativePath, float alpha) -
nSetOutlineConvexPath
@Implementation(maxSdk=29) protected static boolean nSetOutlineConvexPath(long renderNode, long nativePath, float alpha) -
nSetOutlineEmpty
-
nSetOutlineNone
-
nClearStretch
-
nStretch
@Implementation(minSdk=31, maxSdk=34) protected static boolean nStretch(long renderNode, float vecX, float vecY, float maxStretchX, float maxStretchY) -
nHasShadow
-
nSetSpotShadowColor
-
nSetAmbientShadowColor
@Implementation(maxSdk=34) protected static boolean nSetAmbientShadowColor(long renderNode, int color) -
nGetSpotShadowColor
-
nGetAmbientShadowColor
-
nSetClipToOutline
@Implementation(maxSdk=34) protected static boolean nSetClipToOutline(long renderNode, boolean clipToOutline) -
nSetRevealClip
@Implementation(maxSdk=34) protected static boolean nSetRevealClip(long renderNode, boolean shouldClip, float x, float y, float radius) -
nSetAlpha
-
nSetRenderEffect
@Implementation(minSdk=31, maxSdk=34) protected static boolean nSetRenderEffect(long renderNode, long renderEffect) -
nSetHasOverlappingRendering
@Implementation(maxSdk=34) protected static boolean nSetHasOverlappingRendering(long renderNode, boolean hasOverlappingRendering) -
nSetUsageHint
-
nSetElevation
-
nSetTranslationX
@Implementation(maxSdk=34) protected static boolean nSetTranslationX(long renderNode, float translationX) -
nSetTranslationY
@Implementation(maxSdk=34) protected static boolean nSetTranslationY(long renderNode, float translationY) -
nSetTranslationZ
@Implementation(maxSdk=34) protected static boolean nSetTranslationZ(long renderNode, float translationZ) -
nSetRotation
-
nSetRotationX
-
nSetRotationY
-
nSetScaleX
-
nSetScaleY
-
nSetStaticMatrix
@Implementation(maxSdk=34) protected static boolean nSetStaticMatrix(long renderNode, long nativeMatrix) -
nSetAnimationMatrix
@Implementation(maxSdk=34) protected static boolean nSetAnimationMatrix(long renderNode, long animationMatrix) -
nHasOverlappingRendering
-
nGetAnimationMatrix
@Implementation(maxSdk=34) protected static boolean nGetAnimationMatrix(long renderNode, long animationMatrix) -
nGetClipToOutline
-
nGetAlpha
-
nGetCameraDistance
-
nGetScaleX
-
nGetScaleY
-
nGetElevation
-
nGetTranslationX
-
nGetTranslationY
-
nGetTranslationZ
-
nGetRotation
-
nGetRotationX
-
nGetRotationY
-
nIsPivotExplicitlySet
-
nGetPivotX
-
nGetPivotY
-
nGetWidth
-
nGetHeight
-
nSetAllowForceDark
@Implementation(maxSdk=34) protected static boolean nSetAllowForceDark(long renderNode, boolean allowForceDark) -
nGetAllowForceDark
-
nGetUniqueId
-
nSetDisplayList
@Implementation(minSdk=29, maxSdk=30) protected static void nSetDisplayList(long renderNode, long newData) -
nSetIsTextureView
-