Home
last modified time | relevance | path

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

/aosp12/packages/modules/StatsD/statsd/src/metrics/duration_helper/
H A DOringDurationTracker.cpp372 int64_t pastNs = currentStateBucketPastNs + anomalyTracker.getSumOverPastBuckets(mEventKey); in predictAnomalyTimestampNs() local
381 std::max(eventTimestampNs + thresholdNs - pastNs, refractoryPeriodEndNs); in predictAnomalyTimestampNs()
389 pastNs -= anomalyTracker.getPastBucketValue( in predictAnomalyTimestampNs()
393 pastNs += (currentBucketEndNs - eventTimestampNs); in predictAnomalyTimestampNs()
396 pastNs = 0; in predictAnomalyTimestampNs()
410 std::max(bucketEndNs - mBucketSizeNs + thresholdNs - pastNs, refractoryPeriodEndNs); in predictAnomalyTimestampNs()
420 pastNs += mBucketSizeNs; in predictAnomalyTimestampNs()
427 pastNs -= anomalyTracker.getPastBucketValue( in predictAnomalyTimestampNs()
431 pastNs -= (currentStateBucketPastNs + (currentBucketEndNs - eventTimestampNs)); in predictAnomalyTimestampNs()