Home | History | Annotate | Download | only in phototable

Lines Matching refs:cursor

20 import android.database.Cursor;
23 * Common implementation for sources that load images from a cursor.
27 // An invalid cursor position to represent the uninitialized state.
29 // An invalid cursor position to represent the error state.
42 if (current.cursor == null || current.cursor.isClosed()) {
46 current.cursor.moveToPosition(current.position);
47 current.cursor.moveToNext();
49 if (!current.cursor.isAfterLast()) {
50 data = unpackImageData(current.cursor, null);
51 data.cursor = current.cursor;
52 data.position = current.cursor.getPosition();
59 if (current.cursor == null || current.cursor.isClosed()) {
63 current.cursor.moveToPosition(current.position);
64 current.cursor.moveToPrevious();
66 if (!current.cursor.isBeforeFirst()) {
67 data = unpackImageData(current.cursor, null);
68 data.cursor = current.cursor;
69 data.position = current.cursor.getPosition();
76 if (current.cursor != null && !current.cursor.isClosed()) {
77 current.cursor.close();
83 protected abstract ImageData unpackImageData(Cursor cursor, ImageData data);