Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/src/
DStatsLogProcessor.cpp117 for (const auto& itr : mMetricsManagers) { in onAnomalyAlarmFired()
126 for (const auto& itr : mMetricsManagers) { in onPeriodicAlarmFired()
190 for (auto it = mMetricsManagers.begin(); it != mMetricsManagers.end(); it++) { in resetConfigsLocked()
217 if (mMetricsManagers.empty()) { in OnLogEvent()
236 for (auto& pair : mMetricsManagers) { in OnLogEvent()
296 for (auto& pair : mMetricsManagers) { in GetActiveConfigsLocked()
319 mMetricsManagers[key] = newMetricsManager; in OnConfigUpdatedLocked()
329 auto it = mMetricsManagers.find(key); in GetMetricsSize()
330 if (it == mMetricsManagers.end()) { in GetMetricsSize()
343 fprintf(fout, "MetricsManager count: %lu\n", (unsigned long)mMetricsManagers.size()); in dumpStates()
[all …]
DStatsLogProcessor.h139 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()
DValueMetric_pull_e2e_test.cpp74 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
75 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
78 int startBucketNum = processor->mMetricsManagers.begin()->second-> in TEST()
178 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
179 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
182 int startBucketNum = processor->mMetricsManagers.begin()->second-> in TEST()
290 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
291 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
294 int startBucketNum = processor->mMetricsManagers.begin()->second-> in TEST()
297 EXPECT_FALSE(processor->mMetricsManagers.begin()->second->mAllMetricProducers[0]->isActive()); in TEST()
[all …]
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()
276 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
277 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()
DGaugeMetric_e2e_pull_test.cpp74 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
75 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
78 int startBucketNum = processor->mMetricsManagers.begin()->second-> in TEST()
219 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
220 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
223 int startBucketNum = processor->mMetricsManagers.begin()->second-> in TEST()
320 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
321 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
324 int startBucketNum = processor->mMetricsManagers.begin()->second-> in TEST()
429 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
[all …]
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()
DDurationMetric_e2e_test.cpp60 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
61 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST()
143 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
144 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST()
254 EXPECT_EQ(processor.mMetricsManagers.size(), 1u); in TEST()
255 sp<MetricsManager> metricsManager = processor.mMetricsManagers.begin()->second; in TEST()
393 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
394 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST()
492 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
493 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST()
[all …]
DMetricConditionLink_e2e_test.cpp110 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
111 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
232 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
233 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()
214 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
215 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.cpp127 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
128 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
466 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
467 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
716 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
717 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()
DMetricActivation_e2e_test.cpp269 EXPECT_EQ(processor.mMetricsManagers.size(), 1u); in TEST()
270 sp<MetricsManager> metricsManager = processor.mMetricsManagers.begin()->second; in TEST()
483 EXPECT_EQ(processor.mMetricsManagers.size(), 1u); in TEST()
484 sp<MetricsManager> metricsManager = processor.mMetricsManagers.begin()->second; in TEST()
806 EXPECT_EQ(processor.mMetricsManagers.size(), 1u); in TEST()
807 sp<MetricsManager> metricsManager = processor.mMetricsManagers.begin()->second; in TEST()
1141 EXPECT_EQ(processor.mMetricsManagers.size(), 1u); in TEST()
1142 sp<MetricsManager> metricsManager = processor.mMetricsManagers.begin()->second; in TEST()
1338 EXPECT_EQ(processor.mMetricsManagers.size(), 1u); in TEST()
1339 sp<MetricsManager> metricsManager = processor.mMetricsManagers.begin()->second; in TEST()
/frameworks/base/cmds/statsd/tests/
DStatsLogProcessor_test.cpp411 EXPECT_EQ(3, processor.mMetricsManagers.size()); in TEST()
414 auto it = processor.mMetricsManagers.find(cfgKey1); in TEST()
415 EXPECT_TRUE(it != processor.mMetricsManagers.end()); in TEST()
440 it = processor.mMetricsManagers.find(cfgKey2); in TEST()
441 EXPECT_TRUE(it != processor.mMetricsManagers.end()); in TEST()
466 it = processor.mMetricsManagers.find(cfgKey3); in TEST()
467 EXPECT_TRUE(it != processor.mMetricsManagers.end()); in TEST()
531 EXPECT_EQ(3, processor2->mMetricsManagers.size()); in TEST()
534 it = processor2->mMetricsManagers.find(cfgKey1); in TEST()
535 EXPECT_TRUE(it != processor2->mMetricsManagers.end()); in TEST()
[all …]