Home | History | Annotate | Download | only in alarms

Lines Matching defs:nextAlarm

168         final AlarmInstance nextAlarm = getNextFiringAlarm(context);
171 updateNextAlarmInSystemSettings(context, nextAlarm);
173 updateNextAlarmInAlarmManager(context, nextAlarm);
188 AlarmInstance nextAlarm = null;
190 if (nextAlarm == null || instance.getAlarmTime().before(nextAlarm.getAlarmTime())) {
191 nextAlarm = instance;
194 return nextAlarm;
202 private static void updateNextAlarmInSystemSettings(Context context, AlarmInstance nextAlarm) {
205 if (nextAlarm != null) {
206 time = AlarmUtils.getFormattedTime(context, nextAlarm.getAlarmTime());
227 private static void updateNextAlarmInAlarmManager(Context context, AlarmInstance nextAlarm) {
234 final int flags = nextAlarm == null ? PendingIntent.FLAG_NO_CREATE : 0;
238 if (nextAlarm != null) {
239 LogUtils.i("Setting upcoming AlarmClockInfo for alarm: " + nextAlarm.mId);
240 long alarmTime = nextAlarm.getAlarmTime().getTimeInMillis();
243 PendingIntent viewIntent = PendingIntent.getActivity(context, nextAlarm.hashCode(),
244 AlarmNotifications.createViewAlarmIntent(context, nextAlarm),