Home | History | Annotate | Download | only in brillo

Lines Matching refs:policy_

18     : policy_(policy) {
19 DCHECK(policy_);
46 if (policy_->always_use_initial_delay)
47 delay = base::TimeDelta::FromMilliseconds(policy_->initial_delay_ms);
73 if (policy_->entry_lifetime_ms == -1)
88 return unused_since_ms >= std::max(policy_->maximum_backoff_ms,
89 policy_->entry_lifetime_ms);
94 return unused_since_ms >= policy_->entry_lifetime_ms;
114 std::max(0, failure_count_ - policy_->num_errors_to_ignore);
118 if (policy_->always_use_initial_delay)
134 double delay_ms = policy_->initial_delay_ms;
135 delay_ms *= pow(policy_->multiply_factor, effective_failure_count - 1);
136 delay_ms -= base::RandDouble() * policy_->jitter_factor * delay_ms;
148 if (policy_->maximum_backoff_ms >= 0) {
149 maximum_release_time_us = policy_->maximum_backoff_ms;