Home
last modified time | relevance | path

Searched defs:jsonObj (Results 1 – 25 of 43) sorted by relevance

12

/base/security/security_guard/services/config_manager/src/
Dmodel_cfg_marshalling.cpp25 void from_json(const nlohmann::json &jsonObj, AppDetectionCfg &config) in from_json()
38 void from_json(const nlohmann::json &jsonObj, Field &field) in from_json()
55 void from_json(const nlohmann::json &jsonObj, Rule &rule) in from_json()
72 void from_json(const nlohmann::json &jsonObj, BuildInDetectionCfg &config) in from_json()
90 void to_json(json &jsonObj, const ModelCfg &modelCfg) in to_json()
118 void from_json(const json &jsonObj, ModelCfg &modelCfg) in from_json()
159 void to_json(json &jsonObj, const EventCfg &eventCfg) in to_json()
177 void from_json(const json &jsonObj, EventCfg &eventCfg) in from_json()
200 void to_json(json &jsonObj, const DataMgrCfgSt &dataMgrCfg) in to_json()
210 void from_json(const json &jsonObj, DataMgrCfgSt &dataMgrCfg) in from_json()
[all …]
Dmodel_config.cpp61 nlohmann::json jsonObj = nlohmann::json::parse(stream_, nullptr, false); in Parse() local
87 nlohmann::json jsonObj = nlohmann::json::parse(stream_, nullptr, false); in Update() local
110 bool ModelConfig::ParseModelConfig(std::vector<ModelCfg> &configs, nlohmann::json &jsonObj) in ParseModelConfig()
Devent_config.cpp67 nlohmann::json jsonObj = nlohmann::json::parse(stream_, nullptr, false); in Parse() local
93 nlohmann::json jsonObj = nlohmann::json::parse(stream_, nullptr, false); in Update() local
116 bool EventConfig::ParseEventConfig(std::vector<EventCfg> &configs, nlohmann::json &jsonObj) in ParseEventConfig()
Dglobal_app_config.cpp70 nlohmann::json jsonObj = nlohmann::json::parse(stream_, nullptr, false); in Update() local
/base/security/device_auth/common_lib/impl/src/
Djson_utils.c69 CJson *DuplicateJson(const CJson *jsonObj) in DuplicateJson()
77 void FreeJson(CJson *jsonObj) in FreeJson()
82 void DeleteItemFromJson(CJson *jsonObj, const char *key) in DeleteItemFromJson()
90 void DeleteAllItemExceptOne(CJson *jsonObj, const char *key) in DeleteAllItemExceptOne()
107 void DeleteAllItem(CJson *jsonObj) in DeleteAllItem()
122 CJson *DetachItemFromJson(CJson *jsonObj, const char *key) in DetachItemFromJson()
131 char *PackJsonToString(const CJson *jsonObj) in PackJsonToString()
146 int GetItemNum(const CJson *jsonObj) in GetItemNum()
162 CJson *GetObjFromJson(const CJson *jsonObj, const char *key) in GetObjFromJson()
195 const char *GetStringFromJson(const CJson *jsonObj, const char *key) in GetStringFromJson()
[all …]
/base/security/security_guard/test/unittest/data_collect/sa/
Dmodel_cfg_marshalling.h54 void from_json(const nlohmann::json &jsonObj, Field &field) {}; in from_json()
55 void from_json(const nlohmann::json &jsonObj, Rule &rule) {}; in from_json()
56 void from_json(const nlohmann::json &jsonObj, BuildInDetectionCfg &config) {}; in from_json()
57 void to_json(nlohmann::json &jsonObj, const ModelCfg &modelCfg) {}; in to_json()
58 void from_json(const nlohmann::json &jsonObj, ModelCfg &modelCfg) {}; in from_json()
59 void to_json(nlohmann::json &jsonObj, const EventCfg &eventCfg) {}; in to_json()
60 void from_json(const nlohmann::json &jsonObj, EventCfg &eventCfg) {}; in from_json()
61 void to_json(nlohmann::json &jsonObj, const DataMgrCfgSt &dataMgrCfg) {}; in to_json()
62 void from_json(const nlohmann::json &jsonObj, DataMgrCfgSt &dataMgrCfg) {}; in from_json()
63 void to_json(nlohmann::json &jsonObj, const SecEvent &eventDataSt) {}; in to_json()
[all …]
Dhiview_listener.h34 void filterInstallOrUpdateContent(int64_t eventId, nlohmann::json& jsonObj) {}; in filterInstallOrUpdateContent()
35 bool filterHashValue(nlohmann::json& jsonObj) { return false; }; in filterHashValue()
/base/security/security_guard/test/unittest/risk_classify/include/
Dmodel_cfg_marshalling.h55 void from_json(const nlohmann::json &jsonObj, Field &field) {}; in from_json()
56 void from_json(const nlohmann::json &jsonObj, Rule &rule) {}; in from_json()
57 void from_json(const nlohmann::json &jsonObj, BuildInDetectionCfg &config) {}; in from_json()
58 void to_json(nlohmann::json &jsonObj, const ModelCfg &modelCfg) {}; in to_json()
59 void from_json(const nlohmann::json &jsonObj, ModelCfg &modelCfg) {}; in from_json()
60 void to_json(nlohmann::json &jsonObj, const EventCfg &eventCfg) {}; in to_json()
61 void from_json(const nlohmann::json &jsonObj, EventCfg &eventCfg) {}; in from_json()
62 void to_json(nlohmann::json &jsonObj, const DataMgrCfgSt &dataMgrCfg) {}; in to_json()
63 void from_json(const nlohmann::json &jsonObj, DataMgrCfgSt &dataMgrCfg) {}; in from_json()
64 void to_json(nlohmann::json &jsonObj, const SecEvent &eventDataSt) {}; in to_json()
[all …]
/base/security/security_guard/frameworks/common/json/src/
Djson_cfg.cpp19 bool JsonCfg::Unmarshal(uint64_t &data, nlohmann::json jsonObj, std::string key) in Unmarshal()
26 bool JsonCfg::Unmarshal(int64_t &data, nlohmann::json jsonObj, std::string key) in Unmarshal()
33 bool JsonCfg::Unmarshal(uint32_t &data, nlohmann::json jsonObj, std::string key) in Unmarshal()
40 bool JsonCfg::Unmarshal(int32_t &data, nlohmann::json jsonObj, std::string key) in Unmarshal()
47 bool JsonCfg::Unmarshal(std::string &data, nlohmann::json jsonObj, std::string key) in Unmarshal()
54 bool JsonCfg::Unmarshal(std::vector<int32_t> &data, nlohmann::json jsonObj, std::string key) in Unmarshal()
67 bool JsonCfg::Unmarshal(std::vector<std::string> &data, nlohmann::json jsonObj, std::string key) in Unmarshal()
80 bool JsonCfg::Unmarshal(std::vector<int64_t> &data, nlohmann::json jsonObj, std::string key) in Unmarshal()
/base/security/device_auth/test/unittest/deviceauth/source/
Djson_utils_mock.c98 CJson *DuplicateJson(const CJson *jsonObj) in DuplicateJson()
109 void FreeJson(CJson *jsonObj) in FreeJson()
114 void DeleteItemFromJson(CJson *jsonObj, const char *key) in DeleteItemFromJson()
122 void DeleteAllItemExceptOne(CJson *jsonObj, const char *key) in DeleteAllItemExceptOne()
139 void DeleteAllItem(CJson *jsonObj) in DeleteAllItem()
154 CJson *DetachItemFromJson(CJson *jsonObj, const char *key) in DetachItemFromJson()
163 char *PackJsonToString(const CJson *jsonObj) in PackJsonToString()
179 int GetItemNum(const CJson *jsonObj) in GetItemNum()
195 CJson *GetObjFromJson(const CJson *jsonObj, const char *key) in GetObjFromJson()
228 const char *GetStringFromJson(const CJson *jsonObj, const char *key) in GetStringFromJson()
[all …]
/base/security/security_guard/test/unittest/config_manager/src/
Dsecurity_guard_config_manager_test.cpp754 nlohmann::json jsonObj { variable
1068 nlohmann::json jsonObj { variable
1100 nlohmann::json jsonObj { variable
1128 nlohmann::json jsonObj; variable
1135 nlohmann::json jsonObj; variable
1143 nlohmann::json jsonObj; variable
1151 nlohmann::json jsonObj; variable
1160 nlohmann::json jsonObj; variable
1170 nlohmann::json jsonObj; variable
1181 nlohmann::json jsonObj; variable
[all …]
/base/security/security_guard/test/unittest/security_collector/include/
Dcollector_cfg_marshalling.h27 void to_json(nlohmann::json &jsonObj, const ModuleCfgSt &moduleCfgSt) {}; in to_json()
28 void from_json(const nlohmann::json &jsonObj, ModuleCfgSt &moduleCfgSt) {}; in from_json()
/base/security/appverify/interfaces/innerkits/appverify_lite/src/
Dapp_provision.c43 cJSON *jsonObj = cJSON_GetObjectItem(root, tag); in GetStringTag() local
83 cJSON *jsonObj = cJSON_GetObjectItem(root, tag); in GetStringArrayTag() local
130 cJSON *jsonObj = cJSON_GetObjectItem(root, "validity"); in GetProfValidity() local
154 cJSON *jsonObj = cJSON_GetObjectItem(root, "bundle-info"); in GetProfBundleInfo() local
190 cJSON *jsonObj = cJSON_GetObjectItem(root, "permissions"); in GetProfPermission() local
202 cJSON *jsonObj = cJSON_GetObjectItem(root, "debug-info"); in GetProfDebugInfo() local
298 cJSON *jsonObj = cJSON_GetObjectItem(root, "version-code"); in ParseProfile() local
/base/security/security_guard/services/security_collector/src/
Dcollector_cfg_marshalling.cpp23 void to_json(json &jsonObj, const ModuleCfgSt &moduleCfg) in to_json()
38 void from_json(const json &jsonObj, ModuleCfgSt &moduleCfg) in from_json()
/base/security/security_guard/frameworks/common/json/include/
Djson_cfg.h43 static bool Unmarshal(T &data, nlohmann::json jsonObj, std::string key) in Unmarshal()
51 static bool Unmarshal(std::vector<T> &data, nlohmann::json jsonObj, std::string key) in Unmarshal()
/base/security/security_guard/services/risk_collect/src/
Ddata_format.cpp38 nlohmann::json jsonObj = nlohmann::json::parse(content, nullptr, false); in CheckRiskContent() local
48 nlohmann::json jsonObj = nlohmann::json::parse(conditions, nullptr, false); in ParseConditions() local
/base/security/dlp_permission_service/frameworks/test/mock/
Ddlp_permission_kit.cpp34 unordered_json jsonObj; in GenerateDlpCertificate() local
48 auto jsonObj = nlohmann::json::parse(encJsonStr, nullptr, false); in ParseDlpCertificate() local
/base/powermgr/battery_manager/charger/src/
Danimation_config.cpp129 void AnimationConfig::ParseAnimationConfig(nlohmann::json& jsonObj) in ParseAnimationConfig()
144 void AnimationConfig::ParseLackPowerChargingConfig(nlohmann::json& jsonObj) in ParseLackPowerChargingConfig()
157 void AnimationConfig::ParseLackPowerNotChargingConfig(nlohmann::json& jsonObj) in ParseLackPowerNotChargingConfig()
/base/security/dlp_permission_service/interfaces/inner_api/dlp_permission/src/
Ddlp_permission_public_interface.cpp32 static bool checkParams(GenerateInfoParams& params, nlohmann::json jsonObj, std::string versionKey,… in checkParams()
76 auto jsonObj = nlohmann::json::parse(generalInfo, nullptr, false); in ParseDlpGeneralInfo() local
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/common/
Ddas_version_util.c126 int32_t AddSingleVersionToJson(CJson *jsonObj, const VersionStruct *version) in AddSingleVersionToJson()
150 int32_t GetSingleVersionFromJson(const CJson* jsonObj, VersionStruct *version) in GetSingleVersionFromJson()
180 int32_t GetVersionFromJson(const CJson* jsonObj, VersionStruct *minVer, VersionStruct *maxVer) in GetVersionFromJson()
200 int32_t AddVersionToJson(CJson *jsonObj, const VersionStruct *minVer, const VersionStruct *maxVer) in AddVersionToJson()
/base/notification/common_event_service/test/systemtest/common/resource/
DtestConfigParser.h53 nlohmann::json jsonObj; in ParseFromFile4StressTest() local
/base/security/security_guard/services/data_collect/collect/hiview/
Dhiview_listener.cpp94 void HiviewListener::filterInstallOrUpdateContent(int64_t eventId, nlohmann::json& jsonObj) in filterInstallOrUpdateContent()
111 bool HiviewListener::filterHashValue(nlohmann::json& jsonObj) in filterHashValue()
/base/hiviewdfx/hiview/plugins/sysevent_source/
Devent_json_parser.cpp92 bool EventJsonParser::HasIntMember(const Json::Value& jsonObj, const std::string& name) const in HasIntMember() argument
97 bool EventJsonParser::HasStringMember(const Json::Value& jsonObj, const std::string& name) const in HasStringMember() argument
102 bool EventJsonParser::HasBoolMember(const Json::Value& jsonObj, const std::string& name) const in HasBoolMember() argument
/base/account/os_account/test/systemtest/common/resource/fuzzTest/include/
Dfuzz_config_parser.h49 nlohmann::json jsonObj = nlohmann::json::parse(fin, nullptr, false); in ParseFromFile4FuzzTest() local
/base/security/security_guard/services/risk_classify/src/
Drisk_analysis_model.cpp32 nlohmann::json jsonObj = nlohmann::json::parse(data.content, nullptr, false); in RiskAnalysis() local

12