Class ShadowNativeMeasuredParagraph

java.lang.Object
org.robolectric.shadows.ShadowNativeMeasuredParagraph

@Implements(value=android.text.MeasuredParagraph.class, minSdk=28, maxSdk=28, shadowPicker=Picker.class) public class ShadowNativeMeasuredParagraph extends Object
Shadow for MeasuredParagraph that is backed by native code
  • Constructor Details

    • ShadowNativeMeasuredParagraph

      public ShadowNativeMeasuredParagraph()
  • Method Details

    • nInitBuilder

      @Implementation protected static long nInitBuilder()
    • nAddStyleRun

      @Implementation protected static void nAddStyleRun(long nativeBuilderPtr, long paintPtr, int start, int end, boolean isRtl)
    • nAddReplacementRun

      @Implementation protected static void nAddReplacementRun(long nativeBuilderPtr, long paintPtr, int start, int end, float width)
    • nBuildNativeMeasuredParagraph

      @Implementation protected static long nBuildNativeMeasuredParagraph(long nativeBuilderPtr, char[] text, boolean computeHyphenation, boolean computeLayout)
    • nFreeBuilder

      @Implementation protected static void nFreeBuilder(long nativeBuilderPtr)
    • nGetWidth

      @Implementation protected static float nGetWidth(long nativePtr, int start, int end)
    • nGetReleaseFunc

      @Implementation protected static long nGetReleaseFunc()
    • nGetMemoryUsage

      @Implementation protected static int nGetMemoryUsage(long nativePtr)
    • nGetBounds

      @Implementation protected static void nGetBounds(long nativePtr, char[] buf, int start, int end, Rect rect)