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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidnAddAnimator(long renderNode, long animatorPtr) protected static booleannClearStretch(long renderNode) protected static longprotected static voidnDiscardDisplayList(long renderNode) protected static voidnEndAllAnimators(long renderNode) protected static voidnForceEndAnimators(long renderNode) protected static intnGetAllocatedSize(long renderNode) protected static booleannGetAllowForceDark(long renderNode) protected static floatnGetAlpha(long renderNode) protected static intnGetAmbientShadowColor(long renderNode) protected static booleannGetAnimationMatrix(long renderNode, long animationMatrix) protected static intnGetBottom(long renderNode) protected static floatnGetCameraDistance(long renderNode) protected static booleannGetClipToBounds(long renderNode) protected static booleannGetClipToOutline(long renderNode) protected static floatnGetElevation(long renderNode) protected static intnGetHeight(long renderNode) protected static voidnGetInverseTransformMatrix(long renderNode, long nativeMatrix) protected static intnGetLayerType(long renderNode) protected static intnGetLeft(long renderNode) protected static longprotected static floatnGetPivotX(long renderNode) protected static floatnGetPivotY(long renderNode) protected static intnGetRight(long renderNode) protected static floatnGetRotation(long renderNode) protected static floatnGetRotationX(long renderNode) protected static floatnGetRotationY(long renderNode) protected static floatnGetScaleX(long renderNode) protected static floatnGetScaleY(long renderNode) protected static intnGetSpotShadowColor(long renderNode) protected static intnGetTop(long renderNode) protected static voidnGetTransformMatrix(long renderNode, long nativeMatrix) protected static floatnGetTranslationX(long renderNode) protected static floatnGetTranslationY(long renderNode) protected static floatnGetTranslationZ(long renderNode) protected static longnGetUniqueId(long renderNode) protected static intnGetUsageSize(long renderNode) protected static intnGetWidth(long renderNode) protected static booleannHasIdentityMatrix(long renderNode) protected static booleannHasOverlappingRendering(long renderNode) protected static booleannHasShadow(long renderNode) protected static booleannIsPivotExplicitlySet(long renderNode) protected static booleannIsValid(long renderNode) protected static booleannOffsetLeftAndRight(long renderNode, int offset) protected static booleannOffsetTopAndBottom(long renderNode, int offset) protected static voidnOutput(long renderNode) protected static voidnRequestPositionUpdates(long renderNode, RenderNode.PositionUpdateListener callback) protected static voidnRequestPositionUpdates(long renderNode, WeakReference<RenderNode.PositionUpdateListener> callback) protected static booleannResetPivot(long renderNode) protected static booleannSetAllowForceDark(long renderNode, boolean allowForceDark) protected static booleannSetAlpha(long renderNode, float alpha) protected static booleannSetAmbientShadowColor(long renderNode, int color) protected static booleannSetAnimationMatrix(long renderNode, long animationMatrix) protected static booleannSetBottom(long renderNode, int bottom) protected static booleannSetCameraDistance(long renderNode, float distance) protected static booleannSetClipBounds(long renderNode, int left, int top, int right, int bottom) protected static booleannSetClipBoundsEmpty(long renderNode) protected static booleannSetClipToBounds(long renderNode, boolean clipToBounds) protected static booleannSetClipToOutline(long renderNode, boolean clipToOutline) protected static voidnSetDisplayList(long renderNode, long newData) protected static booleannSetElevation(long renderNode, float lift) protected static booleannSetHasOverlappingRendering(long renderNode, boolean hasOverlappingRendering) protected static voidnSetIsTextureView(long renderNode) protected static booleannSetLayerPaint(long renderNode, long paint) protected static booleannSetLayerType(long renderNode, int layerType) protected static booleannSetLeft(long renderNode, int left) protected static booleannSetLeftTopRightBottom(long renderNode, int left, int top, int right, int bottom) protected static booleannSetOutlineConvexPath(long renderNode, long nativePath, float alpha) protected static booleannSetOutlineEmpty(long renderNode) protected static booleannSetOutlineNone(long renderNode) protected static booleannSetOutlinePath(long renderNode, long nativePath, float alpha) protected static booleannSetOutlineRoundRect(long renderNode, int left, int top, int right, int bottom, float radius, float alpha) protected static booleannSetPivotX(long renderNode, float pivotX) protected static booleannSetPivotY(long renderNode, float pivotY) protected static booleannSetProjectBackwards(long renderNode, boolean shouldProject) protected static booleannSetProjectionReceiver(long renderNode, boolean shouldReceive) protected static booleannSetRenderEffect(long renderNode, long renderEffect) protected static booleannSetRevealClip(long renderNode, boolean shouldClip, float x, float y, float radius) protected static booleannSetRight(long renderNode, int right) protected static booleannSetRotation(long renderNode, float rotation) protected static booleannSetRotationX(long renderNode, float rotationX) protected static booleannSetRotationY(long renderNode, float rotationY) protected static booleannSetScaleX(long renderNode, float scaleX) protected static booleannSetScaleY(long renderNode, float scaleY) protected static booleannSetSpotShadowColor(long renderNode, int color) protected static booleannSetStaticMatrix(long renderNode, long nativeMatrix) protected static booleannSetTop(long renderNode, int top) protected static booleannSetTranslationX(long renderNode, float translationX) protected static booleannSetTranslationY(long renderNode, float translationY) protected static booleannSetTranslationZ(long renderNode, float translationZ) protected static voidnSetUsageHint(long renderNode, int usageHint) protected static booleannStretch(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
-