Home
last modified time | relevance | path

Searched refs:mAllMetricProducers (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/cmds/statsd/tests/
DStatsLogProcessor_test.cpp419 auto metricIt = metricsManager1->mAllMetricProducers.begin(); in TEST()
420 for (; metricIt != metricsManager1->mAllMetricProducers.end(); metricIt++) { in TEST()
425 EXPECT_TRUE(metricIt != metricsManager1->mAllMetricProducers.end()); in TEST()
429 metricIt = metricsManager1->mAllMetricProducers.begin(); in TEST()
430 for (; metricIt != metricsManager1->mAllMetricProducers.end(); metricIt++) { in TEST()
435 EXPECT_TRUE(metricIt != metricsManager1->mAllMetricProducers.end()); in TEST()
445 metricIt = metricsManager2->mAllMetricProducers.begin(); in TEST()
446 for (; metricIt != metricsManager2->mAllMetricProducers.end(); metricIt++) { in TEST()
451 EXPECT_TRUE(metricIt != metricsManager2->mAllMetricProducers.end()); in TEST()
455 metricIt = metricsManager2->mAllMetricProducers.begin(); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/metrics/
DMetricsManager.cpp81 mAllMetricProducers, mAllAnomalyTrackers, mAllPeriodicAlarmTrackers, in MetricsManager()
118 if (mAllMetricProducers.size() > StatsdStats::kMaxMetricCountPerConfig || in MetricsManager()
129 mIsAlwaysActive = (mMetricIndexesWithActivation.size() != mAllMetricProducers.size()) || in MetricsManager()
130 (mAllMetricProducers.size() == 0); in MetricsManager()
133 isActive |= mAllMetricProducers[metric]->isActive(); in MetricsManager()
140 key, mAllMetricProducers.size(), mAllConditionTrackers.size(), mAllAtomMatchers.size(), in MetricsManager()
143 for (const auto& metric : mAllMetricProducers) { in MetricsManager()
178 for (auto it : mAllMetricProducers) { in notifyAppUpgrade()
193 for (auto it : mAllMetricProducers) { in notifyAppRemoved()
224 for (const auto& producer : mAllMetricProducers) { in dumpStates()
[all …]
DMetricsManager.h73 return mNoReportMetricIds.size() != mAllMetricProducers.size(); in shouldWriteToDisk()
115 return mAllMetricProducers.size(); in getNumMetrics()
197 std::vector<sp<MetricProducer>> mAllMetricProducers; variable
/frameworks/base/cmds/statsd/tests/e2e/
DValueMetric_pull_e2e_test.cpp79 mAllMetricProducers[0]->getCurrentBucketNum(); in TEST()
183 mAllMetricProducers[0]->getCurrentBucketNum(); in TEST()
295 mAllMetricProducers[0]->getCurrentBucketNum(); in TEST()
297 EXPECT_FALSE(processor->mMetricsManagers.begin()->second->mAllMetricProducers[0]->isActive()); in TEST()
311 EXPECT_FALSE(processor->mMetricsManagers.begin()->second->mAllMetricProducers[0]->isActive()); in TEST()
317 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->mAllMetricProducers[0]->isActive()); in TEST()
328 EXPECT_FALSE(processor->mMetricsManagers.begin()->second->mAllMetricProducers[0]->isActive()); in TEST()
DDurationMetric_e2e_test.cpp63 EXPECT_EQ(metricsManager->mAllMetricProducers.size(), 1); in TEST()
64 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST()
146 EXPECT_EQ(metricsManager->mAllMetricProducers.size(), 1); in TEST()
147 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST()
257 EXPECT_EQ(metricsManager->mAllMetricProducers.size(), 1); in TEST()
258 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST()
396 EXPECT_EQ(metricsManager->mAllMetricProducers.size(), 1); in TEST()
397 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST()
495 EXPECT_EQ(metricsManager->mAllMetricProducers.size(), 1); in TEST()
496 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST()
[all …]
DGaugeMetric_e2e_pull_test.cpp79 mAllMetricProducers[0]->getCurrentBucketNum(); in TEST()
224 mAllMetricProducers[0]->getCurrentBucketNum(); in TEST()
325 mAllMetricProducers[0]->getCurrentBucketNum(); in TEST()
434 mAllMetricProducers[0]->getCurrentBucketNum(); in TEST()
436 EXPECT_FALSE(processor->mMetricsManagers.begin()->second->mAllMetricProducers[0]->isActive()); in TEST()
451 EXPECT_FALSE(processor->mMetricsManagers.begin()->second->mAllMetricProducers[0]->isActive()); in TEST()
457 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->mAllMetricProducers[0]->isActive()); in TEST()
471 EXPECT_FALSE(processor->mMetricsManagers.begin()->second->mAllMetricProducers[0]->isActive()); in TEST()
552 mAllMetricProducers[0]->getCurrentBucketNum(); in TEST()
DMetricActivation_e2e_test.cpp272 EXPECT_EQ(metricsManager->mAllMetricProducers.size(), 1); in TEST()
273 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST()
486 EXPECT_EQ(metricsManager->mAllMetricProducers.size(), 1); in TEST()
487 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST()
809 EXPECT_EQ(metricsManager->mAllMetricProducers.size(), 1); in TEST()
810 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST()
1144 EXPECT_EQ(metricsManager->mAllMetricProducers.size(), 1); in TEST()
1145 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST()
1341 EXPECT_EQ(metricsManager->mAllMetricProducers.size(), 2); in TEST()
1342 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST()
[all …]