Home
last modified time | relevance | path

Searched refs:LogEvent (Results 1 – 25 of 95) sorted by relevance

1234

/frameworks/base/cmds/statsd/tests/
Dstatsd_test_util.h210 void parseStatsEventToLogEvent(AStatsEvent* statsEvent, LogEvent* logEvent);
212 shared_ptr<LogEvent> CreateTwoValueLogEvent(int atomId, int64_t eventTimeNs, int32_t value1,
215 void CreateTwoValueLogEvent(LogEvent* logEvent, int atomId, int64_t eventTimeNs, int32_t value1,
218 shared_ptr<LogEvent> CreateThreeValueLogEvent(int atomId, int64_t eventTimeNs, int32_t value1,
221 void CreateThreeValueLogEvent(LogEvent* logEvent, int atomId, int64_t eventTimeNs, int32_t value1,
227 std::shared_ptr<LogEvent> CreateRepeatedValueLogEvent(int atomId, int64_t eventTimeNs,
230 void CreateRepeatedValueLogEvent(LogEvent* logEvent, int atomId, int64_t eventTimeNs,
233 std::shared_ptr<LogEvent> CreateNoValuesLogEvent(int atomId, int64_t eventTimeNs);
235 void CreateNoValuesLogEvent(LogEvent* logEvent, int atomId, int64_t eventTimeNs);
237 std::shared_ptr<LogEvent> makeUidLogEvent(int atomId, int64_t eventTimeNs, int uid, int data1,
[all …]
Dstatsd_test_util.cpp515 void parseStatsEventToLogEvent(AStatsEvent* statsEvent, LogEvent* logEvent) { in parseStatsEventToLogEvent()
525 void CreateTwoValueLogEvent(LogEvent* logEvent, int atomId, int64_t eventTimeNs, int32_t value1, in CreateTwoValueLogEvent()
537 shared_ptr<LogEvent> CreateTwoValueLogEvent(int atomId, int64_t eventTimeNs, int32_t value1, in CreateTwoValueLogEvent()
539 shared_ptr<LogEvent> logEvent = std::make_shared<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateTwoValueLogEvent()
544 void CreateThreeValueLogEvent(LogEvent* logEvent, int atomId, int64_t eventTimeNs, int32_t value1, in CreateThreeValueLogEvent()
557 shared_ptr<LogEvent> CreateThreeValueLogEvent(int atomId, int64_t eventTimeNs, int32_t value1, in CreateThreeValueLogEvent()
559 shared_ptr<LogEvent> logEvent = std::make_shared<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateThreeValueLogEvent()
564 void CreateRepeatedValueLogEvent(LogEvent* logEvent, int atomId, int64_t eventTimeNs, in CreateRepeatedValueLogEvent()
576 shared_ptr<LogEvent> CreateRepeatedValueLogEvent(int atomId, int64_t eventTimeNs, int32_t value) { in CreateRepeatedValueLogEvent()
577 shared_ptr<LogEvent> logEvent = std::make_shared<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateRepeatedValueLogEvent()
[all …]
DLogEvent_test.cpp48 void createIntWithBoolAnnotationLogEvent(LogEvent* logEvent, uint8_t annotationId, in createIntWithBoolAnnotationLogEvent()
63 void createIntWithIntAnnotationLogEvent(LogEvent* logEvent, uint8_t annotationId, in createIntWithIntAnnotationLogEvent()
92 LogEvent logEvent(/*uid=*/1000, /*pid=*/1001); in TEST()
141 LogEvent logEvent(/*uid=*/1000, /*pid=*/1001); in TEST()
178 LogEvent logEvent(/*uid=*/1000, /*pid=*/1001); in TEST()
208 LogEvent logEvent(/*uid=*/1000, /*pid=*/1001); in TEST()
244 LogEvent logEvent(/*uid=*/1000, /*pid=*/1001); in TEST()
289 LogEvent event(/*uid=*/0, /*pid=*/0); in TEST()
298 LogEvent event(/*uid=*/0, /*pid=*/0); in TEST()
307 LogEvent event(/*uid=*/0, /*pid=*/0); in TEST()
[all …]
DLogEntryMatcher_test.cpp47 void makeIntLogEvent(LogEvent* logEvent, const int32_t atomId, const int64_t timestamp, in makeIntLogEvent()
57 void makeFloatLogEvent(LogEvent* logEvent, const int32_t atomId, const int64_t timestamp, in makeFloatLogEvent()
67 void makeStringLogEvent(LogEvent* logEvent, const int32_t atomId, const int64_t timestamp, in makeStringLogEvent()
77 void makeIntWithBoolAnnotationLogEvent(LogEvent* logEvent, const int32_t atomId, in makeIntWithBoolAnnotationLogEvent()
88 void makeAttributionLogEvent(LogEvent* logEvent, const int32_t atomId, const int64_t timestamp, in makeAttributionLogEvent()
101 void makeBoolLogEvent(LogEvent* logEvent, const int32_t atomId, const int64_t timestamp, in makeBoolLogEvent()
123 LogEvent event(/*uid=*/0, /*pid=*/0); in TEST()
140 LogEvent event(/*uid=*/0, /*pid=*/0); in TEST()
380 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST()
385 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/logd/
DLogEvent.cpp69 LogEvent::LogEvent(int32_t uid, int32_t pid) in LogEvent() function in android::os::statsd::LogEvent
73 LogEvent::LogEvent(const string& trainName, int64_t trainVersionCode, bool requiresStaging, in LogEvent() function in android::os::statsd::LogEvent
93 LogEvent::LogEvent(int64_t wallClockTimestampNs, int64_t elapsedTimestampNs, in LogEvent() function in android::os::statsd::LogEvent
108 void LogEvent::parseInt32(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations) { in parseInt32()
114 void LogEvent::parseInt64(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations) { in parseInt64()
120 void LogEvent::parseString(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations) { in parseString()
134 void LogEvent::parseFloat(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations) { in parseFloat()
140 void LogEvent::parseBool(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations) { in parseBool()
147 void LogEvent::parseByteArray(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations) { in parseByteArray()
161 void LogEvent::parseKeyValuePairs(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations) { in parseKeyValuePairs()
[all …]
DLogEvent.h45 class LogEvent {
51 explicit LogEvent(int32_t uid, int32_t pid);
66 explicit LogEvent(const std::string& trainName, int64_t trainVersionCode, bool requiresStaging,
70 explicit LogEvent(int64_t wallClockTimestampNs, int64_t elapsedTimestampNs,
73 ~LogEvent() {} in ~LogEvent()
191 inline LogEvent makeCopy() { in makeCopy()
192 return LogEvent(*this); in makeCopy()
219 LogEvent(const LogEvent&) = default;
DLogEventQueue.h39 std::unique_ptr<LogEvent> waitPop();
46 bool push(std::unique_ptr<LogEvent> event, int64_t* oldestTimestampNs);
52 std::queue<std::unique_ptr<LogEvent>> mQueue;
DLogEventQueue.cpp29 unique_ptr<LogEvent> LogEventQueue::waitPop() { in waitPop()
36 unique_ptr<LogEvent> item = std::move(mQueue.front()); in waitPop()
42 bool LogEventQueue::push(unique_ptr<LogEvent> item, int64_t* oldestTimestampNs) { in push()
/frameworks/base/cmds/statsd/tests/state/
DStateTracker_test.cpp68 std::unique_ptr<LogEvent> buildIncorrectOverlayEvent(int uid, const std::string& packageName, in buildIncorrectOverlayEvent()
79 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in buildIncorrectOverlayEvent()
85 std::unique_ptr<LogEvent> buildOverlayEventBadStateType(int uid, const std::string& packageName) { in buildOverlayEventBadStateType()
95 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in buildOverlayEventBadStateType()
127 std::unique_ptr<LogEvent> event = CreateScreenStateChangedEvent( in TEST()
256 std::unique_ptr<LogEvent> event1 = CreateAcquireWakelockEvent(timestampNs, attributionUids1, in TEST()
264 std::unique_ptr<LogEvent> event2 = CreateAcquireWakelockEvent( in TEST()
269 std::unique_ptr<LogEvent> event3 = CreateReleaseWakelockEvent( in TEST()
274 std::unique_ptr<LogEvent> event4 = CreateReleaseWakelockEvent( in TEST()
297 std::unique_ptr<LogEvent> event1 = in TEST()
[all …]
/frameworks/base/cmds/statsd/benchmark/
Dmetric_util.h99 void parseStatsEventToLogEvent(AStatsEvent* statsEvent, LogEvent* logEvent);
102 std::unique_ptr<LogEvent> CreateScreenStateChangedEvent(
106 std::unique_ptr<LogEvent> CreateStartScheduledJobEvent(uint64_t timestampNs,
112 std::unique_ptr<LogEvent> CreateFinishScheduledJobEvent(uint64_t timestampNs,
118 std::unique_ptr<LogEvent> CreateSyncStartEvent(uint64_t timestampNs,
124 std::unique_ptr<LogEvent> CreateSyncEndEvent(uint64_t timestampNs,
134 void sortLogEventsByTimestamp(std::vector<std::unique_ptr<LogEvent>> *events);
Dmetric_util.cpp262 void parseStatsEventToLogEvent(AStatsEvent* statsEvent, LogEvent* logEvent) { in parseStatsEventToLogEvent()
272 std::unique_ptr<LogEvent> CreateScreenStateChangedEvent( in CreateScreenStateChangedEvent()
279 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateScreenStateChangedEvent()
284 std::unique_ptr<LogEvent> CreateScheduledJobStateChangedEvent( in CreateScheduledJobStateChangedEvent()
295 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateScheduledJobStateChangedEvent()
300 std::unique_ptr<LogEvent> CreateStartScheduledJobEvent(uint64_t timestampNs, in CreateStartScheduledJobEvent()
309 std::unique_ptr<LogEvent> CreateFinishScheduledJobEvent(uint64_t timestampNs, in CreateFinishScheduledJobEvent()
317 std::unique_ptr<LogEvent> CreateSyncStateChangedEvent(uint64_t timestampNs, in CreateSyncStateChangedEvent()
330 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateSyncStateChangedEvent()
335 std::unique_ptr<LogEvent> CreateSyncStartEvent(uint64_t timestampNs, in CreateSyncStartEvent()
[all …]
/frameworks/base/cmds/statsd/tests/external/
DStatsPuller_test.cpp45 vector<std::shared_ptr<LogEvent>> pullData;
54 bool PullInternal(vector<std::shared_ptr<LogEvent>>* data) override { in PullInternal()
63 std::unique_ptr<LogEvent> createSimpleEvent(int64_t eventTimeNs, int64_t value) { in createSimpleEvent()
69 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in createSimpleEvent()
94 vector<std::shared_ptr<LogEvent>> dataHolder; in TEST_F()
122 vector<std::shared_ptr<LogEvent>> dataHolder; in TEST_F()
154 vector<std::shared_ptr<LogEvent>> dataHolder; in TEST_F()
173 vector<std::shared_ptr<LogEvent>> dataHolder; in TEST_F()
184 vector<std::shared_ptr<LogEvent>> dataHolder; in TEST_F()
194 vector<std::shared_ptr<LogEvent>> dataHolder; in TEST_F()
[all …]
DStatsPullerManager_test.cpp103 vector<shared_ptr<LogEvent>> data; in TEST()
110 vector<shared_ptr<LogEvent>> data; in TEST()
123 vector<shared_ptr<LogEvent>> data; in TEST()
132 vector<shared_ptr<LogEvent>> data; in TEST()
144 vector<shared_ptr<LogEvent>> data; in TEST()
Dpuller_util_test.cpp62 vector<shared_ptr<LogEvent>> data = { in TEST()
84 vector<shared_ptr<LogEvent>> data = { in TEST()
117 vector<shared_ptr<LogEvent>> data = { in TEST()
146 vector<shared_ptr<LogEvent>> data = { in TEST()
177 vector<shared_ptr<LogEvent>> data = { in TEST()
205 vector<shared_ptr<LogEvent>> data = { in TEST()
233 vector<shared_ptr<LogEvent>> data = { in TEST()
258 vector<shared_ptr<LogEvent>> data = { in TEST()
298 vector<shared_ptr<LogEvent>> data = { in TEST()
334 vector<shared_ptr<LogEvent>> data = { in TEST()
[all …]
/frameworks/base/cmds/statsd/tests/metrics/
DCountMetricProducer_test.cpp45 void makeLogEvent(LogEvent* logEvent, int64_t timestampNs, int atomId) { in makeLogEvent()
53 void makeLogEvent(LogEvent* logEvent, int64_t timestampNs, int atomId, string uid) { in makeLogEvent()
101 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST()
103 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST()
125 LogEvent event3(/*uid=*/0, /*pid=*/0); in TEST()
165 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST()
174 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST()
208 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST()
211 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST()
274 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST_P()
[all …]
DDurationMetricProducer_test.cpp48 void makeLogEvent(LogEvent* logEvent, int64_t timestampNs, int atomId) { in makeLogEvent()
95 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST()
97 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST()
134 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST()
136 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST()
138 LogEvent event3(/*uid=*/0, /*pid=*/0); in TEST()
140 LogEvent event4(/*uid=*/0, /*pid=*/0); in TEST()
184 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST()
186 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST()
188 LogEvent event3(/*uid=*/0, /*pid=*/0); in TEST()
[all …]
DEventMetricProducer_test.cpp42 void makeLogEvent(LogEvent* logEvent, int32_t atomId, int64_t timestampNs, string str) { in makeLogEvent()
60 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST()
63 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST()
96 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST()
99 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST()
141 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST()
147 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST()
DValueMetricProducer_test.cpp299 vector<std::shared_ptr<LogEvent>>* data, bool) { in TEST()
308 vector<shared_ptr<LogEvent>> allData; in TEST()
374 vector<std::shared_ptr<LogEvent>>* data, bool) { in TEST_P()
383 vector<std::shared_ptr<LogEvent>>* data, bool) { in TEST_P()
395 vector<shared_ptr<LogEvent>> allData; in TEST_P()
439 vector<std::shared_ptr<LogEvent>>* data, bool) { in TEST()
450 vector<shared_ptr<LogEvent>> allData; in TEST()
513 vector<shared_ptr<LogEvent>> allData; in TEST()
573 vector<shared_ptr<LogEvent>> allData; in TEST()
626 vector<std::shared_ptr<LogEvent>>* data, bool) { in TEST()
[all …]
DGaugeMetricProducer_test.cpp59 shared_ptr<LogEvent> makeLogEvent(int32_t atomId, int64_t timestampNs, int32_t value1, string str1, in makeLogEvent()
69 shared_ptr<LogEvent> logEvent = std::make_shared<LogEvent>(/*uid=*/0, /*pid=*/0); in makeLogEvent()
142 vector<std::shared_ptr<LogEvent>>* data, bool) { in TEST()
154 vector<shared_ptr<LogEvent>> allData; in TEST()
236 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST_P()
261 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST_P()
276 LogEvent event3(/*uid=*/0, /*pid=*/0); in TEST_P()
285 LogEvent event4(/*uid=*/0, /*pid=*/0); in TEST_P()
316 vector<std::shared_ptr<LogEvent>>* data, bool) { in TEST_P()
328 vector<shared_ptr<LogEvent>> allData; in TEST_P()
[all …]
/frameworks/base/services/core/java/com/android/server/utils/
DManagedApplicationService.java110 public static class LogEvent implements LogFormattable { class in ManagedApplicationService
123 public LogEvent(long timestamp, ComponentName component, int event) { in LogEvent() method in ManagedApplicationService.LogEvent
190 void onServiceEvent(LogEvent event); in onServiceEvent()
320 mEventCb.onServiceEvent(new LogEvent(timestamp, mComponent, in connect()
321 LogEvent.EVENT_BINDING_DIED)); in connect()
341 mEventCb.onServiceEvent(new LogEvent(timestamp, mComponent, in connect()
342 LogEvent.EVENT_CONNECTED)); in connect()
382 mEventCb.onServiceEvent(new LogEvent(timestamp, mComponent, in connect()
383 LogEvent.EVENT_DISCONNECTED)); in connect()
455 mEventCb.onServiceEvent(new LogEvent(timestamp, mComponent, in checkAndDeliverServiceDiedCbLocked()
[all …]
/frameworks/base/cmds/statsd/tests/shell/
DShellSubscriber_test.cpp42 const vector<std::shared_ptr<LogEvent>>& pushedEvents, in runShellTest()
126 vector<std::shared_ptr<LogEvent>> pushedList; in TEST()
129 std::unique_ptr<LogEvent> logEvent = CreateScreenStateChangedEvent( in TEST()
174 shared_ptr<LogEvent> makeCpuActiveTimeAtom(int32_t uid, int64_t timeMillis) { in makeCpuActiveTimeAtom()
181 std::shared_ptr<LogEvent> logEvent = std::make_shared<LogEvent>(/*uid=*/0, /*pid=*/0); in makeCpuActiveTimeAtom()
195 vector<std::shared_ptr<LogEvent>>* data, bool) { in TEST()
201 runShellTest(getPulledConfig(), uidMap, pullerManager, vector<std::shared_ptr<LogEvent>>(), in TEST()
/frameworks/base/cmds/statsd/src/external/
DStatsCallbackPuller.cpp45 bool StatsCallbackPuller::PullInternal(vector<shared_ptr<LogEvent>>* data) { in PullInternal()
57 shared_ptr<vector<shared_ptr<LogEvent>>> sharedData = in PullInternal()
58 make_shared<vector<shared_ptr<LogEvent>>>(); in PullInternal()
69 shared_ptr<LogEvent> event = make_shared<LogEvent>(/*uid=*/-1, /*pid=*/-1); in PullInternal()
Dpuller_util.cpp49 void mapAndMergeIsolatedUidsToHostUid(vector<shared_ptr<LogEvent>>& data, const sp<UidMap>& uidMap, in mapAndMergeIsolatedUidsToHostUid()
63 for (shared_ptr<LogEvent>& event : data) { in mapAndMergeIsolatedUidsToHostUid()
91 [](const shared_ptr<LogEvent>& lhs, const shared_ptr<LogEvent>& rhs) { in mapAndMergeIsolatedUidsToHostUid()
105 vector<shared_ptr<LogEvent>> mergedData; in mapAndMergeIsolatedUidsToHostUid()
DStatsPuller.h54 bool Pull(const int64_t eventTimeNs, std::vector<std::shared_ptr<LogEvent>>* data);
80 virtual bool PullInternal(std::vector<std::shared_ptr<LogEvent>>* data) = 0;
108 std::vector<std::shared_ptr<LogEvent>> mCachedData;
/frameworks/base/cmds/statsd/tests/condition/
DSimpleConditionTracker_test.cpp63 void makeWakeLockEvent(LogEvent* logEvent, uint32_t atomId, uint64_t timestamp, in makeWakeLockEvent()
143 unique_ptr<LogEvent> screenOffEvent = in TEST()
156 unique_ptr<LogEvent> screenOnEvent = in TEST()
197 unique_ptr<LogEvent> screenOffEvent = in TEST()
210 unique_ptr<LogEvent> screenOnEvent = in TEST()
240 LogEvent event(/*uid=*/0, /*pid=*/0); in TEST()
327 LogEvent event(/*uid=*/0, /*pid=*/0); in TEST()
401 LogEvent event1(/*uid=*/0, /*pid=*/0); in TEST()
438 LogEvent event2(/*uid=*/0, /*pid=*/0); in TEST()
458 LogEvent event3(/*uid=*/0, /*pid=*/0); in TEST()
[all …]

1234