Home
last modified time | relevance | path

Searched refs:GetElapsedTimestampNs (Results 1 – 24 of 24) sorted by relevance

/packages/modules/StatsD/statsd/tests/external/
DStatsPuller_test.cpp98 EXPECT_EQ(1111L, dataHolder[0]->GetElapsedTimestampNs()); in TEST_F()
112 EXPECT_EQ(2222L, dataHolder[0]->GetElapsedTimestampNs()); in TEST_F()
126 EXPECT_EQ(1111L, dataHolder[0]->GetElapsedTimestampNs()); in TEST_F()
198 EXPECT_EQ(1111L, dataHolder[0]->GetElapsedTimestampNs()); in TEST_F()
211 EXPECT_EQ(1111L, dataHolder[0]->GetElapsedTimestampNs()); in TEST_F()
244 EXPECT_EQ(1111L, dataHolder[0]->GetElapsedTimestampNs()); in TEST_F()
259 EXPECT_EQ(1111L, dataHolder[0]->GetElapsedTimestampNs()); in TEST_F()
DStatsCallbackPuller_test.cpp136 EXPECT_LT(startTimeNs, dataHolder[0]->GetElapsedTimestampNs()); in TEST_F()
137 EXPECT_GT(endTimeNs, dataHolder[0]->GetElapsedTimestampNs()); in TEST_F()
/packages/modules/StatsD/statsd/tests/metrics/
DRestrictedEventMetricProducer_test.cpp83 EXPECT_EQ(/*elapsedTimestampNs=*/rows[0][1], to_string(event1->GetElapsedTimestampNs())); in TEST_F()
84 EXPECT_EQ(/*elapsedTimestampNs=*/rows[1][1], to_string(event2->GetElapsedTimestampNs())); in TEST_F()
159 EXPECT_EQ(/*elapsedTimestampNs=*/rows[0][1], to_string(event1->GetElapsedTimestampNs())); in TEST_F()
239 to_string(event2->GetElapsedTimestampNs()), in TEST_F()
DCountMetricProducer_test.cpp515 std::ceil(1.0 * event5.GetElapsedTimestampNs() / NS_PER_SEC + refPeriodSec)); in TEST()
521 std::ceil(1.0 * event7.GetElapsedTimestampNs() / NS_PER_SEC + refPeriodSec)); in TEST()
DGaugeMetricProducer_test.cpp623 std::ceil(1.0 * event2->GetElapsedTimestampNs() / NS_PER_SEC) + refPeriodSec); in TEST()
636 std::ceil(1.0 * event2->GetElapsedTimestampNs() / NS_PER_SEC + refPeriodSec)); in TEST()
DNumericValueMetricProducer_test.cpp1080 std::ceil(1.0 * event4.GetElapsedTimestampNs() / NS_PER_SEC + refPeriodSec)); in TEST()
1084 std::ceil(1.0 * event4.GetElapsedTimestampNs() / NS_PER_SEC + refPeriodSec)); in TEST()
1089 std::ceil(1.0 * event6.GetElapsedTimestampNs() / NS_PER_SEC + refPeriodSec)); in TEST()
/packages/modules/StatsD/statsd/tests/log_event/
DLogEventQueue_test.cpp67 EXPECT_EQ(timeBaseNs + i * 1000, event->GetElapsedTimestampNs()); in TEST()
101 EXPECT_EQ(timeBaseNs + i * 1000, event->GetElapsedTimestampNs()); in TEST()
/packages/modules/StatsD/statsd/tests/shell/
DShellSubscriber_test.cpp636 shellData1.add_elapsed_timestamp_nanos(pushedList[0]->GetElapsedTimestampNs()); in TEST()
640 shellData2.add_elapsed_timestamp_nanos(pushedList[1]->GetElapsedTimestampNs()); in TEST()
698 shellData1.add_elapsed_timestamp_nanos(pushedList[0]->GetElapsedTimestampNs()); in TEST()
702 shellData2.add_elapsed_timestamp_nanos(pushedList[1]->GetElapsedTimestampNs()); in TEST()
842 expected1.add_elapsed_timestamp_nanos(pushedList[0]->GetElapsedTimestampNs()); in TEST()
849 expected2.add_elapsed_timestamp_nanos(pushedList[1]->GetElapsedTimestampNs()); in TEST()
857 expected3.add_elapsed_timestamp_nanos(pushedList[2]->GetElapsedTimestampNs()); in TEST()
864 expected4.add_elapsed_timestamp_nanos(pushedList[3]->GetElapsedTimestampNs()); in TEST()
/packages/modules/StatsD/statsd/src/logd/
DLogEventQueue.cpp51 *oldestTimestampNs = mQueue.front()->GetElapsedTimestampNs(); in push()
DLogEvent.h132 inline int64_t GetElapsedTimestampNs() const { return mElapsedTimestampNs; } in GetElapsedTimestampNs() function
/packages/modules/StatsD/statsd/tests/e2e/
DRestrictedEventMetric_e2e_test.cpp200 event->GetElapsedTimestampNs() + 20 * NS_PER_SEC, in TEST_F()
246 event->GetElapsedTimestampNs() + 20 * NS_PER_SEC, in TEST_F()
292 event->GetElapsedTimestampNs() + 20 * NS_PER_SEC, in TEST_F()
893 processor->OnLogEvent(event.get(), event->GetElapsedTimestampNs()); in TEST_F()
982 processor->OnLogEvent(event.get(), event->GetElapsedTimestampNs()); in TEST_F()
1007 processor->OnLogEvent(event.get(), event->GetElapsedTimestampNs()); in TEST_F()
/packages/modules/StatsD/statsd/benchmark/
Dmetric_util.cpp370 return a->GetElapsedTimestampNs() < b->GetElapsedTimestampNs(); in sortLogEventsByTimestamp()
/packages/modules/StatsD/statsd/src/state/
DStateTracker.cpp32 const int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onLogEvent()
/packages/modules/StatsD/statsd/src/
Dstats_log_util.cpp588 return event.GetElapsedTimestampNs() / NS_PER_SEC / (5 * 60) * NS_PER_SEC * (5 * 60); in truncateTimestampIfNecessary()
590 return event.GetElapsedTimestampNs(); in truncateTimestampIfNecessary()
DStatsLogProcessor.cpp397 const int64_t eventElapsedTimeNs = event->GetElapsedTimestampNs(); in OnLogEvent()
/packages/modules/StatsD/statsd/tests/
DStatsLogProcessor_test.cpp710 const int64_t ttl3 = event->GetElapsedTimestampNs() + in TEST()
712 const int64_t ttl5 = event->GetElapsedTimestampNs() + in TEST()
714 const int64_t ttl6 = event->GetElapsedTimestampNs() + in TEST()
1527 EXPECT_EQ(screenOnEvent->GetElapsedTimestampNs(), activation2_1_2->start_ns); in TEST()
1540 (shutDownTime - screenOnEvent->GetElapsedTimestampNs()); in TEST()
1610 EXPECT_EQ(screenOnEvent->GetElapsedTimestampNs(), activation3_1_2->start_ns); in TEST()
Dstatsd_test_util.cpp1459 return a->GetElapsedTimestampNs() < b->GetElapsedTimestampNs(); in sortLogEventsByTimestamp()
/packages/modules/StatsD/statsd/src/metrics/
DMetricProducer.cpp121 int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onMatchedLogEventLocked()
DCountMetricProducer.cpp355 int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onMatchedLogEventInternalLocked()
DGaugeMetricProducer.cpp533 int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onMatchedLogEventInternalLocked()
DValueMetricProducer.cpp658 const int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onMatchedLogEventInternalLocked()
DDurationMetricProducer.cpp713 event.GetElapsedTimestampNs()); in onMatchedLogEventLocked()
DMetricsManager.cpp576 const int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onLogEvent()
/packages/modules/StatsD/statsd/src/utils/
DDbUtils.cpp232 (long long)logEvent.GetElapsedTimestampNs(), in getInsertSqlStmt()