/base/security/access_token/services/tokensyncmanager/src/device/ |
H A D | device_info_manager.cpp | 39 const std::string &nodeId, DeviceIdType deviceIdType, DeviceInfo &deviceInfo) const in GetDeviceInfo() 41 return DeviceInfoRepository::GetInstance().FindDeviceInfo(nodeId, deviceIdType, deviceInfo); in GetDeviceInfo() 44 bool DeviceInfoManager::ExistDeviceInfo(const std::string &nodeId, DeviceIdType deviceIdType) const in ExistDeviceInfo() argument 47 return DeviceInfoRepository::GetInstance().FindDeviceInfo(nodeId, deviceIdType, deviceInfo); in ExistDeviceInfo() 74 void DeviceInfoManager::RemoveRemoteDeviceInfo(const std::string &nodeId, DeviceIdType deviceIdType) in RemoveRemoteDeviceInfo() argument 76 if (!DataValidator::IsDeviceIdValid(nodeId)) { in RemoveRemoteDeviceInfo() 77 ACCESSTOKEN_LOG_ERROR(LABEL, "RemoveDeviceInfoByNetworkId: nodeId is invalid"); in RemoveRemoteDeviceInfo() 81 if (DeviceInfoRepository::GetInstance().FindDeviceInfo(nodeId, deviceIdType, deviceInfo)) { in RemoveRemoteDeviceInfo() 83 DeviceInfoRepository::GetInstance().DeleteDeviceInfo(nodeId, deviceIdType); in RemoveRemoteDeviceInfo() 89 std::string DeviceInfoManager::ConvertToUniversallyUniqueIdOrFetch(const std::string &nodeId) cons 38 GetDeviceInfo( const std::string &nodeId, DeviceIdType deviceIdType, DeviceInfo &deviceInfo) const GetDeviceInfo() argument [all...] |
H A D | device_info_repository.cpp | 52 bool DeviceInfoRepository::FindDeviceInfo(const std::string &nodeId, DeviceIdType type, DeviceInfo &deviceInfo)
in FindDeviceInfo() argument 56 if (FindDeviceIdByNodeIdLocked(nodeId, type, deviceId)) {
in FindDeviceInfo() 63 const std::string &nodeId, const DeviceIdType type, DeviceId &deviceId) const
in FindDeviceIdByNodeIdLocked() 66 return FindDeviceIdByNetworkIdLocked(nodeId, deviceId);
in FindDeviceIdByNodeIdLocked() 68 return FindDeviceIdByUniversallyUniqueIdLocked(nodeId, deviceId);
in FindDeviceIdByNodeIdLocked() 70 return FindDeviceIdByUniqueDeviceIdLocked(nodeId, deviceId);
in FindDeviceIdByNodeIdLocked() 72 if (FindDeviceIdByNetworkIdLocked(nodeId, deviceId)) {
in FindDeviceIdByNodeIdLocked() 74 } else if (FindDeviceIdByUniversallyUniqueIdLocked(nodeId, deviceId)) {
in FindDeviceIdByNodeIdLocked() 76 } else if (FindDeviceIdByUniqueDeviceIdLocked(nodeId, deviceId)) {
in FindDeviceIdByNodeIdLocked() 172 void DeviceInfoRepository::DeleteDeviceInfo(const std::string &nodeId, cons argument 62 FindDeviceIdByNodeIdLocked( const std::string &nodeId, const DeviceIdType type, DeviceId &deviceId) const FindDeviceIdByNodeIdLocked() argument [all...] |
/base/security/access_token/services/tokensyncmanager/include/device/ |
H A D | device_info_manager.h | 37 * @param nodeId Device id. 42 bool GetDeviceInfo(const std::string &nodeId, DeviceIdType deviceIdType, DeviceInfo &deviceInfo) const; 47 * @param nodeId Device id. 51 bool ExistDeviceInfo(const std::string &nodeId, DeviceIdType deviceIdType) const; 73 * @param nodeId Device id. 76 void RemoveRemoteDeviceInfo(const std::string &nodeId, DeviceIdType deviceIdType); 79 * Convert nodeId to deviceId(UUID) if possible. 81 * @param nodeId which is considered as indefinite id, maybe deviceId(UUID) or networkId. 84 std::string ConvertToUniversallyUniqueIdOrFetch(const std::string &nodeId) const; 87 * Convert nodeId t [all...] |
H A D | device_info_repository.h | 36 bool FindDeviceInfo(const std::string &nodeId, DeviceIdType type, DeviceInfo &deviceInfo); 47 void DeleteDeviceInfo(const std::string &nodeId, const DeviceIdType type); 52 bool FindDeviceIdByNodeIdLocked(const std::string &nodeId, const DeviceIdType type, DeviceId &deviceId) const;
|
/base/security/access_token/services/tokensyncmanager/src/remote/ |
H A D | remote_command_manager.cpp | 162 int RemoteCommandManager::NotifyDeviceOnline(const std::string &nodeId) in NotifyDeviceOnline() argument 164 if (!DataValidator::IsDeviceIdValid(nodeId)) { in NotifyDeviceOnline() 165 ACCESSTOKEN_LOG_INFO(LABEL, "Invalid nodeId: %{public}s", ConstantCommon::EncryptDevId(nodeId).c_str()); in NotifyDeviceOnline() 168 ACCESSTOKEN_LOG_INFO(LABEL, "Operation start with nodeId: %{public}s", in NotifyDeviceOnline() 169 ConstantCommon::EncryptDevId(nodeId).c_str()); in NotifyDeviceOnline() 171 auto executor = GetOrCreateRemoteCommandExecutor(nodeId); in NotifyDeviceOnline() 179 auto channel = RemoteCommandExecutor::CreateChannel(nodeId); in NotifyDeviceOnline() 195 int RemoteCommandManager::NotifyDeviceOffline(const std::string &nodeId) in NotifyDeviceOffline() argument 197 if (!DataValidator::IsDeviceIdValid(nodeId)) { in NotifyDeviceOffline() 238 GetOrCreateRemoteCommandExecutor(const std::string &nodeId) GetOrCreateRemoteCommandExecutor() argument 257 GetExecutorChannel(const std::string &nodeId) GetExecutorChannel() argument [all...] |
/base/security/access_token/services/tokensyncmanager/test/unittest/ |
H A D | token_sync_service_test.cpp | 276 std::string nodeId = "test_nodeId"; in HWTEST_F() local 277 auto executor = std::make_shared<RemoteCommandExecutor>(nodeId); in HWTEST_F() 289 std::string nodeId = "test_nodeId"; in HWTEST_F() local 290 auto executor = std::make_shared<RemoteCommandExecutor>(nodeId); in HWTEST_F() 304 std::string nodeId = ConstantCommon::GetLocalDeviceId(); in HWTEST_F() local 305 auto executor = std::make_shared<RemoteCommandExecutor>(nodeId); in HWTEST_F() 319 std::string nodeId = "test_nodeId"; in HWTEST_F() local 320 auto executor = std::make_shared<RemoteCommandExecutor>(nodeId); in HWTEST_F() 332 std::string nodeId = "test_nodeId"; in HWTEST_F() local 333 auto executor = std::make_shared<RemoteCommandExecutor>(nodeId); in HWTEST_F() 346 std::string nodeId = "test_nodeId"; HWTEST_F() local 360 std::string nodeId = "test_nodeId"; HWTEST_F() local 375 std::string nodeId = "test_nodeId"; HWTEST_F() local 391 std::string nodeId = "test_nodeId"; HWTEST_F() local 407 std::string nodeId = "test_nodeId"; HWTEST_F() local 422 std::string nodeId = ConstantCommon::GetLocalDeviceId(); HWTEST_F() local 946 std::string nodeId = uniqueDeviceId; HWTEST_F() local 973 std::string nodeId = uniqueDeviceId; HWTEST_F() local 986 std::string nodeId; HWTEST_F() local 1033 std::string nodeId; HWTEST_F() local 1070 std::string nodeId; HWTEST_F() local 1107 std::string nodeId; HWTEST_F() local 1170 std::string nodeId = uniqueDeviceId; HWTEST_F() local 1236 std::string nodeId = "111"; HWTEST_F() local 1403 std::string nodeId = "test_udId"; HWTEST_F() local 1434 std::string nodeId = "test_nodeId"; HWTEST_F() local [all...] |
/base/update/updater/services/package/pkg_package/ |
H A D | pkg_pkgfile.cpp | 44 uint32_t nodeId = ++nodeId_;
in AddPkgEntry() local 48 entry = new UpgradeFileEntry(this, nodeId);
in AddPkgEntry() 51 entry = new ZipFileEntry(this, nodeId);
in AddPkgEntry() 54 entry = new Lz4FileEntry(this, nodeId);
in AddPkgEntry() 58 entry = new GZipFileEntry(this, nodeId);
in AddPkgEntry() 64 pkgEntryMapId_.insert(std::pair<uint32_t, PkgEntryPtr>(nodeId, entry));
in AddPkgEntry()
|
H A D | pkg_gzipfile.h | 42 GZipFileEntry(PkgFilePtr pkgFile, uint32_t nodeId) : ZipFileEntry(pkgFile, nodeId) {}
in GZipFileEntry() argument
|
H A D | pkg_lz4file.h | 25 Lz4FileEntry(PkgFilePtr pkgFile, uint32_t nodeId) : PkgEntry(pkgFile, nodeId)
in Lz4FileEntry() argument
|
H A D | pkg_upgradefile.h | 72 UpgradeFileEntry(PkgFilePtr pkgFile, uint32_t nodeId) : PkgEntry(pkgFile, nodeId) {}
in UpgradeFileEntry() argument
|
H A D | pkg_zipfile.h | 129 ZipFileEntry(PkgFilePtr pkgFile, uint32_t nodeId) : PkgEntry(pkgFile, nodeId) {}
in ZipFileEntry() argument
|
/base/security/access_token/services/tokensyncmanager/include/remote/ |
H A D | remote_command_manager.h | 128 * @param peerNodeId The peer device's nodeId, maybe uuid or udid .
136 * @brief Get remote command executor's channel for given nodeId.
138 * @param nodeId The peer device's nodeId, maybe uuid or udid or networkId.
141 std::shared_ptr<RpcChannel> GetExecutorChannel(const std::string &nodeId);
154 * @param nodeId The udid of a device which you want to get executor.
159 std::shared_ptr<RemoteCommandExecutor> GetOrCreateRemoteCommandExecutor(const std::string &nodeId);
|
/base/security/security_component_manager/interfaces/inner_api/security_component/include/ |
H A D | i_sec_comp_probe.h | 25 virtual int32_t GetComponentInfo(int32_t nodeId, std::string& componentInfo) = 0;
|
/base/startup/init/services/param/watcher/proxy/ |
H A D | watcher_manager.h | 132 explicit WatcherNode(uint32_t nodeId) : nodeId_(nodeId) in WatcherNode() argument 145 static WatcherNodePtr GetFromList(ListHeadPtr list, uint32_t nodeId); 146 static WatcherNodePtr GetNextFromList(ListHeadPtr list, uint32_t nodeId); 204 WatcherNodePtr GetNode(uint32_t nodeId);
|
H A D | watcher_manager.cpp | 673 WatcherNodePtr ParamWatcherList::GetNode(uint32_t nodeId) in GetNode() argument 675 return WatcherNode::GetFromList(&nodeList_, nodeId); in GetNode() 713 uint32_t nodeId = node->GetNodeId(); in TraversalNodeSafe() local 716 node = WatcherNode::GetNextFromList(&nodeList_, nodeId); in TraversalNodeSafe() 731 WatcherNodePtr WatcherNode::GetFromList(ListHead *list, uint32_t nodeId) in GetFromList() argument 733 ListNodePtr node = OH_ListFind(list, &nodeId, CompareData); in GetFromList() 740 WatcherNodePtr WatcherNode::GetNextFromList(ListHead *list, uint32_t nodeId) in GetNextFromList() argument 742 ListNodePtr node = OH_ListFind(list, &nodeId, Greater); in GetNextFromList()
|
/base/update/updater/services/include/package/ |
H A D | pkg_manager.h | 150 PkgEntry(PkgFilePtr pkgFile, uint32_t nodeId) : nodeId_(nodeId), pkgFile_(pkgFile) {}
in PkgEntry() argument
|
/base/security/security_component_manager/frameworks/inner_api/security_component/test/unittest/src/ |
H A D | sec_comp_register_callback_test.cpp | 44 int32_t GetComponentInfo(int32_t nodeId, std::string& componentInfo) override
|