/foundation/distributedhardware/device_manager/test/commonunittest/ |
H A D | UTTest_dm_credential_manager.cpp | 255 std::string credentialInfo = R"( in HWTEST_F() local 276 int32_t ret = dmCreMgr_->ImportCredential(pkgName, credentialInfo); in HWTEST_F() 279 nlohmann::json jsonObject = nlohmann::json::parse(credentialInfo, nullptr, false); in HWTEST_F() 282 credentialInfo = jsonObject.dump(); in HWTEST_F() 283 ret = dmCreMgr_->ImportCredential(pkgName, credentialInfo); in HWTEST_F() 287 credentialInfo = jsonObject.dump(); in HWTEST_F() 288 ret = dmCreMgr_->ImportCredential(pkgName, credentialInfo); in HWTEST_F() 292 credentialInfo = jsonObject.dump(); in HWTEST_F() 293 ret = dmCreMgr_->ImportCredential(pkgName, credentialInfo); in HWTEST_F() 297 credentialInfo in HWTEST_F() 311 std::string credentialInfo; HWTEST_F() local 325 std::string credentialInfo = R"( HWTEST_F() local 345 std::string credentialInfo = R"( HWTEST_F() local 377 std::string credentialInfo = R"( HWTEST_F() local 410 std::string credentialInfo = ""; HWTEST_F() local 424 std::string credentialInfo = R"( HWTEST_F() local 465 std::string credentialInfo = R"( HWTEST_F() local 483 std::string credentialInfo = R"( HWTEST_F() local 514 std::string credentialInfo = R"( HWTEST_F() local 545 std::string credentialInfo = R"( HWTEST_F() local 565 std::string credentialInfo = R"( HWTEST_F() local 606 std::string credentialInfo = R"( HWTEST_F() local 637 std::string credentialInfo = R"( HWTEST_F() local 669 std::string credentialInfo = R"( HWTEST_F() local 720 std::string credentialInfo = jsonObject.dump(); HWTEST_F() local 739 std::string credentialInfo = R"( HWTEST_F() local 757 std::string credentialInfo = R"( HWTEST_F() local 777 std::string credentialInfo = R"( HWTEST_F() local 805 std::string credentialInfo = R"( HWTEST_F() local 833 std::string credentialInfo = R"( HWTEST_F() local 861 std::string credentialInfo = R"( HWTEST_F() local 890 std::string credentialInfo = R"( HWTEST_F() local 918 std::string credentialInfo = R"( HWTEST_F() local 938 std::string credentialInfo = R"( HWTEST_F() local 956 std::string credentialInfo = R"( HWTEST_F() local 981 std::string credentialInfo = R"( HWTEST_F() local 1001 std::string credentialInfo = R"( HWTEST_F() local 1027 std::string credentialInfo = R"( HWTEST_F() local 1052 std::string credentialInfo = R"( HWTEST_F() local 1077 std::string credentialInfo = R"( HWTEST_F() local 1096 std::string credentialInfo = R"( HWTEST_F() local 1115 std::string credentialInfo = R"( HWTEST_F() local 1141 std::string credentialInfo = R"( HWTEST_F() local 1169 std::string credentialInfo = R"( HWTEST_F() local 1194 std::string credentialInfo = R"( HWTEST_F() local 1216 std::string credentialInfo = R"( HWTEST_F() local 1236 std::string credentialInfo = R"( HWTEST_F() local 1257 std::string credentialInfo = R"( HWTEST_F() local 1278 std::string credentialInfo = R"( HWTEST_F() local 1299 std::string credentialInfo = R"( HWTEST_F() local 1340 std::string credentialInfo = R"( HWTEST_F() local 1381 std::string credentialInfo = R"( HWTEST_F() local 1425 std::string credentialInfo = R"( HWTEST_F() local 1468 std::string credentialInfo = R"( HWTEST_F() local 1511 std::string credentialInfo = R"( HWTEST_F() local 1554 std::string credentialInfo = R"( HWTEST_F() local 1597 std::string credentialInfo = R"( HWTEST_F() local [all...] |
H A D | UTTest_hichain_connector.cpp | 1186 std::string credentialInfo; in HWTEST_F() local 1190 int32_t ret = hiChainConnector->ParseRemoteCredentialExt(credentialInfo, params, groupOwner); in HWTEST_F() 1203 std::string credentialInfo = jsonObj.dump(); in HWTEST_F() local 1207 int32_t ret = hiChainConnector->ParseRemoteCredentialExt(credentialInfo, params, groupOwner); in HWTEST_F() 1222 std::string credentialInfo = jsonObj.dump(); in HWTEST_F() local 1226 int32_t ret = hiChainConnector->ParseRemoteCredentialExt(credentialInfo, params, groupOwner); in HWTEST_F() 1241 std::string credentialInfo = jsonObj.dump(); in HWTEST_F() local 1245 int32_t ret = hiChainConnector->ParseRemoteCredentialExt(credentialInfo, params, groupOwner); in HWTEST_F() 1257 std::string credentialInfo; in HWTEST_F() local 1260 int32_t ret = hiChainConnector->addMultiMembersExt(credentialInfo); in HWTEST_F() 1273 std::string credentialInfo = jsonObj.dump(); HWTEST_F() local [all...] |
/foundation/distributedhardware/device_manager/services/implementation/include/credential/ |
H A D | dm_credential_manager.h | 67 int32_t ImportCredential(const std::string &pkgName, const std::string &credentialInfo); 74 int32_t ImportLocalCredential(const std::string &credentialInfo); 81 int32_t ImportRemoteCredential(const std::string &credentialInfo); 104 int32_t ImportRemoteCredentialExt(const std::string &credentialInfo); 115 int32_t GetCredentialData(const std::string &credentialInfo, const CredentialData &inputCreData,
|
/foundation/distributedhardware/device_manager/services/implementation/src/credential/ |
H A D | dm_credential_manager.cpp | 118 int32_t DmCredentialManager::ImportCredential(const std::string &pkgName, const std::string &credentialInfo) in ImportCredential() argument 123 LOGE("credentialInfo not found by pkgName %{public}s", GetAnonyString(pkgName).c_str()); in ImportCredential() 127 nlohmann::json jsonObject = nlohmann::json::parse(credentialInfo, nullptr, false); in ImportCredential() 129 LOGE("credentialInfo string not a json type."); in ImportCredential() 138 int32_t ret = ImportRemoteCredentialExt(credentialInfo); in ImportCredential() 147 return ImportRemoteCredential(credentialInfo); in ImportCredential() 149 return ImportLocalCredential(credentialInfo); in ImportCredential() 156 int32_t DmCredentialManager::ImportRemoteCredentialExt(const std::string &credentialInfo) in ImportRemoteCredentialExt() argument 159 if (hiChainConnector_->addMultiMembersExt(credentialInfo) != DM_OK) { in ImportRemoteCredentialExt() 166 int32_t DmCredentialManager::ImportLocalCredential(const std::string &credentialInfo) in ImportLocalCredential() argument 295 GetCredentialData(const std::string &credentialInfo, const CredentialData &inputCreData, nlohmann::json &jsonOutObj) GetCredentialData() argument 412 ImportRemoteCredential(const std::string &credentialInfo) ImportRemoteCredential() argument [all...] |
/foundation/distributedhardware/device_manager/test/commonfuzztest/hichainconnector_fuzzer/ |
H A D | hichain_connector_fuzzer.cpp | 76 std::string credentialInfo(reinterpret_cast<const char*>(data), size); in HiChainConnectorFuzzTest() 95 hichainConnector->ParseRemoteCredentialExt(credentialInfo, queryParams, groupOwner); in HiChainConnectorFuzzTest() 96 hichainConnector->addMultiMembersExt(credentialInfo); in HiChainConnectorFuzzTest()
|
/foundation/distributedhardware/device_manager/test/unittest/ |
H A D | UTTest_device_manager_impl_three.cpp | 173 std::string credentialInfo; in HWTEST_F() local 174 int32_t ret = DeviceManager::GetInstance().ImportCredential(packName, credentialInfo); in HWTEST_F() 181 * set credentialInfo not null 192 std::string credentialInfo = R"( in HWTEST_F() local 216 int32_t ret = DeviceManager::GetInstance().ImportCredential(packName, credentialInfo); in HWTEST_F() 224 * set credentialInfo not null 235 std::string credentialInfo = R"( in HWTEST_F() local 259 int32_t ret = DeviceManager::GetInstance().ImportCredential(packName, credentialInfo); in HWTEST_F() 267 * set credentialInfo not null 278 std::string credentialInfo in HWTEST_F() local 887 std::string credentialInfo = "{\\n}"; HWTEST_F() local 910 std::string credentialInfo = R"( HWTEST_F() local 951 std::string credentialInfo = R"({"isDeleteAll":true})"; HWTEST_F() local 1022 std::string credentialInfo; HWTEST_F() local 1030 std::string credentialInfo; HWTEST_F() local 1038 std::string credentialInfo = "credentialInfo"; HWTEST_F() local [all...] |
H A D | UTTest_ipc_cmd_parser_service.cpp | 1154 std::string credentialInfo = ""; in HWTEST_F() local 1156 data.WriteString(credentialInfo); in HWTEST_F() 1310 std::string credentialInfo = jsonObject.dump(); in HWTEST_F() local 1312 data.WriteString(credentialInfo); in HWTEST_F() 1321 data.WriteString(credentialInfo); in HWTEST_F() 1330 data.WriteString(credentialInfo); in HWTEST_F() 1348 std::string credentialInfo = jsonObject.dump(); in HWTEST_F() local 1350 data.WriteString(credentialInfo); in HWTEST_F() 1359 data.WriteString(credentialInfo); in HWTEST_F() 1368 data.WriteString(credentialInfo); in HWTEST_F() [all...] |
H A D | UTTest_device_manager_service_impl.cpp | 333 const std::string credentialInfo = ""; in HWTEST_F() local 337 int32_t ret = deviceManagerServiceImpl_->ImportCredential(pkgName, credentialInfo); in HWTEST_F() 349 const std::string credentialInfo = "credentialInfotest"; in HWTEST_F() local 354 int32_t ret = deviceManagerServiceImpl_->ImportCredential(pkgName, credentialInfo); in HWTEST_F() 366 const std::string credentialInfo = "credentialInfotest"; in HWTEST_F() local 370 int32_t ret = deviceManagerServiceImpl_->ImportCredential(pkgName, credentialInfo); in HWTEST_F() 382 const std::string credentialInfo; in HWTEST_F() local 386 int32_t ret = deviceManagerServiceImpl_->ImportCredential(pkgName, credentialInfo); in HWTEST_F()
|
H A D | UTTest_device_manager_service.cpp | 931 const std::string credentialInfo = "credentialInfotest"; in HWTEST_F() local 932 int32_t ret = DeviceManagerService::GetInstance().ImportCredential(pkgName, credentialInfo); in HWTEST_F() 945 const std::string credentialInfo = ""; in HWTEST_F() local 946 int32_t ret = DeviceManagerService::GetInstance().ImportCredential(pkgName, credentialInfo); in HWTEST_F() 959 const std::string credentialInfo = "credentialInfotest"; in HWTEST_F() local 961 int32_t ret = DeviceManagerService::GetInstance().ImportCredential(pkgName, credentialInfo); in HWTEST_F()
|
H A D | UTTest_ipc_cmd_register.cpp | 448 std::string credentialInfo; in HWTEST_F() local 450 req->SetCredentialParam(credentialInfo); in HWTEST_F()
|
/foundation/distributedhardware/device_manager/services/implementation/src/ |
H A D | device_manager_service_impl_lite.cpp | 219 int32_t DeviceManagerServiceImpl::ImportCredential(const std::string &pkgName, const std::string &credentialInfo) in ImportCredential() argument 221 if (pkgName.empty() || credentialInfo.empty()) { in ImportCredential() 222 LOGE("DeviceManagerServiceImpl::ImportCredential failed, pkgName is %{public}s, credentialInfo is %{public}s", in ImportCredential() 223 pkgName.c_str(), GetAnonyString(credentialInfo).c_str()); in ImportCredential() 230 return credentialMgr_->ImportCredential(pkgName, credentialInfo); in ImportCredential()
|
H A D | device_manager_service_impl.cpp | 362 int32_t DeviceManagerServiceImpl::ImportCredential(const std::string &pkgName, const std::string &credentialInfo) in ImportCredential() argument 364 if (pkgName.empty() || credentialInfo.empty()) { in ImportCredential() 365 LOGE("DeviceManagerServiceImpl::ImportCredential failed, pkgName is %{public}s, credentialInfo is %{public}s", in ImportCredential() 366 pkgName.c_str(), GetAnonyString(credentialInfo).c_str()); in ImportCredential() 374 return credentialMgr_->ImportCredential(pkgName, credentialInfo); in ImportCredential()
|
/foundation/distributedhardware/device_manager/services/implementation/src/dependency/hichain/ |
H A D | hichain_connector.cpp | 838 char *credentialInfo = nullptr; in getRegisterInfo() local 839 if (deviceGroupManager_->getRegisterInfo(queryParams.c_str(), &credentialInfo) != DM_OK) { in getRegisterInfo() 844 returnJsonStr = credentialInfo; in getRegisterInfo() 845 deviceGroupManager_->destroyInfo(&credentialInfo); in getRegisterInfo() 959 int32_t HiChainConnector::ParseRemoteCredentialExt(const std::string &credentialInfo, std::string ¶ms, in ParseRemoteCredentialExt() argument 963 nlohmann::json jsonObject = nlohmann::json::parse(credentialInfo, nullptr, false); in ParseRemoteCredentialExt() 999 int32_t HiChainConnector::addMultiMembersExt(const std::string &credentialInfo) in addMultiMembersExt() argument 1007 if (ParseRemoteCredentialExt(credentialInfo, addParams, groupOwner) != DM_OK) { in addMultiMembersExt() 1082 LOGE("credentialInfo string not a json type."); in GetTrustedDevicesUdid()
|
/foundation/distributedhardware/device_manager/services/implementation/include/dependency/hichain/ |
H A D | hichain_connector.h | 232 int32_t addMultiMembersExt(const std::string &credentialInfo); 267 int32_t ParseRemoteCredentialExt(const std::string &credentialInfo, std::string ¶ms, std::string &groupOwner);
|
/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/src/ipc/lite/ |
H A D | ipc_cmd_parser.cpp | 261 std::string credentialInfo = pReq->GetCredentialParam(); in ON_IPC_SET_REQUEST() local 265 WriteString(&request, credentialInfo.c_str()); in ON_IPC_SET_REQUEST()
|
/foundation/distributedhardware/device_manager/services/implementation/include/ |
H A D | device_manager_service_impl_lite.h | 86 int32_t ImportCredential(const std::string &pkgName, const std::string &credentialInfo);
|
H A D | device_manager_service_impl.h | 81 int32_t ImportCredential(const std::string &pkgName, const std::string &credentialInfo);
|
/foundation/distributedhardware/device_manager/services/service/include/ |
H A D | idevice_manager_service_impl.h | 144 virtual int32_t ImportCredential(const std::string &pkgName, const std::string &credentialInfo) = 0;
|
H A D | device_manager_service.h | 123 int32_t ImportCredential(const std::string &pkgName, const std::string &credentialInfo);
|
/foundation/filemanagement/dfs_service/test/mock/ |
H A D | device_manager_impl_mock.cpp | 215 int32_t DeviceManagerImpl::ImportCredential(const std::string &pkgName, const std::string &credentialInfo) in ImportCredential() argument
|
/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include/ |
H A D | device_manager.h | 270 * @param credentialInfo import credential params, the params is json string, it includes processType, authType,
276 const std::string &credentialInfo) = 0;
|
H A D | device_manager_impl.h | 233 virtual int32_t ImportCredential(const std::string &pkgName, const std::string &credentialInfo) override;
|
/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/src/ |
H A D | device_manager_impl.cpp | 1027 int32_t DeviceManagerImpl::ImportCredential(const std::string &pkgName, const std::string &credentialInfo) in ImportCredential() argument 1029 if (pkgName.empty() || credentialInfo.empty()) { in ImportCredential() 1030 LOGE("DeviceManagerImpl::ImportCredential failed, pkgName is %{public}s, credentialInfo is %{public}s", in ImportCredential() 1031 pkgName.c_str(), GetAnonyString(credentialInfo).c_str()); in ImportCredential() 1037 requestParam.emplace(DM_CREDENTIAL_REQJSONSTR, credentialInfo); in ImportCredential()
|
/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/src/ipc/standard/ |
H A D | ipc_cmd_parser.cpp | 717 std::string credentialInfo = pReq->GetCredentialParam(); in ON_IPC_SET_REQUEST() local 722 if (!data.WriteString(credentialInfo)) { in ON_IPC_SET_REQUEST() 723 LOGE("write credentialInfo failed."); in ON_IPC_SET_REQUEST()
|
/foundation/distributedhardware/device_manager/services/service/src/ |
H A D | device_manager_service.cpp | 780 int32_t DeviceManagerService::ImportCredential(const std::string &pkgName, const std::string &credentialInfo) in ImportCredential() argument 791 return dmServiceImpl_->ImportCredential(pkgName, credentialInfo); in ImportCredential()
|