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