Loading api/current.txt +2 −1 Original line number Diff line number Diff line Loading @@ -6851,7 +6851,8 @@ package android.database { } public class CursorWindow extends android.database.sqlite.SQLiteClosable implements android.os.Parcelable { ctor public CursorWindow(boolean); ctor public CursorWindow(java.lang.String); ctor public deprecated CursorWindow(boolean); method public boolean allocRow(); method public void clear(); method public void close(); core/java/android/database/AbstractWindowedCursor.java +3 −4 Original line number Diff line number Diff line Loading @@ -188,15 +188,14 @@ public abstract class AbstractWindowedCursor extends AbstractCursor { /** * If there is a window, clear it. * Otherwise, creates a local window. * Otherwise, creates a new window. * * @param name The window name. * @hide */ protected void clearOrCreateLocalWindow(String name) { protected void clearOrCreateWindow(String name) { if (mWindow == null) { // If there isn't a window set already it will only be accessed locally mWindow = new CursorWindow(name, true /* the window is local only */); mWindow = new CursorWindow(name); } else { mWindow.clear(); } Loading core/java/android/database/CursorToBulkCursorAdaptor.java +2 −2 Original line number Diff line number Diff line Loading @@ -144,7 +144,7 @@ public final class CursorToBulkCursorAdaptor extends BulkCursorNative AbstractWindowedCursor windowedCursor = (AbstractWindowedCursor)mCursor; window = windowedCursor.getWindow(); if (window == null) { window = new CursorWindow(mProviderName, false /*localOnly*/); window = new CursorWindow(mProviderName); windowedCursor.setWindow(window); } Loading @@ -152,7 +152,7 @@ public final class CursorToBulkCursorAdaptor extends BulkCursorNative } else { window = mWindowForNonWindowedCursor; if (window == null) { window = new CursorWindow(mProviderName, false /*localOnly*/); window = new CursorWindow(mProviderName); mWindowForNonWindowedCursor = window; } Loading core/java/android/database/CursorWindow.java +11 −12 Original line number Diff line number Diff line Loading @@ -31,8 +31,8 @@ import android.util.SparseIntArray; /** * A buffer containing multiple cursor rows. * <p> * A {@link CursorWindow} is read-write when created and used locally. When sent * to a remote process (by writing it to a {@link Parcel}), the remote process * A {@link CursorWindow} is read-write when initially created and used locally. * When sent to a remote process (by writing it to a {@link Parcel}), the remote process * receives a read-only view of the cursor window. Typically the cursor window * will be allocated by the producer, filled with data, and then sent to the * consumer for reading. Loading @@ -58,8 +58,7 @@ public class CursorWindow extends SQLiteClosable implements Parcelable { private final CloseGuard mCloseGuard = CloseGuard.get(); private static native int nativeCreate(String name, int cursorWindowSize, boolean localOnly); private static native int nativeCreate(String name, int cursorWindowSize); private static native int nativeCreateFromParcel(Parcel parcel); private static native void nativeDispose(int windowPtr); private static native void nativeWriteToParcel(int windowPtr, Parcel parcel); Loading Loading @@ -93,14 +92,10 @@ public class CursorWindow extends SQLiteClosable implements Parcelable { * </p> * * @param name The name of the cursor window, or null if none. * @param localWindow True if this window will be used in this process only, * false if it might be sent to another processes. * * @hide */ public CursorWindow(String name, boolean localWindow) { public CursorWindow(String name) { mStartPos = 0; mWindowPtr = nativeCreate(name, sCursorWindowSize, localWindow); mWindowPtr = nativeCreate(name, sCursorWindowSize); if (mWindowPtr == 0) { throw new CursorWindowAllocationException("Cursor window allocation of " + (sCursorWindowSize / 1024) + " kb failed. " + printStats()); Loading @@ -117,10 +112,14 @@ public class CursorWindow extends SQLiteClosable implements Parcelable { * </p> * * @param localWindow True if this window will be used in this process only, * false if it might be sent to another processes. * false if it might be sent to another processes. This argument is ignored. * * @deprecated There is no longer a distinction between local and remote * cursor windows. Use the {@link #CursorWindow(String)} constructor instead. */ @Deprecated public CursorWindow(boolean localWindow) { this(null, localWindow); this((String)null); } private CursorWindow(Parcel source) { Loading core/java/android/database/sqlite/SQLiteCursor.java +1 −1 Original line number Diff line number Diff line Loading @@ -155,7 +155,7 @@ public class SQLiteCursor extends AbstractWindowedCursor { } private void fillWindow(int startPos) { clearOrCreateLocalWindow(getDatabase().getPath()); clearOrCreateWindow(getDatabase().getPath()); mWindow.setStartPosition(startPos); int count = getQuery().fillWindow(mWindow); if (startPos == 0) { // fillWindow returns count(*) only for startPos = 0 Loading Loading
api/current.txt +2 −1 Original line number Diff line number Diff line Loading @@ -6851,7 +6851,8 @@ package android.database { } public class CursorWindow extends android.database.sqlite.SQLiteClosable implements android.os.Parcelable { ctor public CursorWindow(boolean); ctor public CursorWindow(java.lang.String); ctor public deprecated CursorWindow(boolean); method public boolean allocRow(); method public void clear(); method public void close();
core/java/android/database/AbstractWindowedCursor.java +3 −4 Original line number Diff line number Diff line Loading @@ -188,15 +188,14 @@ public abstract class AbstractWindowedCursor extends AbstractCursor { /** * If there is a window, clear it. * Otherwise, creates a local window. * Otherwise, creates a new window. * * @param name The window name. * @hide */ protected void clearOrCreateLocalWindow(String name) { protected void clearOrCreateWindow(String name) { if (mWindow == null) { // If there isn't a window set already it will only be accessed locally mWindow = new CursorWindow(name, true /* the window is local only */); mWindow = new CursorWindow(name); } else { mWindow.clear(); } Loading
core/java/android/database/CursorToBulkCursorAdaptor.java +2 −2 Original line number Diff line number Diff line Loading @@ -144,7 +144,7 @@ public final class CursorToBulkCursorAdaptor extends BulkCursorNative AbstractWindowedCursor windowedCursor = (AbstractWindowedCursor)mCursor; window = windowedCursor.getWindow(); if (window == null) { window = new CursorWindow(mProviderName, false /*localOnly*/); window = new CursorWindow(mProviderName); windowedCursor.setWindow(window); } Loading @@ -152,7 +152,7 @@ public final class CursorToBulkCursorAdaptor extends BulkCursorNative } else { window = mWindowForNonWindowedCursor; if (window == null) { window = new CursorWindow(mProviderName, false /*localOnly*/); window = new CursorWindow(mProviderName); mWindowForNonWindowedCursor = window; } Loading
core/java/android/database/CursorWindow.java +11 −12 Original line number Diff line number Diff line Loading @@ -31,8 +31,8 @@ import android.util.SparseIntArray; /** * A buffer containing multiple cursor rows. * <p> * A {@link CursorWindow} is read-write when created and used locally. When sent * to a remote process (by writing it to a {@link Parcel}), the remote process * A {@link CursorWindow} is read-write when initially created and used locally. * When sent to a remote process (by writing it to a {@link Parcel}), the remote process * receives a read-only view of the cursor window. Typically the cursor window * will be allocated by the producer, filled with data, and then sent to the * consumer for reading. Loading @@ -58,8 +58,7 @@ public class CursorWindow extends SQLiteClosable implements Parcelable { private final CloseGuard mCloseGuard = CloseGuard.get(); private static native int nativeCreate(String name, int cursorWindowSize, boolean localOnly); private static native int nativeCreate(String name, int cursorWindowSize); private static native int nativeCreateFromParcel(Parcel parcel); private static native void nativeDispose(int windowPtr); private static native void nativeWriteToParcel(int windowPtr, Parcel parcel); Loading Loading @@ -93,14 +92,10 @@ public class CursorWindow extends SQLiteClosable implements Parcelable { * </p> * * @param name The name of the cursor window, or null if none. * @param localWindow True if this window will be used in this process only, * false if it might be sent to another processes. * * @hide */ public CursorWindow(String name, boolean localWindow) { public CursorWindow(String name) { mStartPos = 0; mWindowPtr = nativeCreate(name, sCursorWindowSize, localWindow); mWindowPtr = nativeCreate(name, sCursorWindowSize); if (mWindowPtr == 0) { throw new CursorWindowAllocationException("Cursor window allocation of " + (sCursorWindowSize / 1024) + " kb failed. " + printStats()); Loading @@ -117,10 +112,14 @@ public class CursorWindow extends SQLiteClosable implements Parcelable { * </p> * * @param localWindow True if this window will be used in this process only, * false if it might be sent to another processes. * false if it might be sent to another processes. This argument is ignored. * * @deprecated There is no longer a distinction between local and remote * cursor windows. Use the {@link #CursorWindow(String)} constructor instead. */ @Deprecated public CursorWindow(boolean localWindow) { this(null, localWindow); this((String)null); } private CursorWindow(Parcel source) { Loading
core/java/android/database/sqlite/SQLiteCursor.java +1 −1 Original line number Diff line number Diff line Loading @@ -155,7 +155,7 @@ public class SQLiteCursor extends AbstractWindowedCursor { } private void fillWindow(int startPos) { clearOrCreateLocalWindow(getDatabase().getPath()); clearOrCreateWindow(getDatabase().getPath()); mWindow.setStartPosition(startPos); int count = getQuery().fillWindow(mWindow); if (startPos == 0) { // fillWindow returns count(*) only for startPos = 0 Loading