Lines Matching refs:cursor
32 * querying cursors, building on {@link AsyncTaskLoader} to perform the cursor
65 Cursor cursor = getContext().getContentResolver().query(mUri, mProjection, mSelection,
67 if (cursor != null) {
69 // Ensure the cursor window is filled.
70 cursor.getCount();
71 cursor.registerContentObserver(mObserver);
73 cursor.close();
77 return cursor;
98 public void deliverResult(Cursor cursor) {
101 if (cursor != null) {
102 cursor.close();
107 mCursor = cursor;
110 super.deliverResult(cursor);
113 if (oldCursor != null && oldCursor != cursor && !oldCursor.isClosed()) {
172 public void onCanceled(Cursor cursor) {
173 if (cursor != null && !cursor.isClosed()) {
174 cursor.close();