Lines Matching refs:result
215 UpdateCheckParams* result) const { in UpdateCheckAllowed()
217 result->updates_enabled = true; in UpdateCheckAllowed()
218 result->target_channel.clear(); in UpdateCheckAllowed()
219 result->target_version_prefix.clear(); in UpdateCheckAllowed()
220 result->rollback_allowed = false; in UpdateCheckAllowed()
221 result->rollback_allowed_milestones = -1; in UpdateCheckAllowed()
222 result->interactive = false; in UpdateCheckAllowed()
263 result); in UpdateCheckAllowed()
276 ErrorCode* result, in UpdateCanBeApplied() argument
295 result, in UpdateCanBeApplied()
302 *result = ErrorCode::kSuccess; in UpdateCanBeApplied()
311 UpdateDownloadParams* result, in UpdateCanStart() argument
318 result->update_can_start = false; in UpdateCanStart()
319 result->cannot_start_reason = UpdateCannotStartReason::kUndefined; in UpdateCanStart()
320 result->download_url_idx = -1; in UpdateCanStart()
321 result->download_url_allowed = true; in UpdateCanStart()
322 result->download_url_num_errors = 0; in UpdateCanStart()
323 result->p2p_downloading_allowed = false; in UpdateCanStart()
324 result->p2p_sharing_allowed = false; in UpdateCanStart()
325 result->do_increment_failures = false; 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()
346 result->download_url_idx = backoff_url_result.url_idx; in UpdateCanStart()
347 result->download_url_num_errors = backoff_url_result.url_num_errors; in UpdateCanStart()
348 result->do_increment_failures = backoff_url_result.do_increment_failures; in UpdateCanStart()
349 result->backoff_expiry = backoff_url_result.backoff_expiry; in UpdateCanStart()
370 result->scatter_wait_period = kZeroInterval; in UpdateCanStart()
371 result->scatter_check_threshold = 0; in UpdateCanStart()
392 result->scatter_wait_period = scatter_result.wait_period; in UpdateCanStart()
393 result->scatter_check_threshold = scatter_result.check_threshold; in UpdateCanStart()
413 result->p2p_sharing_allowed = true; in UpdateCanStart()
434 result->p2p_downloading_allowed = true; in UpdateCanStart()
437 result->download_url_allowed = false; in UpdateCanStart()
444 result->cannot_start_reason = UpdateCannotStartReason::kCheckDue; in UpdateCanStart()
448 result->cannot_start_reason = UpdateCannotStartReason::kBackoff; in UpdateCanStart()
452 result->cannot_start_reason = UpdateCannotStartReason::kScattering; in UpdateCanStart()
455 if (result->download_url_idx < 0 && !result->p2p_downloading_allowed) { in UpdateCanStart()
456 result->cannot_start_reason = UpdateCannotStartReason::kCannotDownload; in UpdateCanStart()
461 result->update_can_start = true; in UpdateCanStart()
479 bool* result) const { in UpdateDownloadAllowed()
499 *result = true; in UpdateDownloadAllowed()
503 *result = false; in UpdateDownloadAllowed()
517 if (*result) in UpdateDownloadAllowed()
530 *result = true; in UpdateDownloadAllowed()
539 *result = true; in UpdateDownloadAllowed()
544 return (*result ? EvalStatus::kSucceeded : EvalStatus::kAskMeAgainLater); in UpdateDownloadAllowed()
550 bool* result) const { in P2PEnabled()
580 *result = enabled; in P2PEnabled()
587 bool* result, in P2PEnabledChanged() argument
589 EvalStatus status = P2PEnabled(ec, state, error, result); in P2PEnabledChanged()
590 if (status == EvalStatus::kSucceeded && *result == prev_result) in P2PEnabledChanged()
599 UpdateBackoffAndDownloadUrlResult* result, in UpdateBackoffAndDownloadUrl() argument
604 result->do_increment_failures = false; in UpdateBackoffAndDownloadUrl()
605 result->backoff_expiry = update_state.backoff_expiry; in UpdateBackoffAndDownloadUrl()
606 result->url_idx = -1; in UpdateBackoffAndDownloadUrl()
607 result->url_num_errors = 0; in UpdateBackoffAndDownloadUrl()
781 result->do_increment_failures = is_failure_occurred; in UpdateBackoffAndDownloadUrl()
782 result->backoff_expiry = backoff_expiry; in UpdateBackoffAndDownloadUrl()
783 result->url_idx = url_idx; in UpdateBackoffAndDownloadUrl()
784 result->url_num_errors = url_num_errors; in UpdateBackoffAndDownloadUrl()
792 UpdateScatteringResult* result, in UpdateScattering() argument
799 result->is_scattering = false; in UpdateScattering()
800 result->wait_period = kZeroInterval; in UpdateScattering()
801 result->check_threshold = 0; in UpdateScattering()
866 result->is_scattering = is_scattering; in UpdateScattering()
867 result->wait_period = wait_period; in UpdateScattering()
868 result->check_threshold = check_threshold; in UpdateScattering()