Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/src/metrics/
DMetricProducer.cpp164 int64_t currentTimeNs) { in loadActiveMetricLocked() argument
182 currentTimeNs + activeEventActivation.remaining_ttl_nanos() - activation->ttl_ns; in loadActiveMetricLocked()
192 int64_t currentTimeNs, const DumpReportReason reason, ProtoOutputStream* proto) { in writeActiveMetricToProtoOutputStream() argument
200 activation->start_ns + activation->ttl_ns < currentTimeNs)) { in writeActiveMetricToProtoOutputStream()
210 activation->start_ns + activation->ttl_ns - currentTimeNs; in writeActiveMetricToProtoOutputStream()
Dmetrics_manager_util.cpp288 const int64_t currentTimeNs, in initMetrics() argument
340 … new CountMetricProducer(key, metric, conditionIndex, wizard, timeBaseTimeNs, currentTimeNs); in initMetrics()
410 … trackerIndices[2], nesting, wizard, internalDimensions, timeBaseTimeNs, currentTimeNs); in initMetrics()
504 timeBaseTimeNs, currentTimeNs, pullerManager); in initMetrics()
591 timeBaseTimeNs, currentTimeNs, pullerManager); in initMetrics()
663 const int64_t timeBaseNs, const int64_t currentTimeNs, in initAlarms() argument
667 int64_t currentTimeMillis = currentTimeNs / 1000 /1000; in initAlarms()
707 const int64_t currentTimeNs, in initMetricActivations() argument
777 const int64_t currentTimeNs, set<int>& allTagIds, in initStatsdConfig() argument
806 if (!initMetrics(key, config, timeBaseNs, currentTimeNs, pullerManager, logTrackerMap, in initStatsdConfig()
[all …]
DMetricsManager.cpp63 const int64_t timeBaseNs, const int64_t currentTimeNs, in MetricsManager() argument
72 mLastReportTimeNs(currentTimeNs), in MetricsManager()
80 timeBaseNs, currentTimeNs, mTagIds, mAllAtomMatchers, mAllConditionTrackers, in MetricsManager()
522 void MetricsManager::loadActiveConfig(const ActiveConfig& config, int64_t currentTimeNs) { in loadActiveConfig() argument
534 metric->loadActiveMetric(activeMetric, currentTimeNs); in loadActiveConfig()
546 int64_t currentTimeNs, const DumpReportReason reason, ProtoOutputStream* proto) { in writeActiveConfigToProtoOutputStream() argument
553 metric->writeActiveMetricToProtoOutputStream(currentTimeNs, reason, proto); in writeActiveConfigToProtoOutputStream()
DMetricProducer.h201 void loadActiveMetric(const ActiveMetric& activeMetric, int64_t currentTimeNs) { in loadActiveMetric() argument
203 loadActiveMetricLocked(activeMetric, currentTimeNs); in loadActiveMetric()
246 int64_t currentTimeNs, const DumpReportReason reason, ProtoOutputStream* proto);
270 void loadActiveMetricLocked(const ActiveMetric& activeMetric, int64_t currentTimeNs);
DMetricsManager.h41 const int64_t currentTimeNs, const sp<UidMap>& uidMap,
137 void loadActiveConfig(const ActiveConfig& config, int64_t currentTimeNs);
140 int64_t currentTimeNs, const DumpReportReason reason, ProtoOutputStream* proto);
Dmetrics_manager_util.h84 const int64_t currentTimeNs, UidMap& uidMap, const sp<StatsPullerManager>& pullerManager,
101 const int64_t currentTimeNs, std::set<int>& allTagIds,
DValueMetricProducer.h122 int64_t calcPreviousBucketEndTime(const int64_t currentTimeNs);
DValueMetricProducer.cpp468 int64_t ValueMetricProducer::calcPreviousBucketEndTime(const int64_t currentTimeNs) { in calcPreviousBucketEndTime() argument
469 return mTimeBaseNs + ((currentTimeNs - mTimeBaseNs) / mBucketSizeNs) * mBucketSizeNs; in calcPreviousBucketEndTime()
/frameworks/base/cmds/statsd/src/
DStatsLogProcessor.h82 void SaveActiveConfigsToDisk(int64_t currentTimeNs);
86 int64_t currentTimeNs, const DumpReportReason reason, ProtoOutputStream* proto);
92 void SetConfigsActiveState(const ActiveConfigList& activeConfigList, int64_t currentTimeNs);
168 int64_t currentTimeNs, const DumpReportReason reason, ProtoOutputStream* proto);
171 int64_t currentTimeNs);
DStatsLogProcessor.cpp604 void StatsLogProcessor::SaveActiveConfigsToDisk(int64_t currentTimeNs) { in SaveActiveConfigsToDisk() argument
617 WriteActiveConfigsToProtoOutputStreamLocked(currentTimeNs, DEVICE_SHUTDOWN, &proto); in SaveActiveConfigsToDisk()
631 int64_t currentTimeNs, const DumpReportReason reason, ProtoOutputStream* proto) { in WriteActiveConfigsToProtoOutputStream() argument
633 WriteActiveConfigsToProtoOutputStreamLocked(currentTimeNs, reason, proto); in WriteActiveConfigsToProtoOutputStream()
637 int64_t currentTimeNs, const DumpReportReason reason, ProtoOutputStream* proto) { in WriteActiveConfigsToProtoOutputStreamLocked() argument
642 metricsManager->writeActiveConfigToProtoOutputStream(currentTimeNs, reason, proto); in WriteActiveConfigsToProtoOutputStreamLocked()
677 int64_t currentTimeNs) { in SetConfigsActiveState() argument
679 SetConfigsActiveStateLocked(activeConfigList, currentTimeNs); in SetConfigsActiveState()
683 int64_t currentTimeNs) { in SetConfigsActiveStateLocked() argument
693 it->second->loadActiveConfig(config, currentTimeNs); in SetConfigsActiveStateLocked()
/frameworks/base/cmds/statsd/tests/
Dstatsd_test_util.h183 const int64_t currentTimeNs,
Dstatsd_test_util.cpp452 sp<StatsLogProcessor> CreateStatsLogProcessor(const int64_t timeBaseNs, const int64_t currentTimeNs, in CreateStatsLogProcessor() argument
466 processor->OnConfigUpdated(currentTimeNs, key, config); in CreateStatsLogProcessor()