Home
last modified time | relevance | path

Searched refs:policySum (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/libs/cputimeinstate/
Dtesttimeinstate.cpp88 uint64_t policySum = 0; in TestConcurrentTimesConsistent() local
91 if (i < vec.size()) policySum += vec[i]; in TestConcurrentTimesConsistent()
93 ASSERT_LE(concurrentTime.active[i], policySum); in TestConcurrentTimesConsistent()
94 policySum -= concurrentTime.active[i]; in TestConcurrentTimesConsistent()
96 policySum = 0; in TestConcurrentTimesConsistent()
99 if (i < vec.size()) policySum += vec[vec.size() - 1 - i]; in TestConcurrentTimesConsistent()
106 ASSERT_LE(activeSum, policySum); in TestConcurrentTimesConsistent()
107 policySum -= activeSum; in TestConcurrentTimesConsistent()
115 uint64_t policySum = 0; in TestUidTimesConsistent() local
125 policySum += concurrentSum; in TestUidTimesConsistent()
[all …]
Dcputimeinstate.cpp411 uint64_t policySum = 0; in verifyConcurrentTimes() local
413 policySum += std::accumulate(vec.begin(), vec.end(), (uint64_t)0); in verifyConcurrentTimes()
415 return activeSum == policySum; in verifyConcurrentTimes()