Lines Matching refs:Cursor
19 import android.database.Cursor;
24 * Marks all contents of this cursor as seen.
35 * Invokes {@link ConversationCursorOperationListener#markContentsSeen(Cursor)} on the
36 * specified {@link Cursor}, recursively calls {@link #markContentsSeen(Cursor)} on a
37 * wrapped cursor, or returns.
39 public static void markContentsSeen(final Cursor cursor) {
40 if (cursor == null) {
44 if (cursor instanceof ConversationCursorOperationListener) {
45 ((ConversationCursorOperationListener) cursor).markContentsSeen();
46 } else if (cursor instanceof CursorWrapper) {
47 markContentsSeen(((CursorWrapper) cursor).getWrappedCursor());
52 * Invokes {@link ConversationCursorOperationListener#emptyFolder(Cursor)} on the
53 * specified {@link Cursor}, recursively calls {@link #emptyFolder(Cursor)} on a
54 * wrapped cursor, or returns.
56 public static void emptyFolder(final Cursor cursor) {
57 if (cursor == null) {
61 if (cursor instanceof ConversationCursorOperationListener) {
62 ((ConversationCursorOperationListener) cursor).emptyFolder();
63 } else if (cursor instanceof CursorWrapper) {
64 emptyFolder(((CursorWrapper) cursor).getWrappedCursor());