/frameworks/base/cmds/statsd/tests/external/ |
D | StatsPullerManager_test.cpp | 90 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in createPullerManagerAndRegister() local 92 pullerManager->RegisterPullAtomCallback(uid1, pullTagId1, coolDownNs, timeoutNs, {}, cb1, true); in createPullerManagerAndRegister() 94 pullerManager->RegisterPullAtomCallback(uid2, pullTagId1, coolDownNs, timeoutNs, {}, cb2, true); in createPullerManagerAndRegister() 95 pullerManager->RegisterPullAtomCallback(uid1, pullTagId2, coolDownNs, timeoutNs, {}, cb1, true); in createPullerManagerAndRegister() 96 return pullerManager; in createPullerManagerAndRegister() 101 sp<StatsPullerManager> pullerManager = createPullerManagerAndRegister(); in TEST() local 104 EXPECT_FALSE(pullerManager->Pull(pullTagId1, {unregisteredUid}, /*timestamp =*/1, &data, true)); in TEST() 108 sp<StatsPullerManager> pullerManager = createPullerManagerAndRegister(); in TEST() local 111 EXPECT_TRUE(pullerManager->Pull(pullTagId1, {uid1}, /*timestamp =*/1, &data, true)); in TEST() 119 sp<StatsPullerManager> pullerManager = createPullerManagerAndRegister(); in TEST() local [all …]
|
D | StatsCallbackPuller_test.cpp | 193 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST_F() local 194 pullerManager->RegisterPullAtomCallback(uid, pullTagId, pullCoolDownNs, pullTimeoutNs, in TEST_F() 199 EXPECT_FALSE(pullerManager->Pull(pullTagId, {uid}, startTimeNs, &dataHolder)); in TEST_F()
|
/frameworks/base/cmds/statsd/tests/metrics/ |
D | GaugeMetricProducer_test.cpp | 103 sp<MockStatsPullerManager> pullerManager = new StrictMock<MockStatsPullerManager>(); in TEST() local 109 tagId, 5, 600 * NS_PER_SEC + NS_PER_SEC / 2, pullerManager); in TEST() 137 sp<MockStatsPullerManager> pullerManager = new StrictMock<MockStatsPullerManager>(); in TEST() local 138 EXPECT_CALL(*pullerManager, RegisterReceiver(tagId, kConfigKey, _, _, _)).WillOnce(Return()); in TEST() 139 EXPECT_CALL(*pullerManager, UnRegisterReceiver(tagId, kConfigKey, _)).WillOnce(Return()); in TEST() 140 EXPECT_CALL(*pullerManager, Pull(tagId, kConfigKey, bucketStartTimeNs, _, _)) in TEST() 151 tagId, bucketStartTimeNs, bucketStartTimeNs, pullerManager); in TEST() 218 sp<MockStatsPullerManager> pullerManager = new StrictMock<MockStatsPullerManager>(); in TEST_P() local 230 bucketStartTimeNs, pullerManager); in TEST_P() 310 sp<MockStatsPullerManager> pullerManager = new StrictMock<MockStatsPullerManager>(); in TEST_P() local [all …]
|
D | ValueMetricProducer_test.cpp | 101 sp<MockStatsPullerManager>& pullerManager, ValueMetric& metric) { in createValueProducerNoConditions() argument 109 EXPECT_CALL(*pullerManager, RegisterReceiver(tagId, kConfigKey, _, _, _)) in createValueProducerNoConditions() 111 EXPECT_CALL(*pullerManager, UnRegisterReceiver(tagId, kConfigKey, _)) in createValueProducerNoConditions() 117 bucketStartTimeNs, bucketStartTimeNs, pullerManager); in createValueProducerNoConditions() 123 sp<MockStatsPullerManager>& pullerManager, ValueMetric& metric, in createValueProducerWithCondition() argument 132 EXPECT_CALL(*pullerManager, RegisterReceiver(tagId, kConfigKey, _, _, _)) in createValueProducerWithCondition() 134 EXPECT_CALL(*pullerManager, UnRegisterReceiver(tagId, kConfigKey, _)) in createValueProducerWithCondition() 140 bucketStartTimeNs, pullerManager); in createValueProducerWithCondition() 147 sp<MockStatsPullerManager>& pullerManager, ValueMetric& metric, in createValueProducerWithState() argument 157 EXPECT_CALL(*pullerManager, RegisterReceiver(tagId, kConfigKey, _, _, _)) in createValueProducerWithState() [all …]
|
/frameworks/base/cmds/statsd/tests/shell/ |
D | ShellSubscriber_test.cpp | 41 sp<MockStatsPullerManager> pullerManager, in runShellTest() argument 60 sp<ShellSubscriber> shellClient = new ShellSubscriber(uidMap, pullerManager); in runShellTest() 125 sp<MockStatsPullerManager> pullerManager = new StrictMock<MockStatsPullerManager>(); in TEST() local 142 runShellTest(config, uidMap, pullerManager, pushedList, shellData); in TEST() 191 sp<MockStatsPullerManager> pullerManager = new StrictMock<MockStatsPullerManager>(); in TEST() local 193 EXPECT_CALL(*pullerManager, Pull(10016, uids, _, _, _)) in TEST() 201 runShellTest(getPulledConfig(), uidMap, pullerManager, vector<std::shared_ptr<LogEvent>>(), in TEST()
|
/frameworks/base/cmds/statsd/tests/ |
D | MetricsManager_test.cpp | 384 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST() local 404 kConfigKey, config, uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in TEST() 432 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST() local 451 EXPECT_TRUE(initStatsdConfig(kConfigKey, config, uidMap, pullerManager, anomalyAlarmMonitor, in TEST() 469 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST() local 488 EXPECT_FALSE(initStatsdConfig(kConfigKey, config, uidMap, pullerManager, anomalyAlarmMonitor, in TEST() 500 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST() local 519 EXPECT_FALSE(initStatsdConfig(kConfigKey, config, uidMap, pullerManager, anomalyAlarmMonitor, in TEST() 531 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST() local 549 EXPECT_FALSE(initStatsdConfig(kConfigKey, config, uidMap, pullerManager, anomalyAlarmMonitor, in TEST() [all …]
|
D | StatsLogProcessor_test.cpp | 68 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST() local 72 StatsLogProcessor p(m, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, 0, in TEST() 89 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST() local 93 StatsLogProcessor p(m, pullerManager, anomalyAlarmMonitor, subscriberAlarmMonitor, 0, in TEST() 121 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST() local 125 StatsLogProcessor p(m, pullerManager, anomalyAlarmMonitor, subscriberAlarmMonitor, 0, in TEST() 164 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST() local 170 StatsLogProcessor p(m, pullerManager, anomalyAlarmMonitor, subscriberAlarmMonitor, 0, in TEST() 195 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST() local 201 StatsLogProcessor p(m, pullerManager, anomalyAlarmMonitor, subscriberAlarmMonitor, 0, in TEST() [all …]
|
D | UidMap_test.cpp | 44 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST() local 49 m, pullerManager, anomalyAlarmMonitor, subscriberAlarmMonitor, 0, in TEST()
|
D | statsd_test_util.cpp | 967 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in CreateStatsLogProcessor() local 969 pullerManager->RegisterPullAtomCallback(/*uid=*/0, atomTag, NS_PER_SEC, NS_PER_SEC * 10, {}, in CreateStatsLogProcessor() 981 new StatsLogProcessor(uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in CreateStatsLogProcessor()
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | metrics_manager_util.h | 100 const int64_t currentTimeNs, UidMap& uidMap, const sp<StatsPullerManager>& pullerManager, 120 const sp<StatsPullerManager>& pullerManager,
|
D | metrics_manager_util.cpp | 357 const int64_t currentTimeNs, const sp<StatsPullerManager>& pullerManager, in initMetrics() argument 641 int pullTagId = pullerManager->PullerForMatcherExists(atomTagId) ? atomTagId : -1; in initMetrics() 691 matcherWizard, pullTagId, timeBaseTimeNs, currentTimeNs, pullerManager, in initMetrics() 733 int pullTagId = pullerManager->PullerForMatcherExists(atomTagId) ? atomTagId : -1; in initMetrics() 787 pullerManager, eventActivationMap, eventDeactivationMap); in initMetrics() 918 const sp<StatsPullerManager>& pullerManager, in initStatsdConfig() argument 958 if (!initMetrics(key, config, timeBaseNs, currentTimeNs, pullerManager, logTrackerMap, in initStatsdConfig()
|
D | MetricsManager.cpp | 63 const sp<StatsPullerManager>& pullerManager, in MetricsManager() argument 72 mPullerManager(pullerManager), in MetricsManager() 80 key, config, *uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in MetricsManager()
|
D | GaugeMetricProducer.h | 65 const int64_t startTimeNs, const sp<StatsPullerManager>& pullerManager,
|
D | GaugeMetricProducer.cpp | 76 const int64_t startTimeNs, const sp<StatsPullerManager>& pullerManager, in GaugeMetricProducer() argument 84 mPullerManager(pullerManager),
|
D | MetricsManager.h | 43 const sp<StatsPullerManager>& pullerManager,
|
D | ValueMetricProducer.h | 59 const sp<StatsPullerManager>& pullerManager,
|
D | ValueMetricProducer.cpp | 84 const int64_t startTimeNs, const sp<StatsPullerManager>& pullerManager, in ValueMetricProducer() argument 94 mPullerManager(pullerManager), in ValueMetricProducer()
|
/frameworks/base/cmds/statsd/src/external/ |
D | StatsPullerManager.cpp | 47 PullAtomCallbackDeathCookie(const wp<StatsPullerManager>& pullerManager, in PullAtomCallbackDeathCookie() 49 mPullerManager(pullerManager), mPullerKey(pullerKey), mPuller(puller) { in PullAtomCallbackDeathCookie()
|
/frameworks/base/cmds/statsd/benchmark/ |
D | metric_util.cpp | 354 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in CreateStatsLogProcessor() local 358 new StatsLogProcessor(uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in CreateStatsLogProcessor()
|
/frameworks/base/cmds/statsd/tests/e2e/ |
D | MetricActivation_e2e_test.cpp | 248 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST() local 256 m, pullerManager, anomalyAlarmMonitor, subscriberAlarmMonitor, bucketStartTimeNs, in TEST() 459 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST() local 467 m, pullerManager, anomalyAlarmMonitor, subscriberAlarmMonitor, bucketStartTimeNs, in TEST() 780 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST() local 788 m, pullerManager, anomalyAlarmMonitor, subscriberAlarmMonitor, bucketStartTimeNs, in TEST() 1113 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST() local 1121 m, pullerManager, anomalyAlarmMonitor, subscriberAlarmMonitor, bucketStartTimeNs, in TEST() 1310 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST() local 1318 m, pullerManager, anomalyAlarmMonitor, subscriberAlarmMonitor, bucketStartTimeNs, in TEST()
|
D | DurationMetric_e2e_test.cpp | 235 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST() local 242 m, pullerManager, anomalyAlarmMonitor, subscriberAlarmMonitor, bucketStartTimeNs, in TEST()
|
/frameworks/base/cmds/statsd/src/ |
D | StatsLogProcessor.h | 39 StatsLogProcessor(const sp<UidMap>& uidMap, const sp<StatsPullerManager>& pullerManager,
|
D | StatsLogProcessor.cpp | 87 const sp<StatsPullerManager>& pullerManager, in StatsLogProcessor() argument 95 mPullerManager(pullerManager), in StatsLogProcessor()
|