Searched refs:WeeklyTime (Results 1 – 9 of 9) sorted by relevance
/system/update_engine/update_manager/ |
D | weekly_time.h | 27 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 …]
|
D | weekly_time_unittest.cc | 57 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 …]
|
D | weekly_time.cc | 32 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()
|
D | update_time_restrictions_policy_impl_unittest.cc | 39 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)),
|
D | boxed_value_unittest.cc | 265 WeeklyTime(2, TimeDelta::FromMinutes(100)), in TEST() 266 WeeklyTime(4, TimeDelta::FromMinutes(200)))) in TEST() 270 WeeklyTime(1, TimeDelta::FromMinutes(10)), in TEST() 271 WeeklyTime(1, TimeDelta::FromMinutes(20)))) in TEST() 277 intervals.emplace_back(WeeklyTime(5, TimeDelta::FromMinutes(10)), in TEST() 278 WeeklyTime(1, TimeDelta::FromMinutes(30))); in TEST() 283 intervals.emplace_back(WeeklyTime(1, TimeDelta::FromMinutes(5)), in TEST() 284 WeeklyTime(6, TimeDelta::FromMinutes(1000))); in TEST()
|
D | update_time_restrictions_policy_impl.cc | 55 WeeklyTime now = WeeklyTime::FromTime(*curr_date); in UpdateCanBeApplied()
|
D | real_device_policy_provider_unittest.cc | 372 WeeklyTimeInterval(WeeklyTime(5, TimeDelta::FromHours(5)), in TEST_F() 373 WeeklyTime(6, TimeDelta::FromHours(8))), in TEST_F() 374 WeeklyTimeInterval(WeeklyTime(1, TimeDelta::FromHours(1)), in TEST_F() 375 WeeklyTime(3, TimeDelta::FromHours(10)))}, in TEST_F()
|
D | real_device_policy_provider.cc | 196 WeeklyTime(interval.start_day_of_week, interval.start_time), in ConvertDisallowedTimeIntervals() 197 WeeklyTime(interval.end_day_of_week, interval.end_time)); in ConvertDisallowedTimeIntervals()
|
D | chromeos_policy_unittest.cc | 1593 WeeklyTime::FromTime(curr_time), in TEST_F() 1594 WeeklyTime::FromTime(curr_time + TimeDelta::FromMinutes(1)))}, in TEST_F() 1603 WeeklyTime::FromTime(curr_time), in TEST_F() 1604 WeeklyTime::FromTime(curr_time + TimeDelta::FromMinutes(1)))}, in TEST_F() 1613 WeeklyTime::FromTime(curr_time - TimeDelta::FromHours(3)), in TEST_F() 1614 WeeklyTime::FromTime(curr_time))}, in TEST_F() 1623 WeeklyTime::FromTime(curr_time), in TEST_F() 1624 WeeklyTime::FromTime(curr_time + TimeDelta::FromMinutes(1)))}, in TEST_F()
|