Lines Matching refs:cursor
140 Cursor cursor = contentResolver.query(builder.build(), INSTANCE_PROJECTION, in queryEvents() local
143 int idIdx = cursor.getColumnIndex(CalendarContract.Instances._ID); in queryEvents()
144 int eventIdIdx = cursor.getColumnIndex(CalendarContract.Instances.EVENT_ID); in queryEvents()
145 int titleIdx = cursor.getColumnIndex(CalendarContract.Instances.TITLE); in queryEvents()
146 int beginIdx = cursor.getColumnIndex(CalendarContract.Instances.BEGIN); in queryEvents()
147 int endIdx = cursor.getColumnIndex(CalendarContract.Instances.END); in queryEvents()
148 int allDayIdx = cursor.getColumnIndex(CalendarContract.Instances.ALL_DAY); in queryEvents()
149 int descIdx = cursor.getColumnIndex(CalendarContract.Instances.DESCRIPTION); in queryEvents()
150 int ownerEmailIdx = cursor.getColumnIndex(CalendarContract.Instances.ORGANIZER); in queryEvents()
152 List<Event> events = new ArrayList<Event>(cursor.getCount()); in queryEvents()
153 while (cursor.moveToNext()) { in queryEvents()
155 event.id = cursor.getLong(idIdx); in queryEvents()
156 event.eventId = cursor.getLong(eventIdIdx); in queryEvents()
157 event.title = cursor.getString(titleIdx); in queryEvents()
158 event.begin = cursor.getLong(beginIdx); in queryEvents()
159 event.end = cursor.getLong(endIdx); in queryEvents()
160 event.allDay = cursor.getInt(allDayIdx) != 0; in queryEvents()
161 event.description = cursor.getString(descIdx); in queryEvents()
162 String ownerEmail = cursor.getString(ownerEmailIdx); in queryEvents()
177 cursor.close(); in queryEvents()