Lines Matching refs:end
130 long end = getTime(time, mSchedule.endHour, mSchedule.endMinute);
131 if (end <= start) {
132 end = addDays(end, 1);
134 return isInSchedule(-1, time, start, end) || isInSchedule(0, time, start, end);
145 long end = getTime(alarm, mSchedule.endHour, mSchedule.endMinute);
146 if (end <= start) {
147 end = addDays(end, 1);
149 return (isInSchedule(-1, alarm, start, end)
150 && isInSchedule(-1, now, start, end))
151 || (isInSchedule(0, alarm, start, end)
152 && isInSchedule(0, now, start, end));
169 private boolean isInSchedule(int daysOffset, long time, long start, long end) {
173 end = addDays(end, daysOffset);
174 return mDays.contains(day) && time >= start && time < end;