/packages/modules/StatsD/statsd/tests/metrics/ |
D | EventMetricProducer_test.cpp | 369 MetricProducer::DataCorruptionSeverity::kNone); in TEST_F() 371 MetricProducer::DataCorruptionSeverity::kNone); in TEST_F() 373 MetricProducer::LostAtomType::kWhat); in TEST_F() 375 MetricProducer::DataCorruptionSeverity::kResetOnDump); in TEST_F() 377 MetricProducer::DataCorruptionSeverity::kNone); in TEST_F() 391 MetricProducer::DataCorruptionSeverity::kNone); in TEST_F() 393 MetricProducer::DataCorruptionSeverity::kNone); in TEST_F() 398 MetricProducer::DataCorruptionSeverity::kNone); in TEST_F() 400 MetricProducer::DataCorruptionSeverity::kNone); in TEST_F() 402 MetricProducer::LostAtomType::kWhat); in TEST_F() [all …]
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | MetricProducer.cpp | 46 MetricProducer::MetricProducer( in MetricProducer() function in android::os::statsd::MetricProducer 85 optional<InvalidConfigReason> MetricProducer::onConfigUpdatedLocked( in onConfigUpdatedLocked() 118 void MetricProducer::onMatchedLogEventLocked(const size_t matcherIndex, const LogEvent& event) { in onMatchedLogEventLocked() 194 void MetricProducer::onMatchedLogEventLostLocked(int32_t /*atomId*/, DataCorruptedReason reason, in onMatchedLogEventLostLocked() 211 void MetricProducer::resetDataCorruptionFlagsLocked() { in resetDataCorruptionFlagsLocked() 220 bool MetricProducer::evaluateActiveStateLocked(int64_t elapsedTimestampNs) { in evaluateActiveStateLocked() 234 void MetricProducer::flushIfExpire(int64_t elapsedTimestampNs) { in flushIfExpire() 249 void MetricProducer::activateLocked(int activationTrackerIndex, int64_t elapsedTimestampNs) { in activateLocked() 273 void MetricProducer::cancelEventActivationLocked(int deactivationTrackerIndex) { in cancelEventActivationLocked() 283 void MetricProducer::loadActiveMetricLocked(const ActiveMetric& activeMetric, in loadActiveMetricLocked() [all …]
|
D | EventMetricProducer.cpp | 71 : MetricProducer(metric.id(), key, startTimeNs, conditionIndex, initialConditionCache, wizard, in EventMetricProducer() 108 optional<InvalidConfigReason> invalidConfigReason = MetricProducer::onConfigUpdatedLocked( in onConfigUpdatedLocked() 260 MetricProducer::DataCorruptionSeverity EventMetricProducer::determineCorruptionSeverity( in determineCorruptionSeverity()
|
D | CountMetricProducer.cpp | 82 : MetricProducer(metric.id(), key, timeBaseNs, conditionIndex, initialConditionCache, wizard, in CountMetricProducer() 154 optional<InvalidConfigReason> invalidConfigReason = MetricProducer::onConfigUpdatedLocked( in onConfigUpdatedLocked() 531 MetricProducer::computeBucketSizeLocked(isFullBucket, dimKey, isFirstBucket); in computeBucketSizeLocked() 546 MetricProducer::onActiveStateChangedLocked(eventTimeNs, isActive); in onActiveStateChangedLocked()
|
D | ValueMetricProducer.cpp | 82 : MetricProducer(metricId, key, bucketOptions.timeBaseNs, conditionOptions.conditionIndex, in ValueMetricProducer() 195 optional<InvalidConfigReason> invalidConfigReason = MetricProducer::onConfigUpdatedLocked( in onConfigUpdatedLocked() 233 MetricProducer::computeBucketSizeLocked(isFullBucket, dimKey, isFirstBucket); in computeValueBucketSizeLocked() 522 MetricProducer::onActiveStateChangedLocked(eventTimeNs, isActive); in onActiveStateChangedLocked() 537 MetricProducer::onActiveStateChangedLocked(eventTimeNs, isActive); in onActiveStateChangedLocked()
|
D | MetricsManager.cpp | 155 vector<sp<MetricProducer>> newMetricProducers; in updateConfig() 580 const sp<MetricProducer>& metric = mAllMetricProducers[metricIndex]; in onLogEvent() 632 const sp<MetricProducer>& metric = mAllMetricProducers[metricIndex]; in onLogEvent() 770 lostAtomId, reason, MetricProducer::LostAtomType::kWhat); in notifyMetricsAboutLostAtom() 785 lostAtomId, reason, MetricProducer::LostAtomType::kCondition); in notifyMetricsAboutLostAtom()
|
D | GaugeMetricProducer.cpp | 88 : MetricProducer(metric.id(), key, timeBaseNs, conditionIndex, initialConditionCache, wizard, in GaugeMetricProducer() 175 optional<InvalidConfigReason> invalidConfigReason = MetricProducer::onConfigUpdatedLocked( in onConfigUpdatedLocked() 434 MetricProducer::onActiveStateChangedLocked(eventTimeNs, isActive); in onActiveStateChangedLocked() 725 MetricProducer::computeBucketSizeLocked(isFullBucket, dimKey, isFirstBucket); in computeGaugeBucketSizeLocked()
|
D | MetricProducer.h | 132 class MetricProducer : public virtual RefBase, public virtual StateListener { 134 MetricProducer(int64_t metricId, const ConfigKey& key, int64_t timeBaseNs, 145 virtual ~MetricProducer(){}; in ~MetricProducer()
|
D | DurationMetricProducer.cpp | 82 : MetricProducer(metric.id(), key, timeBaseNs, conditionIndex, initialConditionCache, wizard, in DurationMetricProducer() 195 optional<InvalidConfigReason> invalidConfigReason = MetricProducer::onConfigUpdatedLocked( in onConfigUpdatedLocked() 458 MetricProducer::onActiveStateChangedLocked(eventTimeNs, isActive); in onActiveStateChangedLocked() 855 MetricProducer::computeBucketSizeLocked(isFullBucket, dimKey, isFirstBucket); in computeBucketSizeLocked()
|
D | EventMetricProducer.h | 35 class EventMetricProducer : public MetricProducer {
|
D | CountMetricProducer.h | 44 class CountMetricProducer : public MetricProducer {
|
D | DurationMetricProducer.h | 39 class DurationMetricProducer : public MetricProducer {
|
D | GaugeMetricProducer.h | 60 class GaugeMetricProducer : public MetricProducer, public virtual PullDataReceiver {
|
D | ValueMetricProducer.h | 68 class ValueMetricProducer : public MetricProducer, public virtual PullDataReceiver {
|
D | MetricsManager.h | 278 std::vector<sp<MetricProducer>> mAllMetricProducers;
|
/packages/modules/StatsD/statsd/src/metrics/parsing_utils/ |
D | config_update_utils.h | 142 const vector<sp<MetricProducer>>& oldMetricProducers, 182 const std::vector<sp<MetricProducer>>& oldMetricProducers, 185 std::vector<sp<MetricProducer>>& newMetricProducers, 230 std::vector<sp<MetricProducer>>& allMetricProducers, 245 const std::vector<sp<MetricProducer>>& oldMetricProducers, 256 std::vector<sp<MetricProducer>>& newMetricProducers,
|
D | metrics_manager_util.h | 100 optional<sp<MetricProducer>> createCountMetricProducerAndUpdateMetadata( 120 optional<sp<MetricProducer>> createDurationMetricProducerAndUpdateMetadata( 140 optional<sp<MetricProducer>> createEventMetricProducerAndUpdateMetadata( 158 optional<sp<MetricProducer>> createNumericValueMetricProducerAndUpdateMetadata( 180 optional<sp<MetricProducer>> createGaugeMetricProducerAndUpdateMetadata( 200 optional<sp<MetricProducer>> createKllMetricProducerAndUpdateMetadata( 226 std::vector<sp<MetricProducer>>& allMetricProducers, 352 std::vector<sp<MetricProducer>>& allMetricProducers, 380 std::vector<sp<MetricProducer>>& allMetricProducers,
|
D | config_update_utils.cpp | 505 const vector<sp<MetricProducer>>& oldMetricProducers, in determineMetricUpdateStatus() 523 const sp<MetricProducer>& oldMetricProducer = oldMetricProducers[oldMetricProducerIt->second]; in determineMetricUpdateStatus() 573 const vector<sp<MetricProducer>>& oldMetricProducers, in determineAllMetricUpdateStatuses() 680 optional<sp<MetricProducer>> updateMetric( in updateMetric() 689 const vector<sp<MetricProducer>>& oldMetricProducers, in updateMetric() 706 sp<MetricProducer> producer = oldMetricProducers[oldIndex]; in updateMetric() 732 const vector<sp<MetricProducer>>& oldMetricProducers, in updateMetrics() 735 vector<sp<MetricProducer>>& newMetricProducers, in updateMetrics() 782 optional<sp<MetricProducer>> producer; in updateMetrics() 824 optional<sp<MetricProducer>> producer; in updateMetrics() [all …]
|
D | metrics_manager_util.cpp | 497 optional<sp<MetricProducer>> createCountMetricProducerAndUpdateMetadata( in createCountMetricProducerAndUpdateMetadata() 601 sp<MetricProducer> metricProducer = new CountMetricProducer( in createCountMetricProducerAndUpdateMetadata() 619 optional<sp<MetricProducer>> createDurationMetricProducerAndUpdateMetadata( in createDurationMetricProducerAndUpdateMetadata() 780 sp<MetricProducer> metricProducer = new DurationMetricProducer( in createDurationMetricProducerAndUpdateMetadata() 805 optional<sp<MetricProducer>> createEventMetricProducerAndUpdateMetadata( in createEventMetricProducerAndUpdateMetadata() 882 optional<sp<MetricProducer>> createNumericValueMetricProducerAndUpdateMetadata( in createNumericValueMetricProducerAndUpdateMetadata() 1042 sp<MetricProducer> metricProducer = new NumericValueMetricProducer( in createNumericValueMetricProducerAndUpdateMetadata() 1066 optional<sp<MetricProducer>> createKllMetricProducerAndUpdateMetadata( in createKllMetricProducerAndUpdateMetadata() 1197 sp<MetricProducer> metricProducer = new KllMetricProducer( in createKllMetricProducerAndUpdateMetadata() 1226 optional<sp<MetricProducer>> createGaugeMetricProducerAndUpdateMetadata( in createGaugeMetricProducerAndUpdateMetadata() [all …]
|
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/ |
D | metrics_manager_util_test.cpp | 69 vector<sp<MetricProducer>> allMetricProducers; 1520 vector<sp<MetricProducer>> metricProducers; in TEST_F() 1543 vector<sp<MetricProducer>> metricProducers( in TEST_F() 1568 vector<sp<MetricProducer>> metricProducers( in TEST_F() 1594 vector<sp<MetricProducer>> metricProducers( in TEST_F() 1621 vector<sp<MetricProducer>> metricProducers({new DurationMetricProducer( in TEST_F() 1783 sp<MetricProducer> sampledCountMetricProducer = metricsManager->mAllMetricProducers[0]; in TEST_F() 1784 sp<MetricProducer> unsampledCountMetricProducer = metricsManager->mAllMetricProducers[1]; in TEST_F() 1785 sp<MetricProducer> sampledDurationMetricProducer = metricsManager->mAllMetricProducers[2]; in TEST_F() 1786 sp<MetricProducer> unsampledDurationMetricProducer = metricsManager->mAllMetricProducers[3]; in TEST_F() [all …]
|
D | config_update_utils_test.cpp | 73 vector<sp<MetricProducer>> oldMetricProducers; 1971 vector<sp<MetricProducer>> newMetricProducers; in TEST_F() 2205 vector<sp<MetricProducer>> newMetricProducers; in TEST_F() 2419 vector<sp<MetricProducer>> newMetricProducers; in TEST_F() 2743 vector<sp<MetricProducer>> newMetricProducers; in TEST_F() 3012 vector<sp<MetricProducer>> newMetricProducers; in TEST_F() 3230 vector<sp<MetricProducer>> newMetricProducers; in TEST_F() 3404 vector<sp<MetricProducer>> newMetricProducers; in TEST_F() 3437 sp<MetricProducer> producer = newMetricProducers[0]; in TEST_F() 3567 vector<sp<MetricProducer>> newMetricProducers; in TEST_F() [all …]
|
/packages/modules/StatsD/statsd/tests/ |
D | DataCorruptionReason_test.cpp | 200 MetricProducer::DataCorruptionSeverity::kNone); in TEST_P() 216 MetricProducer::DataCorruptionSeverity::kNone, in TEST_P() 221 MetricProducer::DataCorruptionSeverity::kNone); in TEST_P()
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | ValueMetric_pull_e2e_test.cpp | 171 sp<MetricProducer> metricProducer1 = metricsManager->mAllMetricProducers[0]; in TEST() 173 sp<MetricProducer> metricProducer2 = metricsManager->mAllMetricProducers[2]; in TEST() 692 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() 751 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() 869 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() 910 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST()
|
D | DurationMetric_e2e_test.cpp | 63 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() 146 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() 266 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() 405 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() 515 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() 625 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() 770 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() 918 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() 1075 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() 1277 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() [all …]
|
D | CountMetric_e2e_test.cpp | 90 sp<MetricProducer> metricProducer1 = metricsManager->mAllMetricProducers[0]; in TEST() 91 sp<MetricProducer> metricProducer2 = metricsManager->mAllMetricProducers[1]; in TEST() 314 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() 468 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() 653 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST() 863 sp<MetricProducer> metricProducer = metricsManager->mAllMetricProducers[0]; in TEST()
|