/packages/modules/StatsD/statsd/src/metrics/parsing_utils/ |
D | metrics_manager_util.h | 102 const int64_t currentTimeNs, const CountMetric& metric, int metricIndex, 122 const int64_t currentTimeNs, const DurationMetric& metric, int metricIndex, 160 const int64_t currentTimeNs, const sp<StatsPullerManager>& pullerManager, 182 const int64_t currentTimeNs, const sp<StatsPullerManager>& pullerManager, 202 const int64_t currentTimeNs, const sp<StatsPullerManager>& pullerManager, 224 const UpdateStatus& updateStatus, int64_t currentTimeNs, 344 const int64_t currentTimeNs, const sp<StatsPullerManager>& pullerManager, 365 const int64_t timeBaseNs, int64_t currentTimeNs, 374 const int64_t currentTimeNs, const wp<ConfigMetadataProvider> configMetadataProvider,
|
D | metrics_manager_util.cpp | 499 const int64_t currentTimeNs, const CountMetric& metric, const int metricIndex, in createCountMetricProducerAndUpdateMetadata() argument 603 currentTimeNs, configMetadataProvider, eventActivationMap, eventDeactivationMap, in createCountMetricProducerAndUpdateMetadata() 621 const int64_t currentTimeNs, const DurationMetric& metric, const int metricIndex, in createDurationMetricProducerAndUpdateMetadata() argument 783 currentTimeNs, configMetadataProvider, eventActivationMap, eventDeactivationMap, in createDurationMetricProducerAndUpdateMetadata() 884 const int64_t currentTimeNs, const sp<StatsPullerManager>& pullerManager, in createNumericValueMetricProducerAndUpdateMetadata() argument 1044 {timeBaseNs, currentTimeNs, bucketSizeNs, metric.min_bucket_size_nanos(), in createNumericValueMetricProducerAndUpdateMetadata() 1068 const int64_t currentTimeNs, const sp<StatsPullerManager>& pullerManager, in createKllMetricProducerAndUpdateMetadata() argument 1199 {timeBaseNs, currentTimeNs, bucketSizeNs, metric.min_bucket_size_nanos(), in createKllMetricProducerAndUpdateMetadata() 1228 const int64_t currentTimeNs, const sp<StatsPullerManager>& pullerManager, in createGaugeMetricProducerAndUpdateMetadata() argument 1380 matcherWizard, pullTagId, triggerAtomId, atomTagId, timeBaseNs, currentTimeNs, in createGaugeMetricProducerAndUpdateMetadata() [all …]
|
D | config_update_utils.cpp | 721 const int64_t currentTimeNs, const sp<StatsPullerManager>& pullerManager, in updateMetrics() argument 800 key, config, timeBaseNs, currentTimeNs, metric, metricIndex, in updateMetrics() 842 key, config, timeBaseNs, currentTimeNs, metric, metricIndex, 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() 1120 optional<InvalidConfigReason> updateAlerts(const StatsdConfig& config, const int64_t currentTimeNs, in updateAlerts() argument 1167 currentTimeNs); in updateAlerts() 1174 alert, anomalyAlarmMonitor, alertUpdateStatuses[i], currentTimeNs, in updateAlerts() 1202 const int64_t currentTimeNs, const vector<sp<AtomMatchingTracker>>& oldAtomMatchingTrackers, in updateStatsdConfig() argument [all …]
|
D | config_update_utils.h | 169 const int64_t currentTimeNs, const sp<StatsPullerManager>& pullerManager, 224 const StatsdConfig& config, int64_t currentTimeNs, 240 const int64_t currentTimeNs,
|
/packages/modules/StatsD/statsd/tests/metrics/ |
D | RestrictedEventMetricProducer_test.cpp | 216 int64_t currentTimeNs = getWallClockNs(); in TEST_F() local 217 int64_t eightDaysAgo = currentTimeNs - 8 * 24 * 3600 * NS_PER_SEC; in TEST_F() 221 event2->setLogdWallClockTimestampNs(currentTimeNs); in TEST_F() 227 producer.enforceRestrictedDataTtl(dbHandle, currentTimeNs + 100); in TEST_F() 243 to_string(currentTimeNs), _)); in TEST_F()
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | MetricsManager.cpp | 70 const int64_t timeBaseNs, const int64_t currentTimeNs, in MetricsManager() argument 81 mLastReportTimeNs(currentTimeNs), in MetricsManager() 101 timeBaseNs, currentTimeNs, this, mTagIdsToMatchersMap, mAllAtomMatchingTrackers, in MetricsManager() 137 const int64_t currentTimeNs, in updateConfig() argument 170 timeBaseNs, currentTimeNs, mAllAtomMatchingTrackers, mAtomMatchingTrackerMap, in updateConfig() 191 refreshTtl(currentTimeNs); in updateConfig() 820 void MetricsManager::loadActiveConfig(const ActiveConfig& config, int64_t currentTimeNs) { in loadActiveConfig() argument 832 metric->loadActiveMetric(activeMetric, currentTimeNs); in loadActiveConfig() 843 void MetricsManager::writeActiveConfigToProtoOutputStream(int64_t currentTimeNs, in writeActiveConfigToProtoOutputStream() argument 852 metric->writeActiveMetricToProtoOutputStream(currentTimeNs, reason, proto); in writeActiveConfigToProtoOutputStream()
|
D | MetricProducer.cpp | 284 int64_t currentTimeNs) { in loadActiveMetricLocked() argument 302 currentTimeNs + activeEventActivation.remaining_ttl_nanos() - activation->ttl_ns; in loadActiveMetricLocked() 312 int64_t currentTimeNs, const DumpReportReason reason, ProtoOutputStream* proto) { in writeActiveMetricToProtoOutputStream() argument 320 activation->start_ns + activation->ttl_ns < currentTimeNs)) { in writeActiveMetricToProtoOutputStream() 330 activation->start_ns + activation->ttl_ns - currentTimeNs; in writeActiveMetricToProtoOutputStream()
|
D | MetricsManager.h | 46 const int64_t currentTimeNs, const sp<UidMap>& uidMap, 53 bool updateConfig(const StatsdConfig& config, int64_t timeBaseNs, const int64_t currentTimeNs, 151 void loadActiveConfig(const ActiveConfig& config, int64_t currentTimeNs); 153 void writeActiveConfigToProtoOutputStream(int64_t currentTimeNs, const DumpReportReason reason,
|
D | MetricProducer.h | 299 void loadActiveMetric(const ActiveMetric& activeMetric, int64_t currentTimeNs) { in loadActiveMetric() argument 301 loadActiveMetricLocked(activeMetric, currentTimeNs); in loadActiveMetric() 321 void writeActiveMetricToProtoOutputStream(int64_t currentTimeNs, const DumpReportReason reason, 454 void loadActiveMetricLocked(const ActiveMetric& activeMetric, int64_t currentTimeNs);
|
D | NumericValueMetricProducer.cpp | 182 int64_t NumericValueMetricProducer::calcPreviousBucketEndTime(const int64_t currentTimeNs) { in calcPreviousBucketEndTime() argument 183 return mTimeBaseNs + ((currentTimeNs - mTimeBaseNs) / mBucketSizeNs) * mBucketSizeNs; in calcPreviousBucketEndTime()
|
D | NumericValueMetricProducer.h | 95 int64_t calcPreviousBucketEndTime(const int64_t currentTimeNs);
|
/packages/modules/StatsD/statsd/src/ |
D | StatsLogProcessor.h | 89 void SaveActiveConfigsToDisk(int64_t currentTimeNs); 93 int64_t currentTimeNs, const DumpReportReason reason, ProtoOutputStream* proto); 119 void SetConfigsActiveState(const ActiveConfigList& activeConfigList, int64_t currentTimeNs); 237 int64_t currentTimeNs, const DumpReportReason reason, ProtoOutputStream* proto); 240 int64_t currentTimeNs);
|
D | StatsLogProcessor.cpp | 1196 void StatsLogProcessor::SaveActiveConfigsToDisk(int64_t currentTimeNs) { in SaveActiveConfigsToDisk() argument 1209 WriteActiveConfigsToProtoOutputStreamLocked(currentTimeNs, DEVICE_SHUTDOWN, &proto); in SaveActiveConfigsToDisk() 1327 int64_t currentTimeNs, const DumpReportReason reason, ProtoOutputStream* proto) { in WriteActiveConfigsToProtoOutputStream() argument 1329 WriteActiveConfigsToProtoOutputStreamLocked(currentTimeNs, reason, proto); in WriteActiveConfigsToProtoOutputStream() 1333 int64_t currentTimeNs, const DumpReportReason reason, ProtoOutputStream* proto) { in WriteActiveConfigsToProtoOutputStreamLocked() argument 1338 metricsManager->writeActiveConfigToProtoOutputStream(currentTimeNs, reason, proto); in WriteActiveConfigsToProtoOutputStreamLocked() 1373 int64_t currentTimeNs) { in SetConfigsActiveState() argument 1375 SetConfigsActiveStateLocked(activeConfigList, currentTimeNs); in SetConfigsActiveState() 1379 int64_t currentTimeNs) { in SetConfigsActiveStateLocked() argument 1389 it->second->loadActiveConfig(config, currentTimeNs); in SetConfigsActiveStateLocked()
|
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/ |
D | config_update_utils_test.cpp | 3806 int64_t currentTimeNs = 12345; in TEST_F() local 3809 key, config, /*timeBaseNs=*/123, currentTimeNs, new StatsPullerManager(), in TEST_F() 3824 EXPECT_EQ(updateAlerts(config, currentTimeNs, newMetricProducerMap, replacedMetrics, in TEST_F() 3920 int64_t currentTimeNs = timeBaseNs + 2 * NS_PER_SEC; in TEST_F() local 3922 EXPECT_EQ(initAlarms(config, key, periodicAlarmMonitor, timeBaseNs, currentTimeNs, in TEST_F() 3952 currentTimeNs = timeBaseNs + 60 * NS_PER_SEC; in TEST_F() 3954 EXPECT_EQ(initAlarms(config, key, periodicAlarmMonitor, timeBaseNs, currentTimeNs, in TEST_F()
|
/packages/modules/StatsD/statsd/tests/ |
D | statsd_test_util.h | 581 const int64_t timeBaseNs, int64_t currentTimeNs, const StatsdConfig& config,
|
D | statsd_test_util.cpp | 1431 sp<StatsLogProcessor> CreateStatsLogProcessor(const int64_t timeBaseNs, const int64_t currentTimeNs, in CreateStatsLogProcessor() argument 1455 processor->OnConfigUpdated(currentTimeNs, key, config); in CreateStatsLogProcessor()
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | ConfigUpdate_e2e_test.cpp | 51 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()
|