Lines Matching refs:Cursor
45 import android.database.Cursor;
308 private Cursor mEventCursor;
309 private Cursor mAttendeesCursor;
310 private Cursor mCalendarsCursor;
311 private Cursor mRemindersCursor;
456 protected void onQueryComplete(int token, Object cookie, Cursor cursor) {
457 // if the activity is finishing, then close the cursor and return
460 if (cursor != null) {
461 cursor.close();
468 mEventCursor = Utils.matrixCursorFromCursor(cursor);
502 mCalendarsCursor = Utils.matrixCursorFromCursor(cursor);
536 if (cursor.moveToFirst()) {
539 int colorKey = cursor.getInt(COLORS_INDEX_COLOR_KEY);
540 int rawColor = cursor.getInt(COLORS_INDEX_COLOR);
544 } while (cursor.moveToNext());
546 cursor.close();
569 mAttendeesCursor = Utils.matrixCursorFromCursor(cursor);
574 mRemindersCursor = Utils.matrixCursorFromCursor(cursor);
578 if (cursor.getCount() > 1) {
602 if (cursor.getCount() > 1 && !calendarName.equalsIgnoreCase(email) &&
611 cursor.close();
1053 * Initializes the event cursor, which is expected to point to the first
1055 * @return false if the cursor is empty, true otherwise
1909 public void initReminders(View view, Cursor cursor) {
1914 while (cursor.moveToNext()) {
1915 int minutes = cursor.getInt(EditEventHelper.REMINDERS_INDEX_MINUTES);
1916 int method = cursor.getInt(EditEventHelper.REMINDERS_INDEX_METHOD);