Searched refs:discoveryContextMap_ (Results 1 – 6 of 6) sorted by relevance
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/src/discovery/ |
H A D | dm_discovery_manager.cpp | 92 discoveryContextMap_.emplace(pkgName, context); in StartDeviceDiscovery() 112 discoveryContextMap_.emplace(pkgName, context); in StartDeviceDiscovery() 131 if (!discoveryContextMap_.empty()) { in StopDeviceDiscovery() 132 discoveryContextMap_.erase(pkgName); in StopDeviceDiscovery() 148 auto iter = discoveryContextMap_.find(pkgName); in OnDeviceFound() 149 if (iter == discoveryContextMap_.end()) { in OnDeviceFound() 211 auto iter = discoveryContextMap_.find(pkgName); in OnDeviceFound() 212 if (iter == discoveryContextMap_.end()) { in OnDeviceFound() 247 if (!discoveryContextMap_.empty()) { in OnDiscoveryFailed() 248 discoveryContextMap_.erase(pkgName); in OnDiscoveryFailed() [all …]
|
/ohos5.0/foundation/distributedhardware/device_manager/test/commonunittest/ |
H A D | UTTest_dm_discovery_manager.cpp | 239 discoveryMgr_->discoveryContextMap_[pkgName] = context; 246 EXPECT_EQ(discoveryMgr_->discoveryContextMap_.empty(), false); 274 discoveryMgr_->discoveryContextMap_[pkgName] = context; 278 int ret = discoveryMgr_->discoveryContextMap_.count(pkgName); 293 discoveryMgr_->discoveryContextMap_.clear(); 295 EXPECT_EQ(discoveryMgr_->discoveryContextMap_.empty(), true); 327 discoveryMgr_->discoveryContextMap_.clear(); 329 EXPECT_EQ(discoveryMgr_->discoveryContextMap_.empty(), true); 446 EXPECT_EQ(discoveryMgr_->discoveryContextMap_.empty(), true); 480 EXPECT_EQ(discoveryMgr_->discoveryContextMap_.empty(), true); [all …]
|
H A D | UTTest_discovery_manager.cpp | 246 manager->discoveryContextMap_.emplace(pkgName, context); 257 EXPECT_EQ(manager->discoveryContextMap_.empty(), true); 266 EXPECT_EQ(manager->discoveryContextMap_.empty(), true); 275 EXPECT_EQ(manager->discoveryContextMap_.empty(), true); 285 EXPECT_EQ(manager->discoveryContextMap_.empty(), true); 295 EXPECT_NE(manager->discoveryContextMap_.empty(), true); 305 manager->discoveryContextMap_.emplace(pkgName, context); 308 EXPECT_EQ(manager->discoveryContextMap_.empty(), true); 316 EXPECT_EQ(manager->discoveryContextMap_.empty(), true); 342 manager->discoveryContextMap_.clear(); [all …]
|
/ohos5.0/foundation/distributedhardware/device_manager/services/service/src/discovery/ |
H A D | discovery_manager.cpp | 316 if (discoveryContextMap_.find(pkgName) != discoveryContextMap_.end()) { in StopDiscovering() 317 discoveryContextMap_.erase(pkgName); in StopDiscovering() 367 auto iter = discoveryContextMap_.find(pkgName); in OnDeviceFound() 368 isIndiscoveryContextMap = (iter != discoveryContextMap_.end()); in OnDeviceFound() 424 discoveryContextMap_[pkgName].subscribeId = (uint32_t)subscribeId; in OnDiscoveringResult() 433 if (discoveryContextMap_.find(pkgName) != discoveryContextMap_.end()) { in OnDiscoveringResult() 434 discoveryContextMap_.erase(pkgName); in OnDiscoveringResult() 477 discoveryContextMap_.emplace(pkgName, context); in HandleDiscoveryQueue() 496 auto iter = discoveryContextMap_.find(pkgName); in HandleDiscoveryTimeout() 497 if (iter == discoveryContextMap_.end()) { in HandleDiscoveryTimeout() [all …]
|
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/include/discovery/ |
H A D | dm_discovery_manager.h | 112 std::map<std::string, DmDiscoveryContext> discoveryContextMap_; variable
|
/ohos5.0/foundation/distributedhardware/device_manager/services/service/include/discovery/ |
H A D | discovery_manager.h | 101 std::map<std::string, DiscoveryContext> discoveryContextMap_; variable
|