| /base/security/security_guard/services/config_manager/src/ |
| D | model_cfg_marshalling.cpp | 25 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 …]
|
| D | model_config.cpp | 61 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()
|
| D | event_config.cpp | 67 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()
|
| D | global_app_config.cpp | 70 nlohmann::json jsonObj = nlohmann::json::parse(stream_, nullptr, false); in Update() local
|
| /base/security/device_auth/common_lib/impl/src/ |
| D | json_utils.c | 69 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/ |
| D | model_cfg_marshalling.h | 54 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 …]
|
| D | hiview_listener.h | 34 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/ |
| D | model_cfg_marshalling.h | 55 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/ |
| D | json_cfg.cpp | 19 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/ |
| D | json_utils_mock.c | 98 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/ |
| D | security_guard_config_manager_test.cpp | 754 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/ |
| D | collector_cfg_marshalling.h | 27 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/ |
| D | app_provision.c | 43 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/ |
| D | collector_cfg_marshalling.cpp | 23 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/ |
| D | json_cfg.h | 43 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/ |
| D | data_format.cpp | 38 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/ |
| D | dlp_permission_kit.cpp | 34 unordered_json jsonObj; in GenerateDlpCertificate() local 48 auto jsonObj = nlohmann::json::parse(encJsonStr, nullptr, false); in ParseDlpCertificate() local
|
| /base/powermgr/battery_manager/charger/src/ |
| D | animation_config.cpp | 129 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/ |
| D | dlp_permission_public_interface.cpp | 32 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/ |
| D | das_version_util.c | 126 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/ |
| D | testConfigParser.h | 53 nlohmann::json jsonObj; in ParseFromFile4StressTest() local
|
| /base/security/security_guard/services/data_collect/collect/hiview/ |
| D | hiview_listener.cpp | 94 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/ |
| D | event_json_parser.cpp | 92 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/ |
| D | fuzz_config_parser.h | 49 nlohmann::json jsonObj = nlohmann::json::parse(fin, nullptr, false); in ParseFromFile4FuzzTest() local
|
| /base/security/security_guard/services/risk_classify/src/ |
| D | risk_analysis_model.cpp | 32 nlohmann::json jsonObj = nlohmann::json::parse(data.content, nullptr, false); in RiskAnalysis() local
|