Home
last modified time | relevance | path

Searched refs:kConfigKey (Results 1 – 14 of 14) sorted by relevance

/packages/modules/StatsD/statsd/tests/metrics/
DGaugeMetricProducer_test.cpp47 const ConfigKey kConfigKey(0, 12345); variable
104 GaugeMetricProducer gaugeProducer(kConfigKey, metric, -1 /*-1 meaning no condition*/, {}, in TEST()
132 EXPECT_CALL(*pullerManager, RegisterReceiver(tagId, kConfigKey, _, _, _)).WillOnce(Return()); in TEST()
133 EXPECT_CALL(*pullerManager, UnRegisterReceiver(tagId, kConfigKey, _)).WillOnce(Return()); in TEST()
134 EXPECT_CALL(*pullerManager, Pull(tagId, kConfigKey, bucketStartTimeNs, _)) in TEST()
143 GaugeMetricProducer gaugeProducer(kConfigKey, metric, -1 /*-1 meaning no condition*/, {}, in TEST()
218 GaugeMetricProducer gaugeProducer(kConfigKey, metric, -1 /*-1 meaning no condition*/, {}, in TEST_P()
300 EXPECT_CALL(*pullerManager, RegisterReceiver(tagId, kConfigKey, _, _, _)).WillOnce(Return()); in TEST_P()
301 EXPECT_CALL(*pullerManager, UnRegisterReceiver(tagId, kConfigKey, _)).WillOnce(Return()); in TEST_P()
302 EXPECT_CALL(*pullerManager, Pull(tagId, kConfigKey, _, _)) in TEST_P()
[all …]
DOringDurationTracker_test.cpp39 const ConfigKey kConfigKey(0, 12345); variable
65 OringDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, false, in TEST()
96 OringDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, true, bucketStartTimeNs, in TEST()
127 OringDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, true, bucketStartTimeNs, in TEST()
156 OringDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, true, bucketStartTimeNs, in TEST()
199 OringDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, false, in TEST()
238 OringDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, false, in TEST()
276 OringDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, true, bucketStartTimeNs, in TEST()
315 new DurationAnomalyTracker(alert, kConfigKey, alarmMonitor); in TEST()
316 OringDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, true, bucketStartTimeNs, in TEST()
[all …]
DMaxDurationTracker_test.cpp40 const ConfigKey kConfigKey(0, 12345); variable
67 MaxDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, -1, false, bucketStartTimeNs, in TEST()
101 MaxDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, -1, false, bucketStartTimeNs, in TEST()
135 MaxDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, -1, false, bucketStartTimeNs, in TEST()
174 MaxDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, -1, true, bucketStartTimeNs, in TEST()
219 MaxDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, false, bucketStartTimeNs, in TEST()
266 new DurationAnomalyTracker(alert, kConfigKey, alarmMonitor); in TEST()
267 MaxDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, false, bucketStartTimeNs, in TEST()
325 new DurationAnomalyTracker(alert, kConfigKey, alarmMonitor); in TEST()
326 MaxDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, false, bucketStartTimeNs, in TEST()
[all …]
DDurationMetricProducer_test.cpp47 const ConfigKey kConfigKey(0, 12345); variable
76 kConfigKey, metric, -1 /*no condition*/, {}, -1 /*what index not needed*/, in TEST()
104 kConfigKey, metric, -1 /*no condition*/, {}, -1 /*what index not needed*/, in TEST()
147 kConfigKey, metric, 0 /* condition index */, {ConditionState::kUnknown}, in TEST()
198 kConfigKey, metric, 0 /* condition index */, {ConditionState::kUnknown}, in TEST()
245 kConfigKey, metric, -1 /* no condition */, {}, -1 /*what index not needed*/, in TEST_P()
308 kConfigKey, metric, -1 /* no condition */, {}, -1 /*what index not needed*/, in TEST_P()
372 kConfigKey, metric, -1 /* no condition */, {}, -1 /*what index not needed*/, in TEST_P()
419 kConfigKey, metric, -1 /* no condition */, {}, -1 /*what index not needed*/, in TEST_P()
473 kConfigKey, metric, -1 /* no condition */, {}, -1 /*what index not needed*/, in TEST_P()
DCountMetricProducer_test.cpp43 const ConfigKey kConfigKey(0, 12345); variable
78 CountMetricProducer countProducer(kConfigKey, metric, -1 /*-1 meaning no condition*/, {}, in TEST()
98 CountMetricProducer countProducer(kConfigKey, metric, -1 /*-1 meaning no condition*/, {}, in TEST()
161 CountMetricProducer countProducer(kConfigKey, metric, 0, {ConditionState::kUnknown}, wizard, in TEST()
229 CountMetricProducer countProducer(kConfigKey, metric, 0 /*condition tracker index*/, in TEST()
268 CountMetricProducer countProducer(kConfigKey, metric, -1 /* no condition */, {}, wizard, in TEST_P()
336 CountMetricProducer countProducer(kConfigKey, metric, -1 /* no condition */, {}, wizard, in TEST_P()
401 CountMetricProducer countProducer(kConfigKey, metric, -1 /*-1 meaning no condition*/, {}, in TEST()
464 CountMetricProducer countProducer(kConfigKey, metric, -1 /* meaning no condition */, {}, wizard, in TEST()
DValueMetricProducer_test.cpp46 const ConfigKey kConfigKey(0, 12345); variable
112 EXPECT_CALL(*pullerManager, RegisterReceiver(tagId, kConfigKey, _, _, _)) in createValueProducerNoConditions()
114 EXPECT_CALL(*pullerManager, UnRegisterReceiver(tagId, kConfigKey, _)) in createValueProducerNoConditions()
118 new ValueMetricProducer(kConfigKey, metric, -1 /*-1 meaning no condition*/, {}, in createValueProducerNoConditions()
131 EXPECT_CALL(*pullerManager, RegisterReceiver(tagId, kConfigKey, _, _, _)) in createValueProducerWithCondition()
133 EXPECT_CALL(*pullerManager, UnRegisterReceiver(tagId, kConfigKey, _)) in createValueProducerWithCondition()
137 kConfigKey, metric, 0 /*condition index*/, {ConditionState::kUnknown}, wizard, in createValueProducerWithCondition()
152 EXPECT_CALL(*pullerManager, RegisterReceiver(tagId, kConfigKey, _, _, _)) in createValueProducerWithState()
154 EXPECT_CALL(*pullerManager, UnRegisterReceiver(tagId, kConfigKey, _)) in createValueProducerWithState()
158 kConfigKey, metric, -1 /* no condition */, {}, wizard, protoHash, in createValueProducerWithState()
[all …]
DEventMetricProducer_test.cpp41 const ConfigKey kConfigKey(0, 12345); variable
70 EventMetricProducer eventProducer(kConfigKey, metric, -1 /*-1 meaning no condition*/, {}, in TEST()
106 EventMetricProducer eventProducer(kConfigKey, metric, 0 /*condition index*/, in TEST()
162 EventMetricProducer eventProducer(kConfigKey, metric, 0 /*condition index*/, in TEST()
/packages/modules/StatsD/statsd/tests/
DMetricsManager_test.cpp51 const ConfigKey kConfigKey(0, 12345); variable
130 EXPECT_CALL(*pullerManager, RegisterPullUidProvider(kConfigKey, _)).Times(1); in TEST()
131 EXPECT_CALL(*pullerManager, UnregisterPullUidProvider(kConfigKey, _)).Times(1); in TEST()
154 MetricsManager metricsManager(kConfigKey, config, timeBaseSec, timeBaseSec, uidMap, in TEST()
201 EXPECT_CALL(*pullerManager, RegisterPullUidProvider(kConfigKey, _)).Times(1); in TEST()
202 EXPECT_CALL(*pullerManager, UnregisterPullUidProvider(kConfigKey, _)).Times(1); in TEST()
223 MetricsManager metricsManager(kConfigKey, config, timeBaseSec, timeBaseSec, uidMap, in TEST()
277 MetricsManager metricsManager(kConfigKey, config, timeBaseSec, timeBaseSec, uidMap, in TEST()
312 MetricsManager metricsManager(kConfigKey, config, timeBaseSec, timeBaseSec, uidMap, in TEST()
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dmetrics_manager_util_test.cpp53 const ConfigKey kConfigKey(0, 12345); variable
407 kConfigKey, config, uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in TEST()
460 kConfigKey, config, uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in TEST()
502 kConfigKey, config, uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in TEST()
537 kConfigKey, config, uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in TEST()
571 kConfigKey, config, uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in TEST()
605 kConfigKey, config, uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in TEST()
640 kConfigKey, config, uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in TEST()
675 kConfigKey, config, uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in TEST()
824 kConfigKey, metric, 0, {ConditionState::kUnknown}, wizard, 0x0123456789, 0, 0)}); in TEST()
[all …]
/packages/modules/StatsD/statsd/tests/condition/
DSimpleConditionTracker_test.cpp37 const ConfigKey kConfigKey(0, 12345); variable
127 SimpleConditionTracker conditionTracker(kConfigKey, StringToId("SCREEN_IS_ON"), protoHash, in TEST()
181 SimpleConditionTracker conditionTracker(kConfigKey, StringToId("SCREEN_IS_ON"), protoHash, in TEST()
235 SimpleConditionTracker conditionTracker(kConfigKey, StringToId("SCREEN_IS_ON"), protoHash, in TEST()
322 SimpleConditionTracker conditionTracker(kConfigKey, StringToId("SCREEN_IS_ON"), protoHash, in TEST()
397 SimpleConditionTracker conditionTracker(kConfigKey, StringToId(conditionName), protoHash, in TEST()
519 SimpleConditionTracker conditionTracker(kConfigKey, StringToId(conditionName), protoHash, in TEST()
615 SimpleConditionTracker conditionTracker(kConfigKey, StringToId(conditionName), protoHash, in TEST()
/packages/modules/StatsD/statsd/tests/anomaly/
DAlarmTracker_test.cpp35 const ConfigKey kConfigKey(0, 12345); variable
47 AlarmTracker tracker(startMillis, startMillis, alarm, kConfigKey, subscriberAlarmMonitor); in TEST()
DAnomalyTracker_test.cpp37 const ConfigKey kConfigKey(0, 12345); variable
130 AnomalyTracker anomalyTracker(alert, kConfigKey); in TEST()
275 AnomalyTracker anomalyTracker(alert, kConfigKey); in TEST()
/packages/modules/StatsD/statsd/tests/e2e/
DPartialBucket_e2e_test.cpp36 const int kConfigKey = 789130123; // Randomly chosen to avoid collisions with existing configs. variable
43 service->addConfiguration(kConfigKey, configAsVec, kCallingUid); in SendConfig()
49 ConfigKey configKey(AIBinder_getCallingUid(), kConfigKey); in GetReports()
DAnomaly_duration_sum_e2e_test.cpp37 const int kConfigKey = 789130124; variable
104 service->addConfiguration(kConfigKey, configAsVec, kCallingUid); in sendConfig()