Home
last modified time | relevance | path

Searched refs:MillisToNano (Results 1 – 16 of 16) sorted by relevance

/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/tests/external/
DStatsPuller_test.cpp51 : StatsPuller(pullTagId, /*coolDownNs=*/MillisToNano(10), /*timeoutNs=*/MillisToNano(5)){}; in FakePuller()
152 pullDelayNs = MillisToNano(6); in TEST_F()
182 pullDelayNs = MillisToNano(6); in TEST_F()
270 pullDelayNs = MillisToNano(6); in TEST_F()
DStatsCallbackPuller_test.cpp158 pullDelayNs = MillisToNano(5); // 5ms. in TEST_F()
187 pullDelayNs = MillisToNano(50); // 50 ms. in TEST_F()
/packages/modules/StatsD/statsd/src/
Dstats_log_util.h81 int64_t MillisToNano(const int64_t millis);
DStatsService.cpp1365 mPullerManager->RegisterPullAtomCallback(uid, atomTag, MillisToNano(coolDownMillis), in registerPullAtomCallback()
1366 MillisToNano(timeoutMillis), additiveFields, in registerPullAtomCallback()
1384 mPullerManager->RegisterPullAtomCallback(uid, atomTag, MillisToNano(coolDownMillis), in registerNativePullAtomCallback()
1385 MillisToNano(timeoutMillis), additiveFields, in registerNativePullAtomCallback()
Dstats_log_util.cpp617 int64_t MillisToNano(const int64_t millis) { in MillisToNano() function
DStatsLogProcessor.cpp446 MillisToNano(mNextAnomalyAlarmTime) <= elapsedRealtimeNs) { in OnLogEvent()
1495 processFiredAnomalyAlarmsLocked(MillisToNano(elapsedTimeMillis), alarmSet); in informAnomalyAlarmFiredLocked()
/packages/modules/StatsD/statsd/tests/
Dstatsd_test_util.h749 MillisToNano(bucket->start_bucket_elapsed_millis())); in backfillStartEndTimestampForPartialBucket()
754 MillisToNano(bucket->end_bucket_elapsed_millis())); in backfillStartEndTimestampForPartialBucket()
Dstatsd_test_util.cpp1477 const int64_t bucketSizeNs = MillisToNano( in createNumericValueMetricProducer()
/packages/modules/StatsD/statsd/tests/metrics/
DKllMetricProducer_test.cpp120 const int64_t bucketSizeNs = MillisToNano(
/packages/modules/StatsD/statsd/src/metrics/parsing_utils/
Dmetrics_manager_util.cpp1026 MillisToNano(TimeUnitToBucketSizeInMillisGuardrailed(key.GetUid(), bucketSizeTimeUnit)); in createNumericValueMetricProducerAndUpdateMetadata()
1185 MillisToNano(TimeUnitToBucketSizeInMillisGuardrailed(key.GetUid(), bucketSizeTimeUnit)); in createKllMetricProducerAndUpdateMetadata()
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dmetrics_manager_util_test.cpp1611 alert.set_trigger_if_sum_gt(MillisToNano(TimeUnitToBucketSizeInMillis(ONE_MINUTE)) + 1); in TEST_F()