Package org.robolectric.nativeruntime
Class CursorWindowNatives
java.lang.Object
org.robolectric.nativeruntime.CursorWindowNatives
Native methods for CursorWindow JNI registration.
Native method signatures are derived from https://cs.android.com/android/platform/superproject/+/android-11.0.0_r1:frameworks/base/core/java/android/database/CursorWindow.java
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
nativeAllocRow
(long windowPtr) static void
nativeClear
(long windowPtr) static void
nativeCopyStringToBuffer
(long windowPtr, int row, int column, CharArrayBuffer buffer) static long
nativeCreate
(String name, int cursorWindowSize) static void
nativeDispose
(long windowPtr) static void
nativeFreeLastRow
(long windowPtr) static byte[]
nativeGetBlob
(long windowPtr, int row, int column) static double
nativeGetDouble
(long windowPtr, int row, int column) static long
nativeGetLong
(long windowPtr, int row, int column) static String
nativeGetName
(long windowPtr) static int
nativeGetNumRows
(long windowPtr) static String
nativeGetString
(long windowPtr, int row, int column) static int
nativeGetType
(long windowPtr, int row, int column) static boolean
nativePutBlob
(long windowPtr, byte[] value, int row, int column) static boolean
nativePutDouble
(long windowPtr, double value, int row, int column) static boolean
nativePutLong
(long windowPtr, long value, int row, int column) static boolean
nativePutNull
(long windowPtr, int row, int column) static boolean
nativePutString
(long windowPtr, String value, int row, int column) static boolean
nativeSetNumColumns
(long windowPtr, int columnNum)
-
Method Details
-
nativeCreate
-
nativeDispose
public static void nativeDispose(long windowPtr) -
nativeGetName
-
nativeGetBlob
public static byte[] nativeGetBlob(long windowPtr, int row, int column) -
nativeGetString
-
nativeCopyStringToBuffer
public static void nativeCopyStringToBuffer(long windowPtr, int row, int column, CharArrayBuffer buffer) -
nativePutBlob
public static boolean nativePutBlob(long windowPtr, byte[] value, int row, int column) -
nativePutString
-
nativeClear
public static void nativeClear(long windowPtr) -
nativeGetNumRows
public static int nativeGetNumRows(long windowPtr) -
nativeSetNumColumns
public static boolean nativeSetNumColumns(long windowPtr, int columnNum) -
nativeAllocRow
public static boolean nativeAllocRow(long windowPtr) -
nativeFreeLastRow
public static void nativeFreeLastRow(long windowPtr) -
nativeGetType
public static int nativeGetType(long windowPtr, int row, int column) -
nativeGetLong
public static long nativeGetLong(long windowPtr, int row, int column) -
nativeGetDouble
public static double nativeGetDouble(long windowPtr, int row, int column) -
nativePutLong
public static boolean nativePutLong(long windowPtr, long value, int row, int column) -
nativePutDouble
public static boolean nativePutDouble(long windowPtr, double value, int row, int column) -
nativePutNull
public static boolean nativePutNull(long windowPtr, int row, int column)
-