Home
last modified time | relevance | path

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

/system/update_engine/common/
Dcpu_limiter_unittest.cc29 int CompareCpuShares(CpuShares shares_lhs, CpuShares shares_rhs) { in CompareCpuShares()
36 EXPECT_LT(CompareCpuShares(CpuShares::kLow, CpuShares::kNormal), 0); in TEST()
37 EXPECT_GT(CompareCpuShares(CpuShares::kNormal, CpuShares::kLow), 0); in TEST()
38 EXPECT_EQ(CompareCpuShares(CpuShares::kNormal, CpuShares::kNormal), 0); in TEST()
39 EXPECT_GT(CompareCpuShares(CpuShares::kHigh, CpuShares::kNormal), 0); in TEST()
Dcpu_limiter.h27 enum class CpuShares : int { enum
46 bool SetCpuShares(CpuShares shares);
54 CpuShares shares_ = CpuShares::kNormal;
Dcpu_limiter.cc40 CPULimiter::SetCpuShares(CpuShares::kNormal); in ~CPULimiter()
52 SetCpuShares(CpuShares::kLow); in StartLimiter()
62 SetCpuShares(CpuShares::kNormal); in StopLimiter()
65 bool CPULimiter::SetCpuShares(CpuShares shares) { in SetCpuShares()
84 SetCpuShares(CpuShares::kNormal); in StopLimiterCallback()