Home
last modified time | relevance | path

Searched refs:mMetricsManagers (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/cmds/statsd/src/
DStatsLogProcessor.cpp96 for (const auto& itr : mMetricsManagers) { in onAnomalyAlarmFired()
105 for (const auto& itr : mMetricsManagers) { in onPeriodicAlarmFired()
173 for (auto it = mMetricsManagers.begin(); it != mMetricsManagers.end(); it++) { in resetConfigsLocked()
235 if (mMetricsManagers.empty()) { in OnLogEvent()
252 for (auto& pair : mMetricsManagers) { in OnLogEvent()
279 mMetricsManagers[key] = newMetricsManager; in OnConfigUpdatedLocked()
289 auto it = mMetricsManagers.find(key); in GetMetricsSize()
290 if (it == mMetricsManagers.end()) { in GetMetricsSize()
299 fprintf(out, "MetricsManager count: %lu\n", (unsigned long)mMetricsManagers.size()); in dumpStates()
300 for (auto metricsManager : mMetricsManagers) { in dumpStates()
[all …]
DStatsLogProcessor.h117 std::unordered_map<ConfigKey, sp<MetricsManager>> mMetricsManagers; variable
/frameworks/base/cmds/statsd/tests/e2e/
DAlarm_e2e_test.cpp55 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
56 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
57 EXPECT_EQ(2u, processor->mMetricsManagers.begin()->second->mAllPeriodicAlarmTrackers.size()); in TEST()
59 auto alarmTracker1 = processor->mMetricsManagers.begin()->second->mAllPeriodicAlarmTrackers[0]; in TEST()
60 auto alarmTracker2 = processor->mMetricsManagers.begin()->second->mAllPeriodicAlarmTrackers[1]; in TEST()
DWakelockDuration_e2e_test.cpp125 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
126 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
162 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
163 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
199 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
200 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
246 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
247 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
275 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
276 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
[all …]
DAnomaly_count_e2e_test.cpp69 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
70 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
71 EXPECT_EQ(1u, processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers.size()); in TEST()
74 processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers[0]; in TEST()
172 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
173 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
174 EXPECT_EQ(1u, processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers.size()); in TEST()
177 processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers[0]; in TEST()
DAnomaly_duration_sum_e2e_test.cpp105 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
106 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
107 EXPECT_EQ(1u, processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers.size()); in TEST()
110 processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers[0]; in TEST()
282 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
283 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
284 EXPECT_EQ(1u, processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers.size()); in TEST()
287 processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers[0]; in TEST()
395 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
396 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
[all …]
DConfigTtl_e2e_test.cpp72 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
73 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
98 processor->mMetricsManagers.begin()->second->getTtlEndNs()); in TEST()
DValueMetric_pull_e2e_test.cpp67 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
68 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
71 int startBucketNum = processor->mMetricsManagers.begin()->second-> in TEST()
174 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
175 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
178 int startBucketNum = processor->mMetricsManagers.begin()->second-> in TEST()
DGaugeMetric_e2e_pull_test.cpp67 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
68 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
71 int startBucketNum = processor->mMetricsManagers.begin()->second-> in TEST()
213 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
214 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
217 int startBucketNum = processor->mMetricsManagers.begin()->second-> in TEST()
314 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
315 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
318 int startBucketNum = processor->mMetricsManagers.begin()->second-> in TEST()
DMetricConditionLink_e2e_test.cpp111 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
112 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
233 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
234 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
DAttribution_e2e_test.cpp66 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
67 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
212 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
213 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
DDimensionInCondition_e2e_combination_OR_cond_test.cpp79 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
80 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
291 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
292 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
478 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
479 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
684 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
685 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
DDimensionInCondition_e2e_simple_cond_test.cpp84 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
85 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
370 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
371 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
592 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
593 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
DDimensionInCondition_e2e_combination_AND_cond_test.cpp99 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
100 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
438 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
439 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
688 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
689 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
DGaugeMetric_e2e_push_test.cpp101 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
102 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()