Class RenderNodeNatives

java.lang.Object
org.robolectric.nativeruntime.RenderNodeNatives

public final class RenderNodeNatives extends Object
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 Details

    • nCreate

      public static long nCreate(String name)
    • 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)