/packages/modules/StatsD/statsd/tests/ |
D | StatsService_test.cpp | 204 EXPECT_GE(NanoToMillis(bucketInfo0.start_bucket_elapsed_nanos()), in TEST_F() 205 NanoToMillis(createConfigTimeNs)); in TEST_F() 206 EXPECT_LE(NanoToMillis(bucketInfo0.start_bucket_elapsed_nanos()), in TEST_F() 207 NanoToMillis(createConfigTimeNs + ERROR_THRESHOLD_NS)); in TEST_F() 209 EXPECT_EQ(NanoToMillis(bucketInfo0.end_bucket_elapsed_nanos()), in TEST_F() 210 NanoToMillis(bucketInfo1.start_bucket_elapsed_nanos())); in TEST_F() 215 EXPECT_GE(NanoToMillis(bucketInfo1.start_bucket_elapsed_nanos()), in TEST_F() 216 NanoToMillis(initCompletedTimeNs + INIT_DELAY_SEC * NS_PER_SEC)); in TEST_F() 217 EXPECT_LE(NanoToMillis(bucketInfo1.start_bucket_elapsed_nanos()), in TEST_F() 218 NanoToMillis(initCompletedTimeNs + INIT_DELAY_SEC * NS_PER_SEC + ERROR_THRESHOLD_NS)); in TEST_F() [all …]
|
/packages/modules/StatsD/statsd/tests/metrics/ |
D | KllMetricProducer_test.cpp | 326 EXPECT_EQ(NanoToMillis(bucketStartTimeNs), in TEST() 328 EXPECT_EQ(NanoToMillis(dumpReportTimeNs), in TEST() 334 EXPECT_EQ(NanoToMillis(dumpReportTimeNs), dropEvent.drop_time_millis()); in TEST() 364 EXPECT_EQ(NanoToMillis(bucketStartTimeNs), in TEST() 366 EXPECT_EQ(NanoToMillis(dumpReportTimeNs), in TEST() 372 EXPECT_EQ(NanoToMillis(dumpReportTimeNs), dropEvent.drop_time_millis()); in TEST() 396 EXPECT_EQ(NanoToMillis(bucketStartTimeNs), in TEST() 398 EXPECT_EQ(NanoToMillis(dumpReportTimeNs), in TEST() 404 EXPECT_EQ(NanoToMillis(dumpReportTimeNs), dropEvent.drop_time_millis()); in TEST() 432 EXPECT_EQ(NanoToMillis(bucketStartTimeNs), in TEST() [all …]
|
D | NumericValueMetricProducer_test.cpp | 2202 EXPECT_EQ(NanoToMillis(bucketStartTimeNs), in TEST() 2204 EXPECT_EQ(NanoToMillis(bucket2StartTimeNs), in TEST() 2210 EXPECT_EQ(NanoToMillis(bucketStartTimeNs + 2), dropEvent.drop_time_millis()); in TEST() 2266 EXPECT_EQ(NanoToMillis(bucketStartTimeNs), in TEST() 2268 EXPECT_EQ(NanoToMillis(bucket2StartTimeNs), in TEST() 2274 EXPECT_EQ(NanoToMillis(bucketStartTimeNs + 2), dropEvent.drop_time_millis()); in TEST() 2342 EXPECT_EQ(NanoToMillis(bucketStartTimeNs), in TEST() 2344 EXPECT_EQ(NanoToMillis(bucket2StartTimeNs), in TEST() 2350 EXPECT_EQ(NanoToMillis(bucketStartTimeNs + 2), dropEvent.drop_time_millis()); in TEST() 2418 EXPECT_EQ(NanoToMillis(bucketStartTimeNs), in TEST() [all …]
|
D | GaugeMetricProducer_test.cpp | 925 EXPECT_EQ(NanoToMillis(bucketStartTimeNs), in TEST() 927 EXPECT_EQ(NanoToMillis(bucketStartTimeNs + 9000000), in TEST() 933 EXPECT_EQ(NanoToMillis(bucketStartTimeNs + 9000000), dropEvent.drop_time_millis()); in TEST()
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | PartialBucket_e2e_test.cpp | 225 EXPECT_EQ(MillisToNano(NanoToMillis(bootCompleteTimeNs)), in TEST_F() 253 EXPECT_EQ(bucketInfo.end_bucket_elapsed_nanos(), MillisToNano(NanoToMillis(start + 4))); in TEST_F() 281 EXPECT_EQ(MillisToNano(NanoToMillis(appUpgradeTimeNs)), in TEST_F() 307 EXPECT_EQ(MillisToNano(NanoToMillis(endSkipped)), in TEST_F() 335 EXPECT_EQ(MillisToNano(NanoToMillis(bootCompleteTimeNs)), in TEST_F() 342 MillisToNano(NanoToMillis(bootCompleteTimeNs)), in TEST_F() 390 EXPECT_EQ(MillisToNano(NanoToMillis(endSkipped)), in TEST_F() 421 MillisToNano(NanoToMillis(bootCompleteTimeNs)), in TEST_F() 448 EXPECT_EQ(bucketInfo.end_bucket_elapsed_nanos(), MillisToNano(NanoToMillis(start + 4))); in TEST_F()
|
D | ValueMetric_pull_e2e_test.cpp | 311 EXPECT_EQ(MillisToNano(NanoToMillis(baseTimeNs + 2 * bucketSizeNs)), in TEST() 313 EXPECT_EQ(MillisToNano(NanoToMillis(baseTimeNs + 3 * bucketSizeNs)), in TEST() 318 EXPECT_EQ(MillisToNano(NanoToMillis(baseTimeNs + 5 * bucketSizeNs)), in TEST() 320 EXPECT_EQ(MillisToNano(NanoToMillis(baseTimeNs + 6 * bucketSizeNs)), in TEST() 431 EXPECT_EQ(MillisToNano(NanoToMillis(baseTimeNs + 2 * bucketSizeNs)), in TEST() 433 EXPECT_EQ(MillisToNano(NanoToMillis(baseTimeNs + 5 * bucketSizeNs)), in TEST() 438 EXPECT_EQ(MillisToNano(NanoToMillis(baseTimeNs + 6 * bucketSizeNs)), in TEST() 440 EXPECT_EQ(MillisToNano(NanoToMillis(baseTimeNs + 7 * bucketSizeNs)), in TEST() 445 EXPECT_EQ(MillisToNano(NanoToMillis(baseTimeNs + 7 * bucketSizeNs)), in TEST() 447 EXPECT_EQ(MillisToNano(NanoToMillis(baseTimeNs + 8 * bucketSizeNs)), in TEST() [all …]
|
D | ConfigUpdate_e2e_ab_test.cpp | 362 EXPECT_EQ(MillisToNano(NanoToMillis(updateTimeNs)), in TEST_P() 364 EXPECT_EQ(MillisToNano(NanoToMillis(dumpTimeNs)), in TEST_P()
|
D | GaugeMetric_e2e_pull_test.cpp | 689 EXPECT_EQ(MillisToNano(NanoToMillis(baseTimeNs + 5 * bucketSizeNs)), in TEST() 691 EXPECT_EQ(MillisToNano(NanoToMillis(deactivationNs)), bucketInfo.end_bucket_elapsed_nanos()); in TEST() 863 MillisToNano(NanoToMillis(configAddedTimeNs + (3 * bucketSizeNs))), in TEST() 864 /*endTimeNs=*/MillisToNano(NanoToMillis(deactivationNs)), in TEST()
|
D | ConfigUpdate_e2e_test.cpp | 1100 int64_t roundedBucketStartNs = MillisToNano(NanoToMillis(bucketStartTimeNs)); in TEST_F() 1101 int64_t roundedUpdateTimeNs = MillisToNano(NanoToMillis(updateTimeNs)); in TEST_F() 1102 int64_t roundedBucketEndNs = MillisToNano(NanoToMillis(bucketStartTimeNs + bucketSizeNs)); in TEST_F() 1103 int64_t roundedDumpTimeNs = MillisToNano(NanoToMillis(dumpTimeNs)); in TEST_F() 1467 int64_t roundedBucketStartNs = MillisToNano(NanoToMillis(bucketStartTimeNs)); in TEST_F() 1468 int64_t roundedUpdateTimeNs = MillisToNano(NanoToMillis(updateTimeNs)); in TEST_F() 1469 int64_t roundedBucketEndNs = MillisToNano(NanoToMillis(bucketStartTimeNs + bucketSizeNs)); in TEST_F() 1470 int64_t roundedDumpTimeNs = MillisToNano(NanoToMillis(dumpTimeNs)); in TEST_F()
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | GaugeMetricProducer.cpp | 297 (long long)(NanoToMillis(skippedBucket.bucketStartTimeNs))); in onDumpReportLocked() 299 (long long)(NanoToMillis(skippedBucket.bucketEndTimeNs))); in onDumpReportLocked() 305 …protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_DROP_TIME, (long long) (NanoToMillis(dropEvent.drop… in onDumpReportLocked() 336 (long long)NanoToMillis(bucket.mBucketStartNs)); in onDumpReportLocked() 338 (long long)NanoToMillis(bucket.mBucketEndNs)); in onDumpReportLocked()
|
D | ValueMetricProducer.cpp | 385 (long long)(NanoToMillis(skippedBucket.bucketStartTimeNs))); in onDumpReportLocked() 387 (long long)(NanoToMillis(skippedBucket.bucketEndTimeNs))); in onDumpReportLocked() 393 (long long)(NanoToMillis(dropEvent.dropTimeNs))); in onDumpReportLocked() 430 (long long)NanoToMillis(bucket.mBucketStartNs)); in onDumpReportLocked() 432 (long long)NanoToMillis(bucket.mBucketEndNs)); in onDumpReportLocked()
|
D | CountMetricProducer.cpp | 293 (long long)NanoToMillis(bucket.mBucketStartNs)); in onDumpReportLocked() 295 (long long)NanoToMillis(bucket.mBucketEndNs)); in onDumpReportLocked()
|
D | DurationMetricProducer.cpp | 581 (long long)NanoToMillis(bucket.mBucketStartNs)); in onDumpReportLocked() 583 (long long)NanoToMillis(bucket.mBucketEndNs)); in onDumpReportLocked()
|
/packages/modules/StatsD/statsd/src/external/ |
D | StatsPuller.cpp | 85 mTagId, pullSystemUptimeDurationMillis, NanoToMillis(pullElapsedDurationNs)); in Pull()
|
/packages/modules/StatsD/statsd/src/ |
D | stats_log_util.h | 77 int64_t NanoToMillis(const int64_t nano);
|
D | stats_log_util.cpp | 609 int64_t NanoToMillis(const int64_t nano) { in NanoToMillis() function
|
D | StatsLogProcessor.cpp | 453 informAnomalyAlarmFiredLocked(NanoToMillis(elapsedRealtimeNs)); in OnLogEvent()
|
/packages/modules/StatsD/statsd/tests/utils/ |
D | MultiConditionTrigger_test.cpp | 278 EXPECT_LE(NanoToMillis(triggerEndNs - triggerStartNs), in TEST()
|
/packages/modules/StatsD/statsd/src/guardrail/ |
D | StatsdStats.cpp | 1533 batchRead.mSize, (long long)NanoToMillis(batchRead.mCurrReadTimeNs), in dumpStats() 1534 (long long)NanoToMillis(batchRead.mLastReadTimeNs), in dumpStats() 1535 (long long)NanoToMillis(batchRead.mMinAtomReadTimeNs), in dumpStats() 1536 (long long)NanoToMillis(batchRead.mMaxAtomReadTimeNs)); in dumpStats()
|