Home | History | Annotate | Download | only in notification

Lines Matching defs:downtime

469         final DowntimeInfo downtime = new DowntimeInfo();
470 downtime.startHour = sleepStartHour;
471 downtime.startMinute = sleepStartMinute;
472 downtime.endHour = sleepEndHour;
473 downtime.endMinute = sleepEndMinute;
474 downtime.mode = sleepMode;
475 downtime.none = sleepNone;
476 return downtime;
541 // Built-in downtime conditions
542 // e.g. condition://android/downtime?start=10.00&end=7.00&mode=days%3A5%2C6&none=false
543 public static final String DOWNTIME_PATH = "downtime";
545 public static Uri toDowntimeConditionId(DowntimeInfo downtime) {
549 .appendQueryParameter("start", downtime.startHour + "." + downtime.startMinute)
550 .appendQueryParameter("end", downtime.endHour + "." + downtime.endMinute)
551 .appendQueryParameter("mode", downtime.mode)
552 .appendQueryParameter("none", Boolean.toString(downtime.none))
565 final DowntimeInfo downtime = new DowntimeInfo();
566 downtime.startHour = start[0];
567 downtime.startMinute = start[1];
568 downtime.endHour = end[0];
569 downtime.endMinute = end[1];
570 downtime.mode = conditionId.getQueryParameter("mode");
571 downtime.none = Boolean.toString(true).equals(conditionId.getQueryParameter("none"));
572 return downtime;