Home
last modified time | relevance | path

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

/packages/modules/StatsD/statsd/src/
DStatsLogProcessor.cpp141 for (const auto& itr : mMetricsManagers) { in processFiredAnomalyAlarmsLocked()
149 for (const auto& itr : mMetricsManagers) { in onPeriodicAlarmFired()
386 for (auto it = mMetricsManagers.begin(); it != mMetricsManagers.end(); it++) { in resetConfigsLocked()
438 if (mMetricsManagers.empty()) { in OnLogEvent()
474 for (auto& pair : mMetricsManagers) { in OnLogEvent()
538 for (auto& pair : mMetricsManagers) { in GetActiveConfigsLocked()
561 const auto& it = mMetricsManagers.find(key); in OnConfigUpdatedLocked()
563 if (isAtLeastU() && it != mMetricsManagers.end()) { in OnConfigUpdatedLocked()
577 if (!modularUpdate || it == mMetricsManagers.end()) { in OnConfigUpdatedLocked()
597 } else if (it != mMetricsManagers.end() && it->second->hasRestrictedMetricsDelegate()) { in OnConfigUpdatedLocked()
[all …]
DStatsLogProcessor.h192 std::unordered_map<ConfigKey, sp<MetricsManager>> mMetricsManagers; variable
/packages/modules/StatsD/statsd/tests/e2e/
DAnomaly_count_e2e_test.cpp68 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
69 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
70 ASSERT_EQ(1u, processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers.size()); in TEST()
73 processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers[0]; in TEST()
185 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
186 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
187 ASSERT_EQ(1u, processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers.size()); in TEST()
190 processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers[0]; in TEST()
256 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
257 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
[all …]
DAlarm_e2e_test.cpp54 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
55 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
56 ASSERT_EQ(2u, processor->mMetricsManagers.begin()->second->mAllPeriodicAlarmTrackers.size()); in TEST()
58 auto alarmTracker1 = processor->mMetricsManagers.begin()->second->mAllPeriodicAlarmTrackers[0]; in TEST()
59 auto alarmTracker2 = processor->mMetricsManagers.begin()->second->mAllPeriodicAlarmTrackers[1]; in TEST()
DValueMetric_pull_e2e_test.cpp165 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
166 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST()
213 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
214 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
217 int startBucketNum = processor->mMetricsManagers.begin() in TEST()
335 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
336 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
339 int startBucketNum = processor->mMetricsManagers.begin() in TEST()
473 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
474 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
[all …]
DWakelockDuration_e2e_test.cpp123 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
124 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
160 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
161 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
198 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
199 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
245 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
246 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
275 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
276 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
[all …]
DAnomaly_duration_sum_e2e_test.cpp112 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST_F()
113 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST_F()
114 ASSERT_EQ(1u, processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers.size()); in TEST_F()
121 processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers[0]; in TEST_F()
294 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST_F()
295 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST_F()
296 ASSERT_EQ(1u, processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers.size()); in TEST_F()
303 processor->mMetricsManagers.begin()->second->mAllAnomalyTrackers[0]; in TEST_F()
416 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST_F()
417 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST_F()
[all …]
DConfigUpdate_e2e_ab_test.cpp76 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST_P()
77 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST_P()
84 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST_P()
85 EXPECT_EQ(metricsManager == processor->mMetricsManagers.begin()->second, GetParam()); in TEST_P()
118 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST_P()
119 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST_P()
125 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST_P()
126 EXPECT_EQ(metricsManager == processor->mMetricsManagers.begin()->second, GetParam()); in TEST_P()
291 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST_P()
292 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST_P()
[all …]
DGaugeMetric_e2e_pull_test.cpp80 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
81 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
84 int startBucketNum = processor->mMetricsManagers.begin() in TEST()
223 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
224 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
343 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
344 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
347 int startBucketNum = processor->mMetricsManagers.begin() in TEST()
441 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
442 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
[all …]
DConfigTtl_e2e_test.cpp70 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
71 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
99 processor->mMetricsManagers.begin()->second->getTtlEndNs()); in TEST()
DDurationMetric_e2e_test.cpp59 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
60 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST()
142 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
143 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST()
262 ASSERT_EQ(processor.mMetricsManagers.size(), 1u); in TEST()
263 sp<MetricsManager> metricsManager = processor.mMetricsManagers.begin()->second; in TEST()
401 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
402 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST()
511 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
512 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST()
[all …]
DMetricConditionLink_e2e_test.cpp109 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
110 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
228 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
229 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
DAttribution_e2e_test.cpp103 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
104 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
213 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
214 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
DCountMetric_e2e_test.cpp85 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
86 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST()
310 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
311 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST()
464 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
465 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST()
649 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
650 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST()
859 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
860 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST()
DMetricActivation_e2e_test.cpp272 ASSERT_EQ(processor.mMetricsManagers.size(), 1u); in TEST()
273 sp<MetricsManager> metricsManager = processor.mMetricsManagers.begin()->second; in TEST()
490 ASSERT_EQ(processor.mMetricsManagers.size(), 1u); in TEST()
491 sp<MetricsManager> metricsManager = processor.mMetricsManagers.begin()->second; in TEST()
818 ASSERT_EQ(processor.mMetricsManagers.size(), 1u); in TEST()
819 sp<MetricsManager> metricsManager = processor.mMetricsManagers.begin()->second; in TEST()
1158 ASSERT_EQ(processor.mMetricsManagers.size(), 1u); in TEST()
1159 sp<MetricsManager> metricsManager = processor.mMetricsManagers.begin()->second; in TEST()
1362 ASSERT_EQ(processor.mMetricsManagers.size(), 1u); in TEST()
1363 sp<MetricsManager> metricsManager = processor.mMetricsManagers.begin()->second; in TEST()
DKllMetric_e2e_test.cpp202 ASSERT_EQ(0, processor->mMetricsManagers.size()); in TEST_F()
DGaugeMetric_e2e_push_test.cpp138 ASSERT_EQ(processor->mMetricsManagers.size(), 1u); in TEST_F()
139 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST_F()
/packages/modules/StatsD/statsd/tests/
DStatsLogProcessor_test.cpp461 EXPECT_EQ(1, p.mMetricsManagers.size()); in TEST()
462 EXPECT_NE(p.mMetricsManagers.find(key), p.mMetricsManagers.end()); in TEST()
472 EXPECT_EQ(0, p.mMetricsManagers.size()); in TEST()
601 ASSERT_EQ(3, processor.mMetricsManagers.size()); in TEST()
604 auto it = processor.mMetricsManagers.find(cfgKey1); in TEST()
605 EXPECT_TRUE(it != processor.mMetricsManagers.end()); in TEST()
630 it = processor.mMetricsManagers.find(cfgKey2); in TEST()
631 EXPECT_TRUE(it != processor.mMetricsManagers.end()); in TEST()
656 it = processor.mMetricsManagers.find(cfgKey3); in TEST()
657 EXPECT_TRUE(it != processor.mMetricsManagers.end()); in TEST()
[all …]