Searched refs:calendarsCursor (Results 1 – 1 of 1) sorted by relevance
1468 private int findSelectedCalendarPosition(Cursor calendarsCursor, long calendarId) { in findSelectedCalendarPosition() argument1469 if (calendarsCursor.getCount() <= 0) { in findSelectedCalendarPosition()1472 int calendarIdColumn = calendarsCursor.getColumnIndexOrThrow(Calendars._ID); in findSelectedCalendarPosition()1474 calendarsCursor.moveToPosition(-1); in findSelectedCalendarPosition()1475 while (calendarsCursor.moveToNext()) { in findSelectedCalendarPosition()1476 if (calendarsCursor.getLong(calendarIdColumn) == calendarId) { in findSelectedCalendarPosition()1486 private int findDefaultCalendarPosition(Cursor calendarsCursor) { in findDefaultCalendarPosition() argument1487 if (calendarsCursor.getCount() <= 0) { in findDefaultCalendarPosition()1494 int calendarsOwnerIndex = calendarsCursor.getColumnIndexOrThrow(Calendars.OWNER_ACCOUNT); in findDefaultCalendarPosition()1495 int accountNameIndex = calendarsCursor.getColumnIndexOrThrow(Calendars.ACCOUNT_NAME); in findDefaultCalendarPosition()[all …]