Package org.robolectric.shadows
Class ShadowStringBlock
- java.lang.Object
-
- org.robolectric.shadows.ShadowStringBlock
-
@Implements(className="android.content.res.StringBlock", isInAndroidSdk=false) public class ShadowStringBlock extends Object
-
-
Constructor Summary
Constructors Constructor Description ShadowStringBlock()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static Number
nativeCreate(byte[] data, int offset, int size)
protected static void
nativeDestroy(int obj)
protected static void
nativeDestroy(long obj)
protected static int
nativeGetSize(int nativeId)
protected static int
nativeGetSize(long nativeId)
protected static String
nativeGetString(int nativeId, int index)
protected static String
nativeGetString(long nativeId, int index)
protected static int[]
nativeGetStyle(int obj, int idx)
protected static int[]
nativeGetStyle(long obj, int idx)
static void
reset()
-
-
-
Method Detail
-
nativeCreate
@Implementation protected static Number nativeCreate(byte[] data, int offset, int size)
-
nativeGetSize
@Implementation(maxSdk=20) protected static int nativeGetSize(int nativeId)
-
nativeGetSize
@Implementation(minSdk=21) protected static int nativeGetSize(long nativeId)
-
nativeGetString
@Implementation(maxSdk=20) protected static String nativeGetString(int nativeId, int index)
-
nativeGetString
@Implementation(minSdk=21) protected static String nativeGetString(long nativeId, int index)
-
nativeGetStyle
@Implementation(maxSdk=20) protected static int[] nativeGetStyle(int obj, int idx)
-
nativeGetStyle
@Implementation(minSdk=21) protected static int[] nativeGetStyle(long obj, int idx)
-
nativeDestroy
@Implementation(maxSdk=20) protected static void nativeDestroy(int obj)
-
nativeDestroy
@Implementation(minSdk=21) protected static void nativeDestroy(long obj)
-
reset
@Resetter public static void reset()
-
-