Package org.robolectric.nativeruntime
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 Summary
Modifier and Type Method Description static void
nGetBounds(long nativePtr, char[] buf, int start, int end, Rect rect)
static float
nGetCharWidthAt(long nativePtr, int offset)
static int
nGetMemoryUsage(long nativePtr)
static long
nGetReleaseFunc()
static float
nGetWidth(long nativePtr, int start, int end)
-
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
-
nGetCharWidthAt
public static float nGetCharWidthAt(long nativePtr, int offset)
-