Home | History | Annotate | Download | only in shadows
      1 // BEGIN-INTERNAL
      2 package org.robolectric.shadows;
      3 
      4 import static android.os.Build.VERSION_CODES.P;
      5 
      6 import org.robolectric.annotation.Implementation;
      7 import org.robolectric.annotation.Implements;
      8 
      9 @Implements(className = "android.text.MeasuredParagraph", minSdk = P, isInAndroidSdk = false)
     10 public class ShadowMeasuredParagraph {
     11 
     12   private static int nativeCounter = 0;
     13 
     14   @Implementation
     15   public static long nInitBuilder() {
     16     return ++nativeCounter;
     17   }
     18 
     19 
     20   @Implementation
     21   public static void nAddStyleRun(long nativeBuilderPtr, long paintPtr, int start, int end,
     22       boolean isRtl) {
     23   }
     24 
     25   @Implementation
     26   public static void nAddReplacementRun(long nativeBuilderPtr, long paintPtr, int start, int end,
     27       float width) {
     28   }
     29 
     30   @Implementation
     31   public static long nBuildNativeMeasuredParagraph(long nativeBuilderPtr, char[] text) {
     32     return 1;
     33   }
     34 
     35   @Implementation
     36   public static void nFreeBuilder(long nativeBuilderPtr) {
     37   }
     38 
     39   @Implementation
     40   public static long nGetReleaseFunc() {
     41     return 1;
     42   }
     43 
     44 }
     45 
     46 // END-INTERNAL