Lines Matching refs:cEvents
230 Cursor cEvents = null; in loadEvents() local
261 cEvents = instancesQuery(context.getContentResolver(), EVENT_PROJECTION, startDay, in loadEvents()
272 buildEventsFromCursor(events, cEvents, context, startDay, endDay); in loadEvents()
276 if (cEvents != null) { in loadEvents()
277 cEvents.close(); in loadEvents()
342 ArrayList<Event> events, Cursor cEvents, Context context, int startDay, int endDay) { in buildEventsFromCursor() argument
343 if (cEvents == null || events == null) { in buildEventsFromCursor()
348 int count = cEvents.getCount(); in buildEventsFromCursor()
359 cEvents.moveToPosition(-1); in buildEventsFromCursor()
360 while (cEvents.moveToNext()) { in buildEventsFromCursor()
361 Event e = generateEventFromCursor(cEvents); in buildEventsFromCursor()
373 private static Event generateEventFromCursor(Cursor cEvents) { in generateEventFromCursor() argument
376 e.id = cEvents.getLong(PROJECTION_EVENT_ID_INDEX); in generateEventFromCursor()
377 e.title = cEvents.getString(PROJECTION_TITLE_INDEX); in generateEventFromCursor()
378 e.location = cEvents.getString(PROJECTION_LOCATION_INDEX); in generateEventFromCursor()
379 e.allDay = cEvents.getInt(PROJECTION_ALL_DAY_INDEX) != 0; in generateEventFromCursor()
380 e.organizer = cEvents.getString(PROJECTION_ORGANIZER_INDEX); in generateEventFromCursor()
381 e.guestsCanModify = cEvents.getInt(PROJECTION_GUESTS_CAN_INVITE_OTHERS_INDEX) != 0; in generateEventFromCursor()
387 if (!cEvents.isNull(PROJECTION_COLOR_INDEX)) { in generateEventFromCursor()
389 e.color = Utils.getDisplayColorFromColor(cEvents.getInt(PROJECTION_COLOR_INDEX)); in generateEventFromCursor()
394 long eStart = cEvents.getLong(PROJECTION_BEGIN_INDEX); in generateEventFromCursor()
395 long eEnd = cEvents.getLong(PROJECTION_END_INDEX); in generateEventFromCursor()
398 e.startTime = cEvents.getInt(PROJECTION_START_MINUTE_INDEX); in generateEventFromCursor()
399 e.startDay = cEvents.getInt(PROJECTION_START_DAY_INDEX); in generateEventFromCursor()
402 e.endTime = cEvents.getInt(PROJECTION_END_MINUTE_INDEX); in generateEventFromCursor()
403 e.endDay = cEvents.getInt(PROJECTION_END_DAY_INDEX); in generateEventFromCursor()
405 e.hasAlarm = cEvents.getInt(PROJECTION_HAS_ALARM_INDEX) != 0; in generateEventFromCursor()
408 String rrule = cEvents.getString(PROJECTION_RRULE_INDEX); in generateEventFromCursor()
409 String rdate = cEvents.getString(PROJECTION_RDATE_INDEX); in generateEventFromCursor()
416 e.selfAttendeeStatus = cEvents.getInt(PROJECTION_SELF_ATTENDEE_STATUS_INDEX); in generateEventFromCursor()