/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/ |
H A D | hiappevent_c.cpp | 41 void AddArrayParam(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const T* arr, int len) in AddArrayParam() 47 using ParamAdder = void (*)(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value); 49 void AddBoolParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) in AddBoolParamValue() 54 void AddBoolArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) in AddBoolArrayParamValue() 59 void AddInt8ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) in AddInt8ParamValue() 64 void AddInt8ArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) in AddInt8ArrayParamValue() 69 void AddInt16ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) in AddInt16ParamValue() 74 void AddInt16ArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) in AddInt16ArrayParamValue() 79 void AddInt32ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) in AddInt32ParamValue() 84 void AddInt32ArrayParamValue(std::shared_ptr<AppEventPack> [all...] |
H A D | hiappevent_base.cpp | 348 AppEventPack::AppEventPack(const std::string& name, int type) : AppEventPack(DEFAULT_DOMAIN, name, type)
in AppEventPack() function in OHOS::HiviewDFX::AppEventPack 351 AppEventPack::AppEventPack(const std::string& domain, const std::string& name, int type)
in AppEventPack() function in OHOS::HiviewDFX::AppEventPack 361 void AppEventPack::InitTime()
in InitTime() 366 void AppEventPack::InitTimeZone()
in InitTimeZone() 371 void AppEventPack::InitProcessInfo()
in InitProcessInfo() 377 void AppEventPack::InitTraceInfo()
in InitTraceInfo() 389 void AppEventPack [all...] |
H A D | hiappevent_write.cpp | 59 void WriteEvent(std::shared_ptr<AppEventPack> appEventPack)
in WriteEvent() 86 std::vector<std::shared_ptr<AppEventPack>> events;
in WriteEvent() 95 int SetEventParam(std::shared_ptr<AppEventPack> appEventPack)
in SetEventParam()
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/include/ |
H A D | hiappevent_write.h | 22 class AppEventPack;
24 void WriteEvent(std::shared_ptr<AppEventPack> appEventPack);
25 int SetEventParam(std::shared_ptr<AppEventPack> appEventPack);
|
H A D | hiappevent_verify.h | 26 class AppEventPack;
30 int VerifyAppEvent(std::shared_ptr<AppEventPack> event);
31 int VerifyCustomEventParams(std::shared_ptr<AppEventPack> event);
|
H A D | hiappevent_base.h | 164 class AppEventPack {
class 166 AppEventPack() = default;
167 AppEventPack(const std::string& name, int type);
168 AppEventPack(const std::string& domain, const std::string& name, int type = 0);
169 ~AppEventPack() {}
in ~AppEventPack() 227 friend int VerifyAppEvent(std::shared_ptr<AppEventPack> appEventPack);
228 friend int VerifyCustomEventParams(std::shared_ptr<AppEventPack> event);
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/include/ |
H A D | os_event_listener.h | 26 class AppEventPack; 34 void GetEvents(std::vector<std::shared_ptr<AppEventPack>>& events); 44 void GetEventsFromFiles(const std::vector<std::string>& files, std::vector<std::shared_ptr<AppEventPack>>& events); 45 std::shared_ptr<AppEventPack> GetAppEventPackFromJson(const std::string& jsonStr); 53 std::vector<std::shared_ptr<AppEventPack>> historyEvents_;
|
H A D | app_event_observer.h | 46 bool IsValidEvent(std::shared_ptr<AppEventPack> event) const;
55 virtual void OnEvents(const std::vector<std::shared_ptr<AppEventPack>>& events) = 0;
56 virtual bool VerifyEvent(std::shared_ptr<AppEventPack> event);
57 virtual bool IsRealTimeEvent(std::shared_ptr<AppEventPack> event);
58 void ProcessEvent(std::shared_ptr<AppEventPack> event);
84 void QueryEventsFromDb(std::vector<std::shared_ptr<AppEventPack>>& events);
|
H A D | app_event_processor_proxy.h | 32 void OnEvents(const std::vector<std::shared_ptr<AppEventPack>>& events) override;
33 bool VerifyEvent(std::shared_ptr<AppEventPack> event) override;
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cache/include/ |
H A D | app_event_store.h | 36 class AppEventPack;
44 int64_t InsertEvent(std::shared_ptr<AppEventPack> event);
49 int64_t InsertCustomEventParams(std::shared_ptr<AppEventPack> event);
52 int TakeEvents(std::vector<std::shared_ptr<AppEventPack>>& events, int64_t observerSeq, uint32_t eventSize = 0);
53 int QueryEvents(std::vector<std::shared_ptr<AppEventPack>>& events, int64_t observerSeq, uint32_t eventSize = 0);
60 int QueryCustomParamsAdd2EventPack(std::shared_ptr<AppEventPack> event);
|
H A D | app_event_dao.h | 25 class AppEventPack;
32 int64_t Insert(std::shared_ptr<AppEventPack> event);
|
/base/hiviewdfx/hiappevent/frameworks/js/napi/include/ |
H A D | napi_hiappevent_builder.h | 25 class AppEventPack;
33 std::shared_ptr<AppEventPack> Build(const napi_env env, const napi_value params[], size_t len);
34 std::shared_ptr<AppEventPack> BuildV9(const napi_env env, const napi_value params[], size_t len);
57 std::shared_ptr<AppEventPack> appEventPack_;
|
H A D | napi_app_event_watcher.h | 38 std::vector<std::shared_ptr<AppEventPack>> events;
58 void OnEvents(const std::vector<std::shared_ptr<AppEventPack>>& events) override;
59 bool IsRealTimeEvent(std::shared_ptr<AppEventPack> event) override;
|
H A D | napi_hiappevent_write.h | 23 class AppEventPack;
30 std::shared_ptr<AppEventPack> appEventPack;
|
H A D | napi_param_builder.h | 26 class AppEventPack; 35 std::shared_ptr<AppEventPack> BuildEventParam(const napi_env env, const napi_value params[], size_t len);
|
H A D | napi_util.h | 29 class AppEventPack;
87 napi_value CreateEventInfo(napi_env env, std::shared_ptr<AppEventPack> event);
88 napi_value CreateEventInfoArray(napi_env env, const std::vector<std::shared_ptr<AppEventPack>>& events);
89 napi_value CreateEventGroups(napi_env env, const std::vector<std::shared_ptr<AppEventPack>>& events);
|
/base/hiviewdfx/hiappevent/interfaces/native/inner_api/include/ |
H A D | base_type.h | 24 class AppEventPack;
65 bool IsValidEvent(std::shared_ptr<AppEventPack> event) const;
67 bool IsRealTimeEvent(std::shared_ptr<AppEventPack> event) const;
|
H A D | app_event.h | 23 class AppEventPack;
65 std::shared_ptr<AppEventPack> eventPack_;
|
/base/hiviewdfx/hiappevent/frameworks/native/ndk/include/ |
H A D | ndk_app_event_watcher.h | 30 void OnEvents(const std::vector<std::shared_ptr<AppEventPack>>& events) override; 31 bool IsRealTimeEvent(std::shared_ptr<AppEventPack> event) override;
|
/base/hiviewdfx/hiappevent/test/unittest/common/native/ |
H A D | hiappevent_cache_test.cpp | 39 std::shared_ptr<AppEventPack> CreateAppEventPack()
in CreateAppEventPack() 41 return std::make_shared<AppEventPack>(TEST_EVENT_DOMAIN, TEST_EVENT_NAME, TEST_EVENT_TYPE);
in CreateAppEventPack() 73 std::vector<std::shared_ptr<AppEventPack>> events;
in HWTEST_F() 114 std::vector<std::shared_ptr<AppEventPack>> events;
in HWTEST_F() 163 std::vector<std::shared_ptr<AppEventPack>> events;
in HWTEST_F() 195 std::vector<std::shared_ptr<AppEventPack>> events;
in HWTEST_F() 223 WriteEvent(std::make_shared<AppEventPack>("name", 1));
in HWTEST_F() 269 std::vector<std::shared_ptr<AppEventPack>> events;
in HWTEST_F() 281 std::vector<std::shared_ptr<AppEventPack>> events1;
in HWTEST_F()
|
H A D | hiappevent_watcher_test.cpp | 41 std::shared_ptr<AppEventPack> CreateAppEventPack(const std::string& domain = TEST_DOMAIN)
in CreateAppEventPack() 43 return std::make_shared<AppEventPack>(domain, TEST_NAME, TEST_TYPE);
in CreateAppEventPack() 84 void OnEvents(const std::vector<std::shared_ptr<AppEventPack>>& events) override
191 std::vector<std::shared_ptr<AppEventPack>> events;
in HWTEST_F() 236 std::vector<std::shared_ptr<AppEventPack>> events;
in HWTEST_F() 264 std::vector<std::shared_ptr<AppEventPack>> events;
in HWTEST_F() 291 std::vector<std::shared_ptr<AppEventPack>> events;
in HWTEST_F() 292 events.emplace_back(std::make_shared<AppEventPack>("OS", "APP_CRASH", TEST_TYPE));
in HWTEST_F()
|
/base/hiviewdfx/hiappevent/frameworks/cj/ffi/include/ |
H A D | appevent_watcher_impl.h | 53 std::vector<std::shared_ptr<OHOS::HiviewDFX::AppEventPack>> events; 72 void OnEvents(const std::vector<std::shared_ptr<OHOS::HiviewDFX::AppEventPack>>& events) override; 73 bool IsRealTimeEvent(std::shared_ptr<OHOS::HiviewDFX::AppEventPack> event) override;
|
H A D | hiappevent_impl.h | 31 std::shared_ptr<HiviewDFX::AppEventPack> appEventPack_; 33 static int Write(std::shared_ptr<HiviewDFX::AppEventPack> eventPack);
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/ |
H A D | app_event_observer.cpp | 96 bool AppEventFilter::IsValidEvent(std::shared_ptr<AppEventPack> event) const
in IsValidEvent() 129 bool EventConfig::IsValidEvent(std::shared_ptr<AppEventPack> event) const
in IsValidEvent() 143 bool EventConfig::IsRealTimeEvent(std::shared_ptr<AppEventPack> event) const
in IsRealTimeEvent() 170 bool AppEventObserver::VerifyEvent(std::shared_ptr<AppEventPack> event)
in VerifyEvent() 181 bool AppEventObserver::IsRealTimeEvent(std::shared_ptr<AppEventPack> event)
in IsRealTimeEvent() 193 void AppEventObserver::ProcessEvent(std::shared_ptr<AppEventPack> event)
in ProcessEvent() 219 std::vector<std::shared_ptr<AppEventPack>> events;
in OnTrigger() 226 void AppEventObserver::QueryEventsFromDb(std::vector<std::shared_ptr<AppEventPack>>& events)
in QueryEventsFromDb()
|
H A D | app_event_processor_proxy.cpp | 35 AppEventInfo CreateAppEventInfo(std::shared_ptr<AppEventPack> event)
in CreateAppEventInfo() 48 void AppEventProcessorProxy::OnEvents(const std::vector<std::shared_ptr<AppEventPack>>& events)
in OnEvents() 119 bool AppEventProcessorProxy::VerifyEvent(std::shared_ptr<AppEventPack> event)
in VerifyEvent()
|