Class MeasuredTextNatives

java.lang.Object
org.robolectric.nativeruntime.MeasuredTextNatives

public final class MeasuredTextNatives extends Object
Native methods for MeasuredText 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

    • nGetWidth

      public static float nGetWidth(long nativePtr, int start, int end)
    • nGetReleaseFunc

      public static long nGetReleaseFunc()
    • nGetMemoryUsage

      public static int nGetMemoryUsage(long nativePtr)
    • nGetBounds

      public static void nGetBounds(long nativePtr, char[] buf, int start, int end, Rect rect)
    • nGetCharWidthAt

      public static float nGetCharWidthAt(long nativePtr, int offset)