Home
last modified time | relevance | path

Searched refs:pullerManager (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/cmds/statsd/tests/external/
DStatsPullerManager_test.cpp90 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 …]
DStatsCallbackPuller_test.cpp193 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/
DGaugeMetricProducer_test.cpp103 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 …]
DValueMetricProducer_test.cpp101 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/
DShellSubscriber_test.cpp41 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/
DMetricsManager_test.cpp384 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 …]
DStatsLogProcessor_test.cpp68 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 …]
DUidMap_test.cpp44 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST() local
49 m, pullerManager, anomalyAlarmMonitor, subscriberAlarmMonitor, 0, in TEST()
Dstatsd_test_util.cpp967 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/
Dmetrics_manager_util.h100 const int64_t currentTimeNs, UidMap& uidMap, const sp<StatsPullerManager>& pullerManager,
120 const sp<StatsPullerManager>& pullerManager,
Dmetrics_manager_util.cpp357 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()
DMetricsManager.cpp63 const sp<StatsPullerManager>& pullerManager, in MetricsManager() argument
72 mPullerManager(pullerManager), in MetricsManager()
80 key, config, *uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in MetricsManager()
DGaugeMetricProducer.h65 const int64_t startTimeNs, const sp<StatsPullerManager>& pullerManager,
DGaugeMetricProducer.cpp76 const int64_t startTimeNs, const sp<StatsPullerManager>& pullerManager, in GaugeMetricProducer() argument
84 mPullerManager(pullerManager),
DMetricsManager.h43 const sp<StatsPullerManager>& pullerManager,
DValueMetricProducer.h59 const sp<StatsPullerManager>& pullerManager,
DValueMetricProducer.cpp84 const int64_t startTimeNs, const sp<StatsPullerManager>& pullerManager, in ValueMetricProducer() argument
94 mPullerManager(pullerManager), in ValueMetricProducer()
/frameworks/base/cmds/statsd/src/external/
DStatsPullerManager.cpp47 PullAtomCallbackDeathCookie(const wp<StatsPullerManager>& pullerManager, in PullAtomCallbackDeathCookie()
49 mPullerManager(pullerManager), mPullerKey(pullerKey), mPuller(puller) { in PullAtomCallbackDeathCookie()
/frameworks/base/cmds/statsd/benchmark/
Dmetric_util.cpp354 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in CreateStatsLogProcessor() local
358 new StatsLogProcessor(uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in CreateStatsLogProcessor()
/frameworks/base/cmds/statsd/tests/e2e/
DMetricActivation_e2e_test.cpp248 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()
DDurationMetric_e2e_test.cpp235 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST() local
242 m, pullerManager, anomalyAlarmMonitor, subscriberAlarmMonitor, bucketStartTimeNs, in TEST()
/frameworks/base/cmds/statsd/src/
DStatsLogProcessor.h39 StatsLogProcessor(const sp<UidMap>& uidMap, const sp<StatsPullerManager>& pullerManager,
DStatsLogProcessor.cpp87 const sp<StatsPullerManager>& pullerManager, in StatsLogProcessor() argument
95 mPullerManager(pullerManager), in StatsLogProcessor()