Home
last modified time | relevance | path

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

/system/update_engine/update_manager/
Dpolicy_test_utils.cc83 UpdateState update_state = UpdateState(); in GetDefaultUpdateState() local
88 update_state.interactive = false; in GetDefaultUpdateState()
89 update_state.is_delta_payload = false; in GetDefaultUpdateState()
90 update_state.first_seen = first_seen_time; in GetDefaultUpdateState()
91 update_state.num_checks = 1; in GetDefaultUpdateState()
92 update_state.num_failures = 0; in GetDefaultUpdateState()
93 update_state.failures_last_updated = Time(); // Needs to be zero. in GetDefaultUpdateState()
95 update_state.download_urls = vector<string>{"http://fake/url/"}; in GetDefaultUpdateState()
96 update_state.download_errors_max = 10; in GetDefaultUpdateState()
98 update_state.last_download_url_idx = -1; in GetDefaultUpdateState()
[all …]
Dchromeos_policy_unittest.cc478 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F() local
481 EvalStatus::kFailed, &Policy::UpdateCanStart, &result, update_state); in TEST_F()
491 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F() local
494 EvalStatus::kSucceeded, &Policy::UpdateCanStart, &result, update_state); in TEST_F()
509 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F() local
512 EvalStatus::kSucceeded, &Policy::UpdateCanStart, &result, update_state); in TEST_F()
529 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F() local
532 EvalStatus::kSucceeded, &Policy::UpdateCanStart, &result, update_state); in TEST_F()
550 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F() local
551 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.cc312 const UpdateState update_state) const { in UpdateCanStart()
326 result->backoff_expiry = update_state.backoff_expiry; in UpdateCanStart()
327 result->scatter_wait_period = update_state.scatter_wait_period; in UpdateCanStart()
328 result->scatter_check_threshold = update_state.scatter_check_threshold; in UpdateCanStart()
343 ec, state, error, &backoff_url_result, update_state); in UpdateCanStart()
372 if (!update_state.interactive) { in UpdateCanStart()
388 UpdateScattering(ec, state, error, &scatter_result, update_state); in UpdateCanStart()
410 if (update_state.p2p_sharing_disabled) { in UpdateCanStart()
418 if (update_state.p2p_downloading_disabled) { in UpdateCanStart()
420 } 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.cc152 UpdateState update_state) const { in UpdateCanStart()
Dpolicy.h273 UpdateState update_state) const = 0;
/system/core/fs_mgr/libsnapshot/
Dsnapshot.cpp255 auto update_state = ReadUpdateState(lock.get()); in FinishedSnapshotWrites() local
256 if (update_state == UpdateState::Unverified) { in FinishedSnapshotWrites()
261 if (update_state != UpdateState::Initiated) { in FinishedSnapshotWrites()