Home
last modified time | relevance | path

Searched refs:EvalStatus (Results 1 – 25 of 44) sorted by relevance

12

/system/update_engine/update_manager/
Dpolicy_utils.h37 return EvalStatus::kFailed; \
47 EvalStatus ConsultPolicies(const std::vector<Policy const*> policies, in ConsultPolicies()
55 EvalStatus status = in ConsultPolicies()
57 if (status != EvalStatus::kContinue) { in ConsultPolicies()
62 return EvalStatus::kContinue; in ConsultPolicies()
72 EvalStatus UpdateCheckAllowed(EvaluationContext* ec, in UpdateCheckAllowed()
76 return EvalStatus::kContinue; in UpdateCheckAllowed()
79 EvalStatus UpdateCanBeApplied( in UpdateCanBeApplied()
85 return EvalStatus::kContinue; in UpdateCanBeApplied()
88 EvalStatus UpdateCanStart(EvaluationContext* ec, in UpdateCanStart()
[all …]
Dandroid_things_policy.cc53 EvalStatus AndroidThingsPolicy::UpdateCheckAllowed( in UpdateCheckAllowed()
94 EvalStatus status = ConsultPolicies(policies_to_consult, in UpdateCheckAllowed()
100 if (status != EvalStatus::kContinue) { in UpdateCheckAllowed()
105 return EvalStatus::kSucceeded; in UpdateCheckAllowed()
111 EvalStatus AndroidThingsPolicy::UpdateCanBeApplied( in UpdateCanBeApplied()
130 EvalStatus status = ConsultPolicies(policies_to_consult, in UpdateCanBeApplied()
137 if (EvalStatus::kContinue != status) { in UpdateCanBeApplied()
143 return EvalStatus::kSucceeded; in UpdateCanBeApplied()
148 EvalStatus AndroidThingsPolicy::UpdateCanStart(EvaluationContext* ec, in UpdateCanStart()
155 return EvalStatus::kSucceeded; in UpdateCanStart()
[all …]
Ddefault_policy.cc37 EvalStatus DefaultPolicy::UpdateCheckAllowed(EvaluationContext* ec, in UpdateCheckAllowed()
56 return EvalStatus::kSucceeded; in UpdateCheckAllowed()
59 return EvalStatus::kAskMeAgainLater; in UpdateCheckAllowed()
62 EvalStatus DefaultPolicy::UpdateCanBeApplied(EvaluationContext* ec, in UpdateCanBeApplied()
68 return EvalStatus::kSucceeded; in UpdateCanBeApplied()
71 EvalStatus DefaultPolicy::UpdateCanStart(EvaluationContext* ec, in UpdateCanStart()
87 return EvalStatus::kSucceeded; in UpdateCanStart()
90 EvalStatus DefaultPolicy::UpdateDownloadAllowed(EvaluationContext* ec, in UpdateDownloadAllowed()
95 return EvalStatus::kSucceeded; in UpdateDownloadAllowed()
98 EvalStatus DefaultPolicy::P2PEnabled(EvaluationContext* ec, in P2PEnabled()
[all …]
Dupdate_manager-inl.h32 EvalStatus UpdateManager::EvaluatePolicy( in EvaluatePolicy()
34 EvalStatus (Policy::*policy_method)( in EvaluatePolicy()
56 EvalStatus status = (policy_.get()->*policy_method)( in EvaluatePolicy()
59 if (status == EvalStatus::kFailed) { in EvaluatePolicy()
65 if (status == EvalStatus::kFailed) { in EvaluatePolicy()
67 } else if (status == EvalStatus::kAskMeAgainLater) { in EvaluatePolicy()
70 status = EvalStatus::kFailed; in EvaluatePolicy()
82 base::Callback<void(EvalStatus status, const R& result)> callback, in OnPolicyReadyToEvaluate()
83 EvalStatus (Policy::*policy_method)( in OnPolicyReadyToEvaluate()
88 EvalStatus status = EvaluatePolicy(ec.get(), policy_method, &result, args...); in OnPolicyReadyToEvaluate()
[all …]
Dchromeos_policy.cc212 EvalStatus ChromeOSPolicy::UpdateCheckAllowed(EvaluationContext* ec, in UpdateCheckAllowed()
258 EvalStatus status = ConsultPolicies(policies_to_consult, in UpdateCheckAllowed()
264 if (EvalStatus::kContinue != status) { in UpdateCheckAllowed()
269 return EvalStatus::kSucceeded; in UpdateCheckAllowed()
273 EvalStatus ChromeOSPolicy::UpdateCanBeApplied(EvaluationContext* ec, in UpdateCanBeApplied()
290 EvalStatus status = ConsultPolicies(policies_to_consult, in UpdateCanBeApplied()
297 if (EvalStatus::kContinue != status) { in UpdateCanBeApplied()
303 return EvalStatus::kSucceeded; in UpdateCanBeApplied()
307 EvalStatus ChromeOSPolicy::UpdateCanStart( in UpdateCanStart()
332 EvalStatus check_status = UpdateCheckAllowed(ec, state, error, &check_result); in UpdateCanStart()
[all …]
Dpolicy.cc25 string ToString(EvalStatus status) { in ToString()
27 case EvalStatus::kFailed: in ToString()
29 case EvalStatus::kSucceeded: in ToString()
31 case EvalStatus::kAskMeAgainLater: in ToString()
33 case EvalStatus::kContinue: in ToString()
Dupdate_manager.h46 base::Callback<void(EvalStatus, const UpdateCheckParams& result)>
48 EvalStatus (Policy::*policy_method)(EvaluationContext*,
82 EvalStatus PolicyRequest(
83 EvalStatus (Policy::*policy_method)(
98 base::Callback<void(EvalStatus, const R& result)> callback,
99 EvalStatus (Policy::*policy_method)(
104 base::Callback<void(EvalStatus, const UpdateCheckParams& result)>
106 EvalStatus (Policy::*policy_method)(EvaluationContext*,
130 EvalStatus EvaluatePolicy(
132 EvalStatus (Policy::*policy_method)(
[all …]
Dupdate_manager_unittest.cc106 EvalStatus UpdateCheckAllowed(EvaluationContext* ec, in UpdateCheckAllowed()
113 return EvalStatus::kFailed; in UpdateCheckAllowed()
125 EvalStatus UpdateCheckAllowed(EvaluationContext* ec, in UpdateCheckAllowed()
129 return EvalStatus::kAskMeAgainLater; in UpdateCheckAllowed()
147 EvalStatus UpdateCheckAllowed(EvaluationContext* ec, in UpdateCheckAllowed()
162 return EvalStatus::kSucceeded; in UpdateCheckAllowed()
164 return EvalStatus::kAskMeAgainLater; in UpdateCheckAllowed()
181 static void AccumulateCallsCallback(vector<pair<EvalStatus, T>>* acc, in AccumulateCallsCallback() argument
182 EvalStatus status, in AccumulateCallsCallback()
191 EXPECT_EQ(EvalStatus::kSucceeded, in TEST_F()
[all …]
Dinteractive_update_policy_impl.cc25 EvalStatus InteractiveUpdatePolicyImpl::UpdateCheckAllowed( in UpdateCheckAllowed()
37 return EvalStatus::kSucceeded; in UpdateCheckAllowed()
39 return EvalStatus::kContinue; in UpdateCheckAllowed()
42 EvalStatus InteractiveUpdatePolicyImpl::UpdateCanBeApplied( in UpdateCanBeApplied()
55 return EvalStatus::kSucceeded; in UpdateCanBeApplied()
57 return EvalStatus::kContinue; in UpdateCanBeApplied()
Dupdate_time_restrictions_policy_impl.cc34 EvalStatus UpdateTimeRestrictionsPolicyImpl::UpdateCanBeApplied( in UpdateCanBeApplied()
45 return EvalStatus::kContinue; in UpdateCanBeApplied()
52 return EvalStatus::kContinue; in UpdateCanBeApplied()
62 return EvalStatus::kContinue; in UpdateCanBeApplied()
67 return EvalStatus::kSucceeded; in UpdateCanBeApplied()
71 return EvalStatus::kContinue; in UpdateCanBeApplied()
Dchromeos_policy.h57 EvalStatus UpdateCheckAllowed(EvaluationContext* ec,
62 EvalStatus UpdateCanBeApplied(
69 EvalStatus UpdateCanStart(EvaluationContext* ec,
75 EvalStatus UpdateDownloadAllowed(EvaluationContext* ec,
80 EvalStatus P2PEnabled(EvaluationContext* ec,
85 EvalStatus P2PEnabledChanged(EvaluationContext* ec,
150 EvalStatus UpdateBackoffAndDownloadUrl(
169 EvalStatus UpdateScattering(EvaluationContext* ec,
Dandroid_things_policy.h35 EvalStatus UpdateCheckAllowed(EvaluationContext* ec,
42 EvalStatus UpdateCanBeApplied(
50 EvalStatus UpdateCanStart(EvaluationContext* ec,
57 EvalStatus UpdateDownloadAllowed(EvaluationContext* ec,
64 EvalStatus P2PEnabled(EvaluationContext* ec,
71 EvalStatus P2PEnabledChanged(EvaluationContext* ec,
Dupdate_time_restrictions_policy_impl_unittest.cc54 const EvalStatus& expected_value, in TestPolicy()
72 if (expected_value == EvalStatus::kSucceeded) in TestPolicy()
82 EvalStatus::kContinue, in TEST_F()
92 EvalStatus::kSucceeded, in TEST_F()
100 EvalStatus::kSucceeded, in TEST_F()
109 EvalStatus::kContinue, in TEST_F()
117 EvalStatus::kContinue, in TEST_F()
Dnext_update_check_policy_impl.cc34 EvalStatus NextUpdateCheckTimePolicyImpl::UpdateCheckAllowed( in UpdateCheckAllowed()
44 EvalStatus::kSucceeded) { in UpdateCheckAllowed()
45 return EvalStatus::kFailed; in UpdateCheckAllowed()
50 return EvalStatus::kAskMeAgainLater; in UpdateCheckAllowed()
53 return EvalStatus::kContinue; in UpdateCheckAllowed()
56 EvalStatus NextUpdateCheckTimePolicyImpl::NextUpdateCheckTime( in NextUpdateCheckTime()
90 return EvalStatus::kSucceeded; in NextUpdateCheckTime()
135 return EvalStatus::kSucceeded; in NextUpdateCheckTime()
Dpolicy.h34 enum class EvalStatus { enum
41 std::string ToString(EvalStatus status);
211 std::string PolicyRequestName(EvalStatus (Policy::*policy_method)( in PolicyRequestName()
247 virtual EvalStatus UpdateCheckAllowed(EvaluationContext* ec,
256 virtual EvalStatus UpdateCanBeApplied(
269 virtual EvalStatus UpdateCanStart(EvaluationContext* ec,
281 virtual EvalStatus UpdateDownloadAllowed(EvaluationContext* ec,
288 virtual EvalStatus P2PEnabled(EvaluationContext* ec,
298 virtual EvalStatus P2PEnabledChanged(EvaluationContext* ec,
Ddefault_policy.h68 EvalStatus UpdateCheckAllowed(EvaluationContext* ec,
73 EvalStatus UpdateCanBeApplied(
80 EvalStatus UpdateCanStart(EvaluationContext* ec,
86 EvalStatus UpdateDownloadAllowed(EvaluationContext* ec,
91 EvalStatus P2PEnabled(EvaluationContext* ec,
96 EvalStatus P2PEnabledChanged(EvaluationContext* ec,
Dchromeos_policy_unittest.cc148 EvalStatus::kSucceeded, &Policy::UpdateCheckAllowed, &result); in TestRollbackAllowed()
169 ExpectPolicyStatus(EvalStatus::kSucceeded, in TestDisallowedTimeIntervals()
200 EvalStatus::kAskMeAgainLater, &Policy::UpdateCheckAllowed, &result); in TEST_F()
208 EvalStatus::kSucceeded, &Policy::UpdateCheckAllowed, &result); in TEST_F()
236 EvalStatus::kAskMeAgainLater, &Policy::UpdateCheckAllowed, &result); in TEST_F()
245 EvalStatus::kSucceeded, &Policy::UpdateCheckAllowed, &result); in TEST_F()
268 EvalStatus::kSucceeded, &Policy::UpdateCheckAllowed, &result); in TEST_F()
338 EvalStatus::kAskMeAgainLater, &Policy::UpdateCheckAllowed, &result); in TEST_F()
351 EvalStatus::kSucceeded, &Policy::UpdateCheckAllowed, &result); in TEST_F()
365 EvalStatus::kAskMeAgainLater, &Policy::UpdateCheckAllowed, &result); in TEST_F()
[all …]
Dandroid_things_policy_unittest.cc90 EvalStatus::kAskMeAgainLater, &Policy::UpdateCheckAllowed, &result); in TEST_F()
98 EvalStatus::kSucceeded, &Policy::UpdateCheckAllowed, &result); in TEST_F()
113 EvalStatus::kAskMeAgainLater, &Policy::UpdateCheckAllowed, &result); in TEST_F()
126 EvalStatus::kSucceeded, &Policy::UpdateCheckAllowed, &result); in TEST_F()
141 EvalStatus::kSucceeded, &Policy::UpdateCheckAllowed, &result); in TEST_F()
157 EvalStatus::kSucceeded, &Policy::UpdateCheckAllowed, &result); in TEST_F()
168 EvalStatus::kSucceeded, &Policy::UpdateCanBeApplied, &result, &plan); in TEST_F()
183 EvalStatus::kSucceeded, &Policy::UpdateCanBeApplied, &result, &plan); in TEST_F()
Dofficial_build_check_policy_impl.cc22 EvalStatus OnlyUpdateOfficialBuildsPolicyImpl::UpdateCheckAllowed( in UpdateCheckAllowed()
31 return EvalStatus::kAskMeAgainLater; in UpdateCheckAllowed()
33 return EvalStatus::kContinue; in UpdateCheckAllowed()
Denough_slots_ab_updates_policy_impl.cc23 EvalStatus EnoughSlotsAbUpdatesPolicyImpl::UpdateCheckAllowed( in UpdateCheckAllowed()
33 return EvalStatus::kSucceeded; in UpdateCheckAllowed()
35 return EvalStatus::kContinue; in UpdateCheckAllowed()
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));
Dout_of_box_experience_policy_impl.cc23 EvalStatus OobePolicyImpl::UpdateCheckAllowed(EvaluationContext* ec, in UpdateCheckAllowed()
37 return EvalStatus::kAskMeAgainLater; in UpdateCheckAllowed()
40 return EvalStatus::kContinue; in UpdateCheckAllowed()
Dapi_restricted_downloads_policy_impl.cc26 EvalStatus ApiRestrictedDownloadsPolicyImpl::UpdateCanBeApplied( in UpdateCanBeApplied()
38 return EvalStatus::kSucceeded; in UpdateCanBeApplied()
44 return EvalStatus::kContinue; in UpdateCanBeApplied()
Denterprise_device_policy_impl.cc27 EvalStatus EnterpriseDevicePolicyImpl::UpdateCheckAllowed( in UpdateCheckAllowed()
54 return EvalStatus::kAskMeAgainLater; in UpdateCheckAllowed()
66 return EvalStatus::kAskMeAgainLater; in UpdateCheckAllowed()
130 return EvalStatus::kContinue; in UpdateCheckAllowed()
Dmock_update_manager.h35 void(base::Callback<void(EvalStatus, const UpdateCheckParams& result)>
37 EvalStatus (Policy::*policy_method)(

12