Home
last modified time | relevance | path

Searched refs:time_provider (Results 1 – 6 of 6) sorted by relevance

/system/update_engine/update_manager/
Dupdate_time_restrictions_policy_impl.cc41 TimeProvider* const time_provider = state->time_provider(); in UpdateCanBeApplied() local
47 const Time* curr_date = ec->GetValue(time_provider->var_curr_date()); in UpdateCanBeApplied()
48 const int* curr_hour = ec->GetValue(time_provider->var_curr_hour()); in UpdateCanBeApplied()
49 const int* curr_minute = ec->GetValue(time_provider->var_curr_minute()); in UpdateCanBeApplied()
Dreal_state.h36 TimeProvider* time_provider, in RealState() argument
43 time_provider_(time_provider), in RealState()
54 TimeProvider* time_provider() override { return time_provider_.get(); } in time_provider() function
Dstate_factory.cc75 unique_ptr<RealTimeProvider> time_provider(new RealTimeProvider(clock)); in DefaultStateFactory() local
84 system_provider->Init() && time_provider->Init() && in DefaultStateFactory()
95 time_provider.release(), in DefaultStateFactory()
Dpolicy_test_utils.cc55 fake_state_.time_provider()->var_curr_hour()->reset(new int(exploded.hour)); in SetUpDefaultTimeProvider()
56 fake_state_.time_provider()->var_curr_minute()->reset( in SetUpDefaultTimeProvider()
58 fake_state_.time_provider()->var_curr_date()->reset( in SetUpDefaultTimeProvider()
Dstate.h42 virtual TimeProvider* time_provider() = 0;
Dfake_state.h61 FakeTimeProvider* time_provider() override { return &time_provider_; } in time_provider() function