Home
last modified time | relevance | path

Searched refs:eventJson (Results 1 - 17 of 17) sorted by relevance

/base/hiviewdfx/hisysevent/frameworks/native/
H A Dhisysevent_json_decorator.cpp72 bool HiSysEventJsonDecorator::CheckAttrDecorationNeed(const Json::Value& eventJson, const std::string& key, in HiSysEventJsonDecorator() argument
75 auto ret = CheckAttrValidity(eventJson, key, standard); in HiSysEventJsonDecorator()
80 Validity HiSysEventJsonDecorator::CheckAttrValidity(const Json::Value& eventJson, const std::string& key, in HiSysEventJsonDecorator() argument
88 if (!eventJson[key].isArray() || eventJson[key].size() > standard[key][ARRY_SIZE].asUInt()) { in HiSysEventJsonDecorator()
91 ret = JudgeDataType(standard[key][TYPE].asString(), eventJson[key][0]); in HiSysEventJsonDecorator()
94 ret = JudgeDataType(standard[key][TYPE].asString(), eventJson[key]); in HiSysEventJsonDecorator()
113 bool HiSysEventJsonDecorator::CheckEventDecorationNeed(const Json::Value& eventJson, in HiSysEventJsonDecorator() argument
116 if (!isJsonRootValid_ || !jsonRoot_.isObject() || !eventJson.isObject()) { in HiSysEventJsonDecorator()
119 std::string domain = eventJson[INNER_BUILD_KEY in HiSysEventJsonDecorator()
169 Json::Value eventJson; HiSysEventJsonDecorator() local
223 JudgeDataType(const std::string &dataType, const Json::Value &eventJson) HiSysEventJsonDecorator() argument
[all...]
/base/hiviewdfx/hiview/base/event_publish/
H A Devent_publish.cpp227 void RemoveEventInternalField(Json::Value& eventJson) in RemoveEventInternalField() argument
229 if (eventJson[PARAM_PROPERTY].isMember(IS_BUSINESS_JANK)) { in RemoveEventInternalField()
230 eventJson[PARAM_PROPERTY].removeMember(IS_BUSINESS_JANK); in RemoveEventInternalField()
235 void WriteEventJson(Json::Value& eventJson, const std::string& filePath) in WriteEventJson() argument
237 RemoveEventInternalField(eventJson); in WriteEventJson()
238 std::string eventStr = Json::FastWriter().write(eventJson); in WriteEventJson()
240 HIVIEW_LOGE("failed to save event, eventName=%{public}s", eventJson[NAME_PROPERTY].asString().c_str()); in WriteEventJson()
243 HIVIEW_LOGI("save event finish, eventName=%{public}s", eventJson[NAME_PROPERTY].asString().c_str()); in WriteEventJson()
247 Json::Value& eventJson) in SaveEventAndLogToSandBox()
252 SendLogToSandBox(uid, eventName, sandBoxLogPath, eventJson[PARAM_PROPERT in SaveEventAndLogToSandBox()
246 SaveEventAndLogToSandBox(int32_t uid, const std::string& eventName, const std::string& bundleName, Json::Value& eventJson) SaveEventAndLogToSandBox() argument
259 SaveEventToTempFile(int32_t uid, Json::Value& eventJson) SaveEventToTempFile() argument
292 StartOverLimitThread(int32_t uid, const std::string& eventName, const std::string& bundleName, Json::Value& eventJson) StartOverLimitThread() argument
305 SendOverLimitEventToSandBox(int32_t uid, const std::string& eventName, const std::string& bundleName, Json::Value eventJson) SendOverLimitEventToSandBox() argument
392 Json::Value eventJson; PushEvent() local
[all...]
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/
H A Dos_event_listener.cpp241 Json::Value eventJson; in GetAppEventPackFromJson() local
243 if (!reader.parse(jsonStr, eventJson)) { in GetAppEventPackFromJson()
247 if (!eventJson.isObject()) { in GetAppEventPackFromJson()
251 if (eventJson.isMember(DOMAIN_PROPERTY) && eventJson[DOMAIN_PROPERTY].isString()) { in GetAppEventPackFromJson()
252 appEventPack->SetDomain(eventJson[DOMAIN_PROPERTY].asString()); in GetAppEventPackFromJson()
254 if (eventJson.isMember(NAME_PROPERTY) && eventJson[NAME_PROPERTY].isString()) { in GetAppEventPackFromJson()
255 appEventPack->SetName(eventJson[NAME_PROPERTY].asString()); in GetAppEventPackFromJson()
257 if (eventJson in GetAppEventPackFromJson()
[all...]
/base/hiviewdfx/hisysevent/frameworks/native/include/
H A Dhisysevent_json_decorator.h43 bool CheckAttrDecorationNeed(const Json::Value& eventJson, const std::string& key,
45 Validity CheckAttrValidity(const Json::Value& eventJson, const std::string& key,
48 bool CheckEventDecorationNeed(const Json::Value& eventJson, BaseInfoHandler baseJsonInfoHandler,
52 bool JudgeDataType(const std::string& dataType, const Json::Value& eventJson);
/base/hiviewdfx/hiview/plugins/unified_collector/app_trace/
H A Dapp_trace_context.cpp114 Json::Value eventJson; in InnerShareAppEvent() local
115 eventJson[UCollectUtil::APP_EVENT_PARAM_UID] = appCallerEvent->uid_; in InnerShareAppEvent()
116 eventJson[UCollectUtil::APP_EVENT_PARAM_PID] = appCallerEvent->pid_; in InnerShareAppEvent()
117 eventJson[UCollectUtil::APP_EVENT_PARAM_TIME] = appCallerEvent->happenTime_; in InnerShareAppEvent()
118 eventJson[UCollectUtil::APP_EVENT_PARAM_BUNDLE_NAME] = appCallerEvent->bundleName_; in InnerShareAppEvent()
119 eventJson[UCollectUtil::APP_EVENT_PARAM_BUNDLE_VERSION] = appCallerEvent->bundleVersion_; in InnerShareAppEvent()
120 eventJson[UCollectUtil::APP_EVENT_PARAM_BEGIN_TIME] = appCallerEvent->beginTime_; in InnerShareAppEvent()
121 eventJson[UCollectUtil::APP_EVENT_PARAM_END_TIME] = appCallerEvent->endTime_; in InnerShareAppEvent()
122 eventJson[UCollectUtil::APP_EVENT_PARAM_ISBUSINESSJANK] = appCallerEvent->isBusinessJank_; in InnerShareAppEvent()
125 eventJson[UCollectUti in InnerShareAppEvent()
184 Json::Value eventJson; PublishStackEvent() local
[all...]
/base/security/security_guard/test/fuzztest/obtaindata/requestsecurityeventinfoasync_fuzzer/
H A Drequest_security_event_info_async_fuzzer.cpp26 extern "C" int32_t RequestSecurityEventInfoAsync(const DeviceIdentify *devId, const char *eventJson,
43 std::string eventJson(reinterpret_cast<const char*>(data), size); in RequestSecurityEventInfoAsyncFuzzTest()
44 RequestSecurityEventInfoAsync(&deviceIdentify, eventJson.c_str(), RequestSecurityEventInfoCallBackFunc); in RequestSecurityEventInfoAsyncFuzzTest()
/base/security/security_guard/frameworks/common/obtaindata/src/
H A Dsg_obtaindata_client.cpp60 static int32_t RequestSecurityEventInfoAsyncImpl(const DeviceIdentify *devId, const char *eventJson, in RequestSecurityEventInfoAsyncImpl() argument
63 if (devId == nullptr || eventJson == nullptr || devId->length >= DEVICE_ID_MAX_LEN) { in RequestSecurityEventInfoAsyncImpl()
75 std::string eventList(eventJson); in RequestSecurityEventInfoAsyncImpl()
100 int32_t RequestSecurityEventInfoAsync(const DeviceIdentify *devId, const char *eventJson, in RequestSecurityEventInfoAsync() argument
103 return RequestSecurityEventInfoAsyncImpl(devId, eventJson, callback); in RequestSecurityEventInfoAsync()
/base/hiviewdfx/hiview/base/event_publish/include/
H A Devent_publish.h55 const std::string& bundleName, Json::Value& eventJson);
57 const std::string& bundleName, Json::Value eventJson);
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/
H A Djson_parser.cpp39 bool JsonParser::ParseJsonString(Json::Value& eventJson, const std::string& jsonStr) in ParseJsonString() argument
45 return reader->parse(jsonStr.data(), jsonStr.data() + jsonStr.size(), &eventJson, &err); in ParseJsonString()
48 bool JsonParser::CheckJsonValue(const Json::Value& eventJson, const std::vector<std::string>& fields) in CheckJsonValue() argument
51 if (!eventJson.isMember(field)) { in CheckJsonValue()
/base/security/security_guard/interfaces/inner_api/obtaindata/include/
H A Dsg_obtaindata_client.h26 int32_t RequestSecurityEventInfoAsync(const DeviceIdentify *devId, const char *eventJson,
/base/security/security_guard/interfaces/inner_api/collect/include/
H A Dsg_obtaindata_client.h26 int32_t RequestSecurityEventInfoAsync(const DeviceIdentify *devId, const char *eventJson,
/base/hiviewdfx/hiview/plugins/sysevent_source/
H A Devent_json_parser.cpp111 void EventJsonParser::InitEventInfoMapRef(const Json::Value& eventJson, JSON_VALUE_LOOP_HANDLER handler) const in InitEventInfoMapRef() argument
113 if (!eventJson.isObject()) { in InitEventInfoMapRef()
116 auto attrList = eventJson.getMemberNames(); in InitEventInfoMapRef()
123 handler(key, eventJson[key]); in InitEventInfoMapRef()
/base/security/security_guard/test/fuzztest/classify/requestsecuritymodelresultasync_fuzzer/
H A Drequest_security_model_result_async_fuzzer.cpp26 extern "C" int32_t RequestSecurityEventInfoAsync(const DeviceIdentify *devId, const char *eventJson,
/base/hiviewdfx/hiview/base/
H A Dsys_event.cpp55 void AppendJsonValue(std::string& eventJson, const std::string& key, T val) in AppendJsonValue() argument
57 if (eventJson.empty()) { in AppendJsonValue()
61 if (eventJson.find(findKey) != std::string::npos) { in AppendJsonValue()
71 eventJson.insert(eventJson.size() - 1, appendStr); // 1 for '}' in AppendJsonValue()
/base/security/security_guard/frameworks/common/classify/test/unittest/src/
H A Drisk_classify_kit_test.cpp29 int32_t RequestSecurityEventInfoAsync(const DeviceIdentify *devId, const char *eventJson,
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
H A Ddata_publisher.cpp172 std::string eventJson = event->AsJsonStr(); in HandleSubscribeTask() local
173 if (!FileUtil::SaveStringToFile(srcPath, eventJson + ",", true)) { in HandleSubscribeTask()
174 HIVIEW_LOGE("failed to persist eventJson to file."); in HandleSubscribeTask()
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
H A Dnapi_hisysevent_util.cpp775 Json::Value eventJson;
781 if (!reader->parse(jsonStr.data(), jsonStr.data() + jsonStr.size(), &eventJson, &errs)) {
784 if (!reader.parse(jsonStr, eventJson)) {
790 if (!eventJson.isObject()) {
797 auto eventNameList = eventJson.getMemberNames();
801 AppendBaseInfo(env, sysEventInfo, propertyName, eventJson[propertyName]);
803 AppendParamsInfo(env, params, propertyName, eventJson[propertyName]);

Completed in 12 milliseconds