Package org.robolectric.nativeruntime
Class MeasuredTextNatives
java.lang.Object
org.robolectric.nativeruntime.MeasuredTextNatives
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 TypeMethodDescriptionstatic 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
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)
-