Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/tests/metrics/
DDurationMetricProducer_test.cpp140 int64_t eventUpgradeTimeNs = bucketStartTimeNs + 15 * NS_PER_SEC; in TEST() local
163 durationProducer.notifyAppUpgrade(eventUpgradeTimeNs, "ANY.APP", 1, 1); in TEST()
168 EXPECT_EQ(eventUpgradeTimeNs, buckets[0].mBucketEndNs); in TEST()
169 EXPECT_EQ(eventUpgradeTimeNs - startTimeNs, buckets[0].mDuration); in TEST()
170 EXPECT_EQ(eventUpgradeTimeNs, durationProducer.mCurrentBucketStartTimeNs); in TEST()
178 EXPECT_EQ(eventUpgradeTimeNs, buckets[1].mBucketStartNs); in TEST()
180 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs - eventUpgradeTimeNs, buckets[1].mDuration); in TEST()
195 int64_t eventUpgradeTimeNs = bucketStartTimeNs + 65 * NS_PER_SEC; in TEST() local
218 durationProducer.notifyAppUpgrade(eventUpgradeTimeNs, "ANY.APP", 1, 1); in TEST()
226 EXPECT_EQ(eventUpgradeTimeNs, buckets[1].mBucketEndNs); in TEST()
[all …]
DCountMetricProducer_test.cpp208 int64_t eventUpgradeTimeNs = bucketStartTimeNs + 15 * NS_PER_SEC; in TEST() local
237 countProducer.notifyAppUpgrade(eventUpgradeTimeNs, "ANY.APP", 1, 1); in TEST()
241 EXPECT_EQ((long long)eventUpgradeTimeNs, in TEST()
243 EXPECT_EQ(eventUpgradeTimeNs, countProducer.mCurrentBucketStartTimeNs); in TEST()
254 EXPECT_EQ(eventUpgradeTimeNs, countProducer.mCurrentBucketStartTimeNs); in TEST()
270 int64_t eventUpgradeTimeNs = bucketStartTimeNs + 65 * NS_PER_SEC; in TEST() local
292 countProducer.notifyAppUpgrade(eventUpgradeTimeNs, "ANY.APP", 1, 1); in TEST()
298 EXPECT_EQ(eventUpgradeTimeNs, countProducer.mCurrentBucketStartTimeNs); in TEST()
313 EXPECT_EQ((int64_t)eventUpgradeTimeNs, in TEST()
DGaugeMetricProducer_test.cpp48 const int64_t eventUpgradeTimeNs = bucketStartTimeNs + 15 * NS_PER_SEC; variable
160 gaugeProducer.notifyAppUpgrade(eventUpgradeTimeNs, "ANY.APP", 1, 1); in TEST()
164 EXPECT_EQ(eventUpgradeTimeNs, gaugeProducer.mCurrentBucketStartTimeNs); in TEST()
176 EXPECT_EQ((int64_t)eventUpgradeTimeNs, gaugeProducer.mCurrentBucketStartTimeNs); in TEST()
222 shared_ptr<LogEvent> event = make_shared<LogEvent>(tagId, eventUpgradeTimeNs); in TEST()
247 gaugeProducer.notifyAppUpgrade(eventUpgradeTimeNs, "ANY.APP", 1, 1); in TEST()
250 EXPECT_EQ((int64_t)eventUpgradeTimeNs, gaugeProducer.mCurrentBucketStartTimeNs); in TEST()
DValueMetricProducer_test.cpp50 const int64_t eventUpgradeTimeNs = bucketStartTimeNs + 15 * NS_PER_SEC; variable
381 valueProducer.notifyAppUpgrade(eventUpgradeTimeNs, "ANY.APP", 1, 1); in TEST()
383 EXPECT_EQ(eventUpgradeTimeNs, valueProducer.mCurrentBucketStartTimeNs); in TEST()
391 EXPECT_EQ(eventUpgradeTimeNs, valueProducer.mCurrentBucketStartTimeNs); in TEST()
441 valueProducer.notifyAppUpgrade(eventUpgradeTimeNs, "ANY.APP", 1, 1); in TEST()
443 EXPECT_EQ(eventUpgradeTimeNs, valueProducer.mCurrentBucketStartTimeNs); in TEST()