Home
last modified time | relevance | path

Searched refs:NanoToMillis (Results 1 – 19 of 19) sorted by relevance

/packages/modules/StatsD/statsd/tests/
DStatsService_test.cpp204 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/
DKllMetricProducer_test.cpp326 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 …]
DNumericValueMetricProducer_test.cpp2202 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 …]
DGaugeMetricProducer_test.cpp925 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/
DPartialBucket_e2e_test.cpp225 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()
DValueMetric_pull_e2e_test.cpp311 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 …]
DConfigUpdate_e2e_ab_test.cpp362 EXPECT_EQ(MillisToNano(NanoToMillis(updateTimeNs)), in TEST_P()
364 EXPECT_EQ(MillisToNano(NanoToMillis(dumpTimeNs)), in TEST_P()
DGaugeMetric_e2e_pull_test.cpp689 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()
DConfigUpdate_e2e_test.cpp1100 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/
DGaugeMetricProducer.cpp297 (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()
DValueMetricProducer.cpp385 (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()
DCountMetricProducer.cpp293 (long long)NanoToMillis(bucket.mBucketStartNs)); in onDumpReportLocked()
295 (long long)NanoToMillis(bucket.mBucketEndNs)); in onDumpReportLocked()
DDurationMetricProducer.cpp581 (long long)NanoToMillis(bucket.mBucketStartNs)); in onDumpReportLocked()
583 (long long)NanoToMillis(bucket.mBucketEndNs)); in onDumpReportLocked()
/packages/modules/StatsD/statsd/src/external/
DStatsPuller.cpp85 mTagId, pullSystemUptimeDurationMillis, NanoToMillis(pullElapsedDurationNs)); in Pull()
/packages/modules/StatsD/statsd/src/
Dstats_log_util.h77 int64_t NanoToMillis(const int64_t nano);
Dstats_log_util.cpp609 int64_t NanoToMillis(const int64_t nano) { in NanoToMillis() function
DStatsLogProcessor.cpp453 informAnomalyAlarmFiredLocked(NanoToMillis(elapsedRealtimeNs)); in OnLogEvent()
/packages/modules/StatsD/statsd/tests/utils/
DMultiConditionTrigger_test.cpp278 EXPECT_LE(NanoToMillis(triggerEndNs - triggerStartNs), in TEST()
/packages/modules/StatsD/statsd/src/guardrail/
DStatsdStats.cpp1533 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()