/frameworks/base/cmds/statsd/src/ |
D | StatsLogProcessor.cpp | 96 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 …]
|
D | StatsLogProcessor.h | 117 std::unordered_map<ConfigKey, sp<MetricsManager>> mMetricsManagers; variable
|
/frameworks/base/cmds/statsd/tests/e2e/ |
D | Alarm_e2e_test.cpp | 55 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()
|
D | WakelockDuration_e2e_test.cpp | 125 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 …]
|
D | Anomaly_count_e2e_test.cpp | 69 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()
|
D | Anomaly_duration_sum_e2e_test.cpp | 105 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 …]
|
D | ConfigTtl_e2e_test.cpp | 72 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()
|
D | ValueMetric_pull_e2e_test.cpp | 67 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()
|
D | GaugeMetric_e2e_pull_test.cpp | 67 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()
|
D | MetricConditionLink_e2e_test.cpp | 111 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()
|
D | Attribution_e2e_test.cpp | 66 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()
|
D | DimensionInCondition_e2e_combination_OR_cond_test.cpp | 79 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()
|
D | DimensionInCondition_e2e_simple_cond_test.cpp | 84 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()
|
D | DimensionInCondition_e2e_combination_AND_cond_test.cpp | 99 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()
|
D | GaugeMetric_e2e_push_test.cpp | 101 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST() 102 EXPECT_TRUE(processor->mMetricsManagers.begin()->second->isConfigValid()); in TEST()
|