Home
last modified time | relevance | path

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

/frameworks/native/libs/cputimeinstate/
Dtesttimeinstate.cpp63 uint64_t policySum = 0; in TestConcurrentTimesConsistent() local
66 if (i < vec.size()) policySum += vec[i]; in TestConcurrentTimesConsistent()
68 ASSERT_LE(concurrentTime.active[i], policySum); in TestConcurrentTimesConsistent()
69 policySum -= concurrentTime.active[i]; in TestConcurrentTimesConsistent()
71 policySum = 0; in TestConcurrentTimesConsistent()
74 if (i < vec.size()) policySum += vec[vec.size() - 1 - i]; in TestConcurrentTimesConsistent()
81 ASSERT_LE(activeSum, policySum); in TestConcurrentTimesConsistent()
82 policySum -= activeSum; in TestConcurrentTimesConsistent()
90 uint64_t policySum = 0; in TestUidTimesConsistent() local
100 policySum += concurrentSum; in TestUidTimesConsistent()
[all …]
Dcputimeinstate.cpp344 uint64_t policySum = 0; in verifyConcurrentTimes() local
346 policySum += std::accumulate(vec.begin(), vec.end(), (uint64_t)0); in verifyConcurrentTimes()
348 return activeSum == policySum; in verifyConcurrentTimes()