3131/**
3232 * A buffer containing multiple cursor rows.
3333 * <p>
34- * A {@link CursorWindow} is read-write when created and used locally. When sent
35- * to a remote process (by writing it to a {@link Parcel}), the remote process
34+ * A {@link CursorWindow} is read-write when initially created and used locally.
35+ * When sent to a remote process (by writing it to a {@link Parcel}), the remote process
3636 * receives a read-only view of the cursor window. Typically the cursor window
3737 * will be allocated by the producer, filled with data, and then sent to the
3838 * consumer for reading.
@@ -58,8 +58,7 @@ public class CursorWindow extends SQLiteClosable implements Parcelable {
5858
5959 private final CloseGuard mCloseGuard = CloseGuard .get ();
6060
61- private static native int nativeCreate (String name ,
62- int cursorWindowSize , boolean localOnly );
61+ private static native int nativeCreate (String name , int cursorWindowSize );
6362 private static native int nativeCreateFromParcel (Parcel parcel );
6463 private static native void nativeDispose (int windowPtr );
6564 private static native void nativeWriteToParcel (int windowPtr , Parcel parcel );
@@ -93,14 +92,10 @@ private static native void nativeCopyStringToBuffer(int windowPtr, int row, int
9392 * </p>
9493 *
9594 * @param name The name of the cursor window, or null if none.
96- * @param localWindow True if this window will be used in this process only,
97- * false if it might be sent to another processes.
98- *
99- * @hide
10095 */
101- public CursorWindow (String name , boolean localWindow ) {
96+ public CursorWindow (String name ) {
10297 mStartPos = 0 ;
103- mWindowPtr = nativeCreate (name , sCursorWindowSize , localWindow );
98+ mWindowPtr = nativeCreate (name , sCursorWindowSize );
10499 if (mWindowPtr == 0 ) {
105100 throw new CursorWindowAllocationException ("Cursor window allocation of " +
106101 (sCursorWindowSize / 1024 ) + " kb failed. " + printStats ());
@@ -117,10 +112,14 @@ public CursorWindow(String name, boolean localWindow) {
117112 * </p>
118113 *
119114 * @param localWindow True if this window will be used in this process only,
120- * false if it might be sent to another processes.
115+ * false if it might be sent to another processes. This argument is ignored.
116+ *
117+ * @deprecated There is no longer a distinction between local and remote
118+ * cursor windows. Use the {@link #CursorWindow(String)} constructor instead.
121119 */
120+ @ Deprecated
122121 public CursorWindow (boolean localWindow ) {
123- this (null , localWindow );
122+ this (( String ) null );
124123 }
125124
126125 private CursorWindow (Parcel source ) {
0 commit comments