Home
last modified time | relevance | path

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

/system/update_engine/
Dupdate_attempter.cc460 << utils::FormatSecs(scatter_factor_.InSeconds()); in CalculateUpdateParams()
499 TimeDelta old_scatter_factor = scatter_factor_; in CalculateScatteringParams()
506 scatter_factor_ = TimeDelta::FromSeconds(new_scatter_factor_in_secs); in CalculateScatteringParams()
510 if (scatter_factor_.InSeconds() == 0) { in CalculateScatteringParams()
538 wait_period_in_secs <= scatter_factor_.InSeconds()) { in CalculateScatteringParams()
560 } else if (scatter_factor_ != old_scatter_factor) { in CalculateScatteringParams()
607 TimeDelta::FromSeconds(base::RandInt(1, scatter_factor_.InSeconds()))); in GenerateNewWaitingPeriod()
658 scatter_factor_ = TimeDelta(); in CalculateStagingParams()
Dupdate_attempter.h539 base::TimeDelta scatter_factor_; variable
Dupdate_attempter_unittest.cc1128 EXPECT_EQ(scatter_factor_in_seconds, attempter_.scatter_factor_.InSeconds()); in ReadScatterFactorFromPolicyTestStart()
1166 EXPECT_EQ(scatter_factor_in_seconds, attempter_.scatter_factor_.InSeconds()); in DecrementUpdateCheckCountTestStart()
1237 EXPECT_EQ(scatter_factor_in_seconds, attempter_.scatter_factor_.InSeconds()); in NoScatteringDoneDuringManualUpdateTestStart()
1261 attempter_.scatter_factor_ = TimeDelta::FromSeconds(20); in SetUpStagingTest()
1309 EXPECT_EQ(0, attempter_.scatter_factor_.InSeconds()); in StagingSetsPrefsAndTurnsOffScatteringStart()
1329 EXPECT_EQ(0, attempter_.scatter_factor_.InSeconds()); in CheckStagingOff()