/packages/modules/StatsD/statsd/tests/external/ |
D | StatsPuller_test.cpp | 98 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()
|
D | StatsCallbackPuller_test.cpp | 136 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/ |
D | RestrictedEventMetricProducer_test.cpp | 83 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()
|
D | CountMetricProducer_test.cpp | 515 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()
|
D | GaugeMetricProducer_test.cpp | 623 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()
|
D | NumericValueMetricProducer_test.cpp | 1080 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/ |
D | LogEventQueue_test.cpp | 67 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/ |
D | ShellSubscriber_test.cpp | 636 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/ |
D | LogEventQueue.cpp | 51 *oldestTimestampNs = mQueue.front()->GetElapsedTimestampNs(); in push()
|
D | LogEvent.h | 132 inline int64_t GetElapsedTimestampNs() const { return mElapsedTimestampNs; } in GetElapsedTimestampNs() function
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | RestrictedEventMetric_e2e_test.cpp | 200 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/ |
D | metric_util.cpp | 370 return a->GetElapsedTimestampNs() < b->GetElapsedTimestampNs(); in sortLogEventsByTimestamp()
|
/packages/modules/StatsD/statsd/src/state/ |
D | StateTracker.cpp | 32 const int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onLogEvent()
|
/packages/modules/StatsD/statsd/src/ |
D | stats_log_util.cpp | 588 return event.GetElapsedTimestampNs() / NS_PER_SEC / (5 * 60) * NS_PER_SEC * (5 * 60); in truncateTimestampIfNecessary() 590 return event.GetElapsedTimestampNs(); in truncateTimestampIfNecessary()
|
D | StatsLogProcessor.cpp | 397 const int64_t eventElapsedTimeNs = event->GetElapsedTimestampNs(); in OnLogEvent()
|
/packages/modules/StatsD/statsd/tests/ |
D | StatsLogProcessor_test.cpp | 710 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()
|
D | statsd_test_util.cpp | 1459 return a->GetElapsedTimestampNs() < b->GetElapsedTimestampNs(); in sortLogEventsByTimestamp()
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | MetricProducer.cpp | 121 int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onMatchedLogEventLocked()
|
D | CountMetricProducer.cpp | 355 int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onMatchedLogEventInternalLocked()
|
D | GaugeMetricProducer.cpp | 533 int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onMatchedLogEventInternalLocked()
|
D | ValueMetricProducer.cpp | 658 const int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onMatchedLogEventInternalLocked()
|
D | DurationMetricProducer.cpp | 713 event.GetElapsedTimestampNs()); in onMatchedLogEventLocked()
|
D | MetricsManager.cpp | 576 const int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onLogEvent()
|
/packages/modules/StatsD/statsd/src/utils/ |
D | DbUtils.cpp | 232 (long long)logEvent.GetElapsedTimestampNs(), in getInsertSqlStmt()
|