/packages/modules/StatsD/statsd/src/ |
D | StatsLogProcessor.cpp | 141 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 …]
|
D | StatsLogProcessor.h | 192 std::unordered_map<ConfigKey, sp<MetricsManager>> mMetricsManagers; variable
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | Anomaly_count_e2e_test.cpp | 68 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 …]
|
D | Alarm_e2e_test.cpp | 54 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()
|
D | ValueMetric_pull_e2e_test.cpp | 165 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 …]
|
D | WakelockDuration_e2e_test.cpp | 123 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 …]
|
D | Anomaly_duration_sum_e2e_test.cpp | 112 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 …]
|
D | ConfigUpdate_e2e_ab_test.cpp | 76 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 …]
|
D | GaugeMetric_e2e_pull_test.cpp | 80 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 …]
|
D | ConfigTtl_e2e_test.cpp | 70 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()
|
D | DurationMetric_e2e_test.cpp | 59 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 …]
|
D | MetricConditionLink_e2e_test.cpp | 109 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()
|
D | Attribution_e2e_test.cpp | 103 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()
|
D | CountMetric_e2e_test.cpp | 85 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()
|
D | MetricActivation_e2e_test.cpp | 272 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()
|
D | KllMetric_e2e_test.cpp | 202 ASSERT_EQ(0, processor->mMetricsManagers.size()); in TEST_F()
|
D | GaugeMetric_e2e_push_test.cpp | 138 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/ |
D | StatsLogProcessor_test.cpp | 461 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 …]
|