Home
last modified time | relevance | path

Searched refs:currentTimeNs (Results 1 – 17 of 17) sorted by relevance

/packages/modules/StatsD/statsd/src/metrics/parsing_utils/
Dmetrics_manager_util.h102 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,
Dmetrics_manager_util.cpp499 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 …]
Dconfig_update_utils.cpp721 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 …]
Dconfig_update_utils.h169 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/
DRestrictedEventMetricProducer_test.cpp216 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/
DMetricsManager.cpp70 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()
DMetricProducer.cpp284 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()
DMetricsManager.h46 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,
DMetricProducer.h299 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);
DNumericValueMetricProducer.cpp182 int64_t NumericValueMetricProducer::calcPreviousBucketEndTime(const int64_t currentTimeNs) { in calcPreviousBucketEndTime() argument
183 return mTimeBaseNs + ((currentTimeNs - mTimeBaseNs) / mBucketSizeNs) * mBucketSizeNs; in calcPreviousBucketEndTime()
DNumericValueMetricProducer.h95 int64_t calcPreviousBucketEndTime(const int64_t currentTimeNs);
/packages/modules/StatsD/statsd/src/
DStatsLogProcessor.h89 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);
DStatsLogProcessor.cpp1196 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/
Dconfig_update_utils_test.cpp3806 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/
Dstatsd_test_util.h581 const int64_t timeBaseNs, int64_t currentTimeNs, const StatsdConfig& config,
Dstatsd_test_util.cpp1431 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/
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()