Home
last modified time | relevance | path

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

123456

/ohos5.0/base/security/security_guard/services/config_manager/src/
H A 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()
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()
218 void to_json(json &jsonObj, const SecEvent &eventDataSt) in to_json()
[all …]
H A 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()
H A 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()
/ohos5.0/foundation/distributedhardware/distributed_screen/common/src/
H A Ddscreen_json_util.cpp23 bool IsString(const nlohmann::json &jsonObj, const std::string &key) in IsString()
32 bool IsUInt8(const nlohmann::json &jsonObj, const std::string &key) in IsUInt8()
41 bool IsInt32(const nlohmann::json &jsonObj, const std::string &key) in IsInt32()
51 bool IsUInt32(const nlohmann::json &jsonObj, const std::string &key) in IsUInt32()
60 bool IsInt64(const nlohmann::json &jsonObj, const std::string &key) in IsInt64()
70 bool IsUInt64(const nlohmann::json &jsonObj, const std::string &key) in IsUInt64()
79 bool IsFloat(const nlohmann::json &jsonObj, const std::string &key) in IsFloat()
88 bool IsArray(const nlohmann::json &jsonObj, const std::string &key) in IsArray()
97 bool IsBool(const nlohmann::json &jsonObj, const std::string &key) in IsBool()
/ohos5.0/base/security/security_guard/frameworks/common/json/src/
H A 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()
/ohos5.0/base/security/security_guard/test/unittest/data_collect/sa/
H A 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 …]
H A Dhiview_listener.h34 void filterInstallOrUpdateContent(int64_t eventId, nlohmann::json& jsonObj) {}; in filterInstallOrUpdateContent()
35 bool filterHashValue(nlohmann::json& jsonObj) { return false; }; in filterHashValue()
/ohos5.0/base/security/security_guard/test/unittest/risk_classify/include/
H A 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 …]
/ohos5.0/base/security/device_auth/common_lib/impl/src/
H A 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()
494 int32_t AddIntToJson(CJson *jsonObj, const char *key, int value) in AddIntToJson()
[all …]
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/include/report/
H A Djson_utils.h27 bool IsValid(const nlohmann::json &jsonObj) in IsValid()
37 nlohmann::json jsonObj = nlohmann::json::parse(jsonStr, nullptr, false); in Parse() local
45 bool IsExists(const nlohmann::json &jsonObj, const std::string &key) in IsExists()
68 std::vector<nlohmann::json> GetArray(const nlohmann::json &jsonObj, const std::string &key) in GetArray()
/ohos5.0/base/security/device_auth/test/unittest/deviceauth/source/
H A 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()
527 int32_t AddIntToJson(CJson *jsonObj, const char *key, int value) in AddIntToJson()
[all …]
/ohos5.0/foundation/distributedhardware/device_manager/test/commonunittest/
H A DUTTest_dm_anonymous.cpp185 nlohmann::json jsonObj = nlohmann::json::parse(str, nullptr, false); variable
203 nlohmann::json jsonObj = nlohmann::json::parse(str, nullptr, false); variable
221 nlohmann::json jsonObj = nlohmann::json::parse(str, nullptr, false); variable
239 nlohmann::json jsonObj = nlohmann::json::parse(str, nullptr, false); variable
257 nlohmann::json jsonObj = nlohmann::json::parse(str, nullptr, false); variable
275 nlohmann::json jsonObj = nlohmann::json::parse(str, nullptr, false); variable
293 nlohmann::json jsonObj = nlohmann::json::parse(str, nullptr, false); variable
324 nlohmann::json jsonObj = nlohmann::json::parse(str, nullptr, false); variable
344 nlohmann::json jsonObj = nlohmann::json::parse(str, nullptr, false); variable
364 nlohmann::json jsonObj = nlohmann::json::parse(str, nullptr, false); variable
[all …]
/ohos5.0/foundation/multimedia/av_session/services/session/server/remote/
H A Djson_utils.cpp74 bool JsonUtils::IsInt32(const json& jsonObj, const std::string& key) in IsInt32()
84 bool JsonUtils::IsString(const json& jsonObj, const std::string& key) in IsString()
93 bool JsonUtils::IsBool(const json& jsonObj, const std::string& key) in IsBool()
106 json jsonObj = json::parse(jsonCapability, nullptr, false); in GetVectorCapability() local
137 json jsonObj; in SetSessionBasicInfo() local
166 json jsonObj = json::parse(sessionInfo, nullptr, false); in GetSessionBasicInfo() local
209 json jsonObj; in SetSessionDescriptors() local
232 json jsonObj = json::parse(sessionInfo, nullptr, false); in GetSessionDescriptors() local
260 json jsonObj; in SetSessionDescriptor() local
281 json jsonObj = json::parse(sessionInfo, nullptr, false); in GetSessionDescriptor() local
/ohos5.0/foundation/distributedhardware/device_manager/test/unittest/
H A DUTTest_auth_message_processor.cpp128 nlohmann::json jsonObj; variable
166 nlohmann::json jsonObj; variable
193 nlohmann::json jsonObj; variable
232 nlohmann::json jsonObj; variable
256 nlohmann::json jsonObj; variable
277 nlohmann::json jsonObj; variable
703 nlohmann::json jsonObj; variable
731 nlohmann::json jsonObj; variable
759 nlohmann::json jsonObj; variable
787 nlohmann::json jsonObj; variable
[all …]
/ohos5.0/drivers/external_device_manager/services/native/driver_extension_manager/src/drivers_pkg_manager/
H A Ddriver_info.cpp48 static bool IsJsonObjValid(const cJSON *jsonObj, const string &member) in IsJsonObjValid()
64 static int32_t checkJsonObj(const cJSON *jsonObj) in checkJsonObj()
78 static std::string GetStringValue(const cJSON *jsonObj, const std::string &key) in GetStringValue()
93 cJSON* jsonObj = cJSON_Parse(str.c_str()); in UnSerialize() local
/ohos5.0/base/security/security_guard/test/unittest/config_manager/src/
H A Dsecurity_guard_config_manager_test.cpp1128 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
1193 nlohmann::json jsonObj; variable
1205 nlohmann::json jsonObj; variable
1217 nlohmann::json jsonObj; variable
[all …]
/ohos5.0/base/security/security_guard/test/unittest/security_collector/include/
H A 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()
/ohos5.0/foundation/resourceschedule/background_task_mgr/services/common/src/
H A Dbgtask_config.cpp45 nlohmann::json jsonObj; in LoadConfigFile() local
56 void BgtaskConfig::ParseTransientTaskExemptedQuatoList(const nlohmann::json &jsonObj) in ParseTransientTaskExemptedQuatoList()
80 const nlohmann::json &jsonObj = nlohmann::json::parse(configData, nullptr, false); in AddExemptedQuatoData() local
119 bool BgtaskConfig::SetCloudConfigParam(const nlohmann::json &jsonObj) in SetCloudConfigParam()
159 void BgtaskConfig::ParseTransientTaskExemptedQuato(const nlohmann::json &jsonObj) in ParseTransientTaskExemptedQuato()
/ohos5.0/foundation/distributedhardware/device_manager/common/src/
H A Ddm_anonymous.cpp84 bool IsString(const nlohmann::json &jsonObj, const std::string &key) in IsString()
93 bool IsInt32(const nlohmann::json &jsonObj, const std::string &key) in IsInt32()
103 bool IsUint32(const nlohmann::json &jsonObj, const std::string &key) in IsUint32()
113 bool IsInt64(const nlohmann::json &jsonObj, const std::string &key) in IsInt64()
123 bool IsArray(const nlohmann::json &jsonObj, const std::string &key) in IsArray()
132 bool IsBool(const nlohmann::json &jsonObj, const std::string &key) in IsBool()
145 nlohmann::json jsonObj; in ConvertMapToJsonString() local
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify_lite/src/
H A 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
/ohos5.0/base/security/security_guard/services/security_collector/src/
H A 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()
/ohos5.0/base/security/security_guard/frameworks/common/json/include/
H A 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()
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/utils/src/
H A Ddh_utils_tool.cpp165 bool IsUInt8(const cJSON* jsonObj, const std::string& key) in IsUInt8()
174 bool IsUInt16(const cJSON* jsonObj, const std::string& key) in IsUInt16()
183 bool IsInt32(const cJSON* jsonObj, const std::string& key) in IsInt32()
192 bool IsUInt32(const cJSON* jsonObj, const std::string& key) in IsUInt32()
201 bool IsBool(const cJSON* jsonObj, const std::string& key) in IsBool()
207 bool IsString(const cJSON* jsonObj, const std::string& key) in IsString()
216 bool IsArray(const cJSON* jsonObj, const std::string& key) in IsArray()
/ohos5.0/base/security/security_guard/services/risk_collect/src/
H A 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
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/src/dependency/hichain/
H A Dhichain_auth_connector.cpp103 nlohmann::json jsonObj; in onRequest() local
157 nlohmann::json jsonObj; in GenerateCredential() local
190 nlohmann::json jsonObj; in QueryCredential() local
221 nlohmann::json jsonObj; in GetCredential() local
253 nlohmann::json jsonObj; in ImportCredential() local
285 nlohmann::json jsonObj; in DeleteCredential() local

123456