Searched refs:eventUpgradeTimeNs (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/cmds/statsd/tests/metrics/ |
D | DurationMetricProducer_test.cpp | 201 int64_t eventUpgradeTimeNs = bucketStartTimeNs + 15 * NS_PER_SEC; in TEST() local 223 durationProducer.notifyAppUpgrade(eventUpgradeTimeNs, "ANY.APP", 1, 1); in TEST() 228 EXPECT_EQ(eventUpgradeTimeNs, buckets[0].mBucketEndNs); in TEST() 229 EXPECT_EQ(eventUpgradeTimeNs - startTimeNs, buckets[0].mDuration); in TEST() 230 EXPECT_EQ(eventUpgradeTimeNs, durationProducer.mCurrentBucketStartTimeNs); in TEST() 238 EXPECT_EQ(eventUpgradeTimeNs, buckets[1].mBucketStartNs); in TEST() 240 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs - eventUpgradeTimeNs, buckets[1].mDuration); in TEST() 255 int64_t eventUpgradeTimeNs = bucketStartTimeNs + 65 * NS_PER_SEC; in TEST() local 277 durationProducer.notifyAppUpgrade(eventUpgradeTimeNs, "ANY.APP", 1, 1); in TEST() 285 EXPECT_EQ(eventUpgradeTimeNs, buckets[1].mBucketEndNs); in TEST() [all …]
|
D | CountMetricProducer_test.cpp | 218 int64_t eventUpgradeTimeNs = bucketStartTimeNs + 15 * NS_PER_SEC; in TEST() local 246 countProducer.notifyAppUpgrade(eventUpgradeTimeNs, "ANY.APP", 1, 1); in TEST() 250 EXPECT_EQ((long long)eventUpgradeTimeNs, in TEST() 252 EXPECT_EQ(eventUpgradeTimeNs, countProducer.mCurrentBucketStartTimeNs); in TEST() 263 EXPECT_EQ(eventUpgradeTimeNs, countProducer.mCurrentBucketStartTimeNs); in TEST() 279 int64_t eventUpgradeTimeNs = bucketStartTimeNs + 65 * NS_PER_SEC; in TEST() local 300 countProducer.notifyAppUpgrade(eventUpgradeTimeNs, "ANY.APP", 1, 1); in TEST() 306 EXPECT_EQ(eventUpgradeTimeNs, countProducer.mCurrentBucketStartTimeNs); in TEST() 321 EXPECT_EQ((int64_t)eventUpgradeTimeNs, in TEST()
|
D | GaugeMetricProducer_test.cpp | 51 const int64_t eventUpgradeTimeNs = bucketStartTimeNs + 15 * NS_PER_SEC; variable 226 gaugeProducer.notifyAppUpgrade(eventUpgradeTimeNs, "ANY.APP", 1, 1); in TEST() 230 EXPECT_EQ(eventUpgradeTimeNs, gaugeProducer.mCurrentBucketStartTimeNs); in TEST() 242 EXPECT_EQ((int64_t)eventUpgradeTimeNs, gaugeProducer.mCurrentBucketStartTimeNs); in TEST() 295 shared_ptr<LogEvent> event = make_shared<LogEvent>(tagId, eventUpgradeTimeNs); in TEST() 321 gaugeProducer.notifyAppUpgrade(eventUpgradeTimeNs, "ANY.APP", 1, 1); in TEST() 324 EXPECT_EQ((int64_t)eventUpgradeTimeNs, gaugeProducer.mCurrentBucketStartTimeNs); in TEST() 388 gaugeProducer.notifyAppUpgrade(eventUpgradeTimeNs, "ANY.APP", 1, 1); in TEST()
|