/foundation/distributedhardware/device_manager/test/servicesfuzztest/deviceprofileconnector_fuzzer/ |
H A D | device_profile_connector_fuzzer.cpp | 31 std::string trustDeviceId(reinterpret_cast<const char*>(data), size); in DeviceProfileConnectorFuzzTest() 43 aclInfo.trustDeviceId = trustDeviceId; in DeviceProfileConnectorFuzzTest() 51 dmAccessee.trustDeviceId = trustDeviceId; in DeviceProfileConnectorFuzzTest() 58 DeviceProfileConnector::GetInstance().CheckBindType(trustDeviceId, requestDeviceId); in DeviceProfileConnectorFuzzTest() 61 DeviceProfileConnector::GetInstance().GetOfflineParamFromAcl(trustDeviceId, requestDeviceId); in DeviceProfileConnectorFuzzTest()
|
/foundation/distributedhardware/device_manager/test/unittest/mock/ |
H A D | mock_distributed_device_profile_client.cpp | 34 std::string trustDeviceId = "123456"; in AddAccessControlProfileFirst() local 60 profileFirst.SetTrustDeviceId(trustDeviceId); in AddAccessControlProfileFirst() 85 std::string trustDeviceId = "123456"; in AddAccessControlProfileSecond() local 111 trustDeviceId = deviceId; in AddAccessControlProfileSecond() 112 profileSecond.SetTrustDeviceId(trustDeviceId); in AddAccessControlProfileSecond() 137 std::string trustDeviceId = "123456"; in AddAccessControlProfileThird() local 163 profileThird.SetTrustDeviceId(trustDeviceId); in AddAccessControlProfileThird() 188 std::string trustDeviceId = "123456"; in AddAccessControlprofileFourth() local 214 profileFourth.SetTrustDeviceId(trustDeviceId); in AddAccessControlprofileFourth() 239 std::string trustDeviceId in AddAccessControlProfileFifth() local 291 std::string trustDeviceId = "remoteDeviceId"; AddAccessControlProfileSixth() local 343 std::string trustDeviceId = "remoteDeviceId"; AddAccessControlProfileSeventh() local 395 std::string trustDeviceId = "remoteDeviceId"; AddAccessControlProfileEighth() local 447 std::string trustDeviceId = "remoteDeviceId"; AddAccessControlProfileNinth() local 499 std::string trustDeviceId = "remoteDeviceId"; AddAccessControlProfileTenth() local 551 std::string trustDeviceId = "remoteDeviceId"; AddAccessControlProfileEleventh() local [all...] |
/foundation/deviceprofile/device_info_manager/services/core/include/trustprofilemanager/ |
H A D | trust_profile_manager.h | 61 const std::string& trustDeviceId, int32_t status, std::vector<AccessControlProfile>& profile); 65 const std::string& trustDeviceId, int32_t status, std::vector<AccessControlProfile>& profile); 69 int32_t GetAccessControlProfileByTokenId(int64_t tokenId, const std::string& trustDeviceId, 77 int32_t GetAclProfileByTokenId(std::shared_ptr<ResultSet> resultSet, const std::string& trustDeviceId, 93 int32_t GetResultStatus(const std::string& trustDeviceId, int32_t& trustDeviceStatus); 97 int64_t accesseeId, const std::string& trustDeviceId, std::vector<AccessControlProfile>& profile); 115 int64_t accesseeId, const std::string& trustDeviceId, int64_t tokenId,
|
/foundation/deviceprofile/device_info_manager/services/core/test/fuzztest/trustprofilemanager_fuzzer/ |
H A D | trustprofilemanager_fuzzer.cpp | 40 std::string trustDeviceId(reinterpret_cast<const char*>(data), size); in GetAccessControlProfileByTokenIdFuzzTest() 45 TrustProfileManager::GetInstance().GetAccessControlProfileByTokenId(tokenId, trustDeviceId, status, profile); in GetAccessControlProfileByTokenIdFuzzTest() 104 std::string trustDeviceId(reinterpret_cast<const char*>(data), size); in GetAccessControlProfileFourFuzzTest() 109 TrustProfileManager::GetInstance().GetAccessControlProfile(bundleName, trustDeviceId, status, profile); in GetAccessControlProfileFourFuzzTest()
|
/foundation/distributedhardware/device_manager/services/implementation/src/ |
H A D | device_manager_service_impl.cpp | 201 std::string trustDeviceId = deviceStateMgr_->GetUdidByNetWorkId(std::string(devInfo.networkId)); in HandleOffline() local 202 LOGI("deviceStateMgr Udid: %{public}s", GetAnonyString(trustDeviceId).c_str()); in HandleOffline() 203 if (trustDeviceId == "") { in HandleOffline() 207 std::string udisHash = softbusConnector_->GetDeviceUdidHashByUdid(trustDeviceId); in HandleOffline() 216 DeviceProfileConnector::GetInstance().GetOfflineParamFromAcl(trustDeviceId, requestDeviceId); in HandleOffline() 233 hiChainAuthConnector_->DeleteCredential(trustDeviceId, MultipleUserConnector::GetCurrentAccountUserID()); in HandleOffline() 240 std::string trustDeviceId = ""; in HandleOnline() local 241 if (softbusConnector_->GetUdidByNetworkId(devInfo.networkId, trustDeviceId) != DM_OK) { in HandleOnline() 245 std::string udisHash = softbusConnector_->GetDeviceUdidHashByUdid(trustDeviceId); in HandleOnline() 253 uint32_t bindType = DeviceProfileConnector::GetInstance().CheckBindType(trustDeviceId, requestDeviceI in HandleOnline() 615 PutIdenticalAccountToAcl(std::string requestDeviceId, std::string trustDeviceId) PutIdenticalAccountToAcl() argument 823 std::string trustDeviceId = ""; HandleDeviceScreenStatusChange() local [all...] |
/foundation/distributedhardware/device_manager/commondependency/src/ |
H A D | deviceprofile_connector.cpp | 58 std::string trustDeviceId = item.GetTrustDeviceId(); in GetAppTrustDeviceList() local 59 if (trustDeviceId == deviceId || item.GetStatus() != ACTIVE) { in GetAppTrustDeviceList() 64 LOGI("The udid %{public}s in ACL authForm is %{public}d.", GetAnonyString(trustDeviceId).c_str(), bindType); in GetAppTrustDeviceList() 68 if (deviceIdMap.find(trustDeviceId) == deviceIdMap.end()) { in GetAppTrustDeviceList() 69 deviceIdMap[trustDeviceId] = static_cast<DmAuthForm>(bindType); in GetAppTrustDeviceList() 72 DmAuthForm authForm = deviceIdMap.at(trustDeviceId); in GetAppTrustDeviceList() 77 deviceIdMap[trustDeviceId] = DmAuthForm::IDENTICAL_ACCOUNT; in GetAppTrustDeviceList() 81 deviceIdMap[trustDeviceId] = DmAuthForm::PEER_TO_PEER; in GetAppTrustDeviceList() 165 uint32_t DeviceProfileConnector::CheckBindType(std::string trustDeviceId, std::string requestDeviceId) in CheckBindType() argument 172 if (trustDeviceId ! in CheckBindType() 385 GetOfflineParamFromAcl(std::string trustDeviceId, std::string requestDeviceId) GetOfflineParamFromAcl() argument [all...] |
/foundation/deviceprofile/device_info_manager/services/core/src/trustprofilemanager/ |
H A D | trust_profile_manager.cpp | 337 const std::string& trustDeviceId, int32_t status, std::vector<AccessControlProfile>& profile) in GetAccessControlProfile() 339 if (bundleName.size() > MAX_STRING_LEN || trustDeviceId.size() > MAX_STRING_LEN) { in GetAccessControlProfile() 340 HILOGE("bundleName or trustDeviceId is invalid"); in GetAccessControlProfile() 343 HILOGI("Params, userId : %{public}s, bundleName : %{public}s, trustDeviceId : %{public}s, status : %{public}d", in GetAccessControlProfile() 345 bundleName.c_str(), ProfileUtils::GetAnonyString(trustDeviceId).c_str(), status); in GetAccessControlProfile() 348 std::vector<ValueObject>{ ValueObject(trustDeviceId), ValueObject(status) }); in GetAccessControlProfile() 356 HILOGE("trustDeviceId and status not find"); in GetAccessControlProfile() 367 HILOGE("by userId bundleName trustDeviceId status not find data"); in GetAccessControlProfile() 375 const std::string& trustDeviceId, int32_t status, std::vector<AccessControlProfile>& profile) in GetAccessControlProfileByTokenId() 377 if (trustDeviceId in GetAccessControlProfileByTokenId() 336 GetAccessControlProfile(int32_t userId, const std::string& bundleName, const std::string& trustDeviceId, int32_t status, std::vector<AccessControlProfile>& profile) GetAccessControlProfile() argument 374 GetAccessControlProfileByTokenId(int64_t tokenId, const std::string& trustDeviceId, int32_t status, std::vector<AccessControlProfile>& profile) GetAccessControlProfileByTokenId() argument 573 GetAccessControlProfile(const std::string& bundleName, const std::string& trustDeviceId, int32_t status, std::vector<AccessControlProfile>& profile) GetAccessControlProfile() argument 892 GetAclProfileByTokenId(std::shared_ptr<ResultSet> resultSet, const std::string& trustDeviceId, int64_t tokenId, std::vector<AccessControlProfile>& profile) GetAclProfileByTokenId() argument 1275 GetResultStatus(const std::string& trustDeviceId, int32_t& trustDeviceStatus) GetResultStatus() argument 1343 GetAccessControlProfilesByDeviceId( std::shared_ptr<ResultSet> resultSet, int64_t accesserId, int64_t accesseeId, const std::string& trustDeviceId, std::vector<AccessControlProfile>& profile) GetAccessControlProfilesByDeviceId() argument 1540 std::string trustDeviceId = rowEntity.Get(TRUST_DEVICE_ID); ConvertToAccessControlProfile() local 1761 GetAccessControlProfilesByTokenId(std::shared_ptr<ResultSet> resultSet, int64_t accesserId, int64_t accesseeId, const std::string& trustDeviceId, int64_t tokenId, std::vector<AccessControlProfile> &profile) GetAccessControlProfilesByTokenId() argument 1875 std::string trustDeviceId = profile.GetTrustDeviceId(); PutAclCheck() local [all...] |
/foundation/distributedhardware/device_manager/commondependency/include/ |
H A D | deviceprofile_connector.h | 55 std::string trustDeviceId; member 75 std::string trustDeviceId; member 98 uint32_t CheckBindType(std::string trustDeviceId, std::string requestDeviceId); 103 DmOfflineParam GetOfflineParamFromAcl(std::string trustDeviceId, std::string requestDeviceId);
|
/foundation/distributedhardware/device_manager/test/commonunittest/ |
H A D | UTTest_dm_deviceprofile_connector.cpp | 167 std::string trustDeviceId = "trustDeviceId"; in HWTEST_F() local 169 uint32_t ret = DeviceProfileConnector::GetInstance().CheckBindType(trustDeviceId, requestDeviceId); in HWTEST_F() 175 std::string trustDeviceId = "deviceId"; in HWTEST_F() local 177 uint32_t ret = DeviceProfileConnector::GetInstance().CheckBindType(trustDeviceId, requestDeviceId); in HWTEST_F() 183 std::string trustDeviceId = "deviceId"; in HWTEST_F() local 185 uint32_t ret = DeviceProfileConnector::GetInstance().CheckBindType(trustDeviceId, requestDeviceId); in HWTEST_F() 480 std::string trustDeviceId = "trustDeviceId"; in HWTEST_F() local 482 auto ret = DeviceProfileConnector::GetInstance().GetOfflineParamFromAcl(trustDeviceId, requestDeviceI in HWTEST_F() 488 std::string trustDeviceId = "123456"; HWTEST_F() local 496 std::string trustDeviceId = "deviceId"; HWTEST_F() local [all...] |
/foundation/deviceprofile/device_info_manager/common/src/interfaces/ |
H A D | access_control_profile.cpp | 93 void AccessControlProfile::SetTrustDeviceId(const std::string &trustDeviceId) in SetTrustDeviceId() argument 95 trustDeviceId_ = trustDeviceId; in SetTrustDeviceId()
|
/foundation/deviceprofile/device_info_manager/common/include/interfaces/ |
H A D | access_control_profile.h | 43 void SetTrustDeviceId(const std::string& trustDeviceId);
|
/foundation/distributedhardware/device_manager/services/implementation/src/devicestate/ |
H A D | dm_device_state_manager.cpp | 469 std::string trustDeviceId = item.GetTrustDeviceId(); in DeleteGroupByDP() local 470 if (trustDeviceId != deviceId) { in DeleteGroupByDP()
|
/foundation/distributedhardware/device_manager/services/implementation/include/ |
H A D | device_manager_service_impl.h | 142 void PutIdenticalAccountToAcl(std::string requestDeviceId, std::string trustDeviceId);
|
/foundation/distributedhardware/device_manager/services/implementation/src/authentication/ |
H A D | dm_auth_manager.cpp | 2073 aclInfo.trustDeviceId = remoteDeviceId_; in CompatiblePutAcl() 2096 accessee.trustDeviceId = remoteDeviceId_; in CompatiblePutAcl() 2100 accessee.trustDeviceId = localUdid; in CompatiblePutAcl() 2258 aclInfo.trustDeviceId = remoteDeviceId_; in PutAccessControlList() 2282 accessee.trustDeviceId = authResponseContext_->deviceId; in PutAccessControlList() 2286 accessee.trustDeviceId = localUdid; in PutAccessControlList()
|
/foundation/distributedhardware/device_manager/test/unittest/ |
H A D | UTTest_device_manager_service_impl.cpp | 1276 std::string trustDeviceId; in HWTEST_F() local 1280 deviceManagerServiceImpl_->PutIdenticalAccountToAcl(requestDeviceId, trustDeviceId); in HWTEST_F()
|