Lines Matching refs:EvalStatus
212 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()
333 if (check_status == EvalStatus::kFailed) in UpdateCanStart()
334 return EvalStatus::kFailed; in UpdateCanStart()
335 bool is_check_due = (check_status == EvalStatus::kSucceeded && in UpdateCanStart()
342 EvalStatus backoff_url_status = UpdateBackoffAndDownloadUrl( in UpdateCanStart()
344 if (backoff_url_status == EvalStatus::kFailed) in UpdateCanStart()
345 return EvalStatus::kFailed; in UpdateCanStart()
351 (backoff_url_status == EvalStatus::kAskMeAgainLater) || in UpdateCanStart()
356 EvalStatus scattering_status = EvalStatus::kSucceeded; in UpdateCanStart()
389 if (scattering_status == EvalStatus::kFailed) { in UpdateCanStart()
390 return EvalStatus::kFailed; in UpdateCanStart()
394 if (scattering_status == EvalStatus::kAskMeAgainLater || in UpdateCanStart()
403 EvalStatus p2p_enabled_status = P2PEnabled(ec, state, error, &p2p_enabled); in UpdateCanStart()
404 if (p2p_enabled_status != EvalStatus::kSucceeded) in UpdateCanStart()
405 return EvalStatus::kFailed; in UpdateCanStart()
445 return EvalStatus::kSucceeded; in UpdateCanStart()
457 return EvalStatus::kSucceeded; in UpdateCanStart()
462 return EvalStatus::kSucceeded; in UpdateCanStart()
476 EvalStatus ChromeOSPolicy::UpdateDownloadAllowed(EvaluationContext* ec, in UpdateDownloadAllowed()
510 return EvalStatus::kFailed; in UpdateDownloadAllowed()
518 return EvalStatus::kSucceeded; in UpdateDownloadAllowed()
531 return EvalStatus::kSucceeded; in UpdateDownloadAllowed()
544 return (*result ? EvalStatus::kSucceeded : EvalStatus::kAskMeAgainLater); in UpdateDownloadAllowed()
547 EvalStatus ChromeOSPolicy::P2PEnabled(EvaluationContext* ec, in P2PEnabled()
581 return EvalStatus::kSucceeded; in P2PEnabled()
584 EvalStatus ChromeOSPolicy::P2PEnabledChanged(EvaluationContext* ec, in P2PEnabledChanged()
589 EvalStatus status = P2PEnabled(ec, state, error, result); in P2PEnabledChanged()
590 if (status == EvalStatus::kSucceeded && *result == prev_result) in P2PEnabledChanged()
591 return EvalStatus::kAskMeAgainLater; in P2PEnabledChanged()
595 EvalStatus ChromeOSPolicy::UpdateBackoffAndDownloadUrl( in UpdateBackoffAndDownloadUrl()
631 return EvalStatus::kAskMeAgainLater; in UpdateBackoffAndDownloadUrl()
683 return EvalStatus::kFailed; in UpdateBackoffAndDownloadUrl()
696 return EvalStatus::kFailed; in UpdateBackoffAndDownloadUrl()
785 return EvalStatus::kSucceeded; in UpdateBackoffAndDownloadUrl()
788 EvalStatus ChromeOSPolicy::UpdateScattering( in UpdateScattering()
809 return EvalStatus::kSucceeded; in UpdateScattering()
815 return EvalStatus::kSucceeded; in UpdateScattering()
862 EvalStatus ret = EvalStatus::kSucceeded; in UpdateScattering()
865 ret = EvalStatus::kAskMeAgainLater; in UpdateScattering()