Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/src/metrics/duration_helper/
DOringDurationTracker.cpp341 int64_t pastNs = currentBucketPastNs + anomalyTracker.getSumOverPastBuckets(mEventKey); in predictAnomalyTimestampNs() local
350 std::max(eventTimestampNs + thresholdNs - pastNs, refractoryPeriodEndNs); in predictAnomalyTimestampNs()
358 pastNs -= anomalyTracker.getPastBucketValue( in predictAnomalyTimestampNs()
362 pastNs += (currentBucketEndNs - eventTimestampNs); in predictAnomalyTimestampNs()
365 pastNs = 0; in predictAnomalyTimestampNs()
379 std::max(bucketEndNs - mBucketSizeNs + thresholdNs - pastNs, refractoryPeriodEndNs); in predictAnomalyTimestampNs()
389 pastNs += mBucketSizeNs; in predictAnomalyTimestampNs()
396 pastNs -= anomalyTracker.getPastBucketValue( in predictAnomalyTimestampNs()
400 pastNs -= (currentBucketPastNs + (currentBucketEndNs - eventTimestampNs)); in predictAnomalyTimestampNs()