Home
last modified time | relevance | path

Searched refs:scatter_factor_ (Results 1 – 3 of 3) sorted by relevance

/system/update_engine/cros/
Dupdate_attempter.cc417 << utils::FormatSecs(scatter_factor_.InSeconds()); in CalculateUpdateParams()
456 TimeDelta old_scatter_factor = scatter_factor_; in CalculateScatteringParams()
464 scatter_factor_ = TimeDelta::FromSeconds(new_scatter_factor_in_secs); in CalculateScatteringParams()
468 if (scatter_factor_.InSeconds() == 0) { in CalculateScatteringParams()
496 wait_period_in_secs <= scatter_factor_.InSeconds()) { in CalculateScatteringParams()
518 } else if (scatter_factor_ != old_scatter_factor) { in CalculateScatteringParams()
565 TimeDelta::FromSeconds(base::RandInt(1, scatter_factor_.InSeconds()))); in GenerateNewWaitingPeriod()
616 scatter_factor_ = TimeDelta(); in CalculateStagingParams()
Dupdate_attempter.h527 base::TimeDelta scatter_factor_; variable
Dupdate_attempter_unittest.cc1083 EXPECT_EQ(scatter_factor_in_seconds, attempter_.scatter_factor_.InSeconds()); in ReadScatterFactorFromPolicyTestStart()
1119 EXPECT_EQ(scatter_factor_in_seconds, attempter_.scatter_factor_.InSeconds()); in DecrementUpdateCheckCountTestStart()
1179 EXPECT_EQ(scatter_factor_in_seconds, attempter_.scatter_factor_.InSeconds()); in NoScatteringDoneDuringManualUpdateTestStart()
1199 attempter_.scatter_factor_ = TimeDelta::FromSeconds(20); in SetUpStagingTest()
1247 EXPECT_EQ(0, attempter_.scatter_factor_.InSeconds()); in StagingSetsPrefsAndTurnsOffScatteringStart()
1267 EXPECT_EQ(0, attempter_.scatter_factor_.InSeconds()); in CheckStagingOff()