Home | History | Annotate | Download | only in deskclock

Lines Matching refs:alarm

34 import com.android.deskclock.provider.Alarm;
46 * Renders a tree-like view of the next alarm times over the period of a week.
47 * The timeline begins at the time of the next alarm, and ends a week after that time.
118 * Retrieves alarms from the content provider and generates an alarm node tree sorted by date.
124 List<Alarm> enabledAlarmList = Alarm.getAlarms(mResolver, Alarm.ENABLED + "=1");
127 for (Alarm alarm : enabledAlarmList) {
128 int hour = alarm.hour;
129 int minutes = alarm.minutes;
130 HashSet<Integer> repeatingDays = alarm.daysOfWeek.getSetDays();
132 // If the alarm is not repeating,
135 mCalendar.set(Calendar.HOUR_OF_DAY, alarm.hour);
136 mCalendar.set(Calendar.MINUTE, alarm.minutes);
140 // Add alarm if there is no other alarm with this date.
147 // If the alarm is repeating, iterate through each alarm date.
148 for (int day : alarm.daysOfWeek.getSetDays()) {
150 mCalendar.set(Calendar.HOUR_OF_DAY, alarm.hour);
151 mCalendar.set(Calendar.MINUTE, alarm.minutes);
155 // Add alarm if there is no other alarm with this date.
158 // If there is another alarm with this date, make it
174 // Returns whether this non-repeating alarm is firing today or tomorrow.
184 // Returns the days from now of the next instance of this alarm, given the repeated day.
250 mResolver.registerContentObserver(Alarm.CONTENT_URI, true, mAlarmObserver);
295 // Iterate through each of the alarm times chronologically.
306 // If this is the first alarm, set the node to the top of the timeline.
310 // If this is not the first alarm, set the distance based upon the time from the
311 // first alarm. If a node already exists at that time, use the minimum distance
320 Log.wtf("alarm date=" + node.date.getTime() + ", isRepeating=" + node.isRepeating
336 // Draw the alarm text. Alternate left and right of the timeline.