/base/hiviewdfx/hiview/plugins/eventlogger/include/ |
H A D | event_logger.h | 82 void ReportUserPanicWarning(std::shared_ptr<SysEvent> event, long pid); 84 void StartFfrtDump(std::shared_ptr<SysEvent> event); 85 void CollectMemInfo(int fd, std::shared_ptr<SysEvent> event); 86 void SaveDbToFile(const std::shared_ptr<SysEvent>& event); 88 void StartLogCollect(std::shared_ptr<SysEvent> event); 89 int GetFile(std::shared_ptr<SysEvent> event, std::string& logFile, bool isFfrt); 90 bool JudgmentRateLimiting(std::shared_ptr<SysEvent> event); 93 bool WriteCommonHead(int fd, std::shared_ptr<SysEvent> event); 94 void GetAppFreezeStack(int jsonFd, std::shared_ptr<SysEvent> event, 99 void WriteKernelStackToFile(std::shared_ptr<SysEvent> even [all...] |
/base/hiviewdfx/hiview/base/ |
H A D | sys_event.cpp | 100 std::atomic<uint32_t> SysEvent::totalCount_(0); 101 std::atomic<int64_t> SysEvent::totalSize_(0); 103 SysEvent::SysEvent(const std::string& sender, PipelineEventProducer* handler, in SysEvent() function in OHOS::SysEvent 119 SysEvent::SysEvent(const std::string& sender, PipelineEventProducer* handler, in SysEvent() function in OHOS::SysEvent 121 : SysEvent(sender, handler, rawData, seq, "") in SysEvent() 125 SysEvent::SysEvent(const std::string& sender, PipelineEventProducer* handler, in SysEvent() function in OHOS::SysEvent 127 : SysEvent(sende in SysEvent() 130 SysEvent::SysEvent(const std::string& sender, PipelineEventProducer* handler, SysEventCreator& sysEventCreator) SysEvent() function in OHOS::SysEvent 134 SysEvent::SysEvent(const std::string& sender, PipelineEventProducer* handler, const std::string& jsonStr) SysEvent() function in OHOS::SysEvent [all...] |
/base/hiviewdfx/hiview/plugins/crash_validator/ |
H A D | crash_validator.h | 41 void AddEventToMap(int32_t pid, std::shared_ptr<SysEvent> sysEvent); 42 void ReportMatchEvent(std::string eventName, std::shared_ptr<SysEvent> sysEvent); 43 void ReportDisMatchEvent(std::shared_ptr<SysEvent> sysEvent); 45 std::shared_ptr<SysEvent> Convert2SysEvent(std::shared_ptr<Event>& event); 48 std::map<int32_t, std::shared_ptr<SysEvent>> processExitEvents_; 49 std::map<int32_t, std::shared_ptr<SysEvent>> cppCrashEvents_; 50 std::map<int32_t, std::shared_ptr<SysEvent>> cppCrashExceptionEvents_;
|
H A D | crash_validator.cpp | 72 std::shared_ptr<SysEvent> CrashValidator::Convert2SysEvent(std::shared_ptr<Event>& event) in Convert2SysEvent() 82 std::shared_ptr<SysEvent> sysEvent = Event::DownCastTo<SysEvent>(event); in Convert2SysEvent() 137 void CrashValidator::AddEventToMap(int32_t pid, std::shared_ptr<SysEvent> sysEvent) in AddEventToMap() 157 static bool IsNormalExitEvent(std::shared_ptr<SysEvent> sysEvent) in IsNormalExitEvent() 180 std::shared_ptr<SysEvent> sysEvent = Convert2SysEvent(event); in OnEvent() 204 void CrashValidator::ReportMatchEvent(std::string eventName, std::shared_ptr<SysEvent> sysEvent) in ReportMatchEvent() 233 void CrashValidator::ReportDisMatchEvent(std::shared_ptr<SysEvent> sysEvent) in ReportDisMatchEvent()
|
/base/hiviewdfx/hiview/base/event_store/test/unittest/common/ |
H A D | sys_event_repeat_test.cpp | 75 std::shared_ptr<SysEvent> sysEvent = std::make_shared<SysEvent>("test", nullptr, sysEventCreator); in HWTEST_F() 82 std::shared_ptr<SysEvent> repeatSysEvent = std::make_shared<SysEvent>("test", nullptr, sysEventCreator); in HWTEST_F() 106 std::shared_ptr<SysEvent> sysEvent = std::make_shared<SysEvent>("test", nullptr, sysEventCreator); in HWTEST_F() 114 std::shared_ptr<SysEvent> repeatSysEvent = std::make_shared<SysEvent>("test", nullptr, sysEventCreator); in HWTEST_F() 125 std::shared_ptr<SysEvent> repackSysEvent = std::make_shared<SysEvent>("tes in HWTEST_F() [all...] |
H A D | sys_event_doc_test.cpp | 73 std::shared_ptr<SysEvent> sysEvent = std::make_shared<SysEvent>("test", nullptr, sysEventCreator); in HWTEST_F() 100 auto event = std::make_shared<SysEvent>("SysEventSource", nullptr, rawData); in HWTEST_F() 106 auto eventMax = std::make_shared<SysEvent>("SysEventSource", nullptr, rawDataMax); in HWTEST_F()
|
H A D | sys_event_database_test.cpp | 61 std::shared_ptr<SysEvent> sysEvent = std::make_shared<SysEvent>("test", nullptr, sysEventCreator); in HWTEST_F()
|
/base/hiviewdfx/hiview/base/event_store/utility/writer/include/ |
H A D | sys_event_doc_writer.h | 32 int Write(const std::shared_ptr<SysEvent>& sysEvent);
35 int WriteHeader(const std::shared_ptr<SysEvent>& sysEvent, uint32_t contentSize);
36 int WriteContent(const std::shared_ptr<SysEvent>& sysEvent, uint32_t contentSize);
39 int GetContentSize(const std::shared_ptr<SysEvent>& sysEvent, uint32_t& contentSize);
|
/base/hiviewdfx/hiview/plugins/privacy_controller/config/include/ |
H A D | area_policy.h | 34 bool IsAllowed(std::shared_ptr<SysEvent> event) const;
40 bool IsAllowedLevel(std::shared_ptr<SysEvent> event) const;
41 bool IsAllowedPrivacy(std::shared_ptr<SysEvent> event) const;
42 bool IsAllowedUe(std::shared_ptr<SysEvent> event) const;
|
/base/hiviewdfx/hiview/plugins/eventlogger/test/unittest/common/ |
H A D | event_logger_test.cpp | 83 std::shared_ptr<SysEvent> sysEvent1 = std::make_shared<SysEvent>("GESTURE_NAVIGATION_BACK",
in HWTEST_F() 108 std::shared_ptr<SysEvent> sysEvent = std::make_shared<SysEvent>("EventLoggerTest_001",
in HWTEST_F() 133 std::shared_ptr<SysEvent> sysEvent = std::make_shared<SysEvent>(testName,
in HWTEST_F() 170 std::shared_ptr<SysEvent> sysEvent = std::make_shared<SysEvent>(testName,
in HWTEST_F() 204 std::shared_ptr<SysEvent> sysEvent = std::make_shared<SysEvent>("EventLoggerTest_00 in HWTEST_F() [all...] |
H A D | event_logger_plugin_test.cpp | 118 std::shared_ptr<SysEvent> event = std::make_shared<SysEvent>("Eventlogger004", nullptr, jsonStr); in HWTEST_F() 137 std::shared_ptr<SysEvent> event = std::make_shared<SysEvent>("Eventlogger005", nullptr, jsonStr); in HWTEST_F()
|
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/include/ |
H A D | data_publisher.h | 44 void OnSysEvent(std::shared_ptr<OHOS::HiviewDFX::SysEvent> &event); 52 void HandleAppUninstallEvent(std::shared_ptr<OHOS::HiviewDFX::SysEvent> &event); 53 void HandleAppStartEvent(std::shared_ptr<OHOS::HiviewDFX::SysEvent> &event); 54 void HandleSubscribeTask(std::shared_ptr<OHOS::HiviewDFX::SysEvent> &event,
|
/base/hiviewdfx/hiview/plugins/unified_collector/test/unittest/common/mock/ |
H A D | mock_function_jumble.cpp | 71 int64_t SysEvent::GetEventIntValue(const std::string& key) in GetEventIntValue() 76 int32_t SysEvent::GetUid() const in GetUid() 81 int32_t SysEvent::GetPid() const in GetPid() 86 std::string SysEvent::GetEventValue(const std::string& key) in GetEventValue()
|
/base/hiviewdfx/hiview/base/event_store/store/include/ |
H A D | sys_event_doc.h | 36 int Insert(const std::shared_ptr<SysEvent>& sysEvent);
40 int InitWriter(const std::shared_ptr<SysEvent>& sysEvent);
48 int UpdateCurFile(const std::shared_ptr<SysEvent>& sysEvent);
49 int CreateCurFile(const std::string& dir, const std::shared_ptr<SysEvent>& sysEvent);
|
H A D | sys_event_repeat_guard.h | 59 static void Check(std::shared_ptr<SysEvent> event);
63 static bool IsEventRepeat(std::shared_ptr<SysEvent> event);
65 static bool GetEventUniqueId(std::shared_ptr<SysEvent> event, std::string& uniqueId);
|
/base/hiviewdfx/hiview/plugins/sys_dispatcher/ |
H A D | sys_dispatcher.cpp | 41 void SysEventDispatcher::DispatchEvent(std::shared_ptr<SysEvent>& sysEvent) in DispatchEvent() 53 std::shared_ptr<SysEvent> SysEventDispatcher::Convert2SysEvent(std::shared_ptr<Event>& event) in Convert2SysEvent() 63 std::shared_ptr<SysEvent> sysEvent = Event::DownCastTo<SysEvent>(event); in Convert2SysEvent()
|
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/include/ |
H A D | fold_event_cacher.h | 34 void ProcessEvent(std::shared_ptr<SysEvent> event);
37 void ProcessForegroundEvent(std::shared_ptr<SysEvent> event, AppEventRecord& appEventRecord);
38 void ProcessBackgroundEvent(std::shared_ptr<SysEvent> event, AppEventRecord& appEventRecord);
39 void ProcessSceenStatusChangedEvent(std::shared_ptr<SysEvent> event);
|
/base/hiviewdfx/hiview/plugins/event_store/ |
H A D | sys_event_store.cpp | 82 std::shared_ptr<SysEvent> SysEventStore::Convert2SysEvent(std::shared_ptr<Event>& event) in Convert2SysEvent() 92 std::shared_ptr<SysEvent> sysEvent = Event::DownCastTo<SysEvent>(event); in Convert2SysEvent() 106 std::shared_ptr<SysEvent> sysEvent = Convert2SysEvent(event); in OnEvent()
|
/base/hiviewdfx/hiview/plugins/sys_dispatcher/include/ |
H A D | sys_dispatcher.h | 29 void DispatchEvent(std::shared_ptr<SysEvent>& sysEvent); 32 std::shared_ptr<SysEvent> Convert2SysEvent(std::shared_ptr<Event>& event);
|
/base/hiviewdfx/hiview/base/include/ |
H A D | sys_event.h | 60 class SysEvent : public PipelineEvent { class 62 SysEvent(const std::string& sender, PipelineEventProducer* handler, 64 SysEvent(const std::string& sender, PipelineEventProducer* handler, 66 SysEvent(const std::string& sender, PipelineEventProducer* handler, std::shared_ptr<EventRaw::RawData> rawData); 67 SysEvent(const std::string& sender, PipelineEventProducer* handler, SysEventCreator& sysEventCreator); 68 SysEvent(const std::string& sender, PipelineEventProducer* handler, const std::string& jsonStr); 69 ~SysEvent();
|
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/include/ |
H A D | dmesg_catcher.h | 33 bool Init(std::shared_ptr<SysEvent> event);
38 std::shared_ptr<SysEvent> event_;
|
/base/hiviewdfx/hiview/base/event_store/include/ |
H A D | sys_event_dao.h | 38 static int Insert(std::shared_ptr<SysEvent> sysEvent); 39 static void CheckRepeat(std::shared_ptr<SysEvent> event);
|
/base/hiviewdfx/hiview/plugins/sysevent_source/include/ |
H A D | sysevent_source.h | 64 bool IsValidSysEvent(const std::shared_ptr<SysEvent> event);
65 std::shared_ptr<SysEvent> Convert2SysEvent(std::shared_ptr<Event>& event);
66 void DecorateSysEvent(const std::shared_ptr<SysEvent> event, const BaseInfo& info, uint64_t id);
|
/base/hiviewdfx/hiview/plugins/privacy_controller/config/ |
H A D | area_policy.cpp | 125 bool AreaPolicy::IsAllowed(std::shared_ptr<SysEvent> event) const
in IsAllowed() 130 bool AreaPolicy::IsAllowedLevel(std::shared_ptr<SysEvent> event) const
in IsAllowedLevel() 141 bool AreaPolicy::IsAllowedPrivacy(std::shared_ptr<SysEvent> event) const
in IsAllowedPrivacy() 146 bool AreaPolicy::IsAllowedUe(std::shared_ptr<SysEvent> event) const
in IsAllowedUe()
|
/base/hiviewdfx/hiview/plugins/usage_event_report/test/unittest/ |
H A D | fold_app_usage_test.cpp | 183 auto sysEvent = std::make_shared<SysEvent>("test", nullptr, sysEventCreator);
in HWTEST_F() 192 auto sysEvent1 = std::make_shared<SysEvent>("test", nullptr, sysEventCreator1);
in HWTEST_F() 196 auto sysEvent2 = std::make_shared<SysEvent>("test", nullptr, sysEventCreator1);
in HWTEST_F() 207 auto sysEvent3 = std::make_shared<SysEvent>("test", nullptr, sysEventCreator2);
in HWTEST_F() 215 auto sysEvent4 = std::make_shared<SysEvent>("test", nullptr, sysEventCreator3);
in HWTEST_F() 235 auto sysEvent = std::make_shared<SysEvent>("test", nullptr, sysEventCreator);
in HWTEST_F() 244 auto sysEvent1 = std::make_shared<SysEvent>("test", nullptr, sysEventCreator1);
in HWTEST_F() 248 auto sysEvent2 = std::make_shared<SysEvent>("test", nullptr, sysEventCreator1);
in HWTEST_F()
|