Home
last modified time | relevance | path

Searched refs:trustDeviceId (Results 1 – 15 of 15) sorted by relevance

/ohos5.0/foundation/distributedhardware/device_manager/test/servicesfuzztest/deviceprofileconnector_fuzzer/
H A Ddevice_profile_connector_fuzzer.cpp31 std::string trustDeviceId(reinterpret_cast<const char*>(data), size); in DeviceProfileConnectorFuzzTest()
43 aclInfo.trustDeviceId = trustDeviceId; in DeviceProfileConnectorFuzzTest()
51 dmAccessee.trustDeviceId = trustDeviceId; in DeviceProfileConnectorFuzzTest()
57 DeviceProfileConnector::GetInstance().CheckBindType(trustDeviceId, requestDeviceId); in DeviceProfileConnectorFuzzTest()
60 DeviceProfileConnector::GetInstance().GetOfflineParamFromAcl(trustDeviceId, requestDeviceId); in DeviceProfileConnectorFuzzTest()
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/src/
H A Ddevice_manager_service_impl.cpp226 LOGI("deviceStateMgr Udid: %{public}s", GetAnonyString(trustDeviceId).c_str()); in HandleOffline()
227 if (trustDeviceId == "") { in HandleOffline()
231 std::string udisHash = softbusConnector_->GetDeviceUdidHashByUdid(trustDeviceId); in HandleOffline()
264 std::string trustDeviceId = ""; in HandleOnline() local
265 if (softbusConnector_->GetUdidByNetworkId(devInfo.networkId, trustDeviceId) != DM_OK) { in HandleOnline()
269 std::string udisHash = softbusConnector_->GetDeviceUdidHashByUdid(trustDeviceId); in HandleOnline()
280 PutIdenticalAccountToAcl(requestDeviceId, trustDeviceId); in HandleOnline()
647 aclInfo.trustDeviceId = trustDeviceId; in PutIdenticalAccountToAcl()
657 accessee.trustDeviceId = trustDeviceId; in PutIdenticalAccountToAcl()
793 std::string trustDeviceId = ""; in HandleDeviceScreenStatusChange() local
[all …]
/ohos5.0/foundation/distributedhardware/device_manager/test/unittest/mock/
H A Dmock_distributed_device_profile_client.cpp34 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 = "deviceId"; in AddAccessControlProfileFifth() local
[all …]
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/include/trustprofilemanager/
H A Dtrust_profile_manager.h61 … 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 …32_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,
/ohos5.0/foundation/distributedhardware/device_manager/commondependency/src/
H A Ddeviceprofile_connector.cpp58 std::string trustDeviceId = item.GetTrustDeviceId(); in GetAppTrustDeviceList() local
59 if (trustDeviceId == deviceId || item.GetStatus() != ACTIVE) { 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()
408 item.GetAccessee().GetAccesseeDeviceId() == trustDeviceId) || in GetOfflineParamFromAcl()
409 (item.GetAccesser().GetAccesserDeviceId() == trustDeviceId && in GetOfflineParamFromAcl()
431 accessee.SetAccesseeDeviceId(dmAccessee.trustDeviceId); in PutAccessControlList()
[all …]
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/test/fuzztest/trustprofilemanager_fuzzer/
H A Dtrustprofilemanager_fuzzer.cpp40 std::string trustDeviceId(reinterpret_cast<const char*>(data), size); in GetAccessControlProfileByTokenIdFuzzTest()
45 …TrustProfileManager::GetInstance().GetAccessControlProfileByTokenId(tokenId, trustDeviceId, status… in GetAccessControlProfileByTokenIdFuzzTest()
104 std::string trustDeviceId(reinterpret_cast<const char*>(data), size); in GetAccessControlProfileFourFuzzTest()
109 …TrustProfileManager::GetInstance().GetAccessControlProfile(bundleName, trustDeviceId, status, prof… in GetAccessControlProfileFourFuzzTest()
/ohos5.0/foundation/distributedhardware/device_manager/commondependency/include/
H A Ddeviceprofile_connector.h54 std::string trustDeviceId; member
74 std::string trustDeviceId; member
90 virtual uint32_t CheckBindType(std::string trustDeviceId, std::string requestDeviceId) = 0;
95 …virtual DmOfflineParam GetOfflineParamFromAcl(std::string trustDeviceId, std::string requestDevice…
122 uint32_t CheckBindType(std::string trustDeviceId, std::string requestDeviceId);
127 DmOfflineParam GetOfflineParamFromAcl(std::string trustDeviceId, std::string requestDeviceId);
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/src/trustprofilemanager/
H A Dtrust_profile_manager.cpp377 if (trustDeviceId.size() > MAX_STRING_LEN) { in GetAccessControlProfileByTokenId()
382 tokenId, ProfileUtils::GetAnonyString(trustDeviceId).c_str(), status); in GetAccessControlProfileByTokenId()
916 resultSet, accesserId, accesseeId, trustDeviceId, profile); in GetAclProfileByTokenId()
923 accesseeId, trustDeviceId, tokenId, profile); in GetAclProfileByTokenId()
1279 std::vector<ValueObject>{ ValueObject(trustDeviceId) }); in GetResultStatus()
1540 std::string trustDeviceId = rowEntity.Get(TRUST_DEVICE_ID); in ConvertToAccessControlProfile() local
1554 accessControlProfile.SetTrustDeviceId(trustDeviceId); in ConvertToAccessControlProfile()
1762 int64_t accesserId, int64_t accesseeId, const std::string& trustDeviceId, in GetAccessControlProfilesByTokenId() argument
1875 std::string trustDeviceId = profile.GetTrustDeviceId(); in PutAclCheck() local
1878 std::vector<ValueObject>{ ValueObject(trustDeviceId) }); in PutAclCheck()
[all …]
/ohos5.0/foundation/distributedhardware/device_manager/test/commonunittest/
H A DUTTest_dm_deviceprofile_connector.cpp167 std::string trustDeviceId = "trustDeviceId"; variable
169 …uint32_t ret = DeviceProfileConnector::GetInstance().CheckBindType(trustDeviceId, requestDeviceId);
175 std::string trustDeviceId = "deviceId"; variable
177 …uint32_t ret = DeviceProfileConnector::GetInstance().CheckBindType(trustDeviceId, requestDeviceId);
183 std::string trustDeviceId = "deviceId"; variable
185 …uint32_t ret = DeviceProfileConnector::GetInstance().CheckBindType(trustDeviceId, requestDeviceId);
480 std::string trustDeviceId = "trustDeviceId"; variable
482 …auto ret = DeviceProfileConnector::GetInstance().GetOfflineParamFromAcl(trustDeviceId, requestDevi…
488 std::string trustDeviceId = "123456"; variable
490 …auto ret = DeviceProfileConnector::GetInstance().GetOfflineParamFromAcl(trustDeviceId, requestDevi…
[all …]
/ohos5.0/foundation/deviceprofile/device_info_manager/common/src/interfaces/
H A Daccess_control_profile.cpp93 void AccessControlProfile::SetTrustDeviceId(const std::string &trustDeviceId) in SetTrustDeviceId() argument
95 trustDeviceId_ = trustDeviceId; in SetTrustDeviceId()
/ohos5.0/foundation/deviceprofile/device_info_manager/common/include/interfaces/
H A Daccess_control_profile.h43 void SetTrustDeviceId(const std::string& trustDeviceId);
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/src/devicestate/
H A Ddm_device_state_manager.cpp469 std::string trustDeviceId = item.GetTrustDeviceId(); in DeleteGroupByDP() local
470 if (trustDeviceId != deviceId) { in DeleteGroupByDP()
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/include/
H A Ddevice_manager_service_impl.h149 void PutIdenticalAccountToAcl(std::string requestDeviceId, std::string trustDeviceId);
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/src/authentication/
H A Ddm_auth_manager.cpp2206 aclInfo.trustDeviceId = remoteDeviceId_; in CompatiblePutAcl()
2229 accessee.trustDeviceId = remoteDeviceId_; in CompatiblePutAcl()
2233 accessee.trustDeviceId = localUdid; in CompatiblePutAcl()
2551 aclInfo.trustDeviceId = remoteDeviceId_; in PutAccessControlList()
2575 accessee.trustDeviceId = authResponseContext_->deviceId; in PutAccessControlList()
2579 accessee.trustDeviceId = localUdid; in PutAccessControlList()
/ohos5.0/foundation/distributedhardware/device_manager/test/unittest/
H A DUTTest_device_manager_service_impl.cpp1453 std::string trustDeviceId; variable
1457 deviceManagerServiceImpl_->PutIdenticalAccountToAcl(requestDeviceId, trustDeviceId);