/packages/modules/StatsD/statsd/tests/ |
D | MetricsManager_test.cpp | 154 MetricsManager metricsManager(kConfigKey, config, timeBaseSec, timeBaseSec, uidMap, in TEST() local 156 EXPECT_TRUE(metricsManager.isConfigValid()); in TEST() 158 EXPECT_THAT(metricsManager.mAllowedUid, ElementsAre(AID_SYSTEM)); in TEST() 159 EXPECT_THAT(metricsManager.mAllowedPkg, ElementsAre(app1)); in TEST() 160 EXPECT_THAT(metricsManager.mAllowedLogSources, in TEST() 162 EXPECT_THAT(metricsManager.mDefaultPullUids, ContainerEq(defaultPullUids)); in TEST() 164 vector<int32_t> atom1Uids = metricsManager.getPullAtomUids(atom1); in TEST() 168 vector<int32_t> atom2Uids = metricsManager.getPullAtomUids(atom2); in TEST() 172 vector<int32_t> atom3Uids = metricsManager.getPullAtomUids(atom3); in TEST() 223 MetricsManager metricsManager(kConfigKey, config, timeBaseSec, timeBaseSec, uidMap, in TEST() local [all …]
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | DurationMetric_e2e_test.cpp | 61 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST() local 62 EXPECT_TRUE(metricsManager->isConfigValid()); in TEST() 63 ASSERT_EQ(metricsManager->mAllMetricProducers.size(), 1); in TEST() 64 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() 65 EXPECT_TRUE(metricsManager->isActive()); in TEST() 144 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST() local 145 EXPECT_TRUE(metricsManager->isConfigValid()); in TEST() 146 ASSERT_EQ(metricsManager->mAllMetricProducers.size(), 1); in TEST() 147 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() 148 EXPECT_TRUE(metricsManager->isActive()); in TEST() [all …]
|
D | MetricActivation_e2e_test.cpp | 271 sp<MetricsManager> metricsManager = processor.mMetricsManagers.begin()->second; in TEST() local 272 EXPECT_TRUE(metricsManager->isConfigValid()); in TEST() 273 ASSERT_EQ(metricsManager->mAllMetricProducers.size(), 1); in TEST() 274 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() 277 EXPECT_FALSE(metricsManager->isActive()); in TEST() 295 EXPECT_FALSE(metricsManager->isActive()); in TEST() 302 EXPECT_TRUE(metricsManager->isActive()); in TEST() 321 EXPECT_TRUE(metricsManager->isActive()); in TEST() 334 EXPECT_TRUE(metricsManager->isActive()); in TEST() 352 EXPECT_FALSE(metricsManager->isActive()); in TEST() [all …]
|
D | CountMetric_e2e_test.cpp | 87 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST() local 88 EXPECT_TRUE(metricsManager->isConfigValid()); in TEST() 89 EXPECT_EQ(2, metricsManager->mAllMetricProducers.size()); in TEST() 91 sp<MetricProducer> metricProducer1 = metricsManager->mAllMetricProducers[0]; in TEST() 92 sp<MetricProducer> metricProducer2 = metricsManager->mAllMetricProducers[1]; in TEST() 155 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST() local 156 EXPECT_TRUE(metricsManager->isConfigValid()); in TEST() 157 ASSERT_EQ(metricsManager->mAllMetricProducers.size(), 1); in TEST() 158 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() 310 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST() local [all …]
|
D | ConfigUpdate_e2e_ab_test.cpp | 78 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST_P() local 79 EXPECT_TRUE(metricsManager->isConfigValid()); in TEST_P() 86 EXPECT_EQ(metricsManager == processor->mMetricsManagers.begin()->second, GetParam()); in TEST_P() 87 EXPECT_TRUE(metricsManager->isConfigValid()); in TEST_P() 120 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST_P() local 121 EXPECT_TRUE(metricsManager->isConfigValid()); in TEST_P() 127 EXPECT_EQ(metricsManager == processor->mMetricsManagers.begin()->second, GetParam()); in TEST_P() 128 EXPECT_TRUE(metricsManager->isConfigValid()); in TEST_P() 292 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST_P() local 293 EXPECT_EQ(metricsManager->getTtlEndNs(), baseTimeNs + NS_PER_SEC); in TEST_P() [all …]
|
D | ValueMetric_pull_e2e_test.cpp | 166 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST() local 167 EXPECT_TRUE(metricsManager->isConfigValid()); in TEST() 168 EXPECT_EQ(3, metricsManager->mAllMetricProducers.size()); in TEST() 171 sp<MetricProducer> metricProducer1 = metricsManager->mAllMetricProducers[0]; in TEST() 173 sp<MetricProducer> metricProducer2 = metricsManager->mAllMetricProducers[2]; in TEST() 555 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST() local 556 EXPECT_TRUE(metricsManager->isConfigValid()); in TEST() 557 ASSERT_EQ(1, metricsManager->mAllMetricProducers.size()); in TEST() 558 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() 615 sp<MetricsManager> metricsManager = processor->mMetricsManagers.begin()->second; in TEST() local [all …]
|
/packages/modules/StatsD/statsd/src/ |
D | StatsLogProcessor.cpp | 581 for (auto metricsManager : mMetricsManagers) { in dumpStates() local 582 metricsManager.second->dumpStates(fout, verbose); in dumpStates() 779 MetricsManager& metricsManager) { in flushIfNecessaryLocked() argument 789 size_t totalBytes = metricsManager.byteSize(); in flushIfNecessaryLocked() 794 metricsManager.dropData(elapsedRealtimeNs); in flushIfNecessaryLocked() 910 const sp<MetricsManager>& metricsManager = pair.second; in WriteMetadataToProtoLocked() local 912 bool metadataWritten = metricsManager->writeMetadataToProto(currentWallClockTimeNs, in WriteMetadataToProtoLocked() 983 const sp<MetricsManager>& metricsManager = pair.second; in WriteActiveConfigsToProtoOutputStreamLocked() local 986 metricsManager->writeActiveConfigToProtoOutputStream(currentTimeNs, reason, proto); in WriteActiveConfigsToProtoOutputStreamLocked()
|
D | StatsLogProcessor.h | 226 void flushIfNecessaryLocked(const ConfigKey& key, MetricsManager& metricsManager);
|
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/ |
D | metrics_manager_util_test.cpp | 926 sp<MetricsManager> metricsManager = in TEST() local 929 EXPECT_FALSE(metricsManager->isConfigValid()); in TEST()
|