Lines Matching refs:uint64_t
36 static constexpr uint64_t NSEC_PER_SEC = 1000000000;
37 static constexpr uint64_t NSEC_PER_YEAR = NSEC_PER_SEC * 60 * 60 * 24 * 365;
53 uint64_t policyEntries = 0; in TEST()
63 uint64_t policySum = 0; in TestConcurrentTimesConsistent()
86 static void TestUidTimesConsistent(const std::vector<std::vector<uint64_t>> &timeInState, in TestUidTimesConsistent()
90 uint64_t policySum = 0; in TestUidTimesConsistent()
92 uint64_t tisSum = in TestUidTimesConsistent()
93 std::accumulate(timeInState[i].begin(), timeInState[i].end(), (uint64_t)0); in TestUidTimesConsistent()
94 uint64_t concurrentSum = std::accumulate(concurrentTime.policy[i].begin(), in TestUidTimesConsistent()
95 concurrentTime.policy[i].end(), (uint64_t)0); in TestUidTimesConsistent()
102 uint64_t activeSum = std::accumulate(concurrentTime.active.begin(), concurrentTime.active.end(), in TestUidTimesConsistent()
103 (uint64_t)0); in TestUidTimesConsistent()
118 uint64_t zero = 0; in TEST()
136 void TestCheckUpdate(const std::vector<std::vector<uint64_t>> &before, in TestCheckUpdate()
137 const std::vector<std::vector<uint64_t>> &after) { in TestCheckUpdate()
139 uint64_t sumBefore = 0, sumAfter = 0; in TestCheckUpdate()
146 sumBefore += std::accumulate(before[i].begin(), before[i].end(), (uint64_t)0); in TestCheckUpdate()
147 sumAfter += std::accumulate(after[i].begin(), after[i].end(), (uint64_t)0); in TestCheckUpdate()
154 uint64_t lastUpdate = 0; in TEST()
158 ASSERT_NE(lastUpdate, (uint64_t)0); in TEST()
159 uint64_t oldLastUpdate = lastUpdate; in TEST()
188 uint64_t zero = 0; in TEST()
212 uint64_t zero = 0; in TEST()
230 uint64_t lastUpdate = 0; in TEST()
234 ASSERT_NE(lastUpdate, (uint64_t)0); in TEST()
242 uint64_t oldLastUpdate = lastUpdate; in TEST()
265 uint64_t zero = 0; in TEST()
286 void TestCheckDelta(uint64_t before, uint64_t after) { in TestCheckDelta()
343 uint64_t zero = 0; in TEST()
364 uint64_t zero = 0; in TEST()
449 uint64_t sum = 0; in TEST()
453 ASSERT_GT(sum, (uint64_t)0); in TEST()
455 uint64_t activeSum = 0; in TEST()
459 ASSERT_GT(activeSum, (uint64_t)0); in TEST()