Package org.robolectric.nativeruntime
Class RenderNodeNatives
java.lang.Object
org.robolectric.nativeruntime.RenderNodeNatives
Native methods for RenderNode JNI registration.
Native method signatures are derived from https://cs.android.com/android/platform/superproject/+/android-12.0.0_r1:frameworks/base/graphics/java/android/graphics/RenderNode.java
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
nAddAnimator
(long renderNode, long animatorPtr) static boolean
nClearStretch
(long renderNode) static long
static void
nDiscardDisplayList
(long renderNode) static void
nEndAllAnimators
(long renderNode) static int
nGetAllocatedSize
(long renderNode) static boolean
nGetAllowForceDark
(long renderNode) static float
nGetAlpha
(long renderNode) static int
nGetAmbientShadowColor
(long renderNode) static boolean
nGetAnimationMatrix
(long renderNode, long animationMatrix) static int
nGetBottom
(long renderNode) static float
nGetCameraDistance
(long renderNode) static boolean
nGetClipToBounds
(long renderNode) static boolean
nGetClipToOutline
(long renderNode) static float
nGetElevation
(long renderNode) static int
nGetHeight
(long renderNode) static void
nGetInverseTransformMatrix
(long renderNode, long nativeMatrix) static int
nGetLayerType
(long renderNode) static int
nGetLeft
(long renderNode) static long
static float
nGetPivotX
(long renderNode) static float
nGetPivotY
(long renderNode) static int
nGetRight
(long renderNode) static float
nGetRotation
(long renderNode) static float
nGetRotationX
(long renderNode) static float
nGetRotationY
(long renderNode) static float
nGetScaleX
(long renderNode) static float
nGetScaleY
(long renderNode) static int
nGetSpotShadowColor
(long renderNode) static int
nGetTop
(long renderNode) static void
nGetTransformMatrix
(long renderNode, long nativeMatrix) static float
nGetTranslationX
(long renderNode) static float
nGetTranslationY
(long renderNode) static float
nGetTranslationZ
(long renderNode) static long
nGetUniqueId
(long renderNode) static int
nGetUsageSize
(long renderNode) static int
nGetWidth
(long renderNode) static boolean
nHasIdentityMatrix
(long renderNode) static boolean
nHasOverlappingRendering
(long renderNode) static boolean
nHasShadow
(long renderNode) static boolean
nIsPivotExplicitlySet
(long renderNode) static boolean
nIsValid
(long renderNode) static boolean
nOffsetLeftAndRight
(long renderNode, int offset) static boolean
nOffsetTopAndBottom
(long renderNode, int offset) static void
nOutput
(long renderNode) static void
nRequestPositionUpdates
(long renderNode, RenderNode.PositionUpdateListener callback) static boolean
nResetPivot
(long renderNode) static boolean
nSetAllowForceDark
(long renderNode, boolean allowForceDark) static boolean
nSetAlpha
(long renderNode, float alpha) static boolean
nSetAmbientShadowColor
(long renderNode, int color) static boolean
nSetAnimationMatrix
(long renderNode, long animationMatrix) static boolean
nSetBottom
(long renderNode, int bottom) static boolean
nSetCameraDistance
(long renderNode, float distance) static boolean
nSetClipBounds
(long renderNode, int left, int top, int right, int bottom) static boolean
nSetClipBoundsEmpty
(long renderNode) static boolean
nSetClipToBounds
(long renderNode, boolean clipToBounds) static boolean
nSetClipToOutline
(long renderNode, boolean clipToOutline) static boolean
nSetElevation
(long renderNode, float lift) static boolean
nSetHasOverlappingRendering
(long renderNode, boolean hasOverlappingRendering) static boolean
nSetLayerPaint
(long renderNode, long paint) static boolean
nSetLayerType
(long renderNode, int layerType) static boolean
nSetLeft
(long renderNode, int left) static boolean
nSetLeftTopRightBottom
(long renderNode, int left, int top, int right, int bottom) static boolean
nSetOutlineEmpty
(long renderNode) static boolean
nSetOutlineNone
(long renderNode) static boolean
nSetOutlinePath
(long renderNode, long nativePath, float alpha) static boolean
nSetOutlineRoundRect
(long renderNode, int left, int top, int right, int bottom, float radius, float alpha) static boolean
nSetPivotX
(long renderNode, float pivotX) static boolean
nSetPivotY
(long renderNode, float pivotY) static boolean
nSetProjectBackwards
(long renderNode, boolean shouldProject) static boolean
nSetProjectionReceiver
(long renderNode, boolean shouldReceive) static boolean
nSetRenderEffect
(long renderNode, long renderEffect) static boolean
nSetRevealClip
(long renderNode, boolean shouldClip, float x, float y, float radius) static boolean
nSetRight
(long renderNode, int right) static boolean
nSetRotation
(long renderNode, float rotation) static boolean
nSetRotationX
(long renderNode, float rotationX) static boolean
nSetRotationY
(long renderNode, float rotationY) static boolean
nSetScaleX
(long renderNode, float scaleX) static boolean
nSetScaleY
(long renderNode, float scaleY) static boolean
nSetSpotShadowColor
(long renderNode, int color) static boolean
nSetStaticMatrix
(long renderNode, long nativeMatrix) static boolean
nSetTop
(long renderNode, int top) static boolean
nSetTranslationX
(long renderNode, float translationX) static boolean
nSetTranslationY
(long renderNode, float translationY) static boolean
nSetTranslationZ
(long renderNode, float translationZ) static void
nSetUsageHint
(long renderNode, int usageHint) static boolean
nStretch
(long renderNode, float vecX, float vecY, float maxStretchX, float maxStretchY)
-
Method Details
-
nCreate
-
nGetNativeFinalizer
public static long nGetNativeFinalizer() -
nOutput
public static void nOutput(long renderNode) -
nGetUsageSize
public static int nGetUsageSize(long renderNode) -
nGetAllocatedSize
public static int nGetAllocatedSize(long renderNode) -
nRequestPositionUpdates
public static void nRequestPositionUpdates(long renderNode, RenderNode.PositionUpdateListener callback) -
nAddAnimator
public static void nAddAnimator(long renderNode, long animatorPtr) -
nEndAllAnimators
public static void nEndAllAnimators(long renderNode) -
nDiscardDisplayList
public static void nDiscardDisplayList(long renderNode) -
nIsValid
public static boolean nIsValid(long renderNode) -
nGetTransformMatrix
public static void nGetTransformMatrix(long renderNode, long nativeMatrix) -
nGetInverseTransformMatrix
public static void nGetInverseTransformMatrix(long renderNode, long nativeMatrix) -
nHasIdentityMatrix
public static boolean nHasIdentityMatrix(long renderNode) -
nOffsetTopAndBottom
public static boolean nOffsetTopAndBottom(long renderNode, int offset) -
nOffsetLeftAndRight
public static boolean nOffsetLeftAndRight(long renderNode, int offset) -
nSetLeftTopRightBottom
public static boolean nSetLeftTopRightBottom(long renderNode, int left, int top, int right, int bottom) -
nSetLeft
public static boolean nSetLeft(long renderNode, int left) -
nSetTop
public static boolean nSetTop(long renderNode, int top) -
nSetRight
public static boolean nSetRight(long renderNode, int right) -
nSetBottom
public static boolean nSetBottom(long renderNode, int bottom) -
nGetLeft
public static int nGetLeft(long renderNode) -
nGetTop
public static int nGetTop(long renderNode) -
nGetRight
public static int nGetRight(long renderNode) -
nGetBottom
public static int nGetBottom(long renderNode) -
nSetCameraDistance
public static boolean nSetCameraDistance(long renderNode, float distance) -
nSetPivotY
public static boolean nSetPivotY(long renderNode, float pivotY) -
nSetPivotX
public static boolean nSetPivotX(long renderNode, float pivotX) -
nResetPivot
public static boolean nResetPivot(long renderNode) -
nSetLayerType
public static boolean nSetLayerType(long renderNode, int layerType) -
nGetLayerType
public static int nGetLayerType(long renderNode) -
nSetLayerPaint
public static boolean nSetLayerPaint(long renderNode, long paint) -
nSetClipToBounds
public static boolean nSetClipToBounds(long renderNode, boolean clipToBounds) -
nGetClipToBounds
public static boolean nGetClipToBounds(long renderNode) -
nSetClipBounds
public static boolean nSetClipBounds(long renderNode, int left, int top, int right, int bottom) -
nSetClipBoundsEmpty
public static boolean nSetClipBoundsEmpty(long renderNode) -
nSetProjectBackwards
public static boolean nSetProjectBackwards(long renderNode, boolean shouldProject) -
nSetProjectionReceiver
public static boolean nSetProjectionReceiver(long renderNode, boolean shouldReceive) -
nSetOutlineRoundRect
public static boolean nSetOutlineRoundRect(long renderNode, int left, int top, int right, int bottom, float radius, float alpha) -
nSetOutlinePath
public static boolean nSetOutlinePath(long renderNode, long nativePath, float alpha) -
nSetOutlineEmpty
public static boolean nSetOutlineEmpty(long renderNode) -
nSetOutlineNone
public static boolean nSetOutlineNone(long renderNode) -
nClearStretch
public static boolean nClearStretch(long renderNode) -
nStretch
public static boolean nStretch(long renderNode, float vecX, float vecY, float maxStretchX, float maxStretchY) -
nHasShadow
public static boolean nHasShadow(long renderNode) -
nSetSpotShadowColor
public static boolean nSetSpotShadowColor(long renderNode, int color) -
nSetAmbientShadowColor
public static boolean nSetAmbientShadowColor(long renderNode, int color) -
nGetSpotShadowColor
public static int nGetSpotShadowColor(long renderNode) -
nGetAmbientShadowColor
public static int nGetAmbientShadowColor(long renderNode) -
nSetClipToOutline
public static boolean nSetClipToOutline(long renderNode, boolean clipToOutline) -
nSetRevealClip
public static boolean nSetRevealClip(long renderNode, boolean shouldClip, float x, float y, float radius) -
nSetAlpha
public static boolean nSetAlpha(long renderNode, float alpha) -
nSetRenderEffect
public static boolean nSetRenderEffect(long renderNode, long renderEffect) -
nSetHasOverlappingRendering
public static boolean nSetHasOverlappingRendering(long renderNode, boolean hasOverlappingRendering) -
nSetUsageHint
public static void nSetUsageHint(long renderNode, int usageHint) -
nSetElevation
public static boolean nSetElevation(long renderNode, float lift) -
nSetTranslationX
public static boolean nSetTranslationX(long renderNode, float translationX) -
nSetTranslationY
public static boolean nSetTranslationY(long renderNode, float translationY) -
nSetTranslationZ
public static boolean nSetTranslationZ(long renderNode, float translationZ) -
nSetRotation
public static boolean nSetRotation(long renderNode, float rotation) -
nSetRotationX
public static boolean nSetRotationX(long renderNode, float rotationX) -
nSetRotationY
public static boolean nSetRotationY(long renderNode, float rotationY) -
nSetScaleX
public static boolean nSetScaleX(long renderNode, float scaleX) -
nSetScaleY
public static boolean nSetScaleY(long renderNode, float scaleY) -
nSetStaticMatrix
public static boolean nSetStaticMatrix(long renderNode, long nativeMatrix) -
nSetAnimationMatrix
public static boolean nSetAnimationMatrix(long renderNode, long animationMatrix) -
nHasOverlappingRendering
public static boolean nHasOverlappingRendering(long renderNode) -
nGetAnimationMatrix
public static boolean nGetAnimationMatrix(long renderNode, long animationMatrix) -
nGetClipToOutline
public static boolean nGetClipToOutline(long renderNode) -
nGetAlpha
public static float nGetAlpha(long renderNode) -
nGetCameraDistance
public static float nGetCameraDistance(long renderNode) -
nGetScaleX
public static float nGetScaleX(long renderNode) -
nGetScaleY
public static float nGetScaleY(long renderNode) -
nGetElevation
public static float nGetElevation(long renderNode) -
nGetTranslationX
public static float nGetTranslationX(long renderNode) -
nGetTranslationY
public static float nGetTranslationY(long renderNode) -
nGetTranslationZ
public static float nGetTranslationZ(long renderNode) -
nGetRotation
public static float nGetRotation(long renderNode) -
nGetRotationX
public static float nGetRotationX(long renderNode) -
nGetRotationY
public static float nGetRotationY(long renderNode) -
nIsPivotExplicitlySet
public static boolean nIsPivotExplicitlySet(long renderNode) -
nGetPivotX
public static float nGetPivotX(long renderNode) -
nGetPivotY
public static float nGetPivotY(long renderNode) -
nGetWidth
public static int nGetWidth(long renderNode) -
nGetHeight
public static int nGetHeight(long renderNode) -
nSetAllowForceDark
public static boolean nSetAllowForceDark(long renderNode, boolean allowForceDark) -
nGetAllowForceDark
public static boolean nGetAllowForceDark(long renderNode) -
nGetUniqueId
public static long nGetUniqueId(long renderNode)
-