Home
last modified time | relevance | path

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

/packages/modules/StatsD/statsd/src/condition/
DConditionTimer.h40 mLastConditionChangeTimestampNs = bucketStartNs; in ConditionTimer()
52 int64_t mLastConditionChangeTimestampNs = 0; variable
95 if (nextBucketStartNs >= mLastConditionChangeTimestampNs) { in newBucketStart()
96 mTimerNs += (nextBucketStartNs - mLastConditionChangeTimestampNs); in newBucketStart()
97 mLastConditionChangeTimestampNs = nextBucketStartNs; in newBucketStart()
104 } else if (mLastConditionChangeTimestampNs > nextBucketStartNs) { in newBucketStart()
111 mTimerNs -= (mLastConditionChangeTimestampNs - nextBucketStartNs); in newBucketStart()
122 if (!mCondition && (mLastConditionChangeTimestampNs > nextBucketStartNs)) { in newBucketStart()
128 mTimerNs = mLastConditionChangeTimestampNs - nextBucketStartNs; in newBucketStart()
139 mTimerNs += (timestampNs - mLastConditionChangeTimestampNs); in onConditionChanged()
[all …]
/packages/modules/StatsD/statsd/tests/condition/
DConditionTimer_test.cpp49 EXPECT_EQ(ct_start_time + 5, timer.mLastConditionChangeTimestampNs); in TEST()
54 EXPECT_EQ(ct_start_time + 100, timer.mLastConditionChangeTimestampNs); in TEST()
67 EXPECT_EQ(ct_start_time, timer.mLastConditionChangeTimestampNs); in TEST()
86 EXPECT_EQ(ct_start_time, timer.mLastConditionChangeTimestampNs); in TEST()
107 EXPECT_EQ(ct_start_time + 7, timer.mLastConditionChangeTimestampNs); in TEST()
/packages/modules/StatsD/statsd/tests/
Dstatsd_test_util.h167 EXPECT_EQ(lastConditionTrueTimestampNs, conditionTimer.mLastConditionChangeTimestampNs);