Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/tests/external/
DStatsPuller_test.cpp88 EXPECT_EQ(1111L, dataHolder[0]->GetElapsedTimestampNs()); in TEST_F()
102 EXPECT_EQ(2222L, dataHolder[0]->GetElapsedTimestampNs()); in TEST_F()
116 EXPECT_EQ(1111L, dataHolder[0]->GetElapsedTimestampNs()); in TEST_F()
186 EXPECT_EQ(1111L, dataHolder[0]->GetElapsedTimestampNs()); in TEST_F()
199 EXPECT_EQ(1111L, dataHolder[0]->GetElapsedTimestampNs()); in TEST_F()
/frameworks/base/cmds/statsd/tests/log_event/
DLogEventQueue_test.cpp51 EXPECT_EQ(timeBaseNs + i * 1000, event->GetElapsedTimestampNs()); in TEST()
86 EXPECT_EQ(timeBaseNs + i * 1000, event->GetElapsedTimestampNs()); in TEST()
/frameworks/base/cmds/statsd/src/metrics/
DDurationMetricProducer.cpp713 event.GetElapsedTimestampNs(), conditionKeys); in handleStartEvent()
719 event.GetElapsedTimestampNs(), conditionKeys); in handleStartEvent()
724 dimensionKey, condition, event.GetElapsedTimestampNs(), conditionKeys); in handleStartEvent()
738 int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onMatchedLogEventLocked()
744 flushIfNeededLocked(event.GetElapsedTimestampNs()); in onMatchedLogEventLocked()
751 pair.second->noteStopAll(event.GetElapsedTimestampNs()); in onMatchedLogEventLocked()
770 condIt.second->noteStop(dimensionInWhat, event.GetElapsedTimestampNs(), false); in onMatchedLogEventLocked()
785 internalDimensionKey, event.GetElapsedTimestampNs(), false); in onMatchedLogEventLocked()
DEventMetricProducer.cpp150 event.GetTagId(), event.GetElapsedTimestampNs()); in onMatchedLogEventInternalLocked()
DMetricProducer.cpp46 int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onMatchedLogEventLocked()
DCountMetricProducer.cpp280 int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onMatchedLogEventInternalLocked()
DMetricsManager.cpp362 int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onLogEvent()
DGaugeMetricProducer.cpp466 int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onMatchedLogEventInternalLocked()
DValueMetricProducer.cpp668 int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onMatchedLogEventInternalLocked()
/frameworks/base/cmds/statsd/src/logd/
DLogEventQueue.cpp51 *oldestTimestampNs = mQueue.front()->GetElapsedTimestampNs(); in push()
DLogEvent.h117 inline int64_t GetElapsedTimestampNs() const { return mElapsedTimestampNs; } in GetElapsedTimestampNs() function
/frameworks/base/cmds/statsd/tests/
DLogEvent_test.cpp306 EXPECT_EQ((int64_t)2001, event1.GetElapsedTimestampNs()); in TEST()
429 EXPECT_EQ(1111L, event.GetElapsedTimestampNs()); in TEST()
500 EXPECT_EQ(1111L, event.GetElapsedTimestampNs()); in TEST()
509 EXPECT_EQ(1111L, event1.GetElapsedTimestampNs()); in TEST()
528 EXPECT_EQ(1111L, event2.GetElapsedTimestampNs()); in TEST()
543 EXPECT_EQ(1111L, event3.GetElapsedTimestampNs()); in TEST()
DStatsLogProcessor_test.cpp517 const int64_t ttl3 = event->GetElapsedTimestampNs() + in TEST()
519 const int64_t ttl5 = event->GetElapsedTimestampNs() + in TEST()
521 const int64_t ttl6 = event->GetElapsedTimestampNs() + in TEST()
1375 EXPECT_EQ(screenOnEvent->GetElapsedTimestampNs(), activation1001_2->start_ns); in TEST()
1387 int64_t ttl2 = screenOnEvent->GetElapsedTimestampNs() + in TEST()
1481 EXPECT_EQ(screenOnEvent->GetElapsedTimestampNs(), activationTimeBase3_2->start_ns); in TEST()
Dstatsd_test_util.cpp480 return a->GetElapsedTimestampNs() < b->GetElapsedTimestampNs(); in sortLogEventsByTimestamp()
/frameworks/base/cmds/statsd/benchmark/
Dmetric_util.cpp386 return a->GetElapsedTimestampNs() < b->GetElapsedTimestampNs(); in sortLogEventsByTimestamp()
/frameworks/base/cmds/statsd/tests/metrics/
DCountMetricProducer_test.cpp390 std::ceil(1.0 * event5.GetElapsedTimestampNs() / NS_PER_SEC + refPeriodSec)); in TEST()
396 std::ceil(1.0 * event7.GetElapsedTimestampNs() / NS_PER_SEC + refPeriodSec)); in TEST()
DGaugeMetricProducer_test.cpp624 std::ceil(1.0 * event2->GetElapsedTimestampNs() / NS_PER_SEC) + refPeriodSec); in TEST()
639 std::ceil(1.0 * event2->GetElapsedTimestampNs() / NS_PER_SEC + refPeriodSec)); in TEST()
DValueMetricProducer_test.cpp1026 std::ceil(1.0 * event4->GetElapsedTimestampNs() / NS_PER_SEC + refPeriodSec)); in TEST()
1030 std::ceil(1.0 * event4->GetElapsedTimestampNs() / NS_PER_SEC + refPeriodSec)); in TEST()
1035 std::ceil(1.0 * event6->GetElapsedTimestampNs() / NS_PER_SEC + refPeriodSec)); in TEST()
/frameworks/base/cmds/statsd/src/
DStatsLogProcessor.cpp204 const int64_t currentTimestampNs = event->GetElapsedTimestampNs(); in OnLogEvent()
209 event->GetTagId(), event->GetElapsedTimestampNs() / NS_PER_SEC); in OnLogEvent()
259 flushIfNecessaryLocked(event->GetElapsedTimestampNs(), pair.first, *(pair.second)); in OnLogEvent()