/system/update_engine/update_manager/ |
D | policy_utils.h | 37 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 …]
|
D | android_things_policy.cc | 47 EvalStatus AndroidThingsPolicy::UpdateCheckAllowed( in UpdateCheckAllowed() 87 EvalStatus status = ConsultPolicies(policies_to_consult, in UpdateCheckAllowed() 93 if (status != EvalStatus::kContinue) { in UpdateCheckAllowed() 98 return EvalStatus::kSucceeded; in UpdateCheckAllowed() 104 EvalStatus AndroidThingsPolicy::UpdateCanBeApplied( in UpdateCanBeApplied() 123 EvalStatus status = ConsultPolicies(policies_to_consult, in UpdateCanBeApplied() 130 if (EvalStatus::kContinue != status) { in UpdateCanBeApplied() 136 return EvalStatus::kSucceeded; in UpdateCanBeApplied() 141 EvalStatus AndroidThingsPolicy::UpdateCanStart(EvaluationContext* ec, in UpdateCanStart() 148 return EvalStatus::kSucceeded; in UpdateCanStart() [all …]
|
D | default_policy.cc | 37 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 …]
|
D | update_manager-inl.h | 32 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 …]
|
D | chromeos_policy.cc | 201 EvalStatus ChromeOSPolicy::UpdateCheckAllowed(EvaluationContext* ec, in UpdateCheckAllowed() 247 EvalStatus status = ConsultPolicies(policies_to_consult, in UpdateCheckAllowed() 253 if (EvalStatus::kContinue != status) { in UpdateCheckAllowed() 258 return EvalStatus::kSucceeded; in UpdateCheckAllowed() 262 EvalStatus ChromeOSPolicy::UpdateCanBeApplied(EvaluationContext* ec, in UpdateCanBeApplied() 279 EvalStatus status = ConsultPolicies(policies_to_consult, in UpdateCanBeApplied() 286 if (EvalStatus::kContinue != status) { in UpdateCanBeApplied() 292 return EvalStatus::kSucceeded; in UpdateCanBeApplied() 296 EvalStatus ChromeOSPolicy::UpdateCanStart( in UpdateCanStart() 321 EvalStatus check_status = UpdateCheckAllowed(ec, state, error, &check_result); in UpdateCanStart() [all …]
|
D | policy.cc | 25 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()
|
D | update_manager_unittest.cc | 106 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 …]
|
D | interactive_update_policy_impl.cc | 25 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()
|
D | update_time_restrictions_policy_impl.cc | 34 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()
|
D | chromeos_policy.h | 57 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,
|
D | android_things_policy.h | 35 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,
|
D | update_time_restrictions_policy_impl_unittest.cc | 54 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()
|
D | next_update_check_policy_impl.cc | 34 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()
|
D | update_manager.h | 73 EvalStatus PolicyRequest( 74 EvalStatus (Policy::*policy_method)( 89 base::Callback<void(EvalStatus, const R& result)> callback, 90 EvalStatus (Policy::*policy_method)( 113 EvalStatus EvaluatePolicy( 115 EvalStatus (Policy::*policy_method)( 129 base::Callback<void(EvalStatus status, const R& result)> callback, 130 EvalStatus (Policy::*policy_method)(
|
D | chromeos_policy_unittest.cc | 148 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() 344 EvalStatus::kAskMeAgainLater, &Policy::UpdateCheckAllowed, &result); in TEST_F() 357 EvalStatus::kSucceeded, &Policy::UpdateCheckAllowed, &result); in TEST_F() 371 EvalStatus::kAskMeAgainLater, &Policy::UpdateCheckAllowed, &result); in TEST_F() [all …]
|
D | policy.h | 33 enum class EvalStatus { enum 40 std::string ToString(EvalStatus status); 208 std::string PolicyRequestName(EvalStatus (Policy::*policy_method)( in PolicyRequestName() 244 virtual EvalStatus UpdateCheckAllowed(EvaluationContext* ec, 253 virtual EvalStatus UpdateCanBeApplied( 266 virtual EvalStatus UpdateCanStart(EvaluationContext* ec, 278 virtual EvalStatus UpdateDownloadAllowed(EvaluationContext* ec, 285 virtual EvalStatus P2PEnabled(EvaluationContext* ec, 295 virtual EvalStatus P2PEnabledChanged(EvaluationContext* ec,
|
D | default_policy.h | 68 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,
|
D | android_things_policy_unittest.cc | 90 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()
|
D | official_build_check_policy_impl.cc | 22 EvalStatus OnlyUpdateOfficialBuildsPolicyImpl::UpdateCheckAllowed( in UpdateCheckAllowed() 31 return EvalStatus::kAskMeAgainLater; in UpdateCheckAllowed() 33 return EvalStatus::kContinue; in UpdateCheckAllowed()
|
D | enough_slots_ab_updates_policy_impl.cc | 23 EvalStatus EnoughSlotsAbUpdatesPolicyImpl::UpdateCheckAllowed( in UpdateCheckAllowed() 33 return EvalStatus::kSucceeded; in UpdateCheckAllowed() 35 return EvalStatus::kContinue; in UpdateCheckAllowed()
|
D | mock_policy.h | 70 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));
|
D | out_of_box_experience_policy_impl.cc | 23 EvalStatus OobePolicyImpl::UpdateCheckAllowed(EvaluationContext* ec, in UpdateCheckAllowed() 37 return EvalStatus::kAskMeAgainLater; in UpdateCheckAllowed() 40 return EvalStatus::kContinue; in UpdateCheckAllowed()
|
D | api_restricted_downloads_policy_impl.cc | 26 EvalStatus ApiRestrictedDownloadsPolicyImpl::UpdateCanBeApplied( in UpdateCanBeApplied() 38 return EvalStatus::kSucceeded; in UpdateCanBeApplied() 44 return EvalStatus::kContinue; in UpdateCanBeApplied()
|
D | enterprise_device_policy_impl.cc | 27 EvalStatus EnterpriseDevicePolicyImpl::UpdateCheckAllowed( in UpdateCheckAllowed() 54 return EvalStatus::kAskMeAgainLater; in UpdateCheckAllowed() 66 return EvalStatus::kAskMeAgainLater; in UpdateCheckAllowed() 134 return EvalStatus::kContinue; in UpdateCheckAllowed()
|
D | policy_test_utils.h | 58 void ExpectStatus(EvalStatus expected, T method, R* result, Args... args) { in ExpectStatus() 71 EvalStatus CallMethodWithContext(T method, R* result, Args... args) { in CallMethodWithContext() 80 void ExpectPolicyStatus(EvalStatus expected, in ExpectPolicyStatus()
|