Class MeasuredTextBuilderNatives

java.lang.Object
org.robolectric.nativeruntime.MeasuredTextBuilderNatives

public final class MeasuredTextBuilderNatives
extends Object
Native methods for MeasuredText.Builder 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/text/MeasuredText.java

  • Method Details

    • nInitBuilder

      public static long nInitBuilder()
    • nAddStyleRun

      public static void nAddStyleRun​(long nativeBuilderPtr, long paintPtr, int start, int end, boolean isRtl)
    • nAddReplacementRun

      public static void nAddReplacementRun​(long nativeBuilderPtr, long paintPtr, int start, int end, float width)
    • nBuildMeasuredText

      public static long nBuildMeasuredText​(long nativeBuilderPtr, long hintMtPtr, char[] text, boolean computeHyphenation, boolean computeLayout)
    • nFreeBuilder

      public static void nFreeBuilder​(long nativeBuilderPtr)