/system/update_engine/update_manager/ |
D | weekly_time_unittest.cc | 23 using base::TimeDelta; 44 TimeDelta /* start_time */, 46 TimeDelta /* end_time */, 47 TimeDelta /* expected result */>> { 50 TimeDelta start_time() { return std::get<1>(GetParam()); } in start_time() 52 TimeDelta end_time() { return std::get<3>(GetParam()); } in end_time() 53 TimeDelta result() { return std::get<4>(GetParam()); } in result() 67 TimeDelta::FromMinutes(30), 69 TimeDelta::FromMinutes(30), 70 TimeDelta::FromDays(2)))); [all …]
|
D | weekly_time.cc | 23 using base::TimeDelta; 32 TimeDelta WeeklyTime::GetDurationTo(const WeeklyTime& other) const { in GetDurationTo() 35 (TimeDelta::FromDays(kDaysInWeek) - TimeFromStartOfWeek()); in GetDurationTo() 40 TimeDelta WeeklyTime::TimeFromStartOfWeek() const { in TimeFromStartOfWeek() 41 return TimeDelta::FromDays(day_of_week_) + time_; in TimeFromStartOfWeek() 44 void WeeklyTime::AddTime(const TimeDelta& offset) { in AddTime() 47 time_ -= TimeDelta::FromDays(days_over); in AddTime() 56 TimeDelta::FromHours(exploded.hour) + in FromTime() 57 TimeDelta::FromMinutes(exploded.minute)); in FromTime()
|
D | chromeos_policy_unittest.cc | 27 using base::TimeDelta; 81 new TimeDelta()); in SetUpDefaultDevicePolicy() 109 curr_time += TimeDelta::FromSeconds(1); in SetUpdateCheckAllowed() 111 curr_time -= TimeDelta::FromSeconds(1); in SetUpdateCheckAllowed() 183 fake_clock_->GetWallclockTime() + TimeDelta::FromMinutes(1234); in TEST_F() 198 fake_clock_->SetWallclockTime(next_update_check - TimeDelta::FromSeconds(1)); in TEST_F() 206 fake_clock_->SetWallclockTime(next_update_check + TimeDelta::FromSeconds(1)); in TEST_F() 219 fake_clock_->GetWallclockTime() + TimeDelta::FromMinutes(1234); in TEST_F() 231 fake_clock_->SetWallclockTime(next_update_check + TimeDelta::FromSeconds(1)); in TEST_F() 243 fake_clock_->SetWallclockTime(next_update_check + TimeDelta::FromSeconds(1)); in TEST_F() [all …]
|
D | next_update_check_policy_impl_unittest.cc | 24 using base::TimeDelta; 55 new Time(fake_clock_->GetWallclockTime() - TimeDelta::FromMinutes(10))); in TEST_F() 63 TimeDelta::FromSeconds( in TEST_F() 79 TimeDelta::FromSeconds( in TEST_F() 84 TimeDelta::FromSeconds( in TEST_F() 107 TimeDelta::FromSeconds(expected_interval - expected_interval / 2), in TEST_F() 111 TimeDelta::FromSeconds(expected_interval + expected_interval / 2), in TEST_F() 133 TimeDelta::FromSeconds(kInterval - kInterval / 2), in TEST_F() 136 TimeDelta::FromSeconds(kInterval + kInterval / 2), in TEST_F() 152 TimeDelta::FromSeconds( in TEST_F() [all …]
|
D | evaluation_context_unittest.cc | 38 using base::TimeDelta; 129 TimeDelta default_timeout_ = TimeDelta::FromSeconds(5); 143 TimeDelta::FromSeconds(1)}; 265 TimeDelta::FromSeconds(10), in TEST_F() 282 TimeDelta::FromSeconds(10), in TEST_F() 326 TimeDelta::FromSeconds(10), in TEST_F() 346 TimeDelta::FromSeconds(1)}; in TEST_F() 357 TimeDelta::FromSeconds(10), in TEST_F() 372 TimeDelta::FromSeconds(1)); in TEST_F() 374 TimeDelta timeout = default_timeout_ - TimeDelta::FromSeconds(1); in TEST_F() [all …]
|
D | real_time_provider.cc | 26 using base::TimeDelta; 38 : Variable<Time>(name, TimeDelta::FromHours(1)) {} in CurrDateVariable() 41 virtual const Time* GetValue(TimeDelta /* timeout */, string* /* errmsg */) { in GetValue() argument 61 : Variable<int>(name, TimeDelta::FromMinutes(5)) {} in CurrHourVariable() 64 virtual const int* GetValue(TimeDelta /* timeout */, string* /* errmsg */) { in GetValue() argument 77 : Variable<int>(name, TimeDelta::FromSeconds(15)) {} in CurrMinuteVariable() 80 virtual const int* GetValue(TimeDelta /* timeout */, string* /* errmsg */) { in GetValue() argument
|
D | evaluation_context.h | 66 base::TimeDelta evaluation_timeout, 67 base::TimeDelta expiration_timeout, 69 explicit EvaluationContext(base::TimeDelta evaluation_timeout) in EvaluationContext() 72 base::TimeDelta::Max(), in EvaluationContext() 142 base::TimeDelta RemainingTime(base::Time monotonic_deadline) const; 146 base::Time MonotonicDeadline(base::TimeDelta timeout); 188 const base::TimeDelta evaluation_timeout_; 195 const base::TimeDelta expiration_timeout_;
|
D | weekly_time.h | 30 WeeklyTime(const int& day_of_week, const base::TimeDelta& time) in WeeklyTime() 45 base::TimeDelta GetDurationTo(const WeeklyTime& other) const; 48 base::TimeDelta TimeFromStartOfWeek() const; 52 void AddTime(const base::TimeDelta& offset); 56 base::TimeDelta time() const { return time_; } in time() 60 base::TimeDelta time_;
|
D | update_time_restrictions_monitor.cc | 24 using base::TimeDelta; 37 TimeDelta duration_till_next_interval = TimeDelta::FromDays(7); in FindNextNearestInterval() 42 const TimeDelta current_duration = now.GetDurationTo(interval.start()); in FindNextNearestInterval() 59 : evaluation_context_(/* evaluation_timeout = */ TimeDelta::Max(), in UpdateTimeRestrictionsMonitor() 60 /* expiration_timeout = */ TimeDelta::Max(), in UpdateTimeRestrictionsMonitor() 98 const TimeDelta duration_till_start = in WaitForRestrictedIntervalStarts() 100 ? TimeDelta::FromMicroseconds(0) in WaitForRestrictedIntervalStarts()
|
D | evaluation_context.cc | 36 using base::TimeDelta; 58 TimeDelta GetTimeout(Time curr, Time expires) { in GetTimeout() 60 return TimeDelta::Max(); in GetTimeout() 69 TimeDelta evaluation_timeout, in EvaluationContext() 70 TimeDelta expiration_timeout, in EvaluationContext() 97 TimeDelta EvaluationContext::RemainingTime(Time monotonic_deadline) const { in RemainingTime() 99 return TimeDelta::Max(); in RemainingTime() 100 TimeDelta remaining = in RemainingTime() 102 return std::max(remaining, TimeDelta()); in RemainingTime() 105 Time EvaluationContext::MonotonicDeadline(TimeDelta timeout) { in MonotonicDeadline() [all …]
|
D | variable.h | 84 base::TimeDelta GetPollInterval() const { return poll_interval_; } in GetPollInterval() 108 name, mode, base::TimeDelta::FromMinutes(kDefaultPollMinutes)) {} in BaseVariable() 112 BaseVariable(const std::string& name, base::TimeDelta poll_interval) in BaseVariable() 116 void SetPollInterval(base::TimeDelta poll_interval) { in SetPollInterval() 145 base::TimeDelta poll_interval) in BaseVariable() 149 : base::TimeDelta()), in BaseVariable() 179 base::TimeDelta poll_interval_; 210 Variable(const std::string& name, const base::TimeDelta poll_interval) in Variable() 222 virtual const T* GetValue(base::TimeDelta timeout, std::string* errmsg) = 0;
|
D | real_updater_provider.cc | 38 using base::TimeDelta; 95 const Time* GetValue(TimeDelta /* timeout */, string* errmsg) override { in GetValue() argument 114 const double* GetValue(TimeDelta /* timeout */, string* errmsg) override { in GetValue() argument 147 const Stage* GetValue(TimeDelta /* timeout */, string* errmsg) override; 168 const Stage* StageVariable::GetValue(TimeDelta /* timeout */, string* errmsg) { in GetValue() argument 189 const string* GetValue(TimeDelta /* timeout */, string* errmsg) override { in GetValue() argument 207 const uint64_t* GetValue(TimeDelta /* timeout */, string* errmsg) override { in GetValue() argument 231 const Time* GetValue(TimeDelta /* timeout */, string* errmsg) override { in GetValue() argument 247 TimeDelta duration_since_update = curr_boottime - update_boottime; in GetValue() 261 const string* GetValue(TimeDelta /* timeout */, string* errmsg) override { in GetValue() argument [all …]
|
D | staging_utils_unittest.cc | 29 using base::TimeDelta; 39 constexpr TimeDelta kDay = TimeDelta::FromDays(1); 48 test_wait_time_ = TimeDelta(); in SetUp() 71 EXPECT_EQ(TimeDelta(), test_wait_time_); in ExpectNoChanges() 76 TimeDelta test_wait_time_; 158 EXPECT_NE(TimeDelta(), test_wait_time_); in TEST_F()
|
D | boxed_value_unittest.cc | 36 using base::TimeDelta; 159 BoxedValue(new TimeDelta(TimeDelta::FromSeconds(12345))).ToString()); in TEST() 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_unittest.cc | 27 using base::TimeDelta; 34 constexpr TimeDelta kHour = TimeDelta::FromHours(1); 35 constexpr TimeDelta kMinute = TimeDelta::FromMinutes(1);
|
D | staging_utils.cc | 31 using base::TimeDelta; 100 TimeDelta* staging_wait_time, in CalculateStagingCase() 109 TimeDelta new_staging_wait_time = TimeDelta::FromDays( in CalculateStagingCase() 132 *staging_wait_time = TimeDelta::FromDays(wait_period_in_days); in CalculateStagingCase()
|
D | next_update_check_policy_impl.cc | 24 using base::TimeDelta; 91 TimeDelta time_diff = in NextUpdateCheckTime() 96 : TimeDelta::FromSeconds(*interval_timeout); in NextUpdateCheckTime() 103 *last_checked_time + TimeDelta::FromSeconds(*interval_timeout); in NextUpdateCheckTime() 151 TimeDelta NextUpdateCheckTimePolicyImpl::FuzzedInterval(PRNG* prng, in FuzzedInterval() 160 return TimeDelta::FromSeconds(prng->RandMinMax(interval_min, interval_max)); in FuzzedInterval()
|
/system/update_engine/cros/ |
D | mock_payload_state.h | 50 MOCK_METHOD1(SetScatteringWaitPeriod, void(base::TimeDelta)); 53 MOCK_METHOD1(SetStagingWaitPeriod, void(base::TimeDelta)); 64 MOCK_METHOD0(GetUpdateDuration, base::TimeDelta()); 65 MOCK_METHOD0(GetUpdateDurationUptime, base::TimeDelta()); 76 MOCK_METHOD0(GetScatteringWaitPeriod, base::TimeDelta()); 78 MOCK_METHOD0(GetStagingWaitPeriod, base::TimeDelta());
|
D | metrics_reporter_omaha.h | 116 void ReportDailyMetrics(base::TimeDelta os_age) override; 125 base::TimeDelta duration, 126 base::TimeDelta duration_uptime, 147 base::TimeDelta total_duration, 148 base::TimeDelta total_duration_uptime, 182 base::TimeDelta* out_duration); 193 bool MonotonicDurationHelper(int64_t* storage, base::TimeDelta* out_duration);
|
D | payload_state.h | 100 base::TimeDelta GetUpdateDuration() override; 102 base::TimeDelta GetUpdateDurationUptime() override; 133 base::TimeDelta GetScatteringWaitPeriod() override { in GetScatteringWaitPeriod() 137 void SetScatteringWaitPeriod(base::TimeDelta wait_period) override; 139 void SetStagingWaitPeriod(base::TimeDelta wait_period) override; 326 void SetUpdateDurationUptimeExtended(const base::TimeDelta& value, 333 void SetUpdateDurationUptime(const base::TimeDelta& value); 520 base::TimeDelta update_duration_current_; 530 base::TimeDelta update_duration_uptime_; 555 static const base::TimeDelta kDurationSlack; [all …]
|
D | payload_state_interface.h | 134 virtual base::TimeDelta GetUpdateDuration() = 0; 139 virtual base::TimeDelta GetUpdateDurationUptime() = 0; 197 virtual base::TimeDelta GetScatteringWaitPeriod() = 0; 200 virtual void SetScatteringWaitPeriod(base::TimeDelta wait_period) = 0; 210 virtual void SetStagingWaitPeriod(base::TimeDelta wait_period) = 0;
|
/system/update_engine/common/ |
D | mock_metrics_reporter.h | 37 MOCK_METHOD1(ReportDailyMetrics, void(base::TimeDelta os_age)); 47 base::TimeDelta duration, 48 base::TimeDelta duration_uptime, 69 base::TimeDelta total_duration, 70 base::TimeDelta total_duration_uptime,
|
D | metrics_reporter_stub.h | 39 void ReportDailyMetrics(base::TimeDelta os_age) override {} in ReportDailyMetrics() 48 base::TimeDelta duration, in ReportUpdateAttemptMetrics() 49 base::TimeDelta duration_uptime, in ReportUpdateAttemptMetrics() 70 base::TimeDelta total_duration, in ReportSuccessfulUpdateMetrics() 71 base::TimeDelta total_duration_uptime, in ReportSuccessfulUpdateMetrics()
|
D | metrics_reporter_interface.h | 58 virtual void ReportDailyMetrics(base::TimeDelta os_age) = 0; 119 base::TimeDelta duration, 120 base::TimeDelta duration_uptime, 173 base::TimeDelta total_duration, 174 base::TimeDelta total_duration_uptime,
|
/system/update_engine/aosp/ |
D | metrics_reporter_android.h | 44 void ReportDailyMetrics(base::TimeDelta os_age) override {} in ReportDailyMetrics() 53 base::TimeDelta duration, 54 base::TimeDelta duration_uptime, 75 base::TimeDelta total_duration, 76 base::TimeDelta total_duration_uptime,
|