Lines Matching refs:bucketStartTimeNs

60     int64_t bucketStartTimeNs = 10000000000;  in TEST()  local
62 int64_t eventStartTimeNs = bucketStartTimeNs + 1; in TEST()
66 bucketStartTimeNs, bucketNum, bucketStartTimeNs, bucketSizeNs, in TEST()
94 int64_t bucketStartTimeNs = 10000000000; in TEST() local
96 int64_t eventStartTimeNs = bucketStartTimeNs + 1; in TEST()
98 OringDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, true, bucketStartTimeNs, in TEST()
99 bucketNum, bucketStartTimeNs, bucketSizeNs, false, false, {}); in TEST()
109 tracker.flushIfNeeded(bucketStartTimeNs + bucketSizeNs + 1, emptyThreshold, &buckets); in TEST()
127 int64_t bucketStartTimeNs = 10000000000; in TEST() local
129 int64_t eventStartTimeNs = bucketStartTimeNs + 1; in TEST()
131 OringDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, true, bucketStartTimeNs, in TEST()
132 bucketNum, bucketStartTimeNs, bucketSizeNs, false, false, {}); in TEST()
141 tracker.flushIfNeeded(bucketStartTimeNs + bucketSizeNs + 1, emptyThreshold, &buckets); in TEST()
157 int64_t bucketStartTimeNs = 10000000000; in TEST() local
159 int64_t eventStartTimeNs = bucketStartTimeNs + 1; in TEST()
162 OringDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, true, bucketStartTimeNs, in TEST()
163 bucketNum, bucketStartTimeNs, bucketSizeNs, false, false, {}); in TEST()
171 EXPECT_EQ((long long)(bucketStartTimeNs + 2 * bucketSizeNs), tracker.mLastStartTime); in TEST()
202 int64_t bucketStartTimeNs = 10000000000; in TEST() local
204 int64_t eventStartTimeNs = bucketStartTimeNs + 1; in TEST()
208 bucketStartTimeNs, bucketNum, bucketStartTimeNs, bucketSizeNs, in TEST()
218 tracker.flushIfNeeded(bucketStartTimeNs + bucketSizeNs + 1, emptyThreshold, &buckets); in TEST()
241 int64_t bucketStartTimeNs = 10000000000; in TEST() local
244 int64_t eventStartTimeNs = bucketStartTimeNs + 1; in TEST()
248 bucketStartTimeNs, bucketNum, bucketStartTimeNs, bucketSizeNs, in TEST()
260 tracker.flushIfNeeded(bucketStartTimeNs + bucketSizeNs + 1, emptyThreshold, &buckets); in TEST()
281 int64_t bucketStartTimeNs = 10000000000; in TEST() local
284 int64_t eventStartTimeNs = bucketStartTimeNs + 1; in TEST()
286 OringDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, true, bucketStartTimeNs, in TEST()
287 bucketNum, bucketStartTimeNs, bucketSizeNs, true, false, {}); in TEST()
300 tracker.flushIfNeeded(bucketStartTimeNs + bucketSizeNs + 1, emptyThreshold, &buckets); in TEST()
321 int64_t bucketStartTimeNs = 10 * NS_PER_SEC; in TEST() local
323 int64_t eventStartTimeNs = bucketStartTimeNs + NS_PER_SEC + 1; in TEST()
328 OringDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, true, bucketStartTimeNs, in TEST()
329 bucketNum, bucketStartTimeNs, bucketSizeNs, true, false, in TEST()
354 EXPECT_EQ(3LL + bucketStartTimeNs + bucketSizeNs - eventStartTimeNs - 10, in TEST()
357 const int64_t bucket0Duration = 3ULL + bucketStartTimeNs + bucketSizeNs - eventStartTimeNs - 10; in TEST()
358 const int64_t bucket1Duration = eventStartTimeNs + 10 - bucketStartTimeNs; in TEST()
371 int64_t event3StartTimeNs = bucketStartTimeNs + 2 * bucketSizeNs - 9 * NS_PER_SEC; in TEST()
386 int64_t bucketStartTimeNs = 10 * NS_PER_SEC; in TEST() local
395 true, bucketStartTimeNs, bucketNum, bucketStartTimeNs, in TEST()
398 int64_t eventStartTimeNs = bucketStartTimeNs + 9 * NS_PER_SEC; in TEST()
402 EXPECT_EQ((long long)(bucketStartTimeNs + 14 * NS_PER_SEC), in TEST()
405 tracker.noteStop(DEFAULT_DIMENSION_KEY, bucketStartTimeNs + 14 * NS_PER_SEC, false); in TEST()
407 EXPECT_EQ((long long)(bucketStartTimeNs + 34 * NS_PER_SEC) / NS_PER_SEC, in TEST()
410 int64_t event2StartTimeNs = bucketStartTimeNs + 22 * NS_PER_SEC; in TEST()
411 EXPECT_EQ((long long)(bucketStartTimeNs + 34 * NS_PER_SEC) / NS_PER_SEC, in TEST()
413 EXPECT_EQ((long long)(bucketStartTimeNs + 35 * NS_PER_SEC), in TEST()
432 int64_t bucketStartTimeNs = 10 * NS_PER_SEC; in TEST() local
440 1, true, bucketStartTimeNs, bucketNum, bucketStartTimeNs, in TEST()
443 int64_t eventStartTimeNs = bucketStartTimeNs + 9 * NS_PER_SEC; in TEST()
492 int64_t bucketStartTimeNs = 10 * NS_PER_SEC; in TEST() local
494 int64_t eventStartTimeNs = bucketStartTimeNs + NS_PER_SEC + 1; in TEST()
500 bucketStartTimeNs, bucketNum, bucketStartTimeNs, bucketSizeNs, in TEST()
544 int64_t bucketStartTimeNs = 10 * NS_PER_SEC; in TEST() local
551 bucketStartTimeNs, 0, bucketStartTimeNs, bucketSizeNs, false, in TEST()
602 int64_t bucketStartTimeNs = 10000000000; in TEST() local
604 int64_t eventStartTimeNs = bucketStartTimeNs + 1; in TEST()
605 int64_t event2StartTimeNs = bucketStartTimeNs + bucketSizeNs + 1; in TEST()
612 bucketStartTimeNs, bucketNum, bucketStartTimeNs, bucketSizeNs, in TEST()
644 int64_t bucketStartTimeNs = 10 * NS_PER_SEC; in TEST() local
645 int64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST()
647 int64_t eventStartTimeNs = bucketStartTimeNs + NS_PER_SEC + 1; in TEST()
653 bucketStartTimeNs, bucketNum, bucketStartTimeNs, bucketSizeNs, in TEST()
658 tracker.noteStop(kEventKey1, bucketStartTimeNs + 50, false); in TEST()
661 tracker.noteStart(kEventKey1, true, bucketStartTimeNs + 100, ConditionKey(), in TEST()
664 tracker.onConditionChanged(false, bucketStartTimeNs + 150); in TEST()
675 tracker.noteStop(kEventKey1, bucketStartTimeNs + bucketSizeNs + 200, false); in TEST()
689 int64_t bucketStartTimeNs = 10 * NS_PER_SEC; in TEST() local
690 int64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST()
692 int64_t eventStartTimeNs = bucketStartTimeNs + NS_PER_SEC + 1; in TEST()
697 bucketStartTimeNs, bucketNum, bucketStartTimeNs, bucketSizeNs, in TEST()