Home
last modified time | relevance | path

Searched defs:json (Results 1 – 25 of 130) sorted by relevance

123456

/base/powermgr/power_manager/test/unittest/src/
Dpower_config_parse_test.cpp161 const std::string json = R"({"lid": {"action": 1, "delayMs": 2}})"; variable
194 std::string json = ""; variable
205 std::string json = R"("this is a string")"; variable
216 std::string json = R"({invalid:json)"; variable
227 std::string json = R"({"10": 100, "20": 200, "30": 300})"; variable
242 std::string json = R"({"abc": 100, "10x": 200})"; variable
256 std::string json = R"({"22222222222222222222222222": 100, "10x": 200})"; variable
267 std::string json = R"({"10": "100", "20": "200", "30": "300"})"; variable
280 std::string json(""); variable
291 std::string json("[]"); variable
[all …]
/base/security/security_component_manager/frameworks/security_component/src/
Dsec_comp_base.cpp83 bool SecCompBase::ParseNonCompatibleChange(const nlohmann::json& json) in ParseNonCompatibleChange()
117 bool SecCompBase::ParseDimension(const nlohmann::json& json, const std::string& tag, DimensionT& re… in ParseDimension()
128 bool SecCompBase::ParseColor(const nlohmann::json& json, const std::string& tag, SecCompColor& res) in ParseColor()
139 bool SecCompBase::ParseBool(const nlohmann::json& json, const std::string& tag, bool& res) in ParseBool()
150 bool SecCompBase::ParseString(const nlohmann::json& json, const std::string& tag, std::string& res) in ParseString()
161 bool SecCompBase::ParsePadding(const nlohmann::json& json, const std::string& tag, PaddingSize& res) in ParsePadding()
184 bool SecCompBase::ParseBorderRadius(const nlohmann::json& json, const std::string& tag, BorderRadiu… in ParseBorderRadius()
207 bool SecCompBase::ParseColors(const nlohmann::json& json, const std::string& tag) in ParseColors()
226 bool SecCompBase::ParseBorders(const nlohmann::json& json, const std::string& tag) in ParseBorders()
236 bool SecCompBase::ParseSize(const nlohmann::json& json, const std::string& tag) in ParseSize()
[all …]
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/creds_manager/
Dcreds_manager_test.cpp127 CJson *json = CreateJson(); in OnBindRequest() local
139 CJson *json = CreateJson(); in OnAuthRequest() local
372 CJson *json = CreateJson(); in CreateDemoIdenticalAccountGroup() local
400 CJson *json = CreateJson(); in CreateClientSymIdenticalAccountGroup() local
428 CJson *json = CreateJson(); in CreateServerSymIdenticalAccountGroup() local
607 CJson *json = CreateJson(); variable
615 CJson *json = CreateJson(); variable
626 CJson *json = CreateJson(); variable
636 CJson *json = CreateJson(); variable
648 CJson *json = CreateJson(); variable
[all …]
/base/hiviewdfx/hisysevent/frameworks/native/
Djson_flatten_parser.cpp51 JsonFlattenParser::JsonFlattenParser(const std::string& json) in JsonFlattenParser()
57 void JsonFlattenParser::Parse(const std::string& json) in Parse()
74 std::string json = "{"; in Print() local
85 std::string JsonFlattenParser::ParseKey(const std::string& json) in ParseKey()
100 std::string JsonFlattenParser::ParseValue(const std::string& json) in ParseValue()
131 std::string JsonFlattenParser::ParseNumer(const std::string& json) in ParseNumer()
144 std::string JsonFlattenParser::ParseString(const std::string& json) in ParseString()
160 std::string JsonFlattenParser::ParseBrackets(const std::string& json, char leftBracket) in ParseBrackets()
/base/security/device_auth/test/fuzztest/creds_manager/credsmanager_fuzzer/
Dcredsmanager_fuzzer.cpp123 CJson *json = CreateJson(); in OnBindRequest() local
135 CJson *json = CreateJson(); in OnAuthRequest() local
370 CJson *json = CreateJson(); in CreateDemoIdenticalAccountGroup() local
396 CJson *json = CreateJson(); in CreateClientSymIdenticalAccountGroup() local
419 CJson *json = CreateJson(); in CreateServerSymIdenticalAccountGroup() local
566 CJson *json = CreateJson(); in CredsManagerTest01() local
576 CJson *json = CreateJson(); in CredsManagerTest02() local
586 CJson *json = CreateJson(); in CredsManagerTest03() local
595 CJson *json = CreateJson(); in CredsManagerTest04() local
606 CJson *json = CreateJson(); in CredsManagerTest05() local
[all …]
/base/hiviewdfx/hiview/base/utility/
Dcjson_util.cpp36 int64_t GetIntValue(const cJSON* json, const std::string& key, int64_t defaultValue) in GetIntValue()
48 double GetDoubleValue(cJSON* json, const std::string& key, double defaultValue) in GetDoubleValue()
60 std::string GetStringValue(cJSON* json, const std::string& key) in GetStringValue()
72 void GetStringArray(cJSON* json, const std::string& key, std::vector<std::string>& dest) in GetStringArray()
94 cJSON* GetObjectValue(const cJSON* json, const std::string& key) in GetObjectValue()
106 cJSON* GetArrayValue(const cJSON* json, const std::string& key) in GetArrayValue()
118 bool GetBoolValue(const cJSON* json, const std::string& key, bool& value) in GetBoolValue()
/base/hiviewdfx/faultloggerd/tools/process_dump/
Dprocess_dump_config.cpp57 std::string GetStringValueFromJson(const cJSON* json, std::string defaultValue = "") in GetStringValueFromJson()
65 int32_t GetInt32ValueFromJson(const cJSON* json, int32_t defaultValue = 0) in GetInt32ValueFromJson()
73 bool GetBoolValueFromJson(const cJSON* json, bool defaultValue = false) in GetBoolValueFromJson()
81 void ParseDumpInfoConfig(const cJSON* json, DumpConfig& dumpConfig) in ParseDumpInfoConfig()
107 void ParseConfig(const cJSON* json, DumpConfig& dumpConfig) in ParseConfig()
139 cJSON* json = cJSON_Parse(content.c_str()); in ProcessDumpConfig() local
/base/msdp/device_status/utils/json_parser/src/
Djson_parser.cpp68 bool JsonParser::IsInteger(const cJSON *json) in IsInteger()
76 int32_t JsonParser::ParseInt32(const cJSON *json, const std::string &key, int32_t &value) in ParseInt32()
97 int32_t JsonParser::ParseString(const cJSON *json, const std::string &key, std::string &value) in ParseString()
109 int32_t JsonParser::ParseBool(const cJSON *json, const std::string &key, bool &value) in ParseBool()
121 int32_t JsonParser::ParseStringArray(const cJSON *json, const std::string &key, std::vector<std::st… in ParseStringArray()
/base/security/appverify/interfaces/innerkits/appverify/src/init/
Djson_parser_utils.cpp55 bool JsonParserUtils::GetJsonString(const cJSON* json, const std::string& key, std::string& value) in GetJsonString()
67 bool JsonParserUtils::GetJsonInt(const cJSON* json, const std::string& key, int& value) in GetJsonInt()
79 bool JsonParserUtils::GetJsonStringVec(const cJSON* json, const std::string& key, StringVec& value) in GetJsonStringVec()
97 bool JsonParserUtils::ParseJsonToObjVec(const cJSON* json, const std::string& key, JsonObjVec& json… in ParseJsonToObjVec()
115 void JsonParserUtils::ParseJsonToMap(const cJSON* json, JsonMap& jsonMap) in ParseJsonToMap()
/base/startup/appspawn/util/include/
Djson_utils.h34 __attribute__((always_inline)) inline char *GetStringFromJsonObj(const cJSON *json, const char *key) in GetStringFromJsonObj()
44 __attribute__((always_inline)) inline bool GetBoolValueFromJsonObj(const cJSON *json, const char *k… in GetBoolValueFromJsonObj()
55 __attribute__((always_inline)) inline uint32_t GetIntValueFromJsonObj(const cJSON *json, const char… in GetIntValueFromJsonObj()
/base/startup/appspawn/service/hnp/base/
Dhnp_json.c73 static int ParseJsonStreamToHnpCfgInfo(cJSON *json, HnpCfgInfo *hnpCfg) in ParseJsonStreamToHnpCfgInfo()
127 cJSON *json; in ParseHnpCfgFile() local
149 cJSON *json; in HnpCfgGetFromSteam() local
182 static bool HnpInstallHapExistCheck(const char *hnpPackageName, cJSON *json, cJSON **hapItemOut, in… in HnpInstallHapExistCheck()
228 static void HnpPackageVersionUpdateAll(cJSON *json, const HnpCfgInfo *hnpCfg) in HnpPackageVersionUpdateAll()
252 static int HnpHapJsonWrite(cJSON *json) in HnpHapJsonWrite()
277 static int HnpHapJsonHnpAdd(bool hapExist, cJSON *json, cJSON *hapItem, const char *hnpPackageName, in HnpHapJsonHnpAdd()
335 cJSON *json = NULL; in HnpInstallInfoJsonWrite() local
382 …l HnpOtherPackageInstallCheck(const char *name, const char *version, int packageIndex, cJSON *json) in HnpOtherPackageInstallCheck()
442 cJSON *json = cJSON_Parse(infoStream); in HnpPackageJsonGet() local
[all …]
/base/hiviewdfx/hiview/plugins/freeze_detector/test/moduletest/common/
Dfreeze_detector_plugin_module_test.cpp94 std::string json = "{\"MSG\":\"UI_BLOCK_6S\",\"PID\":1669,\"UID\":2208," variable
125 std::string json = "{\"MSG\":\"UI_BLOCK_3S\",\"PID\":1669,\"UID\":2208," variable
157 std::string json = "{\"MSG\":\"TRANSPARENT_WINDOWS, isFault = true\",\"PID\":1669,\"UID\":2208," variable
181 std::string json = "{\"MSG\":\"UI_BLOCK_6S\",\"PID\":1669,\"UID\":2208," variable
/base/powermgr/display_manager/brightness_manager/test/unittest/src/
Dbrightness_config_parse_test.cpp466 const std::string json = R"({"lid": {"action": 1, "delayMs": 2}})"; variable
497 const std::string json = R"({"defaultBrightness": 2})"; variable
519 const std::string json = R"({"test": 2})"; variable
530 const std::string json = R"([{"name":"A", "value":123}, []])"; variable
541 std::string json = R"([{"name":"A", "value":123}, {"name":"B", "value":456}])"; variable
573 const std::string json = R"({"isLevelEnable": "11", "thresholdMode": "12"})"; variable
584 std::string json = R"({"isLevelEnable": true, "thresholdMode": [{"name":"A", "value":123}, variable
596 … std::string json = R"({"isLevelEnable": true, "thresholdMode": [{"name":"A", "value":123}, []]})"; variable
620 const std::string json = R"({"test": 2})"; variable
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
Dnotification_local_live_view_content_test.cpp320 nlohmann::json json; variable
342 nlohmann::json json; variable
365 nlohmann::json json; variable
388 nlohmann::json json; variable
408 nlohmann::json json; variable
430 nlohmann::json json; variable
/base/hiviewdfx/faultloggerd/services/
Dfault_logger_config.cpp42 std::string GetStringValueFromJson(const cJSON* json, std::string defaultValue = "") in GetStringValueFromJson()
50 int32_t GetInt32ValueFromJson(const cJSON* json, int32_t defaultValue = 0) in GetInt32ValueFromJson()
86 void ParseDirectoryConfig(const cJSON* json, DirectoryConfig& directoryConfig) in ParseDirectoryConfig()
158 cJSON* json = cJSON_Parse(content.c_str()); in FaultLoggerConfig() local
/base/sensors/miscdevice/utils/common/src/
Djson_parser.cpp53 bool JsonParser::HasObjectItem(cJSON *json, const std::string &key) const in HasObjectItem()
63 cJSON *JsonParser::GetObjectItem(cJSON *json, const std::string &key) const in GetObjectItem()
81 int32_t JsonParser::ParseJsonArray(cJSON *json, const std::string &key, in ParseJsonArray()
116 cJSON *JsonParser::GetArrayItem(cJSON *json, int32_t index) const in GetArrayItem()
/base/security/device_auth/services/identity_service/src/
Didentity_operation.c458 static int32_t SetMethodFromJson(CJson *json, uint8_t *method) in SetMethodFromJson()
476 static int32_t SetCredType(Credential *credential, CJson *json) in SetCredType()
492 static int32_t SetKeyFormat(Credential *credential, CJson *json, uint8_t method) in SetKeyFormat()
519 static int32_t SetAuthorizedScope(Credential *credential, CJson *json) in SetAuthorizedScope()
534 static int32_t SetAlgorithmType(Credential *credential, CJson *json) in SetAlgorithmType()
549 static int32_t SetSubject(Credential *credential, CJson *json) in SetSubject()
564 static int32_t SetIssuer(Credential *credential, CJson *json) in SetIssuer()
581 static int32_t SetDeviceId(Credential *credential, CJson *json) in SetDeviceId()
595 static int32_t SetCredOwner(Credential *credential, CJson *json) in SetCredOwner()
609 static int32_t SetProofType(Credential *credential, CJson *json) in SetProofType()
[all …]
/base/security/device_auth/test/unittest/deviceauth/source/
Ddeviceauth_func_test.cpp140 CJson *json = CreateJson(); in OnBindRequest() local
152 CJson *json = CreateJson(); in OnBindRequestMismatch() local
164 CJson *json = CreateJson(); in OnBindRequest1() local
175 CJson *json = CreateJson(); in OnBindRequest2() local
187 CJson *json = CreateJson(); in OnAuthRequest() local
199 CJson *json = CreateJson(); in OnRejectRequest() local
219 CJson *json = CreateJson(); in OnInvalidRequest1() local
230 CJson *json = CreateJson(); in OnInvalidRequest2() local
242 CJson *json = CreateJson(); in OnInvalidRequest3() local
253 CJson *json = CreateJson(); in OnInvalidRequest4() local
[all …]
Dcreds_manager_test.cpp92 CJson *json = CreateJson(); variable
114 CJson *json = CreateJson(); variable
160 CJson *json = CreateJson(); variable
Dp2p_bind_ipc_test.cpp121 CJson *json = CreateJson(); in OnAuthRequestDirectTmp() local
132 CJson *json = CreateJson(); in OnAuthRequestDirect() local
195 CJson *json = CreateJson(); in CreateServerKeyPair() local
229 CJson *json = CreateJson(); in DeleteServerKeyPair() local
261 CJson *json = CreateJson(); in ProcessCredentialDemo() local
282 CJson *json = CreateJson(); in ProcessCredentialDemoImport() local
/base/startup/appspawn/test/unittest/app_spawn_standard_test/
Dapp_spawn_module_interface_test.cpp351 cJSON *json = GetJsonObjFromFile("/etc/sandbox/appdata-sandbox.json"); variable
369 cJSON *json = cJSON_Parse(buffer.c_str()); variable
393 cJSON *json = cJSON_Parse(buffer.c_str()); variable
416 cJSON *json = cJSON_Parse(buffer.c_str()); variable
/base/security/device_auth/services/data_manager/cred_data_manager/src/
Dcredential_data_manager.c783 static int32_t AddCredIdToReturn(const Credential *credInfo, CJson *json) in AddCredIdToReturn()
798 static int32_t AddCredTypeToReturn(const Credential *credInfo, CJson *json) in AddCredTypeToReturn()
809 static int32_t AddUserIdToReturn(const Credential *credInfo, CJson *json) in AddUserIdToReturn()
823 static int32_t AddSubjectToReturn(const Credential *credInfo, CJson *json) in AddSubjectToReturn()
833 static int32_t AddIssuerToReturn(const Credential *credInfo, CJson *json) in AddIssuerToReturn()
843 static int32_t AddKeyFormatToReturn(const Credential *credInfo, CJson *json) in AddKeyFormatToReturn()
853 static int32_t AddProofTypeToReturn(const Credential *credInfo, CJson *json) in AddProofTypeToReturn()
863 static int32_t AddAuthorizedScopeToReturn(const Credential *credInfo, CJson *json) in AddAuthorizedScopeToReturn()
873 static int32_t AddAlgorithmTypeToReturn(const Credential *credInfo, CJson *json) in AddAlgorithmTypeToReturn()
883 static int32_t AddDeviceIdToReturn(const Credential *credInfo, CJson *json) in AddDeviceIdToReturn()
[all …]
/base/hiviewdfx/hiview/utility/smart_parser/rule/
Dcompose_rule.cpp70 void ComposeRule::ParseRule(const Json::Value& json, const string& type, vector<string>& featureIds) in ParseRule()
84 std::map<std::string, std::string> ComposeRule::GetMapFromJson(const Json::Value& json, const strin… in GetMapFromJson()
/base/customization/enterprise_device_management/interfaces/inner_api/common/src/
Ddomain_account_policy.cpp65 cJSON *json = nullptr; in ConvertDomainAccountPolicyToJsonStr() local
95 cJSON *json = cJSON_Parse(jsonStr.c_str()); in JsonStrToDomainAccountPolicy() local
/base/security/dlp_permission_service/services/dlp_permission/sa/adapt_utils/file_manager/
Dvisit_record_json_manager.cpp123 void VisitRecordJsonManager::VisitRecordInfoToJson(Json& json, const VisitRecordInfo& info) const in VisitRecordInfoToJson()
132 bool VisitRecordJsonManager::VisitRecordInfoFromJson(const Json& json, VisitRecordInfo& info) const in VisitRecordInfoFromJson() argument
188 for (const auto& json : jsonObject[RECORDLIST]) { in FromJson() local

123456