Searched refs:gaugeProducer (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/cmds/statsd/tests/metrics/ |
D | GaugeMetricProducer_test.cpp | 107 GaugeMetricProducer gaugeProducer(kConfigKey, metric, -1 /*-1 meaning no condition*/, {}, in TEST() local 110 gaugeProducer.prepareFirstBucket(); in TEST() 112 EXPECT_EQ(600500000000, gaugeProducer.mCurrentBucketStartTimeNs); in TEST() 113 EXPECT_EQ(10, gaugeProducer.mCurrentBucketNum); in TEST() 114 EXPECT_EQ(660000000005, gaugeProducer.getCurrentBucketEndTimeNs()); in TEST() 149 GaugeMetricProducer gaugeProducer(kConfigKey, metric, -1 /*-1 meaning no condition*/, {}, in TEST() local 152 gaugeProducer.prepareFirstBucket(); in TEST() 158 gaugeProducer.onDataPulled(allData, /** succeed */ true, bucket2StartTimeNs); in TEST() 159 ASSERT_EQ(1UL, gaugeProducer.mCurrentSlicedBucket->size()); in TEST() 160 auto it = gaugeProducer.mCurrentSlicedBucket->begin()->second.front().mFields->begin(); in TEST() [all …]
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | metrics_manager_util.cpp | 784 sp<MetricProducer> gaugeProducer = new GaugeMetricProducer( in initMetrics() local 788 allMetricProducers.push_back(gaugeProducer); in initMetrics()
|