Home
last modified time | relevance | path

Searched refs:softbusConnector_ (Results 1 - 22 of 22) sorted by relevance

/foundation/distributedhardware/device_manager/services/implementation/src/devicestate/
H A Ddm_device_state_manager.cpp38 : softbusConnector_(softbusConnector), listener_(listener), hiChainConnector_(hiChainConnector), in DmDeviceStateManager()
49 softbusConnector_->UnRegisterSoftbusStateCallback(); in ~DmDeviceStateManager()
55 if (softbusConnector_ != nullptr) { in RegisterSoftbusStateCallback()
56 return softbusConnector_->RegisterSoftbusStateCallback(shared_from_this()); in RegisterSoftbusStateCallback()
104 DmDeviceInfo devInfo = softbusConnector_->GetDeviceInfoByDeviceId(deviceId); in OnDeviceOnline()
113 softbusConnector_->ClearPkgName(); in OnDeviceOnline()
129 softbusConnector_->ClearPkgName(); in OnDeviceOffline()
142 softbusConnector_->ClearPkgName(); in HandleDeviceStatusChange()
147 if (softbusConnector_ != nullptr) { in HandleDeviceStatusChange()
149 softbusConnector_ in HandleDeviceStatusChange()
[all...]
/foundation/distributedhardware/device_manager/services/implementation/src/publish/
H A Ddm_publish_manager.cpp28 : softbusConnector_(softbusConnector), listener_(listener) in DmPublishManager()
77 softbusConnector_->RegisterSoftbusPublishCallback(pkgName, in PublishDeviceDiscovery()
80 return softbusConnector_->PublishDiscovery(publishInfo); in PublishDeviceDiscovery()
95 softbusConnector_->UnRegisterSoftbusPublishCallback(pkgName); in UnPublishDeviceDiscovery()
98 return softbusConnector_->UnPublishDiscovery(publishId); in UnPublishDeviceDiscovery()
/foundation/distributedhardware/device_manager/services/implementation/src/discovery/
H A Ddm_discovery_manager.cpp32 : softbusConnector_(softbusConnector), listener_(listener), hiChainConnector_(hiChainConnector) in DmDiscoveryManager()
94 softbusConnector_->RegisterSoftbusDiscoveryCallback(pkgName, in StartDeviceDiscovery()
97 return softbusConnector_->StartDiscovery(subscribeInfo); in StartDeviceDiscovery()
114 softbusConnector_->RegisterSoftbusDiscoveryCallback(pkgName, in StartDeviceDiscovery()
117 return softbusConnector_->StartDiscovery(subscribeId); in StartDeviceDiscovery()
136 softbusConnector_->UnRegisterSoftbusDiscoveryCallback(pkgName); in StopDeviceDiscovery()
137 return softbusConnector_->StopDiscovery(subscribeId); in StopDeviceDiscovery()
178 if (hiChainConnector_ == nullptr || softbusConnector_ == nullptr) { in GetAuthForm()
179 LOGE("hiChainConnector_ or softbusConnector_ is nullpter."); in GetAuthForm()
190 udidHash = softbusConnector_ in GetAuthForm()
[all...]
/foundation/distributedhardware/device_manager/services/implementation/src/
H A Ddevice_manager_service_impl.cpp51 if (softbusConnector_ == nullptr) { in Initialize()
52 softbusConnector_ = std::make_shared<SoftbusConnector>(); in Initialize()
61 discoveryMgr_ = std::make_shared<DmDiscoveryManager>(softbusConnector_, listener, hiChainConnector_); in Initialize()
64 publishMgr_ = std::make_shared<DmPublishManager>(softbusConnector_, listener); in Initialize()
70 deviceStateMgr_ = std::make_shared<DmDeviceStateManager>(softbusConnector_, listener, in Initialize()
75 authMgr_ = std::make_shared<DmAuthManager>(softbusConnector_, hiChainConnector_, listener, in Initialize()
77 softbusConnector_->GetSoftbusSession()->RegisterSessionCallback(authMgr_); in Initialize()
95 softbusConnector_->GetSoftbusSession()->UnRegisterSessionCallback(); in Release()
101 softbusConnector_ = nullptr; in Release()
207 std::string udisHash = softbusConnector_ in HandleOffline()
[all...]
H A Ddevice_manager_service_impl_lite.cpp41 if (softbusConnector_ == nullptr) { in Initialize()
42 softbusConnector_ = std::make_shared<SoftbusConnector>(); in Initialize()
54 deviceStateMgr_ = std::make_shared<DmDeviceStateManager>(softbusConnector_, listener, in Initialize()
69 softbusConnector_ = nullptr; in Release()
155 if (softbusConnector_ == nullptr) { in GetUdidHashByNetworkId()
156 LOGE("softbusConnector_ is nullpter!"); in GetUdidHashByNetworkId()
160 int32_t ret = softbusConnector_->GetUdidByNetworkId(networkId.c_str(), udid); in GetUdidHashByNetworkId()
165 return softbusConnector_->GetDeviceUdidHashByUdid(udid); in GetUdidHashByNetworkId()
/foundation/distributedhardware/device_manager/test/commonunittest/
H A DUTTest_dm_publish_manager.cpp46 std::shared_ptr<SoftbusConnector> softbusConnector_ = std::make_shared<SoftbusConnector>(); member
48 std::shared_ptr<DmPublishManager> publishMgr_ = std::make_shared<DmPublishManager>(softbusConnector_, listener_);
58 std::shared_ptr<DmPublishManager> Test = std::make_shared<DmPublishManager>(softbusConnector_, listener_); in HWTEST_F()
70 std::shared_ptr<DmPublishManager> Test = std::make_shared<DmPublishManager>(softbusConnector_, listener_); in HWTEST_F()
H A DUTTest_dm_device_state_manager.cpp170 EXPECT_NE(dmDeviceStateManager->softbusConnector_, nullptr); in HWTEST_F()
177 EXPECT_NE(dmDeviceStateManager->softbusConnector_, nullptr); in HWTEST_F()
185 EXPECT_NE(dmDeviceStateManager->softbusConnector_, nullptr); in HWTEST_F()
192 EXPECT_NE(dmDeviceStateManager->softbusConnector_, nullptr); in HWTEST_F()
210 EXPECT_NE(dmDeviceStateManager->softbusConnector_, nullptr); in HWTEST_F()
262 EXPECT_NE(dmDeviceStateManager->softbusConnector_, nullptr); in HWTEST_F()
H A DUTTest_dm_discovery_manager.cpp50 std::shared_ptr<SoftbusConnector> softbusConnector_ = std::make_shared<SoftbusConnector>(); member
54 std::make_shared<DmDiscoveryManager>(softbusConnector_, listener_, hiChainConnector_);
65 std::make_shared<DmDiscoveryManager>(softbusConnector_, listener_, hiChainConnector_); in HWTEST_F()
78 std::make_shared<DmDiscoveryManager>(softbusConnector_, listener_, hiChainConnector_); in HWTEST_F()
406 discoveryMgr_->softbusConnector_ = nullptr; in HWTEST_F()
423 discoveryMgr_->softbusConnector_ = std::make_shared<SoftbusConnector>(); in HWTEST_F()
H A DUTTest_dm_auth_manager_first.cpp63 authManager_->softbusConnector_ = std::make_shared<SoftbusConnector>(); in SetUp()
64 authManager_->softbusConnector_->GetSoftbusSession()->RegisterSessionCallback( in SetUp()
481 authManager_->softbusConnector_->discoveryDeviceInfoMap_.emplace(deviceId, infoPtr); in HWTEST_F()
496 authManager_->softbusConnector_->discoveryDeviceInfoMap_.emplace(deviceId, infoPtr); in HWTEST_F()
778 authManager_->softbusConnector_->deviceStateManagerCallback_ = std::make_shared<SoftbusStateCallbackTest>(); in HWTEST_F()
780 EXPECT_TRUE(authManager_->softbusConnector_->pkgNameVec_.size() > 0); in HWTEST_F()
785 EXPECT_TRUE(authManager_->softbusConnector_->pkgNameVec_.size() > 0); in HWTEST_F()
789 EXPECT_TRUE(authManager_->softbusConnector_->pkgNameVec_.size() > 0); in HWTEST_F()
793 EXPECT_TRUE(authManager_->softbusConnector_->pkgNameVec_.size() > 0); in HWTEST_F()
800 EXPECT_TRUE(authManager_->softbusConnector_ in HWTEST_F()
[all...]
H A DUTTest_dm_auth_manager_third.cpp125 authManager_->softbusConnector_ = std::make_shared<SoftbusConnector>(); in SetUp()
126 authManager_->softbusConnector_->GetSoftbusSession()->RegisterSessionCallback( in SetUp()
236 authManager_->softbusConnector_->deviceStateManagerCallback_ = std::make_shared<SoftbusStateCallbackMock>(); in HWTEST_F()
254 authManager_->softbusConnector_ = nullptr; in HWTEST_F()
273 authManager_->softbusConnector_->deviceStateManagerCallback_ = std::make_shared<SoftbusStateCallbackMock>(); in HWTEST_F()
H A DUTTest_dm_auth_manager_second.cpp44 authManager_->softbusConnector_ = std::make_shared<SoftbusConnector>(); in SetUp()
45 authManager_->softbusConnector_->GetSoftbusSession()->RegisterSessionCallback( in SetUp()
536 authManager_->softbusConnector_->discoveryDeviceInfoMap_.insert( in HWTEST_F()
1193 authManager_->softbusConnector_->discoveryDeviceInfoMap_.clear(); in HWTEST_F()
1210 authManager_->softbusConnector_->discoveryDeviceInfoMap_.emplace(deviceId, infoPtr); in HWTEST_F()
1230 authManager_->softbusConnector_->discoveryDeviceInfoMap_.clear(); in HWTEST_F()
1247 authManager_->softbusConnector_->discoveryDeviceInfoMap_.emplace(deviceId, infoPtr); in HWTEST_F()
1266 authManager_->softbusConnector_->discoveryDeviceInfoMap_.emplace(deviceId, infoPtr); in HWTEST_F()
/foundation/distributedhardware/device_manager/services/implementation/src/authentication/
H A Ddm_auth_manager.cpp104 : softbusConnector_(softbusConnector), hiChainConnector_(hiChainConnector), listener_(listener), in DmAuthManager()
152 if (!softbusConnector_->HaveDeviceInMap(deviceId)) { in CheckAuthParamVaild()
197 authRequestContext_->localDeviceName = softbusConnector_->GetLocalDeviceName(); in GetAuthParam()
198 authRequestContext_->localDeviceTypeId = softbusConnector_->GetLocalDeviceTypeId(); in GetAuthParam()
279 softbusConnector_->JoinLnn(deviceId); in AuthenticateDevice()
352 softbusConnector_->SetPkgName(pkgName); in DeleteAcl()
353 softbusConnector_->HandleDeviceOffline(remoteUdid); in DeleteAcl()
358 softbusConnector_->SetPkgName(pkgName); in DeleteAcl()
403 int32_t ret = softbusConnector_->GetSoftbusSession()->GetPeerDeviceId(sessionId, peerUdid); in GetPeerUdidHash()
425 if (softbusConnector_ ! in DeleteOffLineTimer()
[all...]
/foundation/distributedhardware/device_manager/test/commonfuzztest/dmauthmanager_fuzzer/
H A Ddm_auth_manager_fuzzer.cpp73 g_authManager->softbusConnector_ = std::make_shared<SoftbusConnector>(); in DmAuthManagerFuzzTest()
74 g_authManager->softbusConnector_->GetSoftbusSession()-> in DmAuthManagerFuzzTest()
/foundation/distributedhardware/device_manager/services/implementation/include/publish/
H A Ddm_publish_manager.h73 std::shared_ptr<SoftbusConnector> softbusConnector_; member in OHOS::DistributedHardware::final
/foundation/distributedhardware/device_manager/services/implementation/include/discovery/
H A Ddm_discovery_manager.h108 std::shared_ptr<SoftbusConnector> softbusConnector_; member in OHOS::DistributedHardware::final
/foundation/distributedhardware/device_manager/services/implementation/include/devicestate/
H A Ddm_device_state_manager.h115 std::shared_ptr<SoftbusConnector> softbusConnector_; member in OHOS::DistributedHardware::final
/foundation/distributedhardware/device_manager/test/unittest/
H A DUTTest_auth_request_state.cpp196 authManager->softbusConnector_->GetSoftbusSession()->RegisterSessionCallback(authManager); in HWTEST_F()
373 authManager->softbusConnector_->GetSoftbusSession()->RegisterSessionCallback(authManager); in HWTEST_F()
504 authManager->softbusConnector_->GetSoftbusSession()->RegisterSessionCallback(authManager); in HWTEST_F()
566 authManager->softbusConnector_->GetSoftbusSession()->RegisterSessionCallback(authManager); in HWTEST_F()
H A DUTTest_auth_response_state.cpp243 authManager->softbusConnector_->GetSoftbusSession()->RegisterSessionCallback(authManager); in HWTEST_F()
H A DUTTest_device_manager_service_impl.cpp84 deviceManagerServiceImpl_->softbusConnector_ = nullptr; in HWTEST_F()
1028 deviceManagerServiceImpl_->softbusConnector_ = nullptr; in HWTEST_F()
1154 deviceManagerServiceImpl_->softbusConnector_ = nullptr; in HWTEST_F()
/foundation/distributedhardware/device_manager/services/implementation/include/
H A Ddevice_manager_service_impl_lite.h148 std::shared_ptr<SoftbusConnector> softbusConnector_; member in OHOS::DistributedHardware::DeviceManagerServiceImpl
H A Ddevice_manager_service_impl.h157 std::shared_ptr<SoftbusConnector> softbusConnector_; member in OHOS::DistributedHardware::DeviceManagerServiceImpl
/foundation/distributedhardware/device_manager/services/implementation/include/authentication/
H A Ddm_auth_manager.h536 std::shared_ptr<SoftbusConnector> softbusConnector_; member in OHOS::DistributedHardware::final

Completed in 20 milliseconds