Searched refs:countProducer (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/cmds/statsd/tests/metrics/ |
D | CountMetricProducer_test.cpp | 77 CountMetricProducer countProducer(kConfigKey, metric, -1 /*-1 meaning no condition*/, {}, in TEST() local 79 EXPECT_EQ(600500000000, countProducer.mCurrentBucketStartTimeNs); in TEST() 80 EXPECT_EQ(10, countProducer.mCurrentBucketNum); in TEST() 81 EXPECT_EQ(660000000005, countProducer.getCurrentBucketEndTimeNs()); in TEST() 97 CountMetricProducer countProducer(kConfigKey, metric, -1 /*-1 meaning no condition*/, {}, in TEST() local 106 countProducer.onMatchedLogEvent(1 /*log matcher index*/, event1); in TEST() 107 countProducer.onMatchedLogEvent(1 /*log matcher index*/, event2); in TEST() 110 countProducer.flushIfNeededLocked(bucketStartTimeNs + 2); in TEST() 111 ASSERT_EQ(0UL, countProducer.mPastBuckets.size()); in TEST() 114 countProducer.flushIfNeededLocked(bucketStartTimeNs + bucketSizeNs + 1); in TEST() [all …]
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | metrics_manager_util.cpp | 447 sp<MetricProducer> countProducer = in initMetrics() local 451 allMetricProducers.push_back(countProducer); in initMetrics()
|