Home
last modified time | relevance | path

Searched refs:jsonRes (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/base/security/security_component_manager/interfaces/inner_api/security_component/test/unittest/src/
H A Dsec_comp_register_callback_test.cpp133 nlohmann::json jsonRes; variable
154 nlohmann::json jsonRes; variable
181 nlohmann::json jsonRes; variable
201 nlohmann::json jsonRes; variable
237 nlohmann::json jsonRes; variable
271 nlohmann::json jsonRes; variable
288 nlohmann::json jsonRes; variable
324 nlohmann::json jsonRes; variable
363 nlohmann::json jsonRes; variable
401 nlohmann::json jsonRes; variable
[all …]
H A Dsec_comp_kit_test.cpp114 nlohmann::json jsonRes; variable
115 comp.ToJson(jsonRes);
117 std::string jsonStr = jsonRes.dump();
189 nlohmann::json jsonRes; variable
190 TestCommon::BuildLocationComponentInfo(jsonRes);
191 std::string locationInfo = jsonRes.dump();
/ohos5.0/base/security/access_token/services/common/config_policy/src/
H A Dconfig_policy_loader.cpp124 nlohmann::json jsonRes = nlohmann::json::parse(fileContent, nullptr, false); in GetConfigValueFromFile() local
125 if (jsonRes.is_discarded()) { in GetConfigValueFromFile()
131 … if ((jsonRes.find("accesstoken") != jsonRes.end()) && (jsonRes.at("accesstoken").is_object())) { in GetConfigValueFromFile()
132 config.atConfig = jsonRes.at("accesstoken").get<nlohmann::json>(); in GetConfigValueFromFile()
138 if ((jsonRes.find("privacy") != jsonRes.end()) && (jsonRes.at("privacy").is_object())) { in GetConfigValueFromFile()
139 config.pConfig = jsonRes.at("privacy").get<nlohmann::json>(); in GetConfigValueFromFile()
146 if ((jsonRes.find("tokensync") != jsonRes.end()) && (jsonRes.at("tokensync").is_object())) { in GetConfigValueFromFile()
147 config.tsConfig = jsonRes.at("tokensync").get<nlohmann::json>(); in GetConfigValueFromFile()
/ohos5.0/base/security/security_component_manager/services/security_component_service/sa/sa_main/
H A Dfirst_use_dialog.cpp146 if (jsonRes.find(TOKEN_ID_TAG) == jsonRes.end() || in ParseRecord()
147 !jsonRes.at(TOKEN_ID_TAG).is_number()) { in ParseRecord()
151 id = jsonRes.at(TOKEN_ID_TAG).get<uint32_t>(); in ParseRecord()
157 if (jsonRes.find(COMP_TYPE_TAG) == jsonRes.end() || in ParseRecord()
158 !jsonRes.at(COMP_TYPE_TAG).is_number()) { in ParseRecord()
169 if (jsonRes.find(FIRST_USE_RECORD_TAG) == jsonRes.end() || in ParseRecords()
200 if (jsonRes.is_discarded()) { in LoadFirstUseRecord()
205 ParseRecords(jsonRes); in LoadFirstUseRecord()
225 nlohmann::json jsonRes; in SaveFirstUseRecord() local
242 jsonRes[FIRST_USE_RECORD_TAG] = recordsJson; in SaveFirstUseRecord()
[all …]
H A Dsec_comp_service.cpp172 SecCompCallerInfo& caller, nlohmann::json& jsonRes) in ParseParams() argument
179 jsonRes = nlohmann::json::parse(componentInfo, nullptr, false); in ParseParams()
180 if (jsonRes.is_discarded()) { in ParseParams()
201 nlohmann::json jsonRes = nlohmann::json::parse(componentInfo, nullptr, false); in RegisterSecurityComponent() local
202 if (jsonRes.is_discarded()) { in RegisterSecurityComponent()
208 …int32_t res = SecCompManager::GetInstance().RegisterSecurityComponent(type, jsonRes, caller, scId); in RegisterSecurityComponent()
230 nlohmann::json jsonRes; in UpdateSecurityComponent() local
231 if (ParseParams(componentInfo, caller, jsonRes) != SC_OK) { in UpdateSecurityComponent()
234 return SecCompManager::GetInstance().UpdateSecurityComponent(scId, jsonRes, caller); in UpdateSecurityComponent()
253 nlohmann::json jsonRes; in ReportSecurityComponentClickEvent() local
[all …]
H A Dfirst_use_dialog.h70 bool ParseRecord(nlohmann::json& jsonRes,
72 void ParseRecords(nlohmann::json& jsonRes);
H A Dsec_comp_service.h56 … ParseParams(const std::string& componentInfo, SecCompCallerInfo& caller, nlohmann::json& jsonRes);
/ohos5.0/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/
H A Dsec_comp_service_mock_test.cpp87 nlohmann::json jsonRes; variable
88 ServiceTestCommon::BuildSaveComponentJson(jsonRes);
89 std::string saveInfo = jsonRes.dump();
134 nlohmann::json jsonRes; variable
136 std::string saveInfo = jsonRes.dump();
169 nlohmann::json jsonRes; variable
171 std::string saveInfo = jsonRes.dump();
210 nlohmann::json jsonRes; variable
212 std::string saveInfo = jsonRes.dump();
272 nlohmann::json jsonRes; variable
[all …]
H A Dsec_comp_service_test.cpp251 nlohmann::json jsonRes; variable
252 ServiceTestCommon::BuildLocationComponentJson(jsonRes);
253 std::string locationInfo = jsonRes.dump();
360 nlohmann::json jsonRes; variable
362 …EXPECT_EQ(secCompService_->ParseParams(componentInfo, caller, jsonRes), SC_SERVICE_ERROR_VALUE_INV…
/ohos5.0/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
H A Ddlp_permission_set_parser.cpp67 nlohmann::json jsonRes = nlohmann::json::parse(dlpPermsRawData, nullptr, false); in ParserDlpPermsRawData() local
68 if (jsonRes.is_discarded()) { in ParserDlpPermsRawData()
73 …if ((jsonRes.find("dlpPermissions") != jsonRes.end()) && (jsonRes.at("dlpPermissions").is_array())… in ParserDlpPermsRawData()
74 nlohmann::json dlpPermTokenJson = jsonRes.at("dlpPermissions").get<nlohmann::json>(); in ParserDlpPermsRawData()
H A Dpermission_definition_parser.cpp208 nlohmann::json jsonRes = nlohmann::json::parse(permsRawData, nullptr, false); in ParserPermsRawData() local
209 if (jsonRes.is_discarded()) { in ParserPermsRawData()
214 …int32_t ret = GetPermissionDefList(jsonRes, permsRawData, SYSTEM_GRANT_DEFINE_PERMISSION, permDefL… in ParserPermsRawData()
220 ret = GetPermissionDefList(jsonRes, permsRawData, USER_GRANT_DEFINE_PERMISSION, permDefList); in ParserPermsRawData()
/ohos5.0/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/
H A Dvisit_record_file_manager.cpp69 int32_t VisitRecordFileManager::UpdateFile(const int32_t& jsonRes) in UpdateFile() argument
72 if (jsonRes == DLP_FILE_NO_NEED_UPDATE) { in UpdateFile()
75 if (jsonRes != DLP_OK) { in UpdateFile()
76 return jsonRes; in UpdateFile()
H A Dretention_file_manager.cpp79 int32_t RetentionFileManager::UpdateFile(const int32_t& jsonRes) in UpdateFile() argument
82 if (jsonRes == DLP_FILE_NO_NEED_UPDATE) { in UpdateFile()
85 if (jsonRes != DLP_OK) { in UpdateFile()
86 return jsonRes; in UpdateFile()
H A Dvisit_record_file_manager.h44 int32_t UpdateFile(const int32_t& jsonRes);
H A Dretention_file_manager.h51 int32_t UpdateFile(const int32_t& jsonRes);
/ohos5.0/base/security/security_component_manager/frameworks/security_component/src/
H A Dsec_comp_base.cpp301 void SecCompBase::ToJson(nlohmann::json& jsonRes) const in ToJson()
303 jsonRes[JsonTagConstants::JSON_SC_TYPE] = type_; in ToJson()
304 jsonRes[JsonTagConstants::JSON_NODE_ID] = nodeId_; in ToJson()
305 jsonRes[JsonTagConstants::JSON_RECT] = nlohmann::json { in ToJson()
311 jsonRes[JsonTagConstants::JSON_WINDOW_RECT] = nlohmann::json { in ToJson()
324 jsonRes[JsonTagConstants::JSON_SIZE_TAG] = nlohmann::json { in ToJson()
331 jsonRes[JsonTagConstants::JSON_COLORS_TAG] = nlohmann::json { in ToJson()
337 jsonRes[JsonTagConstants::JSON_BORDER_TAG] = nlohmann::json { in ToJson()
340 jsonRes[JsonTagConstants::JSON_PARENT_TAG] = nlohmann::json { in ToJson()
350 jsonRes[JsonTagConstants::JSON_STYLE_TAG] = nlohmann::json { in ToJson()
[all …]
/ohos5.0/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/
H A Dnative_token_receptor.cpp144 nlohmann::json jsonRes = nlohmann::json::parse(nativeRawData, nullptr, false); in ParserNativeRawData() local
145 if (jsonRes.is_discarded()) { in ParserNativeRawData()
149 for (auto it = jsonRes.begin(); it != jsonRes.end(); it++) { in ParserNativeRawData()
/ohos5.0/base/security/security_component_manager/interfaces/inner_api/security_component/include/
H A Dsec_comp_base.h88 void ToJson(nlohmann::json& jsonRes) const;