Home | History | Annotate | Download | only in data

Lines Matching defs:expired

61 import static com.android.deskclock.data.Timer.State.EXPIRED;
96 * The ids of expired timers for which the ringer is ringing. Not all expired timers have their
97 * ids in this collection. If a timer was already expired when the app was started its id will
111 /** A mutable copy of the expired timers. */
117 * from killing this application while expired timers are actively firing.
160 * @return all expired timers in their expiration order
181 * @return the timer that last expired and is still expired now; {@code null} if no timers are
182 * expired
219 * @param service used to start foreground notifications related to expired timers
220 * @param timer the timer to be expired
224 // If this is the first expired timer, retain the service that will be used to start
228 // If this is not the first expired timer, the service should match the one given when
229 // the first timer expired.
245 // If the timer started or stopped being expired, update the heads-up notification.
267 * If the given {@code timer} is expired and marked for deletion after use then this method
280 // If the timer stopped being expired, update the heads-up notification.
303 * Reset all expired timers.
376 // Special case: default ringtone has a title of "Timer Expired".
436 // Clear the cache of expired timers if the timer changed to/from expired.
476 // Clear the cache of expired timers if a new expired timer was added.
497 * If the given {@code timer} is expired and marked for deletion after use then this method
572 if (afterState == EXPIRED && mRingingIds.add(after.getId()) && mRingingIds.size() == 1) {
577 // If the expired timer was the last to reset, stop ringing.
578 if (beforeState == EXPIRED && mRingingIds.remove(before.getId()) && mRingingIds.isEmpty()) {
738 * Updates the heads-up notification controlling expired timers. This heads-up notification is
747 final List<Timer> expired = getExpiredTimers();
749 // If no expired timers exist, stop the service (which cancels the foreground notification).
750 if (expired.isEmpty()) {
761 if (expired.size() > 1) {
763 contentText = mContext.getString(R.string.timer_multi_times_up, expired.size());
767 final Timer timer = expired.get(0);
810 // Add a second action if only a single timer is expired.
811 if (expired.size() == 1) {