Home
last modified time | relevance | path

Searched refs:WeeklyTime (Results 1 – 9 of 9) sorted by relevance

/system/update_engine/update_manager/
Dweekly_time.h27 class WeeklyTime {
30 WeeklyTime(const int& day_of_week, const base::TimeDelta& time) in WeeklyTime() function
34 static WeeklyTime FromTime(const base::Time& time);
36 bool operator==(const WeeklyTime& other) const {
40 bool operator!=(const WeeklyTime& other) const { return !(*this == other); }
45 base::TimeDelta GetDurationTo(const WeeklyTime& other) const;
70 WeeklyTimeInterval(const WeeklyTime& start, const WeeklyTime& end) in WeeklyTimeInterval()
74 bool InRange(const WeeklyTime& time) const;
76 WeeklyTime start() const { return start_; } in start()
78 WeeklyTime end() const { return end_; } in end()
[all …]
Dweekly_time_unittest.cc57 WeeklyTime start = WeeklyTime(start_day_of_week(), start_time()); in TEST_P()
58 WeeklyTime end = WeeklyTime(end_day_of_week(), end_time()); in TEST_P()
105 WeeklyTime /* expected result */>> {
110 WeeklyTime result() { return std::get<3>(GetParam()); } in result()
114 WeeklyTime test_time = WeeklyTime(day_of_week(), time()); in TEST_P()
126 WeeklyTime(kTuesday,
135 WeeklyTime(kFriday, TimeDelta::FromHours(1)))));
143 WeeklyTime(kWednesday, TimeDelta::FromHours(20)))));
160 WeeklyTime test = in TEST_P()
161 WeeklyTime(day_of_week(), TimeDelta::FromMinutes(minutes())); in TEST_P()
[all …]
Dweekly_time.cc32 TimeDelta WeeklyTime::GetDurationTo(const WeeklyTime& other) const { in GetDurationTo()
40 TimeDelta WeeklyTime::TimeFromStartOfWeek() const { in TimeFromStartOfWeek()
44 void WeeklyTime::AddTime(const TimeDelta& offset) { in AddTime()
52 WeeklyTime WeeklyTime::FromTime(const Time& time) { in FromTime()
55 return WeeklyTime(exploded.day_of_week, in FromTime()
60 bool WeeklyTimeInterval::InRange(const WeeklyTime& time) const { in InRange()
Dupdate_time_restrictions_policy_impl_unittest.cc39 WeeklyTimeInterval(WeeklyTime(1, kHour * 10 + kMinute * 15),
40 WeeklyTime(1, kHour * 15 + kMinute * 30)),
42 WeeklyTimeInterval(WeeklyTime(3, kHour * 20 + kMinute * 30),
43 WeeklyTime(4, kHour * 8 + kMinute * 40)),
Dboxed_value_unittest.cc275 WeeklyTime(2, TimeDelta::FromMinutes(100)), in TEST()
276 WeeklyTime(4, TimeDelta::FromMinutes(200)))) in TEST()
280 WeeklyTime(1, TimeDelta::FromMinutes(10)), in TEST()
281 WeeklyTime(1, TimeDelta::FromMinutes(20)))) in TEST()
287 intervals.emplace_back(WeeklyTime(5, TimeDelta::FromMinutes(10)), in TEST()
288 WeeklyTime(1, TimeDelta::FromMinutes(30))); in TEST()
293 intervals.emplace_back(WeeklyTime(1, TimeDelta::FromMinutes(5)), in TEST()
294 WeeklyTime(6, TimeDelta::FromMinutes(1000))); in TEST()
Dupdate_time_restrictions_policy_impl.cc55 WeeklyTime now = WeeklyTime::FromTime(*curr_date); in UpdateCanBeApplied()
Dreal_device_policy_provider_unittest.cc352 WeeklyTimeInterval(WeeklyTime(5, TimeDelta::FromHours(5)), in TEST_F()
353 WeeklyTime(6, TimeDelta::FromHours(8))), in TEST_F()
354 WeeklyTimeInterval(WeeklyTime(1, TimeDelta::FromHours(1)), in TEST_F()
355 WeeklyTime(3, TimeDelta::FromHours(10)))}, in TEST_F()
Dreal_device_policy_provider.cc195 WeeklyTime(interval.start_day_of_week, interval.start_time), in ConvertDisallowedTimeIntervals()
196 WeeklyTime(interval.end_day_of_week, interval.end_time)); in ConvertDisallowedTimeIntervals()
Dchromeos_policy_unittest.cc1640 WeeklyTime::FromTime(curr_time), in TEST_F()
1641 WeeklyTime::FromTime(curr_time + TimeDelta::FromMinutes(1)))}, in TEST_F()
1650 WeeklyTime::FromTime(curr_time), in TEST_F()
1651 WeeklyTime::FromTime(curr_time + TimeDelta::FromMinutes(1)))}, in TEST_F()
1660 WeeklyTime::FromTime(curr_time - TimeDelta::FromHours(3)), in TEST_F()
1661 WeeklyTime::FromTime(curr_time))}, in TEST_F()
1670 WeeklyTime::FromTime(curr_time), in TEST_F()
1671 WeeklyTime::FromTime(curr_time + TimeDelta::FromMinutes(1)))}, in TEST_F()