Home
last modified time | relevance | path

Searched refs:jsonRes (Results 1 - 19 of 19) sorted by relevance

/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 in GetConfigValueFromFile()
[all...]
/base/security/security_component_manager/frameworks/inner_api/security_component/test/unittest/src/
H A Dsec_comp_register_callback_test.cpp134 nlohmann::json jsonRes; in HWTEST_F() local
135 TestCommon::BuildLocationComponentInfo(jsonRes); in HWTEST_F()
136 std::string locationInfo = jsonRes.dump(); in HWTEST_F()
155 nlohmann::json jsonRes; in HWTEST_F() local
156 TestCommon::BuildLocationComponentInfo(jsonRes); in HWTEST_F()
157 std::string locationInfo = jsonRes.dump(); in HWTEST_F()
182 nlohmann::json jsonRes; in HWTEST_F() local
183 TestCommon::BuildLocationComponentInfo(jsonRes); in HWTEST_F()
184 std::string locationInfo = jsonRes.dump(); in HWTEST_F()
202 nlohmann::json jsonRes; in HWTEST_F() local
238 nlohmann::json jsonRes; HWTEST_F() local
272 nlohmann::json jsonRes; HWTEST_F() local
289 nlohmann::json jsonRes; HWTEST_F() local
325 nlohmann::json jsonRes; HWTEST_F() local
364 nlohmann::json jsonRes; HWTEST_F() local
402 nlohmann::json jsonRes; HWTEST_F() local
436 nlohmann::json jsonRes; HWTEST_F() local
474 nlohmann::json jsonRes; HWTEST_F() local
516 nlohmann::json jsonRes; HWTEST_F() local
551 nlohmann::json jsonRes; HWTEST_F() local
585 nlohmann::json jsonRes; HWTEST_F() local
603 nlohmann::json jsonRes; HWTEST_F() local
626 nlohmann::json jsonRes; HWTEST_F() local
[all...]
H A Dsec_comp_kit_test.cpp114 nlohmann::json jsonRes; in HWTEST_F() local
115 comp.ToJson(jsonRes); in HWTEST_F()
117 std::string jsonStr = jsonRes.dump(); in HWTEST_F()
189 nlohmann::json jsonRes; in HWTEST_F() local
190 TestCommon::BuildLocationComponentInfo(jsonRes); in HWTEST_F()
191 std::string locationInfo = jsonRes.dump(); in HWTEST_F()
/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/
H A Dsec_comp_service_mock_test.cpp87 nlohmann::json jsonRes; in HWTEST_F() local
88 ServiceTestCommon::BuildSaveComponentJson(jsonRes); in HWTEST_F()
89 std::string saveInfo = jsonRes.dump(); in HWTEST_F()
134 nlohmann::json jsonRes; in HWTEST_F() local
135 ServiceTestCommon::BuildSaveComponentJson(jsonRes); in HWTEST_F()
136 std::string saveInfo = jsonRes.dump(); in HWTEST_F()
169 nlohmann::json jsonRes; in HWTEST_F() local
170 ServiceTestCommon::BuildSaveComponentJson(jsonRes); in HWTEST_F()
171 std::string saveInfo = jsonRes.dump(); in HWTEST_F()
210 nlohmann::json jsonRes; in HWTEST_F() local
272 nlohmann::json jsonRes; HWTEST_F() local
[all...]
H A Dsec_comp_service_test.cpp251 nlohmann::json jsonRes; in HWTEST_F() local
252 ServiceTestCommon::BuildLocationComponentJson(jsonRes); in HWTEST_F()
253 std::string locationInfo = jsonRes.dump(); in HWTEST_F()
360 nlohmann::json jsonRes; in HWTEST_F() local
362 EXPECT_EQ(secCompService_->ParseParams(componentInfo, caller, jsonRes), SC_SERVICE_ERROR_VALUE_INVALID); in HWTEST_F()
/base/security/security_component_manager/services/security_component_service/sa/sa_main/
H A Dfirst_use_dialog.cpp148 bool FirstUseDialog::ParseRecord(nlohmann::json& jsonRes, in ParseRecord() argument
151 if (jsonRes.find(TOKEN_ID_TAG) == jsonRes.end() || in ParseRecord()
152 !jsonRes.at(TOKEN_ID_TAG).is_number()) { in ParseRecord()
156 id = jsonRes.at(TOKEN_ID_TAG).get<uint32_t>(); in ParseRecord()
162 if (jsonRes.find(COMP_TYPE_TAG) == jsonRes.end() || in ParseRecord()
163 !jsonRes.at(COMP_TYPE_TAG).is_number()) { in ParseRecord()
167 type = jsonRes.at(COMP_TYPE_TAG).get<uint64_t>(); in ParseRecord()
171 void FirstUseDialog::ParseRecords(nlohmann::json& jsonRes) in ParseRecords() argument
204 nlohmann::json jsonRes = nlohmann::json::parse(content, nullptr, false); LoadFirstUseRecord() local
230 nlohmann::json jsonRes; SaveFirstUseRecord() local
[all...]
H A Dsec_comp_service.cpp172 SecCompCallerInfo& caller, nlohmann::json& jsonRes) in ParseParams()
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
171 ParseParams(const std::string& componentInfo, SecCompCallerInfo& caller, nlohmann::json& jsonRes) ParseParams() argument
[all...]
H A Dfirst_use_dialog.h70 bool ParseRecord(nlohmann::json& jsonRes,
72 void ParseRecords(nlohmann::json& jsonRes);
H A Dsec_comp_service.h56 int32_t ParseParams(const std::string& componentInfo, SecCompCallerInfo& caller, nlohmann::json& jsonRes);
/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, permDefList); in ParserPermsRawData()
220 ret = GetPermissionDefList(jsonRes, permsRawData, USER_GRANT_DEFINE_PERMISSION, permDefList); in ParserPermsRawData()
/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/
H A Dvisit_record_file_manager.cpp76 int32_t VisitRecordFileManager::UpdateFile(const int32_t& jsonRes) in UpdateFile() argument
79 if (jsonRes == DLP_FILE_NO_NEED_UPDATE) { in UpdateFile()
82 if (jsonRes != DLP_OK) { in UpdateFile()
83 return jsonRes; in UpdateFile()
H A Dretention_file_manager.cpp89 int32_t RetentionFileManager::UpdateFile(const int32_t& jsonRes) in UpdateFile() argument
92 if (jsonRes == DLP_FILE_NO_NEED_UPDATE) { in UpdateFile()
95 if (jsonRes != DLP_OK) { in UpdateFile()
96 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);
/base/security/security_component_manager/test/fuzztest/security_component/mock/
H A Dfirst_use_dialog.cpp57 bool FirstUseDialog::ParseRecord(nlohmann::json& jsonRes, in ParseRecord() argument
63 void FirstUseDialog::ParseRecords(nlohmann::json& jsonRes) in ParseRecords() argument
/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[JsonTagConstant in ToJson()
[all...]
/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()
/base/security/security_component_manager/interfaces/inner_api/security_component/include/
H A Dsec_comp_base.h88 void ToJson(nlohmann::json& jsonRes) const;

Completed in 8 milliseconds