Home
last modified time | relevance | path

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

/packages/modules/StatsD/statsd/src/metrics/
DValueMetricProducer.cpp620 .conditionTimer.onConditionChanged( in updateCurrentSlicedBucketConditionTimers()
742 currentBucket.conditionTimer.onConditionChanged(false, eventTimeNs); in onMatchedLogEventInternalLocked()
746 .conditionTimer.onConditionChanged(true, eventTimeNs); in onMatchedLogEventInternalLocked()
798 currentBucket.conditionTimer.newBucketStart(eventTimeNs, nextBucketStartTimeNs); in flushCurrentBucketLocked()
844 currentBucket.conditionTimer.newBucketStart(eventTimeNs, bucketEndTimeNs); in closeCurrentBucket()
DValueMetricProducer.h291 CurrentBucket() : intervals(), conditionTimer(ConditionTimer(false, 0)) { in CurrentBucket()
296 ConditionTimer conditionTimer; member
DNumericValueMetricProducer.cpp332 currentValueBucket.conditionTimer.onConditionChanged(false, eventElapsedTimeNs); in accumulateEvents()
/packages/modules/StatsD/statsd/tests/metrics/
DNumericValueMetricProducer_test.cpp4062 assertConditionTimer(it->second.conditionTimer, true, 0, bucketStartTimeNs); in TEST()
4085 assertConditionTimer(it->second.conditionTimer, true, 0, bucketStartTimeNs + 5 * NS_PER_SEC); in TEST()
4094 assertConditionTimer(it->second.conditionTimer, false, 5 * NS_PER_SEC, in TEST()
4117 assertConditionTimer(it->second.conditionTimer, true, 0, bucketStartTimeNs + 10 * NS_PER_SEC); in TEST()
4126 assertConditionTimer(it->second.conditionTimer, false, 5 * NS_PER_SEC, in TEST()
4136 assertConditionTimer(it->second.conditionTimer, false, 5 * NS_PER_SEC, in TEST()
4161 assertConditionTimer(it->second.conditionTimer, false, 5 * NS_PER_SEC, in TEST()
4171 assertConditionTimer(it->second.conditionTimer, true, 5 * NS_PER_SEC, in TEST()
4181 assertConditionTimer(it->second.conditionTimer, false, 5 * NS_PER_SEC, in TEST()
4208 assertConditionTimer(it->second.conditionTimer, true, 0, bucketStartTimeNs + 50 * NS_PER_SEC); in TEST()
[all …]
/packages/modules/StatsD/statsd/tests/
Dstatsd_test_util.h162 static void assertConditionTimer(const ConditionTimer& conditionTimer, bool condition,
165 EXPECT_EQ(condition, conditionTimer.mCondition);
166 EXPECT_EQ(timerNs, conditionTimer.mTimerNs);
167 EXPECT_EQ(lastConditionTrueTimestampNs, conditionTimer.mLastConditionChangeTimestampNs);
168 EXPECT_EQ(currentBucketStartDelayNs, conditionTimer.mCurrentBucketStartDelayNs);