Home
last modified time | relevance | path

Searched refs:EvaluationContext (Results 1 – 25 of 37) sorted by relevance

12

/system/update_engine/update_manager/
Devaluation_context.cc67 EvaluationContext::EvaluationContext( in EvaluationContext() function in chromeos_update_manager::EvaluationContext
71 unique_ptr<Callback<void(EvaluationContext*)>> unregister_cb) in EvaluationContext()
81 EvaluationContext::~EvaluationContext() { in ~EvaluationContext()
87 unique_ptr<Closure> EvaluationContext::RemoveObserversAndTimeout() { in RemoveObserversAndTimeout()
98 TimeDelta EvaluationContext::RemainingTime(Time monotonic_deadline) const { in RemainingTime()
105 Time EvaluationContext::MonotonicDeadline(TimeDelta timeout) { in MonotonicDeadline()
110 void EvaluationContext::ValueChanged(BaseVariable* var) { in ValueChanged()
115 void EvaluationContext::OnTimeout() { in OnTimeout()
123 void EvaluationContext::OnValueChangedOrTimeout() { in OnValueChangedOrTimeout()
131 bool EvaluationContext::IsWallclockTimeGreaterThan(Time timestamp) { in IsWallclockTimeGreaterThan()
[all …]
Devaluation_context.h64 class EvaluationContext : private BaseVariable::ObserverInterface {
66 EvaluationContext(
70 std::unique_ptr<base::Callback<void(EvaluationContext*)>> unregister_cb);
71 EvaluationContext(chromeos_update_engine::ClockInterface* clock, in EvaluationContext() function
73 : EvaluationContext( in EvaluationContext()
77 std::unique_ptr<base::Callback<void(EvaluationContext*)>>()) {} in EvaluationContext()
78 ~EvaluationContext();
208 std::unique_ptr<base::Callback<void(EvaluationContext*)>> unregister_cb_;
210 base::WeakPtrFactory<EvaluationContext> weak_ptr_factory_;
212 DISALLOW_COPY_AND_ASSIGN(EvaluationContext);
Dupdate_manager.h48 EvalStatus (Policy::*policy_method)(EvaluationContext*,
84 EvaluationContext*, State*, std::string*, R*, ExpectedArgs...) const,
100 EvaluationContext*, State*, std::string*, R*, ExpectedArgs...) const,
106 EvalStatus (Policy::*policy_method)(EvaluationContext*,
131 EvaluationContext* ec,
133 EvaluationContext*, State*, std::string*, R*, Args...) const,
145 std::shared_ptr<EvaluationContext> ec,
148 EvaluationContext*, State*, std::string*, R*, Args...) const,
152 void UnregisterEvalContext(EvaluationContext* ec);
179 std::set<std::shared_ptr<EvaluationContext>> ec_repo_;
Dchromeos_policy.h57 EvalStatus UpdateCheckAllowed(EvaluationContext* ec,
63 EvaluationContext* ec,
69 EvalStatus UpdateCanStart(EvaluationContext* ec,
75 EvalStatus UpdateDownloadAllowed(EvaluationContext* ec,
80 EvalStatus P2PEnabled(EvaluationContext* ec,
85 EvalStatus P2PEnabledChanged(EvaluationContext* ec,
151 EvaluationContext* ec,
169 EvalStatus UpdateScattering(EvaluationContext* ec,
Dandroid_things_policy.h35 EvalStatus UpdateCheckAllowed(EvaluationContext* ec,
43 EvaluationContext* ec,
50 EvalStatus UpdateCanStart(EvaluationContext* ec,
57 EvalStatus UpdateDownloadAllowed(EvaluationContext* ec,
64 EvalStatus P2PEnabled(EvaluationContext* ec,
71 EvalStatus P2PEnabledChanged(EvaluationContext* ec,
Dpolicy_utils.h49 EvaluationContext* ec, in ConsultPolicies()
72 EvalStatus UpdateCheckAllowed(EvaluationContext* ec, in UpdateCheckAllowed()
80 EvaluationContext* ec, in UpdateCanBeApplied()
88 EvalStatus UpdateCanStart(EvaluationContext* ec, in UpdateCanStart()
96 EvalStatus UpdateDownloadAllowed(EvaluationContext* ec, in UpdateDownloadAllowed()
103 EvalStatus P2PEnabled(EvaluationContext* ec, in P2PEnabled()
110 EvalStatus P2PEnabledChanged(EvaluationContext* ec, in P2PEnabledChanged()
Dupdate_manager-inl.h33 EvaluationContext* ec, in EvaluatePolicy()
35 EvaluationContext*, State*, std::string*, R*, Args...) const, in EvaluatePolicy()
81 std::shared_ptr<EvaluationContext> ec, in OnPolicyReadyToEvaluate()
84 EvaluationContext*, State*, std::string*, R*, Args...) const, in OnPolicyReadyToEvaluate()
119 EvaluationContext*, State*, std::string*, R*, ExpectedArgs...) const, in PolicyRequest()
122 auto ec = std::make_shared<EvaluationContext>(clock_, evaluation_timeout_); in PolicyRequest()
141 EvaluationContext*, State*, std::string*, R*, ExpectedArgs...) const, in AsyncPolicyRequest()
143 auto ec = std::make_shared<EvaluationContext>( in AsyncPolicyRequest()
147 std::unique_ptr<base::Callback<void(EvaluationContext*)>>( in AsyncPolicyRequest()
148 new base::Callback<void(EvaluationContext*)>( in AsyncPolicyRequest()
Ddefault_policy.h68 EvalStatus UpdateCheckAllowed(EvaluationContext* ec,
74 EvaluationContext* ec,
80 EvalStatus UpdateCanStart(EvaluationContext* ec,
86 EvalStatus UpdateDownloadAllowed(EvaluationContext* ec,
91 EvalStatus P2PEnabled(EvaluationContext* ec,
96 EvalStatus P2PEnabledChanged(EvaluationContext* ec,
Ddefault_policy.cc37 EvalStatus DefaultPolicy::UpdateCheckAllowed(EvaluationContext* ec, in UpdateCheckAllowed()
62 EvalStatus DefaultPolicy::UpdateCanBeApplied(EvaluationContext* ec, in UpdateCanBeApplied()
71 EvalStatus DefaultPolicy::UpdateCanStart(EvaluationContext* ec, in UpdateCanStart()
90 EvalStatus DefaultPolicy::UpdateDownloadAllowed(EvaluationContext* ec, in UpdateDownloadAllowed()
98 EvalStatus DefaultPolicy::P2PEnabled(EvaluationContext* ec, in P2PEnabled()
106 EvalStatus DefaultPolicy::P2PEnabledChanged(EvaluationContext* ec, in P2PEnabledChanged()
Dupdate_manager.cc45 EvaluationContext*, State*, std::string*, UpdateCheckParams*) const) { in AsyncPolicyRequestUpdateCheckAllowed()
49 void UpdateManager::UnregisterEvalContext(EvaluationContext* ec) { in UnregisterEvalContext()
54 std::shared_ptr<EvaluationContext>(ec, [](EvaluationContext*) {}))) { in UnregisterEvalContext() argument
Dmock_policy.h70 EvalStatus(EvaluationContext*, State*, std::string*, UpdateCheckParams*));
73 EvalStatus(EvaluationContext*,
80 EvalStatus(EvaluationContext*,
88 EvalStatus(EvaluationContext*, State*, std::string*, bool*));
91 P2PEnabled, EvalStatus(EvaluationContext*, State*, std::string*, bool*));
95 EvalStatus(EvaluationContext*, State*, std::string*, bool*, bool));
Dandroid_things_policy.cc54 EvaluationContext* ec, in UpdateCheckAllowed()
112 EvaluationContext* ec, in UpdateCanBeApplied()
148 EvalStatus AndroidThingsPolicy::UpdateCanStart(EvaluationContext* ec, in UpdateCanStart()
159 EvalStatus AndroidThingsPolicy::UpdateDownloadAllowed(EvaluationContext* ec, in UpdateDownloadAllowed()
170 EvalStatus AndroidThingsPolicy::P2PEnabled(EvaluationContext* ec, in P2PEnabled()
180 EvalStatus AndroidThingsPolicy::P2PEnabledChanged(EvaluationContext* ec, in P2PEnabledChanged()
Dpolicy.h212 EvaluationContext*, State*, std::string*, R*, Args...) const) const { in PolicyRequestName()
247 virtual EvalStatus UpdateCheckAllowed(EvaluationContext* ec,
257 EvaluationContext* ec,
269 virtual EvalStatus UpdateCanStart(EvaluationContext* ec,
281 virtual EvalStatus UpdateDownloadAllowed(EvaluationContext* ec,
288 virtual EvalStatus P2PEnabled(EvaluationContext* ec,
298 virtual EvalStatus P2PEnabledChanged(EvaluationContext* ec,
Dinteractive_update_policy_impl.h35 EvalStatus UpdateCheckAllowed(EvaluationContext* ec,
41 EvaluationContext* ec,
57 bool CheckInteractiveUpdateRequested(EvaluationContext* ec,
Dinteractive_update_policy_impl.cc26 EvaluationContext* ec, in UpdateCheckAllowed()
43 EvaluationContext* ec, in UpdateCanBeApplied()
61 EvaluationContext* ec, in CheckInteractiveUpdateRequested()
Dnext_update_check_policy_impl.h51 EvalStatus UpdateCheckAllowed(EvaluationContext* ec,
74 EvaluationContext* ec,
Devaluation_context_unittest.cc63 void ReadVar(shared_ptr<EvaluationContext> ec, Variable<T>* var) { in ReadVar()
70 shared_ptr<EvaluationContext> ec, in EvaluateRepeatedly()
96 eval_ctx_.reset(new EvaluationContext( in SetUp()
100 unique_ptr<base::Callback<void(EvaluationContext*)>>(nullptr))); in SetUp()
107 base::WeakPtr<EvaluationContext> eval_ctx_weak_alias = in TearDown()
130 shared_ptr<EvaluationContext> eval_ctx_;
Dofficial_build_check_policy_impl.cc23 EvaluationContext* ec, in UpdateCheckAllowed()
Denough_slots_ab_updates_policy_impl.cc24 EvaluationContext* ec, in UpdateCheckAllowed()
Dout_of_box_experience_policy_impl.h35 EvalStatus UpdateCheckAllowed(EvaluationContext* ec,
Denterprise_device_policy_impl.h37 EvalStatus UpdateCheckAllowed(EvaluationContext* ec,
Denough_slots_ab_updates_policy_impl.h33 EvalStatus UpdateCheckAllowed(EvaluationContext* ec,
Dofficial_build_check_policy_impl.h33 EvalStatus UpdateCheckAllowed(EvaluationContext* ec,
Dmock_update_manager.h38 EvaluationContext*, State*, std::string*, UpdateCheckParams*)
Dnext_update_check_policy_impl.cc35 EvaluationContext* ec, in UpdateCheckAllowed()
57 EvaluationContext* ec, in NextUpdateCheckTime()

12