Home | History | Annotate | Download | only in timer

Lines Matching refs:Timers

322             // Individual timers are updated in button handlers.
328 // Individual timers are updated in button handlers.
409 if (bundle != null && bundle.containsKey(Timers.TIMESUP_MODE)) {
410 if (bundle.getBoolean(Timers.TIMESUP_MODE, false)) {
461 // switch to the timers view.
469 updateTimersState(t, Timers.START_TIMER);
512 if (mPrefs.getBoolean(Timers.FROM_NOTIFICATION, false)) {
516 long now = mPrefs.getLong(Timers.NOTIF_TIME, Utils.getTimeNow());
517 int timerId = mPrefs.getInt(Timers.NOTIF_ID, -1);
519 TimerObj t = Timers.findTimer(mAdapter.mTimers, timerId);
524 editor.putBoolean(Timers.FROM_NOTIFICATION, false);
527 if (mPrefs.getBoolean(Timers.FROM_ALERT, false)) {
531 editor.putBoolean(Timers.FROM_ALERT, false);
612 // To avoid race conditions where a timer was dismissed and it is still in the timers list
613 // and can be picked again, create a temporary list of timers to be removed first and
630 editor.putBoolean(Timers.FROM_ALERT, true);
740 updateTimersState(t, Timers.DELETE_TIMER);
769 updateTimersState(t, Timers.TIMER_UPDATE);
779 updateTimersState(t, Timers.TIMER_RESET);
780 updateTimersState(t, Timers.START_TIMER);
791 updateTimersState(t, Timers.TIMER_RESET);
808 updateTimersState(t, Timers.TIMER_STOP);
815 updateTimersState(t, Timers.START_TIMER);
823 updateTimersState(t, Timers.TIMER_DONE);
833 updateTimersState(t, Timers.START_TIMER);
933 if (!Timers.DELETE_TIMER.equals(action)) {
938 i.putExtra(Timers.TIMER_INTENT_EXTRA, t.mTimerId);
965 if ( (key.equals(Timers.FROM_NOTIFICATION) || key.equals(Timers.NOTIF_ID)
966 || key.equals(Timers.NOTIF_TIME)) &&
967 prefs.getBoolean(Timers.FROM_NOTIFICATION, false) ) {
970 // and allow the timers to be re-instated based on the updated stop time.
972 // that we only recalculate the timers if the change was specifically set by the
974 long now = prefs.getLong(Timers.NOTIF_TIME, Utils.getTimeNow());
975 int timerId = prefs.getInt(Timers.NOTIF_ID, -1);
979 TimerObj t = Timers.findTimer(mAdapter.mTimers, timerId);
985 editor.putBoolean(Timers.FROM_NOTIFICATION, false);
988 if (key.equals(Timers.FROM_ALERT) && prefs.getBoolean(Timers.FROM_ALERT, false)) {
992 editor.putBoolean(Timers.FROM_ALERT, false);