Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/tests/log_event/
DLogEventQueue_test.cpp35 int64_t timeBaseNs = 100; in TEST() local
36 std::thread writer([&queue, timeBaseNs] { in TEST()
39 bool success = queue.push(std::make_unique<LogEvent>(10, timeBaseNs + i * 1000), in TEST()
46 std::thread reader([&queue, timeBaseNs] { in TEST()
51 EXPECT_EQ(timeBaseNs + i * 1000, event->GetElapsedTimestampNs()); in TEST()
61 int64_t timeBaseNs = 100; in TEST() local
62 std::thread writer([&queue, timeBaseNs] { in TEST()
66 bool success = queue.push(std::make_unique<LogEvent>(10, timeBaseNs + i * 1000), in TEST()
80 std::thread reader([&queue, timeBaseNs] { in TEST()
86 EXPECT_EQ(timeBaseNs + i * 1000, event->GetElapsedTimestampNs()); in TEST()
/frameworks/base/cmds/statsd/tests/
Dstatsd_test_util.h182 sp<StatsLogProcessor> CreateStatsLogProcessor(const int64_t timeBaseNs,
277 const int64_t timeBaseNs, const int64_t bucketSizeNs, T* bucket) { in backfillStartEndTimestampForFullBucket() argument
278 bucket->set_start_bucket_elapsed_nanos(timeBaseNs + bucketSizeNs * bucket->bucket_num()); in backfillStartEndTimestampForFullBucket()
280 timeBaseNs + bucketSizeNs * bucket->bucket_num() + bucketSizeNs); in backfillStartEndTimestampForFullBucket()
285 void backfillStartEndTimestampForPartialBucket(const int64_t timeBaseNs, T* bucket) { in backfillStartEndTimestampForPartialBucket() argument
299 void backfillStartEndTimestampForMetrics(const int64_t timeBaseNs, const int64_t bucketSizeNs, in backfillStartEndTimestampForMetrics() argument
306 backfillStartEndTimestampForFullBucket(timeBaseNs, bucketSizeNs, bucket); in backfillStartEndTimestampForMetrics()
308 backfillStartEndTimestampForPartialBucket(timeBaseNs, bucket); in backfillStartEndTimestampForMetrics()
315 void backfillStartEndTimestampForSkippedBuckets(const int64_t timeBaseNs, T* metrics) { in backfillStartEndTimestampForSkippedBuckets() argument
317 backfillStartEndTimestampForPartialBucket(timeBaseNs, metrics->mutable_skipped(i)); in backfillStartEndTimestampForSkippedBuckets()
Dstatsd_test_util.cpp452 sp<StatsLogProcessor> CreateStatsLogProcessor(const int64_t timeBaseNs, const int64_t currentTimeNs, in CreateStatsLogProcessor() argument
464 timeBaseNs, [](const ConfigKey&) { return true; }, in CreateStatsLogProcessor()
791 const int64_t timeBaseNs = report->time_base_elapsed_nano_seconds(); in backfillStartEndTimestamp() local
795 timeBaseNs, bucketSizeNs, report->mutable_count_metrics()); in backfillStartEndTimestamp()
798 timeBaseNs, bucketSizeNs, report->mutable_duration_metrics()); in backfillStartEndTimestamp()
801 timeBaseNs, bucketSizeNs, report->mutable_gauge_metrics()); in backfillStartEndTimestamp()
804 timeBaseNs, report->mutable_gauge_metrics()); in backfillStartEndTimestamp()
808 timeBaseNs, bucketSizeNs, report->mutable_value_metrics()); in backfillStartEndTimestamp()
811 timeBaseNs, report->mutable_value_metrics()); in backfillStartEndTimestamp()
/frameworks/base/cmds/statsd/src/metrics/
DMetricProducer.h76 MetricProducer(const int64_t& metricId, const ConfigKey& key, const int64_t timeBaseNs, in MetricProducer() argument
80 mTimeBaseNs(timeBaseNs), in MetricProducer()
81 mCurrentBucketStartTimeNs(timeBaseNs), in MetricProducer()
DCountMetricProducer.h45 const int64_t timeBaseNs, const int64_t startTimeNs);
Dmetrics_manager_util.cpp663 const int64_t timeBaseNs, const int64_t currentTimeNs, in initAlarms() argument
666 int64_t startMillis = timeBaseNs / 1000 / 1000; in initAlarms()
776 const sp<AlarmMonitor>& periodicAlarmMonitor, const int64_t timeBaseNs, in initStatsdConfig() argument
806 if (!initMetrics(key, config, timeBaseNs, currentTimeNs, pullerManager, logTrackerMap, in initStatsdConfig()
819 timeBaseNs, currentTimeNs, allPeriodicAlarmTrackers)) { in initStatsdConfig()
DMetricsManager.cpp63 const int64_t timeBaseNs, const int64_t currentTimeNs, in MetricsManager() argument
76 refreshTtl(timeBaseNs); in MetricsManager()
80 timeBaseNs, currentTimeNs, mTagIds, mAllAtomMatchers, mAllConditionTrackers, in MetricsManager()
Dmetrics_manager_util.h100 const sp<AlarmMonitor>& periodicAlarmMonitor, const int64_t timeBaseNs,
DCountMetricProducer.cpp71 const int64_t timeBaseNs, const int64_t startTimeNs) in CountMetricProducer() argument
72 : MetricProducer(metric.id(), key, timeBaseNs, conditionIndex, wizard) { in CountMetricProducer()
DDurationMetricProducer.h45 … const FieldMatcher& internalDimensions, const int64_t timeBaseNs, const int64_t startTimeNs);
DGaugeMetricProducer.h64 const int64_t timeBaseNs, const int64_t startTimeNs,
DMetricsManager.h40 MetricsManager(const ConfigKey& configKey, const StatsdConfig& config, const int64_t timeBaseNs,
DValueMetricProducer.cpp79 const sp<EventMatcherWizard>& matcherWizard, const int pullTagId, const int64_t timeBaseNs, in ValueMetricProducer() argument
81 : MetricProducer(metric.id(), key, timeBaseNs, conditionIndex, conditionWizard), in ValueMetricProducer()
108 mConditionTimer(false, timeBaseNs) { in ValueMetricProducer()
DGaugeMetricProducer.cpp73 const int atomId, const int64_t timeBaseNs, const int64_t startTimeNs, in GaugeMetricProducer() argument
75 : MetricProducer(metric.id(), key, timeBaseNs, conditionIndex, wizard), in GaugeMetricProducer()
DValueMetricProducer.h57 const int pullTagId, const int64_t timeBaseNs, const int64_t startTimeNs,
DDurationMetricProducer.cpp72 const int64_t timeBaseNs, const int64_t startTimeNs) in DurationMetricProducer() argument
73 : MetricProducer(metric.id(), key, timeBaseNs, conditionIndex, wizard), in DurationMetricProducer()
/frameworks/base/cmds/statsd/src/
DStatsLogProcessor.h40 const int64_t timeBaseNs,
DStatsLogProcessor.cpp81 const int64_t timeBaseNs, in StatsLogProcessor() argument
91 mTimeBaseNs(timeBaseNs), in StatsLogProcessor()