Home
last modified time | relevance | path

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

/frameworks/base/cmds/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()
/frameworks/base/cmds/statsd/src/metrics/
DDurationMetricProducer.cpp517 it->second->noteStart(whatKey, condition, event.GetElapsedTimestampNs(), conditionKeys); in handleStartEvent()
522 it->second->noteStart(DEFAULT_DIMENSION_KEY, condition, event.GetElapsedTimestampNs(), in handleStartEvent()
527 it->second->noteStart(dimensionKey, condition, event.GetElapsedTimestampNs(), in handleStartEvent()
542 int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onMatchedLogEventLocked()
548 flushIfNeededLocked(event.GetElapsedTimestampNs()); in onMatchedLogEventLocked()
554 whatIt.second->noteStopAll(event.GetElapsedTimestampNs()); in onMatchedLogEventLocked()
604 whatIt->second->noteStop(dimensionInWhat, event.GetElapsedTimestampNs(), false); in onMatchedLogEventLocked()
616 whatIt->second->noteStop(internalDimensionKey, event.GetElapsedTimestampNs(), false); in onMatchedLogEventLocked()
DMetricProducer.cpp78 int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onMatchedLogEventLocked()
DCountMetricProducer.cpp282 int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onMatchedLogEventInternalLocked()
DMetricsManager.cpp462 int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onLogEvent()
DGaugeMetricProducer.cpp460 int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onMatchedLogEventInternalLocked()
DValueMetricProducer.cpp753 int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onMatchedLogEventInternalLocked()
/frameworks/base/cmds/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()
/frameworks/base/cmds/statsd/src/logd/
DLogEventQueue.cpp51 *oldestTimestampNs = mQueue.front()->GetElapsedTimestampNs(); in push()
DLogEvent.h79 inline int64_t GetElapsedTimestampNs() const { return mElapsedTimestampNs; } in GetElapsedTimestampNs() function
/frameworks/base/cmds/statsd/src/state/
DStateTracker.cpp32 const int64_t eventTimeNs = event.GetElapsedTimestampNs(); in onLogEvent()
/frameworks/base/cmds/statsd/benchmark/
Dmetric_util.cpp368 return a->GetElapsedTimestampNs() < b->GetElapsedTimestampNs(); in sortLogEventsByTimestamp()
/frameworks/base/cmds/statsd/tests/metrics/
DCountMetricProducer_test.cpp442 std::ceil(1.0 * event5.GetElapsedTimestampNs() / NS_PER_SEC + refPeriodSec)); in TEST()
448 std::ceil(1.0 * event7.GetElapsedTimestampNs() / NS_PER_SEC + refPeriodSec)); in TEST()
DGaugeMetricProducer_test.cpp625 std::ceil(1.0 * event2->GetElapsedTimestampNs() / NS_PER_SEC) + refPeriodSec); in TEST()
637 std::ceil(1.0 * event2->GetElapsedTimestampNs() / NS_PER_SEC + refPeriodSec)); in TEST()
DValueMetricProducer_test.cpp1072 std::ceil(1.0 * event4.GetElapsedTimestampNs() / NS_PER_SEC + refPeriodSec)); in TEST()
1076 std::ceil(1.0 * event4.GetElapsedTimestampNs() / NS_PER_SEC + refPeriodSec)); in TEST()
1081 std::ceil(1.0 * event6.GetElapsedTimestampNs() / NS_PER_SEC + refPeriodSec)); in TEST()
/frameworks/base/cmds/statsd/src/
Dstats_log_util.cpp578 return event.GetElapsedTimestampNs() / NS_PER_SEC / (5 * 60) * NS_PER_SEC * (5 * 60); in truncateTimestampIfNecessary()
580 return event.GetElapsedTimestampNs(); in truncateTimestampIfNecessary()
DStatsLogProcessor.cpp392 const int64_t eventElapsedTimeNs = event->GetElapsedTimestampNs(); in OnLogEvent()
/frameworks/base/cmds/statsd/tests/
DStatsLogProcessor_test.cpp583 const int64_t ttl3 = event->GetElapsedTimestampNs() + in TEST()
585 const int64_t ttl5 = event->GetElapsedTimestampNs() + in TEST()
587 const int64_t ttl6 = event->GetElapsedTimestampNs() + in TEST()
1400 EXPECT_EQ(screenOnEvent->GetElapsedTimestampNs(), activation2_1_2->start_ns); in TEST()
1413 (shutDownTime - screenOnEvent->GetElapsedTimestampNs()); in TEST()
1483 EXPECT_EQ(screenOnEvent->GetElapsedTimestampNs(), activation3_1_2->start_ns); in TEST()
Dstatsd_test_util.cpp991 return a->GetElapsedTimestampNs() < b->GetElapsedTimestampNs(); in sortLogEventsByTimestamp()