Searched refs:countProducer (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/cmds/statsd/tests/metrics/ |
D | CountMetricProducer_test.cpp | 46 CountMetricProducer countProducer(kConfigKey, metric, -1 /*-1 meaning no condition*/, wizard, in TEST() local 48 EXPECT_EQ(600500000000, countProducer.mCurrentBucketStartTimeNs); in TEST() 49 EXPECT_EQ(10, countProducer.mCurrentBucketNum); in TEST() 50 EXPECT_EQ(660000000005, countProducer.getCurrentBucketEndTimeNs()); in TEST() 71 CountMetricProducer countProducer(kConfigKey, metric, -1 /*-1 meaning no condition*/, wizard, in TEST() local 75 countProducer.onMatchedLogEvent(1 /*log matcher index*/, event1); in TEST() 76 countProducer.onMatchedLogEvent(1 /*log matcher index*/, event2); in TEST() 79 countProducer.flushIfNeededLocked(bucketStartTimeNs + 2); in TEST() 80 EXPECT_EQ(0UL, countProducer.mPastBuckets.size()); in TEST() 83 countProducer.flushIfNeededLocked(bucketStartTimeNs + bucketSizeNs + 1); in TEST() [all …]
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | metrics_manager_util.cpp | 338 sp<MetricProducer> countProducer = in initMetrics() local 340 allMetricProducers.push_back(countProducer); in initMetrics()
|