Home
last modified time | relevance | path

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

/system/update_engine/update_manager/
Devaluation_context.h65 class EvaluationContext : public base::RefCounted<EvaluationContext>,
68 EvaluationContext(
72 std::unique_ptr<base::Callback<void(EvaluationContext*)>> unregister_cb);
73 EvaluationContext(chromeos_update_engine::ClockInterface* clock, in EvaluationContext() function
75 : EvaluationContext( in EvaluationContext()
77 std::unique_ptr<base::Callback<void(EvaluationContext*)>>()) {} in EvaluationContext()
78 ~EvaluationContext();
209 std::unique_ptr<base::Callback<void(EvaluationContext*)>> unregister_cb_;
211 base::WeakPtrFactory<EvaluationContext> weak_ptr_factory_;
213 DISALLOW_COPY_AND_ASSIGN(EvaluationContext);
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 …]
Dupdate_manager-inl.h33 EvaluationContext* ec, in EvaluatePolicy()
34 EvalStatus (Policy::*policy_method)(EvaluationContext*, State*, in EvaluatePolicy() argument
81 scoped_refptr<EvaluationContext> ec, in OnPolicyReadyToEvaluate()
83 EvalStatus (Policy::*policy_method)(EvaluationContext*, State*, in OnPolicyReadyToEvaluate() argument
116 EvalStatus (Policy::*policy_method)(EvaluationContext*, State*, in PolicyRequest() argument
120 scoped_refptr<EvaluationContext> ec( in PolicyRequest()
121 new EvaluationContext(clock_, evaluation_timeout_)); in PolicyRequest()
139 EvalStatus (Policy::*policy_method)(EvaluationContext*, State*, in AsyncPolicyRequest() argument
143 scoped_refptr<EvaluationContext> ec = in AsyncPolicyRequest()
144 new EvaluationContext( in AsyncPolicyRequest()
[all …]
Dupdate_manager.h73 EvalStatus (Policy::*policy_method)(EvaluationContext*, State*,
89 EvalStatus (Policy::*policy_method)(EvaluationContext*, State*,
116 EvaluationContext* ec,
117 EvalStatus (Policy::*policy_method)(EvaluationContext*, State*,
130 scoped_refptr<EvaluationContext> ec,
132 EvalStatus (Policy::*policy_method)(EvaluationContext*, State*,
138 void UnregisterEvalContext(EvaluationContext* ec);
165 std::set<scoped_refptr<EvaluationContext>,
166 ScopedRefPtrLess<EvaluationContext>> ec_repo_;
Dchromeos_policy.h59 EvaluationContext* ec, State* state, std::string* error,
63 EvaluationContext* ec,
70 EvaluationContext* ec,
76 EvaluationContext* ec,
82 EvaluationContext* ec,
144 EvalStatus NextUpdateCheckTime(EvaluationContext* ec, State* state,
177 EvaluationContext* ec, State* state, std::string* error,
193 EvalStatus UpdateScattering(EvaluationContext* ec, State* state,
Ddefault_policy.h69 EvaluationContext* ec, State* state, std::string* error,
73 EvaluationContext* ec, State* state, std::string* error,
78 EvaluationContext* ec, State* state, std::string* error,
82 EvaluationContext* ec, State* state, std::string* error,
86 EvaluationContext* ec, State* state, std::string* error,
Ddefault_policy.cc35 EvaluationContext* ec, State* state, std::string* error, in UpdateCheckAllowed()
57 EvaluationContext* ec, in UpdateCanStart()
77 EvaluationContext* ec, in UpdateDownloadAllowed()
86 EvaluationContext* ec, in P2PEnabled()
95 EvaluationContext* ec, in P2PEnabledChanged()
Dmock_policy.h61 EvalStatus(EvaluationContext*, State*, std::string*,
65 EvalStatus(EvaluationContext*, State*, std::string*,
69 EvalStatus(EvaluationContext*, State*, std::string*,
73 EvalStatus(EvaluationContext*, State*, std::string*,
77 EvalStatus(EvaluationContext*, State*, std::string*,
Dpolicy.h199 EvalStatus (Policy::*policy_method)(EvaluationContext*, State*, in PolicyRequestName() argument
235 EvaluationContext* ec, State* state, std::string* error,
245 EvaluationContext* ec,
258 EvaluationContext* ec,
266 EvaluationContext* ec, State* state, std::string* error,
275 EvaluationContext* ec, State* state, std::string* error,
Devaluation_context_unittest.cc63 void ReadVar(scoped_refptr<EvaluationContext> ec, Variable<T>* var) { in ReadVar()
69 void EvaluateRepeatedly(Closure evaluation, scoped_refptr<EvaluationContext> ec, in EvaluateRepeatedly()
94 eval_ctx_ = new EvaluationContext( in SetUp()
96 unique_ptr<base::Callback<void(EvaluationContext*)>>(nullptr)); in SetUp()
103 base::WeakPtr<EvaluationContext> eval_ctx_weak_alias = in TearDown()
126 scoped_refptr<EvaluationContext> eval_ctx_;
Dupdate_manager.cc44 void UpdateManager::UnregisterEvalContext(EvaluationContext* ec) { in UnregisterEvalContext()
Dchromeos_policy.cc192 EvaluationContext* ec, State* state, string* error, in UpdateCheckAllowed()
327 EvaluationContext* ec, in UpdateCanStart()
496 EvaluationContext* ec, in UpdateDownloadAllowed()
571 EvalStatus ChromeOSPolicy::P2PEnabled(EvaluationContext* ec, in P2PEnabled()
607 EvalStatus ChromeOSPolicy::P2PEnabledChanged(EvaluationContext* ec, in P2PEnabledChanged()
618 EvalStatus ChromeOSPolicy::NextUpdateCheckTime(EvaluationContext* ec, in NextUpdateCheckTime()
705 EvaluationContext* ec, State* state, string* error, in UpdateBackoffAndDownloadUrl()
895 EvaluationContext* ec, in UpdateScattering()
Devaluation_context-inl.h27 const T* EvaluationContext::GetValue(Variable<T>* var) { in GetValue()
Dupdate_manager_unittest.cc104 EvalStatus UpdateCheckAllowed(EvaluationContext* ec, State* state, in UpdateCheckAllowed()
122 EvalStatus UpdateCheckAllowed(EvaluationContext* ec, State* state, in UpdateCheckAllowed()
142 EvalStatus UpdateCheckAllowed(EvaluationContext* ec, State* state, in UpdateCheckAllowed()
Dvariable.h195 friend class EvaluationContext;
Dchromeos_policy_unittest.cc51 eval_ctx_ = new EvaluationContext(&fake_clock_, TimeDelta::FromSeconds(5)); in SetUp()
203 scoped_refptr<EvaluationContext> eval_ctx_;