Home
last modified time | relevance | path

Searched refs:clock_ (Results 1 – 19 of 19) sorted by relevance

/system/update_engine/update_manager/
Dreal_time_provider.cc38 : Variable<Time>(name, TimeDelta::FromHours(1)), clock_(clock) {} in CurrDateVariable()
43 clock_->GetWallclockTime().LocalExplode(&now_exp); in GetValue()
52 ClockInterface* clock_; member in chromeos_update_manager::CurrDateVariable
63 : Variable<int>(name, TimeDelta::FromMinutes(5)), clock_(clock) {} in CurrHourVariable()
68 clock_->GetWallclockTime().LocalExplode(&exploded); in GetValue()
73 ClockInterface* clock_; member in chromeos_update_manager::CurrHourVariable
81 : Variable<int>(name, TimeDelta::FromSeconds(15)), clock_(clock) {} in CurrMinuteVariable()
86 clock_->GetWallclockTime().LocalExplode(&exploded); in GetValue()
91 ClockInterface* clock_; member in chromeos_update_manager::CurrMinuteVariable
97 var_curr_date_.reset(new CurrDateVariable("curr_date", clock_)); in Init()
[all …]
Dreal_time_provider.h33 : clock_(clock) {} in RealTimeProvider()
48 chromeos_update_engine::ClockInterface* const clock_;
Ddefault_policy.cc35 : clock_(clock), aux_state_(new DefaultPolicyState()) {} in DefaultPolicy()
54 if (clock_) in UpdateCheckAllowed()
55 aux_state_->set_last_check_allowed_time(clock_->GetMonotonicTime()); in UpdateCheckAllowed()
Devaluation_context.cc72 : clock_(clock), in EvaluationContext()
101 TimeDelta remaining = monotonic_deadline - clock_->GetMonotonicTime(); in RemainingTime()
107 : clock_->GetMonotonicTime() + timeout); in MonotonicDeadline()
142 evaluation_start_wallclock_ = clock_->GetWallclockTime(); in ResetEvaluation()
143 evaluation_start_monotonic_ = clock_->GetMonotonicTime(); in ResetEvaluation()
Dreal_shill_provider.h42 : shill_proxy_(shill_proxy), clock_(clock) {} in RealShillProvider()
85 chromeos_update_engine::ClockInterface* const clock_; variable
Dupdate_manager.cc34 clock_(clock), in UpdateManager()
Dupdate_manager-inl.h123 new EvaluationContext(clock_, evaluation_timeout_)); in PolicyRequest()
145 clock_, in AsyncPolicyRequest()
Ddefault_policy.h108 chromeos_update_engine::ClockInterface* clock_;
Devaluation_context.h178 chromeos_update_engine::ClockInterface* const clock_; variable
Dupdate_manager.h149 chromeos_update_engine::ClockInterface* clock_; variable
Dreal_shill_provider.cc100 var_conn_last_changed_.SetValue(clock_->GetWallclockTime()); in ProcessDefaultService()
/system/update_engine/
Dupdate_attempter_android_unittest.cc48 clock_ = new FakeClock(); in SetUp()
51 update_attempter_android_.clock_.reset(clock_); in SetUp()
68 FakeClock* clock_; member in chromeos_update_engine::UpdateAttempterAndroidTest
106 clock_->SetMonotonicTime(now); in TEST_F()
129 clock_->SetBootTime(boot_time); in TEST_F()
130 clock_->SetMonotonicTime(up_time); in TEST_F()
Dfake_system_state.h53 inline ClockInterface* clock() override { return clock_; } in clock()
116 clock_ = clock ? clock : &fake_clock_; in set_clock()
185 CHECK(clock_ == &fake_clock_); in fake_clock()
258 ClockInterface* clock_; variable
Dreal_system_state.h88 inline ClockInterface* clock() override { return &clock_; } in clock()
151 Clock clock_; variable
Dfake_system_state.cc27 clock_(&fake_clock_), in FakeSystemState()
Dupdate_attempter_android.cc109 clock_(new Clock()) { in UpdateAttempterAndroid()
602 metrics_utils::SetSystemUpdatedMarker(clock_.get(), prefs_); in TerminateUpdateAndNotify()
699 TimeDelta duration = clock_->GetBootTime() - boot_time_start; in CollectAndReportUpdateMetricsOnUpdateFinished()
700 TimeDelta duration_uptime = clock_->GetMonotonicTime() - monotonic_time_start; in CollectAndReportUpdateMetricsOnUpdateFinished()
804 metrics_reporter_.get(), prefs_, clock_.get()); in UpdatePrefsAndReportUpdateMetricsOnReboot()
824 metrics_utils::SetUpdateTimestampStart(clock_->GetMonotonicTime(), prefs_); in UpdatePrefsOnUpdateStart()
825 metrics_utils::SetUpdateBootTimestampStart(clock_->GetBootTime(), prefs_); in UpdatePrefsOnUpdateStart()
Dreal_system_state.cc173 &clock_, in Initialize()
181 &clock_, in Initialize()
Dp2p_manager.cc175 ClockInterface* clock_; member in chromeos_update_engine::P2PManagerImpl
220 : clock_(clock), in P2PManagerImpl()
348 if (clock_ != nullptr && max_file_age_ != TimeDelta() && in PerformHousekeeping()
349 clock_->GetWallclockTime() - time > max_file_age_) { in PerformHousekeeping()
Dupdate_attempter_android.h190 std::unique_ptr<ClockInterface> clock_; variable