Class CursorWindowNatives


  • public final class CursorWindowNatives
    extends Object
    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 Detail

      • nativeCreate

        public static long nativeCreate​(String name,
                                        int cursorWindowSize)
      • nativeDispose

        public static void nativeDispose​(long windowPtr)
      • nativeGetName

        public static String nativeGetName​(long windowPtr)
      • nativeGetBlob

        public static byte[] nativeGetBlob​(long windowPtr,
                                           int row,
                                           int column)
      • nativeGetString

        public static String nativeGetString​(long windowPtr,
                                             int row,
                                             int column)
      • 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

        public static boolean nativePutString​(long windowPtr,
                                              String value,
                                              int row,
                                              int column)
      • 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)