Home
last modified time | relevance | path

Searched refs:update_state (Results 1 – 11 of 11) sorted by relevance

/system/update_engine/update_manager/
Dpolicy_test_utils.cc82 UpdateState update_state = UpdateState(); in GetDefaultUpdateState() local
87 update_state.interactive = false; in GetDefaultUpdateState()
88 update_state.is_delta_payload = false; in GetDefaultUpdateState()
89 update_state.first_seen = first_seen_time; in GetDefaultUpdateState()
90 update_state.num_checks = 1; in GetDefaultUpdateState()
91 update_state.num_failures = 0; in GetDefaultUpdateState()
92 update_state.failures_last_updated = Time(); // Needs to be zero. in GetDefaultUpdateState()
94 update_state.download_urls = vector<string>{"http://fake/url/"}; in GetDefaultUpdateState()
95 update_state.download_errors_max = 10; in GetDefaultUpdateState()
97 update_state.last_download_url_idx = -1; in GetDefaultUpdateState()
[all …]
Dchromeos_policy_unittest.cc484 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F() local
487 EvalStatus::kFailed, &Policy::UpdateCanStart, &result, update_state); in TEST_F()
497 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F() local
500 EvalStatus::kSucceeded, &Policy::UpdateCanStart, &result, update_state); in TEST_F()
515 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F() local
518 EvalStatus::kSucceeded, &Policy::UpdateCanStart, &result, update_state); in TEST_F()
535 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F() local
538 EvalStatus::kSucceeded, &Policy::UpdateCanStart, &result, update_state); in TEST_F()
556 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F() local
557 update_state.download_errors_max = 1; in TEST_F()
[all …]
Dupdate_manager_unittest.cc196 UpdateState update_state = UpdateState(); in TEST_F() local
197 update_state.interactive = true; in TEST_F()
198 update_state.is_delta_payload = false; in TEST_F()
199 update_state.first_seen = FixedTime(); in TEST_F()
200 update_state.num_checks = 1; in TEST_F()
201 update_state.num_failures = 0; in TEST_F()
202 update_state.failures_last_updated = Time(); in TEST_F()
203 update_state.download_urls = vector<string>{"http://fake/url/"}; in TEST_F()
204 update_state.download_errors_max = 10; in TEST_F()
205 update_state.p2p_downloading_disabled = false; in TEST_F()
[all …]
Dchromeos_policy.cc301 const UpdateState update_state) const { in UpdateCanStart()
315 result->backoff_expiry = update_state.backoff_expiry; in UpdateCanStart()
316 result->scatter_wait_period = update_state.scatter_wait_period; in UpdateCanStart()
317 result->scatter_check_threshold = update_state.scatter_check_threshold; in UpdateCanStart()
332 ec, state, error, &backoff_url_result, update_state); in UpdateCanStart()
361 if (!update_state.interactive) { in UpdateCanStart()
377 UpdateScattering(ec, state, error, &scatter_result, update_state); in UpdateCanStart()
399 if (update_state.p2p_sharing_disabled) { in UpdateCanStart()
407 if (update_state.p2p_downloading_disabled) { in UpdateCanStart()
409 } else if (update_state.interactive) { in UpdateCanStart()
[all …]
Dchromeos_policy.h73 UpdateState update_state) const override;
155 const UpdateState& update_state) const;
173 const UpdateState& update_state) const;
Dandroid_things_policy.h54 UpdateState update_state) const override;
Ddefault_policy.h84 UpdateState update_state) const override;
Ddefault_policy.cc75 const UpdateState update_state) const { in UpdateCanStart()
Dpolicy_utils.h92 UpdateState update_state) const override { in UpdateCanStart() argument
Dandroid_things_policy.cc145 UpdateState update_state) const { in UpdateCanStart()
Dpolicy.h270 UpdateState update_state) const = 0;