Lines Matching refs:startHour
195 for (int32_t startHour = 0; startHour <= 24; ++startHour) { in setDayPeriodForHoursFromCutoffs() local
197 if (cutoffs[startHour] & (1 << CUTOFF_TYPE_AT)) { in setDayPeriodForHoursFromCutoffs()
198 if (startHour == 0 && period == DayPeriodRules::DAYPERIOD_MIDNIGHT) { in setDayPeriodForHoursFromCutoffs()
200 } else if (startHour == 12 && period == DayPeriodRules::DAYPERIOD_NOON) { in setDayPeriodForHoursFromCutoffs()
209 if (cutoffs[startHour] & (1 << CUTOFF_TYPE_FROM) || in setDayPeriodForHoursFromCutoffs()
210 cutoffs[startHour] & (1 << CUTOFF_TYPE_AFTER)) { in setDayPeriodForHoursFromCutoffs()
211 for (int32_t hour = startHour + 1;; ++hour) { in setDayPeriodForHoursFromCutoffs()
212 if (hour == startHour) { in setDayPeriodForHoursFromCutoffs()
219 rule.add(startHour, hour, period); in setDayPeriodForHoursFromCutoffs()
394 int32_t startHour = getStartHourForDayPeriod(dayPeriod, errorCode); in getMidPointForDayPeriod() local
399 double midPoint = (startHour + endHour) / 2.0; in getMidPointForDayPeriod()
401 if (startHour > endHour) { in getMidPointForDayPeriod()
498 void DayPeriodRules::add(int32_t startHour, int32_t limitHour, DayPeriod period) { in add() argument
499 for (int32_t i = startHour; i != limitHour; ++i) { in add()