Home
last modified time | relevance | path

Searched refs:timeBaseNs (Results 1 – 24 of 24) sorted by relevance

/packages/modules/StatsD/statsd/src/metrics/parsing_utils/
Dmetrics_manager_util.h101 const ConfigKey& key, const StatsdConfig& config, int64_t timeBaseNs,
121 const ConfigKey& key, const StatsdConfig& config, int64_t timeBaseNs,
141 const ConfigKey& key, const StatsdConfig& config, int64_t timeBaseNs,
159 const ConfigKey& key, const StatsdConfig& config, int64_t timeBaseNs,
181 const ConfigKey& key, const StatsdConfig& config, int64_t timeBaseNs,
201 const ConfigKey& key, const StatsdConfig& config, int64_t timeBaseNs,
365 const int64_t timeBaseNs, int64_t currentTimeNs,
373 const sp<AlarmMonitor>& periodicAlarmMonitor, int64_t timeBaseNs,
Dmetrics_manager_util.cpp498 const ConfigKey& key, const StatsdConfig& config, const int64_t timeBaseNs, in createCountMetricProducerAndUpdateMetadata() argument
602 key, metric, conditionIndex, initialConditionCache, wizard, metricHash, timeBaseNs, in createCountMetricProducerAndUpdateMetadata()
620 const ConfigKey& key, const StatsdConfig& config, const int64_t timeBaseNs, in createDurationMetricProducerAndUpdateMetadata() argument
782 stopAllIndex, nesting, wizard, metricHash, internalDimensions, timeBaseNs, in createDurationMetricProducerAndUpdateMetadata()
806 const ConfigKey& key, const StatsdConfig& config, const int64_t timeBaseNs, in createEventMetricProducerAndUpdateMetadata() argument
874 key, metric, conditionIndex, initialConditionCache, wizard, metricHash, timeBaseNs, in createEventMetricProducerAndUpdateMetadata()
878 metricHash, timeBaseNs, configMetadataProvider, in createEventMetricProducerAndUpdateMetadata()
883 const ConfigKey& key, const StatsdConfig& config, const int64_t timeBaseNs, in createNumericValueMetricProducerAndUpdateMetadata() argument
1044 {timeBaseNs, currentTimeNs, bucketSizeNs, metric.min_bucket_size_nanos(), in createNumericValueMetricProducerAndUpdateMetadata()
1067 const ConfigKey& key, const StatsdConfig& config, const int64_t timeBaseNs, in createKllMetricProducerAndUpdateMetadata() argument
[all …]
Dconfig_update_utils.cpp720 const ConfigKey& key, const StatsdConfig& config, const int64_t timeBaseNs, in updateMetrics() argument
800 key, config, timeBaseNs, currentTimeNs, metric, metricIndex, in updateMetrics()
842 key, config, timeBaseNs, currentTimeNs, metric, metricIndex, in updateMetrics()
884 key, config, timeBaseNs, metric, metricIndex, allAtomMatchingTrackers, in updateMetrics()
926 key, config, timeBaseNs, currentTimeNs, pullerManager, metric, metricIndex, in updateMetrics()
969 key, config, timeBaseNs, currentTimeNs, pullerManager, metric, metricIndex, in updateMetrics()
1012 key, config, timeBaseNs, currentTimeNs, pullerManager, metric, metricIndex, in updateMetrics()
1201 const sp<AlarmMonitor>& periodicAlarmMonitor, const int64_t timeBaseNs, in updateStatsdConfig() argument
1269 key, config, timeBaseNs, currentTimeNs, pullerManager, oldAtomMatchingTrackerMap, in updateStatsdConfig()
1290 invalidConfigReason = initAlarms(config, key, periodicAlarmMonitor, timeBaseNs, currentTimeNs, in updateStatsdConfig()
Dconfig_update_utils.h168 const ConfigKey& key, const StatsdConfig& config, int64_t timeBaseNs,
239 const sp<AlarmMonitor>& periodicAlarmMonitor, int64_t timeBaseNs,
/packages/modules/StatsD/statsd/tests/
Dstatsd_test_util.h581 const int64_t timeBaseNs, int64_t currentTimeNs, const StatsdConfig& config,
589 const int64_t timeBaseNs, const int64_t startTimeNs, const int logEventMatcherIndex,
737 void backfillStartEndTimestampForFullBucket(const int64_t timeBaseNs, int64_t bucketSizeNs, in backfillStartEndTimestampForFullBucket() argument
739 bucket->set_start_bucket_elapsed_nanos(timeBaseNs + bucketSizeNs * bucket->bucket_num()); in backfillStartEndTimestampForFullBucket()
741 timeBaseNs + bucketSizeNs * bucket->bucket_num() + bucketSizeNs); in backfillStartEndTimestampForFullBucket()
746 void backfillStartEndTimestampForPartialBucket(const int64_t timeBaseNs, T* bucket) { in backfillStartEndTimestampForPartialBucket() argument
760 void backfillStartEndTimestampForMetrics(const int64_t timeBaseNs, int64_t bucketSizeNs, in backfillStartEndTimestampForMetrics() argument
767 backfillStartEndTimestampForFullBucket(timeBaseNs, bucketSizeNs, bucket); in backfillStartEndTimestampForMetrics()
769 backfillStartEndTimestampForPartialBucket(timeBaseNs, bucket); in backfillStartEndTimestampForMetrics()
776 void backfillStartEndTimestampForSkippedBuckets(const int64_t timeBaseNs, T* metrics) { in backfillStartEndTimestampForSkippedBuckets() argument
[all …]
Dstatsd_test_util.cpp1431 sp<StatsLogProcessor> CreateStatsLogProcessor(const int64_t timeBaseNs, const int64_t currentTimeNs, in CreateStatsLogProcessor() argument
1450 uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, timeBaseNs, in CreateStatsLogProcessor()
1462 const int64_t timeBaseNs, const int64_t startTimeNs, const int logEventMatcherIndex, in createNumericValueMetricProducer() argument
1514 {timeBaseNs, startTimeNs, bucketSizeNs, metric.min_bucket_size_nanos(), in createNumericValueMetricProducer()
2013 const int64_t timeBaseNs = report->time_base_elapsed_nano_seconds(); in backfillStartEndTimestamp() local
2017 timeBaseNs, bucketSizeNs, report->mutable_count_metrics()); in backfillStartEndTimestamp()
2020 timeBaseNs, bucketSizeNs, report->mutable_duration_metrics()); in backfillStartEndTimestamp()
2023 timeBaseNs, bucketSizeNs, report->mutable_gauge_metrics()); in backfillStartEndTimestamp()
2026 timeBaseNs, report->mutable_gauge_metrics()); in backfillStartEndTimestamp()
2030 timeBaseNs, bucketSizeNs, report->mutable_value_metrics()); in backfillStartEndTimestamp()
[all …]
/packages/modules/StatsD/statsd/src/metrics/
DMetricProducer.cpp47 int64_t metricId, const ConfigKey& key, const int64_t timeBaseNs, const int conditionIndex, in MetricProducer() argument
61 mTimeBaseNs(timeBaseNs), in MetricProducer()
62 mCurrentBucketStartTimeNs(timeBaseNs), in MetricProducer()
66 mConditionTimer(false, timeBaseNs), in MetricProducer()
DMetricsManager.cpp70 const int64_t timeBaseNs, const int64_t currentTimeNs, in MetricsManager() argument
98 refreshTtl(timeBaseNs); in MetricsManager()
101 timeBaseNs, currentTimeNs, this, mTagIdsToMatchersMap, mAllAtomMatchingTrackers, in MetricsManager()
136 bool MetricsManager::updateConfig(const StatsdConfig& config, const int64_t timeBaseNs, in updateConfig() argument
170 timeBaseNs, currentTimeNs, mAllAtomMatchingTrackers, mAtomMatchingTrackerMap, in updateConfig()
DMetricsManager.h45 MetricsManager(const ConfigKey& configKey, const StatsdConfig& config, int64_t timeBaseNs,
53 bool updateConfig(const StatsdConfig& config, int64_t timeBaseNs, const int64_t currentTimeNs,
DCountMetricProducer.h49 const uint64_t protoHash, int64_t timeBaseNs, int64_t startTimeNs,
DCountMetricProducer.cpp76 const uint64_t protoHash, const int64_t timeBaseNs, const int64_t startTimeNs, in CountMetricProducer() argument
82 : MetricProducer(metric.id(), key, timeBaseNs, conditionIndex, initialConditionCache, wizard, in CountMetricProducer()
DDurationMetricProducer.h46 const FieldMatcher& internalDimensions, int64_t timeBaseNs, const int64_t startTimeNs,
DGaugeMetricProducer.h67 const int pullTagId, int triggerAtomId, int atomId, const int64_t timeBaseNs,
DGaugeMetricProducer.cpp82 const int atomId, const int64_t timeBaseNs, const int64_t startTimeNs, in GaugeMetricProducer() argument
88 : MetricProducer(metric.id(), key, timeBaseNs, conditionIndex, initialConditionCache, wizard, in GaugeMetricProducer()
DValueMetricProducer.h76 const int64_t timeBaseNs; member
DDurationMetricProducer.cpp76 const FieldMatcher& internalDimensions, const int64_t timeBaseNs, const int64_t startTimeNs, in DurationMetricProducer() argument
82 : MetricProducer(metric.id(), key, timeBaseNs, conditionIndex, initialConditionCache, wizard, in DurationMetricProducer()
DMetricProducer.h134 MetricProducer(int64_t metricId, const ConfigKey& key, int64_t timeBaseNs,
DValueMetricProducer.cpp82 : MetricProducer(metricId, key, bucketOptions.timeBaseNs, conditionOptions.conditionIndex, in ValueMetricProducer()
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dconfig_update_utils_test.cpp58 const int64_t timeBaseNs = 1000 * NS_PER_SEC; variable
91 timeBaseNs, timeBaseNs, configMetadataProvider, allTagIdsToMatchersMap, in initConfig()
2633 unique_ptr<LogEvent> event = CreateAcquireWakelockEvent(timeBaseNs + 3, {uid1}, {"tag"}, "wl1"); in TEST_F()
2643 event = CreateAcquireWakelockEvent(timeBaseNs + 3, {uid2}, {"tag"}, "wl2"); in TEST_F()
3761 timeBaseNs + 1, android::view::DisplayStateEnum::DISPLAY_STATE_ON); in TEST_F()
3906 EXPECT_EQ(oldAlarmTrackers[0]->getAlarmTimestampSec(), timeBaseNs / NS_PER_SEC + 1); in TEST_F()
3907 EXPECT_EQ(oldAlarmTrackers[1]->getAlarmTimestampSec(), timeBaseNs / NS_PER_SEC + 1); in TEST_F()
3908 EXPECT_EQ(oldAlarmTrackers[2]->getAlarmTimestampSec(), timeBaseNs / NS_PER_SEC + 10); in TEST_F()
3920 int64_t currentTimeNs = timeBaseNs + 2 * NS_PER_SEC; in TEST_F()
3922 EXPECT_EQ(initAlarms(config, key, periodicAlarmMonitor, timeBaseNs, currentTimeNs, in TEST_F()
[all …]
/packages/modules/StatsD/statsd/tests/metrics/
DKllMetricProducer_test.cpp117 const int64_t timeBaseNs = bucketStartTimeNs, argument
143 {timeBaseNs, startTimeNs, bucketSizeNs, metric.min_bucket_size_nanos(),
DNumericValueMetricProducer_test.cpp159 const int64_t timeBaseNs, const int64_t startTimeNs, const int pullAtomId = tagId) { in createValueProducerWithBucketParams() argument
162 /*slicedStateAtoms=*/{}, /*stateGroupMap=*/{}, timeBaseNs, startTimeNs); in createValueProducerWithBucketParams()
179 const int64_t timeBaseNs = bucketStartTimeNs, argument
183 pullerManager, metric, tagId, pullAtomId != -1, kConfigKey, protoHash, timeBaseNs,
/packages/modules/StatsD/statsd/src/
DStatsLogProcessor.h43 const sp<AlarmMonitor>& subscriberTriggerAlarmMonitor, int64_t timeBaseNs,
DStatsLogProcessor.cpp97 const int64_t timeBaseNs, const std::function<bool(const ConfigKey&)>& sendBroadcast, in StatsLogProcessor() argument
113 mTimeBaseNs(timeBaseNs), in StatsLogProcessor()
/packages/modules/StatsD/statsd/tests/e2e/
DConfigUpdate_e2e_test.cpp51 const int64_t timeBaseNs, const int64_t currentTimeNs, const StatsdConfig& config, in CreateStatsLogProcessor() argument
60 return CreateStatsLogProcessor(timeBaseNs, currentTimeNs, config, key, nullptr, 0, new UidMap(), in CreateStatsLogProcessor()