Home
last modified time | relevance | path

Searched refs:appEventPack (Results 1 – 10 of 10) sorted by relevance

/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/
Dhiappevent_c.cpp33 void AddArrayParam(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const T* arr, int… in AddArrayParam() argument
36 appEventPack->AddParam(name, params); in AddArrayParam()
39 using ParamAdder = void (*)(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const Pa…
41 void AddBoolParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamVa… in AddBoolParamValue() argument
43 appEventPack->AddParam(name, value->value.bool_v); in AddBoolParamValue()
46 void AddBoolArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const Pa… in AddBoolArrayParamValue() argument
48 AddArrayParam(appEventPack, name, value->value.bool_arr_v, value->arrSize); in AddBoolArrayParamValue()
51 void AddInt8ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamVa… in AddInt8ParamValue() argument
53 appEventPack->AddParam(name, value->value.int8_v); in AddInt8ParamValue()
56 void AddInt8ArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const Pa… in AddInt8ArrayParamValue() argument
[all …]
Dhiappevent_write.cpp68 void TraceAppEventPack(const std::shared_ptr<AppEventPack>& appEventPack) in TraceAppEventPack() argument
74 appEventPack->AddParam("traceid_", static_cast<int64_t>(hitraceId.GetChainId())); in TraceAppEventPack()
75 appEventPack->AddParam("spanid_", static_cast<int64_t>(hitraceId.GetSpanId())); in TraceAppEventPack()
76 appEventPack->AddParam("pspanid_", static_cast<int64_t>(hitraceId.GetParentSpanId())); in TraceAppEventPack()
77 appEventPack->AddParam("trace_flag_", hitraceId.GetFlags()); in TraceAppEventPack()
81 void WriteEvent(const std::shared_ptr<AppEventPack>& appEventPack) in WriteEvent() argument
87 if (appEventPack == nullptr) { in WriteEvent()
96 TraceAppEventPack(appEventPack); in WriteEvent()
97 HiLog::Debug(LABEL, "WriteEvent eventInfo=%{public}s.", appEventPack->GetJsonString().c_str()); in WriteEvent()
107 std::string event = appEventPack->GetJsonString(); in WriteEvent()
[all …]
Dhiappevent_verify.cpp198 int VerifyAppEvent(std::shared_ptr<AppEventPack>& appEventPack) in VerifyAppEvent() argument
204 if (!IsValidDomain(appEventPack->GetEventDomain())) { in VerifyAppEvent()
205 … HiLog::Error(LABEL, "eventDomain=%{public}s is invalid.", appEventPack->GetEventDomain().c_str()); in VerifyAppEvent()
208 if (!CheckEventName(appEventPack->GetEventName())) { in VerifyAppEvent()
209 … HiLog::Error(LABEL, "eventName=%{public}s is invalid.", appEventPack->GetEventName().c_str()); in VerifyAppEvent()
214 std::list<AppEventParam>& baseParams = appEventPack->baseParams_; in VerifyAppEvent()
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
Dnapi_hiappevent_js_v9.cpp40 auto appEventPack = builder.BuildV9(env, params, paramNum); in Write() local
41 if (appEventPack == nullptr) { in Write()
51 asyncContext->appEventPack = appEventPack; in Write()
57 asyncContext->result = VerifyAppEvent(asyncContext->appEventPack); in Write()
Dnapi_hiappevent_js.cpp46 asyncContext->appEventPack = builder.Build(env, params, paramNum); in Write()
52 asyncContext->result = VerifyAppEvent(asyncContext->appEventPack); in Write()
Dnapi_hiappevent_write.cpp63 if (asyncContext->appEventPack != nullptr && asyncContext->result >= 0) { in Write()
64 WriteEvent(asyncContext->appEventPack); in Write()
/base/hiviewdfx/hiappevent/frameworks/js/napi/include/
Dnapi_hiappevent_write.h30 std::shared_ptr<AppEventPack> appEventPack; member
40 this->appEventPack = nullptr; in HiAppEventAsyncContext()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/include/
Dhiappevent_write.h24 void WriteEvent(const std::shared_ptr<AppEventPack>& appEventPack);
Dhiappevent_verify.h28 int VerifyAppEvent(std::shared_ptr<AppEventPack>& appEventPack);
Dhiappevent_base.h181 friend int VerifyAppEvent(std::shared_ptr<AppEventPack>& appEventPack);