Home
last modified time | relevance | path

Searched refs:instancesCursor (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlarmScheduler.java112 Cursor instancesCursor = null; in scheduleNextAlarm() local
114 instancesCursor = queryUpcomingEvents(context, context.getContentResolver(), in scheduleNextAlarm()
116 if (instancesCursor != null) { in scheduleNextAlarm()
117 queryNextReminderAndSchedule(instancesCursor, context, in scheduleNextAlarm()
121 if (instancesCursor != null) { in scheduleNextAlarm()
122 instancesCursor.close(); in scheduleNextAlarm()
176 private static void queryNextReminderAndSchedule(Cursor instancesCursor, Context context, in queryNextReminderAndSchedule() argument
180 int eventCount = instancesCursor.getCount(); in queryNextReminderAndSchedule()
194 instancesCursor.moveToPosition(-1); in queryNextReminderAndSchedule()
195 while (!instancesCursor.isAfterLast()) { in queryNextReminderAndSchedule()
[all …]
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
DAlarmSchedulerTest.java83 MatrixCursor instancesCursor = new MatrixCursor(AlarmScheduler.INSTANCES_PROJECTION); in getInstancesCursor() local
93 instancesCursor.addRow(ca); in getInstancesCursor()
97 return instancesCursor; in getInstancesCursor()