Home
last modified time | relevance | path

Searched refs:AppEventPack (Results 1 – 25 of 47) sorted by relevance

12

/ohos5.0/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/
H A Dhiappevent_base.cpp348 AppEventPack::AppEventPack(const std::string& name, int type) : AppEventPack(DEFAULT_DOMAIN, name, … 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()
377 void AppEventPack::InitTraceInfo() in InitTraceInfo()
389 void AppEventPack::InitRunningId() in InitRunningId()
669 int AppEventPack::GetType() const in GetType()
684 int AppEventPack::GetPid() const in GetPid()
689 int AppEventPack::GetTid() const in GetTid()
749 void AppEventPack::SetPid(int pid) in SetPid()
[all …]
H A Dhiappevent_c.cpp41 void AddArrayParam(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const T* arr, int… in AddArrayParam()
49 void AddBoolParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamVa… in AddBoolParamValue()
59 void AddInt8ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamVa… in AddInt8ParamValue()
69 void AddInt16ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamV… in AddInt16ParamValue()
79 void AddInt32ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamV… in AddInt32ParamValue()
89 void AddInt64ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamV… in AddInt64ParamValue()
99 void AddFloatParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamV… in AddFloatParamValue()
148 void AddParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue*… in AddParamValue()
162 void AddParamEntry(std::shared_ptr<AppEventPack>& appEventPack, const ParamEntry* entry) in AddParamEntry()
171 void AddParamList(std::shared_ptr<AppEventPack>& appEventPack, const ParamList list) in AddParamList()
[all …]
H A Dhiappevent_write.cpp61 void WriteEvent(std::shared_ptr<AppEventPack> appEventPack) in WriteEvent()
88 std::vector<std::shared_ptr<AppEventPack>> events; in WriteEvent()
97 int SetEventParam(std::shared_ptr<AppEventPack> appEventPack) in SetEventParam()
/ohos5.0/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/include/
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 Dos_event_listener.h26 class AppEventPack; variable
34 void GetEvents(std::vector<std::shared_ptr<AppEventPack>>& events);
44 …omFiles(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_processor_proxy.h32 void OnEvents(const std::vector<std::shared_ptr<AppEventPack>>& events) override;
33 bool VerifyEvent(std::shared_ptr<AppEventPack> event) override;
/ohos5.0/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cache/include/
H A Dapp_event_store.h36 class AppEventPack; variable
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 e…
53 …int QueryEvents(std::vector<std::shared_ptr<AppEventPack>>& events, int64_t observerSeq, uint32_t …
60 int QueryCustomParamsAdd2EventPack(std::shared_ptr<AppEventPack> event);
H A Dapp_event_dao.h25 class AppEventPack; variable
32 int64_t Insert(std::shared_ptr<AppEventPack> event);
/ohos5.0/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;
114 std::vector<std::shared_ptr<AppEventPack>> events;
163 std::vector<std::shared_ptr<AppEventPack>> events;
195 std::vector<std::shared_ptr<AppEventPack>> events;
223 WriteEvent(std::make_shared<AppEventPack>("name", 1));
269 std::vector<std::shared_ptr<AppEventPack>> events;
281 std::vector<std::shared_ptr<AppEventPack>> events1;
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 in OnEvents()
191 std::vector<std::shared_ptr<AppEventPack>> events;
236 std::vector<std::shared_ptr<AppEventPack>> events;
264 std::vector<std::shared_ptr<AppEventPack>> events;
291 std::vector<std::shared_ptr<AppEventPack>> events;
292 events.emplace_back(std::make_shared<AppEventPack>("OS", "APP_CRASH", TEST_TYPE));
/ohos5.0/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/include/
H A Dhiappevent_write.h22 class AppEventPack; variable
24 void WriteEvent(std::shared_ptr<AppEventPack> appEventPack);
25 int SetEventParam(std::shared_ptr<AppEventPack> appEventPack);
H A Dhiappevent_base.h164 class AppEventPack {
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);
H A Dhiappevent_verify.h26 class AppEventPack; variable
30 int VerifyAppEvent(std::shared_ptr<AppEventPack> event);
31 int VerifyCustomEventParams(std::shared_ptr<AppEventPack> event);
/ohos5.0/base/hiviewdfx/hiappevent/frameworks/js/napi/include/
H A Dnapi_hiappevent_builder.h25 class AppEventPack; variable
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; variable
30 std::shared_ptr<AppEventPack> appEventPack;
H A Dnapi_param_builder.h26 class AppEventPack; variable
35 …std::shared_ptr<AppEventPack> BuildEventParam(const napi_env env, const napi_value params[], size_…
H A Dnapi_util.h29 class AppEventPack; variable
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>>& eve…
89 napi_value CreateEventGroups(napi_env env, const std::vector<std::shared_ptr<AppEventPack>>& events…
/ohos5.0/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_observer_mgr.cpp40 void StoreEventsToDb(std::vector<std::shared_ptr<AppEventPack>>& events) in StoreEventsToDb()
53 void StoreEventMappingToDb(const std::vector<std::shared_ptr<AppEventPack>>& events, in StoreEventMappingToDb()
66 void SendEventsToObserver(const std::vector<std::shared_ptr<AppEventPack>>& events, in SendEventsToObserver()
69 std::vector<std::shared_ptr<AppEventPack>> realTimeEvents; in SendEventsToObserver()
94 std::vector<std::shared_ptr<AppEventPack>> events; in InitObserverFromDb()
291 void AppEventObserverMgr::HandleEvents(std::vector<std::shared_ptr<AppEventPack>>& events) in HandleEvents()
397 std::vector<std::shared_ptr<AppEventPack>> events; in InitObserverFromListener()
H A Dos_event_listener.cpp107 void OsEventListener::GetEvents(std::vector<std::shared_ptr<AppEventPack>>& events) in GetEvents()
216 std::vector<std::shared_ptr<AppEventPack>> events; in HandleInotify()
223 const std::vector<std::string>& files, std::vector<std::shared_ptr<AppEventPack>>& events) in GetEventsFromFiles()
240 std::shared_ptr<AppEventPack> OsEventListener::GetAppEventPackFromJson(const std::string& jsonStr) in GetAppEventPackFromJson()
251 auto appEventPack = std::make_shared<AppEventPack>(); in GetAppEventPackFromJson()
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()
/ohos5.0/base/hiviewdfx/hiappevent/interfaces/native/inner_api/include/
H A Dbase_type.h24 class AppEventPack; variable
65 bool IsValidEvent(std::shared_ptr<AppEventPack> event) const;
67 bool IsRealTimeEvent(std::shared_ptr<AppEventPack> event) const;
/ohos5.0/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;
/ohos5.0/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;

12