Home
last modified time | relevance | path

Searched refs:appEventPack (Results 1 - 12 of 12) sorted by relevance

/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() argument
44 appEventPack->AddParam(name, params); 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() argument
51 appEventPack->AddParam(name, value->value.bool_v); in AddBoolParamValue()
54 void AddBoolArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) in AddBoolArrayParamValue() argument
56 AddArrayParam(appEventPack, name, value->value.bool_arr_v, value->arrSize); in AddBoolArrayParamValue()
59 void AddInt8ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) in AddInt8ParamValue() argument
61 appEventPack->AddParam(name, value->value.int8_v); in AddInt8ParamValue()
64 void AddInt8ArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, cons argument
69 AddInt16ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddInt16ParamValue() argument
74 AddInt16ArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddInt16ArrayParamValue() argument
79 AddInt32ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddInt32ParamValue() argument
84 AddInt32ArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddInt32ArrayParamValue() argument
89 AddInt64ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddInt64ParamValue() argument
94 AddInt64ArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddInt64ArrayParamValue() argument
99 AddFloatParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddFloatParamValue() argument
104 AddFloatArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddFloatArrayParamValue() argument
109 AddDoubleParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddDoubleParamValue() argument
114 AddDoubleArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddDoubleArrayParamValue() argument
119 AddStringParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddStringParamValue() argument
124 AddStringArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddStringArrayParamValue() argument
148 AddParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) AddParamValue() argument
162 AddParamEntry(std::shared_ptr<AppEventPack>& appEventPack, const ParamEntry* entry) AddParamEntry() argument
171 AddParamList(std::shared_ptr<AppEventPack>& appEventPack, const ParamList list) AddParamList() argument
201 std::shared_ptr<AppEventPack> appEventPack = std::make_shared<AppEventPack>(domain, name, type); HiAppEventInnerWrite() local
[all...]
H A Dhiappevent_write.cpp59 void WriteEvent(std::shared_ptr<AppEventPack> appEventPack) in WriteEvent() argument
65 if (appEventPack == nullptr) { in WriteEvent()
66 HILOG_ERROR(LOG_CORE, "appEventPack is null."); in WriteEvent()
74 std::string event = appEventPack->GetEventStr(); in WriteEvent()
76 appEventPack->GetDomain().c_str(), appEventPack->GetName().c_str()); in WriteEvent()
87 events.emplace_back(appEventPack); in WriteEvent()
95 int SetEventParam(std::shared_ptr<AppEventPack> appEventPack) in SetEventParam() argument
97 if (appEventPack == nullptr) { in SetEventParam()
98 HILOG_ERROR(LOG_CORE, "appEventPack i in SetEventParam()
[all...]
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/
H A Dapp_event_stat.cpp41 auto appEventPack = std::make_shared<AppEventPack>("api_diagnostic", "api_exec_end", BEHAVIOR); in WriteApiEndEventAsync() local
42 appEventPack->AddParam("trans_id", "transId_" + std::to_string(RandomNum())); in WriteApiEndEventAsync()
43 appEventPack->AddParam("api_name", apiName); in WriteApiEndEventAsync()
44 appEventPack->AddParam("sdk_name", "PerformanceAnalysisKit"); in WriteApiEndEventAsync()
45 appEventPack->AddParam("begin_time", static_cast<int64_t>(beginTime)); in WriteApiEndEventAsync()
46 appEventPack->AddParam("end_time", static_cast<int64_t>(TimeUtil::GetMilliseconds())); in WriteApiEndEventAsync()
47 appEventPack->AddParam("result", result); in WriteApiEndEventAsync()
48 appEventPack->AddParam("error_code", errCode); in WriteApiEndEventAsync()
49 ffrt::submit([appEventPack]() { in WriteApiEndEventAsync()
50 WriteEvent(appEventPack); in WriteApiEndEventAsync()
[all...]
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/include/
H A Dhiappevent_write.h24 void WriteEvent(std::shared_ptr<AppEventPack> appEventPack);
25 int SetEventParam(std::shared_ptr<AppEventPack> appEventPack);
H A Dhiappevent_base.h227 friend int VerifyAppEvent(std::shared_ptr<AppEventPack> appEventPack);
/base/hiviewdfx/hiappevent/frameworks/cj/ffi/src/
H A Dhiappevent_impl.cpp86 void HiWriteEvent(std::shared_ptr<AppEventPack> appEventPack) in HiWriteEvent() argument
92 if (appEventPack == nullptr) { in HiWriteEvent()
93 LOGE("appEventPack is null."); in HiWriteEvent()
101 std::string event = appEventPack->GetEventStr(); in HiWriteEvent()
112 events.emplace_back(appEventPack); in HiWriteEvent()
120 int HiAppEventImpl::Write(std::shared_ptr<HiviewDFX::AppEventPack> appEventPack) in Write() argument
122 if (auto ret = VerifyAppEvent(appEventPack); ret != 0) { in Write()
126 HiWriteEvent(appEventPack); in Write()
/base/hiviewdfx/hiappevent/frameworks/js/napi/include/
H A Dnapi_hiappevent_write.h30 std::shared_ptr<AppEventPack> appEventPack; member
40 this->appEventPack = nullptr; in HiAppEventAsyncContext()
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
H A Dnapi_hiappevent_js_v9.cpp77 auto appEventPack = builder.BuildV9(env, params, paramNum); in Write() local
78 if (appEventPack == nullptr) { in Write()
79 HILOG_ERROR(LOG_CORE, "failed to build appEventPack."); in Write()
88 asyncContext->appEventPack = appEventPack; in Write()
95 if (auto ret = VerifyAppEvent(asyncContext->appEventPack); ret != 0) { in Write()
216 auto appEventPack = builder.BuildEventParam(env, params, paramNum); in SetEventParam() local
217 if (appEventPack == nullptr) { in SetEventParam()
218 HILOG_ERROR(LOG_CORE, "failed to build appEventPack."); in SetEventParam()
227 asyncContext->appEventPack in SetEventParam()
[all...]
H A Dnapi_hiappevent_write.cpp65 if (asyncContext->appEventPack != nullptr && asyncContext->result >= 0) { in Write()
66 WriteEvent(asyncContext->appEventPack); in Write()
111 if (asyncContext->appEventPack != nullptr && asyncContext->result == 0) { in SetEventParam()
112 if (auto ret = SetEventParam(asyncContext->appEventPack); ret > 0) { in SetEventParam()
H A Dnapi_hiappevent_js.cpp48 asyncContext->appEventPack = builder.Build(env, params, paramNum); in Write()
54 if (auto ret = VerifyAppEvent(asyncContext->appEventPack); ret != 0) { in Write()
/base/hiviewdfx/hiappevent/interfaces/native/inner_api/src/
H A Dapp_event.cpp87 auto appEventPack = event.eventPack_; in Write() local
88 ffrt::submit([appEventPack]() { in Write()
89 WriteEvent(appEventPack); in Write()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/
H A Dos_event_listener.cpp250 auto appEventPack = std::make_shared<AppEventPack>(); in GetAppEventPackFromJson() local
252 appEventPack->SetDomain(eventJson[DOMAIN_PROPERTY].asString()); in GetAppEventPackFromJson()
255 appEventPack->SetName(eventJson[NAME_PROPERTY].asString()); in GetAppEventPackFromJson()
258 appEventPack->SetType(eventJson[EVENT_TYPE_PROPERTY].asInt()); in GetAppEventPackFromJson()
263 appEventPack->SetRunningId(paramsJson[RUNNING_ID_PROPERTY].asString()); in GetAppEventPackFromJson()
266 appEventPack->SetParamStr(Json::FastWriter().write(paramsJson)); in GetAppEventPackFromJson()
268 return appEventPack; in GetAppEventPackFromJson()

Completed in 6 milliseconds