Home
last modified time | relevance | path

Searched refs:statsLogEventWrapper (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/cmds/statsd/tests/
DLogEvent_test.cpp418 StatsLogEventWrapper statsLogEventWrapper; in TEST() local
419 EXPECT_EQ(NO_ERROR, statsLogEventWrapper.readFromParcel(&parcel)); in TEST()
420 EXPECT_EQ(1, statsLogEventWrapper.getTagId()); in TEST()
421 EXPECT_EQ(1111L, statsLogEventWrapper.getElapsedRealTimeNs()); in TEST()
422 EXPECT_EQ(2222L, statsLogEventWrapper.getWallClockTimeNs()); in TEST()
423 EXPECT_EQ(0, statsLogEventWrapper.getWorkChains().size()); in TEST()
424 EXPECT_EQ(2, statsLogEventWrapper.getElements().size()); in TEST()
425 EXPECT_EQ(6, statsLogEventWrapper.getElements()[0].int_value); in TEST()
426 EXPECT_EQ(10L, statsLogEventWrapper.getElements()[1].long_value); in TEST()
427 LogEvent event(statsLogEventWrapper, -1); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/logd/
DLogEvent.cpp58 LogEvent::LogEvent(const StatsLogEventWrapper& statsLogEventWrapper, int workChainIndex) { in LogEvent() argument
59 mTagId = statsLogEventWrapper.getTagId(); in LogEvent()
60 mLogdTimestampNs = statsLogEventWrapper.getWallClockTimeNs(); in LogEvent()
61 mElapsedTimestampNs = statsLogEventWrapper.getElapsedRealTimeNs(); in LogEvent()
65 const WorkChain& wc = statsLogEventWrapper.getWorkChains()[workChainIndex]; in LogEvent()
78 for (int i = 0; i < (int)statsLogEventWrapper.getElements().size(); i++) { in LogEvent()
79 Field field(statsLogEventWrapper.getTagId(), getSimpleField(i + 1 + workChainPosOffset)); in LogEvent()
80 switch (statsLogEventWrapper.getElements()[i].type) { in LogEvent()
83 FieldValue(field, Value(statsLogEventWrapper.getElements()[i].int_value))); in LogEvent()
87 FieldValue(field, Value(statsLogEventWrapper.getElements()[i].long_value))); in LogEvent()
[all …]
DLogEvent.h74 static void createLogEvents(const StatsLogEventWrapper& statsLogEventWrapper,
80 explicit LogEvent(const StatsLogEventWrapper& statsLogEventWrapper, int workChainIndex);