Home
last modified time | relevance | path

Searched refs:AppEventPack (Results 1 - 25 of 46) sorted by relevance

12

/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/
H A Dhiappevent_c.cpp41 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 Dhiappevent_base.cpp348 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 Dhiappevent_write.cpp59 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 Dhiappevent_write.h22 class AppEventPack;
24 void WriteEvent(std::shared_ptr<AppEventPack> appEventPack);
25 int SetEventParam(std::shared_ptr<AppEventPack> appEventPack);
H A Dhiappevent_verify.h26 class AppEventPack;
30 int VerifyAppEvent(std::shared_ptr<AppEventPack> event);
31 int VerifyCustomEventParams(std::shared_ptr<AppEventPack> event);
H A Dhiappevent_base.h164 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 Dos_event_listener.h26 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 Dapp_event_observer.h46 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 Dapp_event_processor_proxy.h32 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 Dapp_event_store.h36 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 Dapp_event_dao.h25 class AppEventPack;
32 int64_t Insert(std::shared_ptr<AppEventPack> event);
/base/hiviewdfx/hiappevent/frameworks/js/napi/include/
H A Dnapi_hiappevent_builder.h25 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 Dnapi_app_event_watcher.h38 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 Dnapi_hiappevent_write.h23 class AppEventPack;
30 std::shared_ptr<AppEventPack> appEventPack;
H A Dnapi_param_builder.h26 class AppEventPack;
35 std::shared_ptr<AppEventPack> BuildEventParam(const napi_env env, const napi_value params[], size_t len);
H A Dnapi_util.h29 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 Dbase_type.h24 class AppEventPack;
65 bool IsValidEvent(std::shared_ptr<AppEventPack> event) const;
67 bool IsRealTimeEvent(std::shared_ptr<AppEventPack> event) const;
H A Dapp_event.h23 class AppEventPack;
65 std::shared_ptr<AppEventPack> eventPack_;
/base/hiviewdfx/hiappevent/frameworks/native/ndk/include/
H A Dndk_app_event_watcher.h30 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 Dhiappevent_cache_test.cpp39 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 Dhiappevent_watcher_test.cpp41 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 Dappevent_watcher_impl.h53 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 Dhiappevent_impl.h31 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 Dapp_event_observer.cpp96 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 Dapp_event_processor_proxy.cpp35 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()

Completed in 16 milliseconds

12