Home
last modified time | relevance | path

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

1234

/frameworks/base/cmds/statsd/tests/external/
Dpuller_util_test.cpp47 void extractIntoVector(vector<shared_ptr<LogEvent>> events, in extractIntoVector()
61 vector<shared_ptr<LogEvent>> inputData; in TEST()
62 shared_ptr<LogEvent> event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST()
71 event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST()
93 vector<shared_ptr<LogEvent>> inputData; in TEST()
94 shared_ptr<LogEvent> event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST()
103 event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST()
111 event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST()
135 vector<shared_ptr<LogEvent>> inputData; in TEST()
136 shared_ptr<LogEvent> event = make_shared<LogEvent>(uidAtomTagId, timestamp); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/logd/
DLogEvent.cpp31 LogEvent::LogEvent(log_msg& msg) { in LogEvent() function in android::os::statsd::LogEvent
43 LogEvent::LogEvent(int32_t tagId, int64_t wallClockTimestampNs, int64_t elapsedTimestampNs) { in LogEvent() function in android::os::statsd::LogEvent
54 LogEvent::LogEvent(int32_t tagId, int64_t timestampNs) { in LogEvent() function in android::os::statsd::LogEvent
65 void LogEvent::init() { in init()
81 LogEvent::~LogEvent() { in ~LogEvent()
89 bool LogEvent::write(int32_t value) { in write()
96 bool LogEvent::write(uint32_t value) { in write()
103 bool LogEvent::write(int64_t value) { in write()
110 bool LogEvent::write(uint64_t value) { in write()
117 bool LogEvent::write(const string& value) { in write()
[all …]
DLogEvent.h57 class LogEvent {
62 explicit LogEvent(log_msg& msg);
67 explicit LogEvent(int32_t tagId, int64_t wallClockTimestampNs, int64_t elapsedTimestampNs);
70 explicit LogEvent(int32_t tagId, int64_t timestampNs);
72 ~LogEvent();
161 explicit LogEvent(const LogEvent&);
/frameworks/base/cmds/statsd/tests/metrics/
DValueMetricProducer_test.cpp74 vector<shared_ptr<LogEvent>> allData; in TEST()
76 shared_ptr<LogEvent> event = make_shared<LogEvent>(tagId, bucket2StartTimeNs + 1); in TEST()
96 event = make_shared<LogEvent>(tagId, bucket3StartTimeNs + 1); in TEST()
114 event = make_shared<LogEvent>(tagId, bucket4StartTimeNs + 1); in TEST()
152 vector<shared_ptr<LogEvent>> allData; in TEST()
154 shared_ptr<LogEvent> event = make_shared<LogEvent>(tagId, bucket2StartTimeNs + 1); in TEST()
173 event = make_shared<LogEvent>(tagId, bucket3StartTimeNs + 1); in TEST()
190 event = make_shared<LogEvent>(tagId, bucket4StartTimeNs + 1); in TEST()
226 vector<shared_ptr<LogEvent>> allData; in TEST()
228 shared_ptr<LogEvent> event = make_shared<LogEvent>(tagId, bucket2StartTimeNs + 1); in TEST()
[all …]
DGaugeMetricProducer_test.cpp73 vector<shared_ptr<LogEvent>> allData; in TEST()
75 shared_ptr<LogEvent> event = make_shared<LogEvent>(tagId, bucket2StartTimeNs + 1); in TEST()
92 std::shared_ptr<LogEvent> event2 = in TEST()
93 std::make_shared<LogEvent>(tagId, bucket3StartTimeNs + 10); in TEST()
153 shared_ptr<LogEvent> event1 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 10); in TEST()
169 shared_ptr<LogEvent> event2 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 59 * NS_PER_SEC); in TEST()
182 shared_ptr<LogEvent> event3 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 65 * NS_PER_SEC); in TEST()
193 shared_ptr<LogEvent> event4 = in TEST()
194 make_shared<LogEvent>(tagId, bucketStartTimeNs + 125 * NS_PER_SEC); in TEST()
220 vector<std::shared_ptr<LogEvent>>* data) { in TEST()
[all …]
DCountMetricProducer_test.cpp51 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST()
53 LogEvent event2(tagId, bucketStartTimeNs + 2); in TEST()
82 LogEvent event3(tagId, bucketStartTimeNs + bucketSizeNs + 2); in TEST()
114 LogEvent event1(1, bucketStartTimeNs + 1); in TEST()
117 LogEvent event2(1, bucketStartTimeNs + 10); in TEST()
164 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST()
171 LogEvent event2(tagId, bucketStartTimeNs + 10); in TEST()
219 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST()
249 LogEvent event2(tagId, bucketStartTimeNs + 59 * NS_PER_SEC + 10); in TEST()
258 LogEvent event3(tagId, bucketStartTimeNs + 62 * NS_PER_SEC + 10); in TEST()
[all …]
DDurationMetricProducer_test.cpp53 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST()
55 LogEvent event2(tagId, bucketStartTimeNs + bucketSizeNs + 2); in TEST()
91 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST()
93 LogEvent event2(tagId, bucketStartTimeNs + 2); in TEST()
95 LogEvent event3(tagId, bucketStartTimeNs + bucketSizeNs + 1); in TEST()
97 LogEvent event4(tagId, bucketStartTimeNs + bucketSizeNs + 3); in TEST()
157 LogEvent start_event(tagId, startTimeNs); in TEST()
173 LogEvent end_event(tagId, endTimeNs); in TEST()
212 LogEvent start_event(tagId, startTimeNs); in TEST()
231 LogEvent end_event(tagId, endTimeNs); in TEST()
[all …]
DEventMetricProducer_test.cpp46 LogEvent event1(1 /*tag id*/, bucketStartTimeNs + 1); in TEST()
47 LogEvent event2(1 /*tag id*/, bucketStartTimeNs + 2); in TEST()
70 LogEvent event1(1, bucketStartTimeNs + 1); in TEST()
71 LogEvent event2(1, bucketStartTimeNs + 10); in TEST()
103 LogEvent event1(tagId, bucketStartTimeNs + 1); in TEST()
109 LogEvent event2(tagId, bucketStartTimeNs + 10); in TEST()
/frameworks/base/cmds/statsd/benchmark/
Dmetric_util.h96 std::unique_ptr<LogEvent> CreateScreenStateChangedEvent(
100 std::unique_ptr<LogEvent> CreateScreenBrightnessChangedEvent(
104 std::unique_ptr<LogEvent> CreateStartScheduledJobEvent(
109 std::unique_ptr<LogEvent> CreateFinishScheduledJobEvent(
114 std::unique_ptr<LogEvent> CreateMoveToBackgroundEvent(const int uid, uint64_t timestampNs);
117 std::unique_ptr<LogEvent> CreateMoveToForegroundEvent(const int uid, uint64_t timestampNs);
120 std::unique_ptr<LogEvent> CreateSyncStartEvent(
125 std::unique_ptr<LogEvent> CreateSyncEndEvent(
130 std::unique_ptr<LogEvent> CreateAppCrashEvent(
134 std::unique_ptr<LogEvent> CreateAcquireWakelockEvent(
[all …]
Dmetric_util.cpp248 std::unique_ptr<LogEvent> CreateScreenStateChangedEvent( in CreateScreenStateChangedEvent()
250 auto event = std::make_unique<LogEvent>(android::util::SCREEN_STATE_CHANGED, timestampNs); in CreateScreenStateChangedEvent()
256 std::unique_ptr<LogEvent> CreateScreenBrightnessChangedEvent( in CreateScreenBrightnessChangedEvent()
258 auto event = std::make_unique<LogEvent>(android::util::SCREEN_BRIGHTNESS_CHANGED, timestampNs); in CreateScreenBrightnessChangedEvent()
265 std::unique_ptr<LogEvent> CreateScheduledJobStateChangedEvent( in CreateScheduledJobStateChangedEvent()
268 … auto event = std::make_unique<LogEvent>(android::util::SCHEDULED_JOB_STATE_CHANGED, timestampNs); in CreateScheduledJobStateChangedEvent()
276 std::unique_ptr<LogEvent> CreateStartScheduledJobEvent( in CreateStartScheduledJobEvent()
284 std::unique_ptr<LogEvent> CreateFinishScheduledJobEvent( in CreateFinishScheduledJobEvent()
291 std::unique_ptr<LogEvent> CreateWakelockStateChangedEvent( in CreateWakelockStateChangedEvent()
294 auto event = std::make_unique<LogEvent>(android::util::WAKELOCK_STATE_CHANGED, timestampNs); in CreateWakelockStateChangedEvent()
[all …]
Dfilter_value_benchmark.cpp29 static void createLogEventAndMatcher(LogEvent* event, FieldMatcher *field_matcher) { in createLogEventAndMatcher()
49 LogEvent event(1, 100000); in BM_FilterValue()
Dget_dimensions_for_condition_benchmark.cpp29 static void createLogEventAndLink(LogEvent* event, Metric2Condition *link) { in createLogEventAndLink()
57 LogEvent event(1, 100000); in BM_GetDimensionInCondition()
/frameworks/base/cmds/statsd/tests/
Dstatsd_test_util.h122 std::unique_ptr<LogEvent> CreateScreenStateChangedEvent(
126 std::unique_ptr<LogEvent> CreateScreenBrightnessChangedEvent(
130 std::unique_ptr<LogEvent> CreateStartScheduledJobEvent(
135 std::unique_ptr<LogEvent> CreateFinishScheduledJobEvent(
140 std::unique_ptr<LogEvent> CreateBatterySaverOnEvent(uint64_t timestampNs);
142 std::unique_ptr<LogEvent> CreateBatterySaverOffEvent(uint64_t timestampNs);
145 std::unique_ptr<LogEvent> CreateMoveToBackgroundEvent(const int uid, uint64_t timestampNs);
148 std::unique_ptr<LogEvent> CreateMoveToForegroundEvent(const int uid, uint64_t timestampNs);
151 std::unique_ptr<LogEvent> CreateSyncStartEvent(
156 std::unique_ptr<LogEvent> CreateSyncEndEvent(
[all …]
Dstatsd_test_util.cpp295 std::unique_ptr<LogEvent> CreateScreenStateChangedEvent( in CreateScreenStateChangedEvent()
297 auto event = std::make_unique<LogEvent>(android::util::SCREEN_STATE_CHANGED, timestampNs); in CreateScreenStateChangedEvent()
303 std::unique_ptr<LogEvent> CreateBatterySaverOnEvent(uint64_t timestampNs) { in CreateBatterySaverOnEvent()
304 auto event = std::make_unique<LogEvent>( in CreateBatterySaverOnEvent()
311 std::unique_ptr<LogEvent> CreateBatterySaverOffEvent(uint64_t timestampNs) { in CreateBatterySaverOffEvent()
312 auto event = std::make_unique<LogEvent>( in CreateBatterySaverOffEvent()
319 std::unique_ptr<LogEvent> CreateScreenBrightnessChangedEvent( in CreateScreenBrightnessChangedEvent()
321 auto event = std::make_unique<LogEvent>(android::util::SCREEN_BRIGHTNESS_CHANGED, timestampNs); in CreateScreenBrightnessChangedEvent()
328 std::unique_ptr<LogEvent> CreateScheduledJobStateChangedEvent( in CreateScheduledJobStateChangedEvent()
331 … auto event = std::make_unique<LogEvent>(android::util::SCHEDULED_JOB_STATE_CHANGED, timestampNs); in CreateScheduledJobStateChangedEvent()
[all …]
DStatsLogProcessor_test.cpp229 LogEvent event1(0, 1 /*logd timestamp*/, 1001 /*elapsedRealtime*/); in TEST()
232 LogEvent event2(0, 2, 1002); in TEST()
235 LogEvent event3(0, 3, 1005); in TEST()
238 LogEvent event4(0, 4, 1004); in TEST()
243 LogEvent event5(0, 5, 999); in TEST()
246 LogEvent event6(0, 6, 2000); in TEST()
251 LogEvent event7(0, 7, 3000); in TEST()
/frameworks/base/cmds/statsd/src/external/
Dpuller_util.cpp33 bool shouldMerge(shared_ptr<LogEvent>& lhs, shared_ptr<LogEvent>& rhs, in shouldMerge()
51 bool mergeEvent(shared_ptr<LogEvent>& lhs, shared_ptr<LogEvent>& rhs, in mergeEvent()
76 bool tryMerge(vector<shared_ptr<LogEvent>>& data, int child_pos, const vector<int>& host_pos, in tryMerge()
108 void mergeIsolatedUidsToHostUid(vector<shared_ptr<LogEvent>>& data, const sp<UidMap>& uidMap, in mergeIsolatedUidsToHostUid()
160 vector<shared_ptr<LogEvent>> mergedData; in mergeIsolatedUidsToHostUid()
DStatsPuller.h40 bool Pull(const int64_t timeNs, std::vector<std::shared_ptr<LogEvent>>* data);
66 virtual bool PullInternal(std::vector<std::shared_ptr<LogEvent>>* data) = 0;
70 std::vector<std::shared_ptr<LogEvent>> mCachedData;
DResourceHealthManagerPuller.cpp58 bool ResourceHealthManagerPuller::PullInternal(vector<shared_ptr<LogEvent>>* data) { in PullInternal()
76 auto ptr = make_shared<LogEvent>(android::util::REMAINING_BATTERY_CAPACITY, in PullInternal()
82 auto ptr = make_shared<LogEvent>(android::util::FULL_BATTERY_CAPACITY, in PullInternal()
DSubsystemSleepStatePuller.cpp80 bool SubsystemSleepStatePuller::PullInternal(vector<shared_ptr<LogEvent>>* data) { in PullInternal()
101 auto statePtr = make_shared<LogEvent>( in PullInternal()
115 auto voterPtr = make_shared<LogEvent>( in PullInternal()
151 auto subsystemStatePtr = make_shared<LogEvent>( in PullInternal()
/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/condition/
DStateTracker_test.cpp47 void makeUidProcStateEvent(int32_t uid, int32_t state, LogEvent* event) { in makeUidProcStateEvent()
66 LogEvent event(kUidProcTag, 0 /*timestamp*/); in TEST()
87 LogEvent event2(kUidProcTag, 0 /*timestamp*/); in TEST()
97 LogEvent event3(kUidProcTag, 0 /*timestamp*/); in TEST()
DSimpleConditionTracker_test.cpp60 void writeAttributionNodesToEvent(LogEvent* event, const std::vector<int> &uids) { in writeAttributionNodesToEvent()
71 LogEvent* event, const std::vector<int> &uids, const string& wl, int acquire) { in makeWakeLockEvent()
127 LogEvent event(1 /*tagId*/, 0 /*timestamp*/); in TEST()
212 LogEvent event(1 /*tagId*/, 0 /*timestamp*/); in TEST()
290 LogEvent event(1 /*tagId*/, 0 /*timestamp*/); in TEST()
330 LogEvent event2(1 /*tagId*/, 0 /*timestamp*/); in TEST()
351 LogEvent event3(1 /*tagId*/, 0 /*timestamp*/); in TEST()
371 LogEvent event4(1 /*tagId*/, 0 /*timestamp*/); in TEST()
426 LogEvent event(1 /*tagId*/, 0 /*timestamp*/); in TEST()
454 LogEvent event2(1 /*tagId*/, 0 /*timestamp*/); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/metrics/
DDurationMetricProducer.h53 void onMatchedLogEventLocked(const size_t matcherIndex, const LogEvent& event) override;
58 const LogEvent& event) override;
62 bool condition, const LogEvent& event);
DGaugeMetricProducer.h66 void onDataPulled(const std::vector<std::shared_ptr<LogEvent>>& data) override;
88 const LogEvent& event) override;
156 std::shared_ptr<vector<FieldValue>> getGaugeFields(const LogEvent& event);
/frameworks/base/cmds/statsd/src/
DStatsLogProcessor.h54 void OnLogEvent(LogEvent* event, bool reconnectionStarts);
57 void OnLogEvent(LogEvent* event);
155 void mapIsolatedUidToHostUidIfNecessaryLocked(LogEvent* event) const;
158 void onIsolatedUidChangedEventLocked(const LogEvent& event);

1234