Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/src/metrics/duration_helper/
DOringDurationTracker.cpp331 const int64_t thresholdNs = anomalyTracker.getAnomalyThreshold(); in predictAnomalyTimestampNs() local
350 std::max(eventTimestampNs + thresholdNs - pastNs, refractoryPeriodEndNs); in predictAnomalyTimestampNs()
379 std::max(bucketEndNs - mBucketSizeNs + thresholdNs - pastNs, refractoryPeriodEndNs); in predictAnomalyTimestampNs()
404 return std::max(eventTimestampNs + thresholdNs, refractoryPeriodEndNs); in predictAnomalyTimestampNs()
/frameworks/base/cmds/statsd/tests/metrics/
DOringDurationTracker_test.cpp416 int64_t thresholdNs = j * bucketSizeNs + 5 * NS_PER_SEC; in TEST() local
422 alert.set_trigger_if_sum_gt(thresholdNs); in TEST()
441 EXPECT_EQ((long long)(eventStartTimeNs + thresholdNs), in TEST()
443 int64_t eventStopTimeNs = eventStartTimeNs + thresholdNs + NS_PER_SEC; in TEST()