/packages/modules/StatsD/statsd/tests/metrics/ |
D | DurationMetricProducer_test.cpp | 119 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, buckets[0].mBucketEndNs); in TEST() 122 EXPECT_EQ(bucketStartTimeNs + 2 * bucketSizeNs, buckets[1].mBucketEndNs); in TEST() 180 EXPECT_EQ(bucket2EndTimeNs, buckets2[0].mBucketEndNs); in TEST() 230 EXPECT_EQ(bucketStartTimeNs + 2 * bucketSizeNs, buckets2[0].mBucketEndNs); in TEST() 282 EXPECT_EQ(partialBucketSplitTimeNs, buckets[0].mBucketEndNs); in TEST_P() 295 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, buckets[1].mBucketEndNs); in TEST_P() 298 EXPECT_EQ(bucketStartTimeNs + 2 * bucketSizeNs, buckets[2].mBucketEndNs); in TEST_P() 347 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, buckets[0].mBucketEndNs); in TEST_P() 350 EXPECT_EQ(partialBucketSplitTimeNs, buckets[1].mBucketEndNs); in TEST_P() 363 EXPECT_EQ(bucketStartTimeNs + 2 * bucketSizeNs, buckets[2].mBucketEndNs); in TEST_P() [all …]
|
D | CountMetricProducer_test.cpp | 125 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, buckets[0].mBucketEndNs); in TEST() 141 EXPECT_EQ(bucket2StartTimeNs + bucketSizeNs, bucketInfo2.mBucketEndNs); in TEST() 196 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, bucketInfo.mBucketEndNs); in TEST() 254 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, bucketInfo.mBucketEndNs); in TEST() 305 countProducer.mPastBuckets[DEFAULT_METRIC_DIMENSION_KEY][0].mBucketEndNs); in TEST_P() 370 countProducer.mPastBuckets[DEFAULT_METRIC_DIMENSION_KEY][0].mBucketEndNs); in TEST_P() 387 countProducer.mPastBuckets[DEFAULT_METRIC_DIMENSION_KEY][1].mBucketEndNs); in TEST_P() 449 countProducer.mPastBuckets[DEFAULT_METRIC_DIMENSION_KEY][0].mBucketEndNs); in TEST()
|
D | MaxDurationTracker_test.cpp | 123 EXPECT_EQ(bucketStartTimeNs + 2 * bucketSizeNs, buckets[eventKey][0].mBucketEndNs); in TEST() 163 EXPECT_EQ(bucketStartTimeNs + 4 * bucketSizeNs, buckets[eventKey][0].mBucketEndNs); in TEST()
|
D | GaugeMetricProducer_test.cpp | 264 gaugeProducer.mPastBuckets[DEFAULT_METRIC_DIMENSION_KEY][0].mBucketEndNs); in TEST_P() 279 gaugeProducer.mPastBuckets[DEFAULT_METRIC_DIMENSION_KEY][0].mBucketEndNs); in TEST_P() 360 gaugeProducer.mPastBuckets[DEFAULT_METRIC_DIMENSION_KEY][0].mBucketEndNs); in TEST_P()
|
D | KllMetricProducer_test.cpp | 95 EXPECT_EQ(expectedEndTimeNs[i], buckets[i].mBucketEndNs) in assertPastBucketsSingleKey()
|
D | NumericValueMetricProducer_test.cpp | 97 EXPECT_EQ(expectedEndTimeNs[i], buckets[i].mBucketEndNs) in assertPastBucketValuesSingleKey() 1930 EXPECT_EQ(bucket5StartTimeNs, iterator->second[0].mBucketEndNs); in TEST() 1934 EXPECT_EQ(bucket6StartTimeNs, iterator->second[1].mBucketEndNs); in TEST() 1943 EXPECT_EQ(bucket2StartTimeNs, iterator->second[0].mBucketEndNs); in TEST() 1947 EXPECT_EQ(bucket6StartTimeNs, iterator->second[1].mBucketEndNs); in TEST()
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | CountMetricProducer.cpp | 291 if (bucket.mBucketEndNs - bucket.mBucketStartNs != mBucketSizeNs) { in onDumpReportLocked() 295 (long long)NanoToMillis(bucket.mBucketEndNs)); in onDumpReportLocked() 298 (long long)(getBucketNumFromEndTimeNs(bucket.mBucketEndNs))); in onDumpReportLocked() 312 (long long)bucket.mBucketEndNs, (long long)bucket.mCount); in onDumpReportLocked() 452 info.mBucketEndNs = eventTimeNs; in flushCurrentBucketLocked() 454 info.mBucketEndNs = fullBucketEndTimeNs; in flushCurrentBucketLocked()
|
D | GaugeMetricProducer.cpp | 334 if (bucket.mBucketEndNs - bucket.mBucketStartNs != mBucketSizeNs) { in onDumpReportLocked() 338 (long long)NanoToMillis(bucket.mBucketEndNs)); in onDumpReportLocked() 341 (long long)(getBucketNumFromEndTimeNs(bucket.mBucketEndNs))); in onDumpReportLocked() 366 (long long)bucket.mBucketStartNs, (long long)bucket.mBucketEndNs, in onDumpReportLocked() 666 info.mBucketEndNs = bucketEndTime; in flushCurrentBucketLocked() 670 bool isBucketLargeEnough = info.mBucketEndNs - mCurrentBucketStartTimeNs >= mMinBucketSizeNs; in flushCurrentBucketLocked()
|
D | DurationMetricProducer.cpp | 579 if (bucket.mBucketEndNs - bucket.mBucketStartNs != mBucketSizeNs) { in onDumpReportLocked() 583 (long long)NanoToMillis(bucket.mBucketEndNs)); in onDumpReportLocked() 586 (long long)(getBucketNumFromEndTimeNs(bucket.mBucketEndNs))); in onDumpReportLocked() 600 (long long)bucket.mBucketEndNs, (long long)bucket.mDuration); in onDumpReportLocked() 878 bool isFullBucket = bucket.mBucketEndNs - bucket.mBucketStartNs >= mBucketSizeNs; in byteSizeLocked()
|
D | ValueMetricProducer.cpp | 428 if (bucket.mBucketEndNs - bucket.mBucketStartNs != mBucketSizeNs) { in onDumpReportLocked() 432 (long long)NanoToMillis(bucket.mBucketEndNs)); in onDumpReportLocked() 435 (long long)(getBucketNumFromEndTimeNs(bucket.mBucketEndNs))); in onDumpReportLocked() 462 (long long)bucket.mBucketEndNs); in onDumpReportLocked()
|
D | CountMetricProducer.h | 39 int64_t mBucketEndNs; member
|
D | KllMetricProducer.cpp | 144 bucket.mBucketEndNs = bucketEndTimeNs; in buildPartialBucket()
|
D | GaugeMetricProducer.h | 46 int64_t mBucketEndNs; member
|
D | ValueMetricProducer.h | 42 int64_t mBucketEndNs; member
|
D | NumericValueMetricProducer.cpp | 527 bucket.mBucketEndNs = bucketEndTimeNs; in buildPartialBucket()
|
/packages/modules/StatsD/statsd/src/metrics/duration_helper/ |
D | DurationTracker.h | 56 int64_t mBucketEndNs; member 60 DurationBucket() : mBucketStartNs(0), mBucketEndNs(0), mDuration(0), mConditionTrueNs(0){}; in DurationBucket()
|
D | OringDurationTracker.cpp | 181 current_info.mBucketEndNs = currentBucketEndTimeNs; in flushCurrentBucket() 209 info.mBucketEndNs = info.mBucketStartNs + mBucketSizeNs; in flushCurrentBucket()
|
D | MaxDurationTracker.cpp | 212 info.mBucketEndNs = currentBucketEndTimeNs; in flushCurrentBucket()
|