Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/src/metrics/duration_helper/
DOringDurationTracker.cpp105 detectAndDeclareAnomaly(timestamp, mCurrentBucketNum, mDuration + mDurationFullBucket); in noteStop()
129 detectAndDeclareAnomaly(timestamp, mCurrentBucketNum, mDuration + mDurationFullBucket); in noteStopAll()
173 addPastBucketToAnomalyTrackers(mDurationFullBucket, mCurrentBucketNum); in flushCurrentBucket()
186 addPastBucketToAnomalyTrackers(info.mDuration, mCurrentBucketNum + i); in flushCurrentBucket()
191 addPastBucketToAnomalyTrackers(0, mCurrentBucketNum + numBucketsForward - 1); in flushCurrentBucket()
199 mCurrentBucketNum += numBucketsForward; in flushCurrentBucket()
253 detectAndDeclareAnomaly(timestamp, mCurrentBucketNum, mDuration + mDurationFullBucket); in onSlicedConditionMayChange()
319 detectAndDeclareAnomaly(timestamp, mCurrentBucketNum, mDuration + mDurationFullBucket); in onConditionChanged()
360 mCurrentBucketNum - anomalyTracker.getNumOfPastBuckets()); in predictAnomalyTimestampNs()
398 mCurrentBucketNum - anomalyTracker.getNumOfPastBuckets() + futureBucketIdx); in predictAnomalyTimestampNs()
DDurationTracker.h78 mCurrentBucketNum(currentBucketNum), in DurationTracker()
121 return mStartTimeNs + (mCurrentBucketNum + 1) * mBucketSizeNs; in getCurrentBucketEndTimeNs()
167 return mStartTimeNs + (mCurrentBucketNum + 1) * mBucketSizeNs; in getCurrentBucketEndTimeNs()
193 int64_t mCurrentBucketNum; variable
DMaxDurationTracker.cpp230 mCurrentBucketNum += numBucketsForward; in flushCurrentBucket()
/frameworks/base/cmds/statsd/src/metrics/
DMetricProducer.h82 mCurrentBucketNum(0), in MetricProducer()
217 return mCurrentBucketNum; in getCurrentBucketNum()
309 return mTimeBaseNs + (mCurrentBucketNum + 1) * mBucketSizeNs; in getCurrentBucketEndTimeNs()
332 int64_t mCurrentBucketNum; variable
DCountMetricProducer.cpp306 tracker->detectAndDeclareAnomaly(eventTimeNs, mCurrentBucketNum, mMetricId, eventKey, in onMatchedLogEventInternalLocked()
327 mCurrentBucketNum += numBucketsForward; in flushIfNeededLocked()
359 tracker->addPastBucket(mCurrentFullCounters, mCurrentBucketNum); in flushCurrentBucketLocked()
365 tracker->addPastBucket(mCurrentSlicedCounter, mCurrentBucketNum); in flushCurrentBucketLocked()
DValueMetricProducer.cpp144 mCurrentBucketNum += numBucketsForward; in ValueMetricProducer()
815 tracker->detectAndDeclareAnomaly(eventTimeNs, mCurrentBucketNum, mMetricId, eventKey, in onMatchedLogEventInternalLocked()
884 mCurrentBucketNum += numBucketsForward; in flushCurrentBucketLocked()
970 tracker->addPastBucket(slice.first, slice.second, mCurrentBucketNum); in appendToFullBucket()
984 mCurrentBucketNum); in appendToFullBucket()
DGaugeMetricProducer.cpp505 tracker->detectAndDeclareAnomaly(eventTimeNs, mCurrentBucketNum, mMetricId, in onMatchedLogEventInternalLocked()
553 mCurrentBucketNum += numBucketsForward; in flushIfNeededLocked()
589 tracker->addPastBucket(mCurrentSlicedBucketForAnomaly, mCurrentBucketNum); in flushCurrentBucketLocked()
DDurationMetricProducer.cpp167 mDimensionsInCondition, mNested, mCurrentBucketStartTimeNs, mCurrentBucketNum, in createDurationTracker()
173 mDimensionsInCondition, mNested, mCurrentBucketStartTimeNs, mCurrentBucketNum, in createDurationTracker()
610 mCurrentBucketNum += numBucketsForward; in flushIfNeededLocked()
/frameworks/base/cmds/statsd/tests/metrics/
DGaugeMetricProducer_test.cpp86 EXPECT_EQ(10, gaugeProducer.mCurrentBucketNum); in TEST()
229 EXPECT_EQ(0L, gaugeProducer.mCurrentBucketNum); in TEST()
240 EXPECT_EQ(0L, gaugeProducer.mCurrentBucketNum); in TEST()
253 EXPECT_EQ(1L, gaugeProducer.mCurrentBucketNum); in TEST()
265 EXPECT_EQ(2L, gaugeProducer.mCurrentBucketNum); in TEST()
323 EXPECT_EQ(0L, gaugeProducer.mCurrentBucketNum); in TEST()
390 EXPECT_EQ(0L, gaugeProducer.mCurrentBucketNum); in TEST()
DCountMetricProducer_test.cpp49 EXPECT_EQ(10, countProducer.mCurrentBucketNum); in TEST()
DDurationMetricProducer_test.cpp55 EXPECT_EQ(10, durationProducer.mCurrentBucketNum); in TEST()
DValueMetricProducer_test.cpp205 EXPECT_EQ(10, valueProducer.mCurrentBucketNum); in TEST()