/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/network/softbus/ |
H A D | softbus_handler_test.cpp | 126 handler.serverIdMap_.erase(sessionName); 132 handler.serverIdMap_.erase(sessionName); 139 if (handler.serverIdMap_.find(sessionName) != handler.serverIdMap_.end()) { 144 handler.serverIdMap_.erase(sessionName); 351 handler.serverIdMap_.clear(); 352 handler.serverIdMap_.insert(std::make_pair(sessionName2, 2)); 358 auto iter = handler.serverIdMap_.find(sessionName2); 359 if (iter == handler.serverIdMap_.end()) { 385 SoftBusHandler::GetInstance().serverIdMap_.clear(); 431 if (iter == SoftBusHandler::GetInstance().serverIdMap_.end()) { [all …]
|
H A D | softbus_file_send_listener_test.cpp | 117 SoftBusHandler::GetInstance().serverIdMap_.insert(std::make_pair(SESSION_NAME, SOCKET_ID)); 121 auto it = SoftBusHandler::GetInstance().serverIdMap_.find(SESSION_NAME); 122 if (it == SoftBusHandler::GetInstance().serverIdMap_.end()) { 144 SoftBusHandler::GetInstance().serverIdMap_.insert(std::make_pair(SESSION_NAME, SOCKET_ID)); 147 auto it = SoftBusHandler::GetInstance().serverIdMap_.find(SESSION_NAME); 148 if (it == SoftBusHandler::GetInstance().serverIdMap_.end()) {
|
H A D | softbus_handler_asset_test.cpp | 94 softBusHandlerAsset.serverIdMap_.clear(); 97 EXPECT_EQ(softBusHandlerAsset.serverIdMap_.size(), 0); 102 EXPECT_EQ(softBusHandlerAsset.serverIdMap_.size(), 0); 107 …if (softBusHandlerAsset.serverIdMap_.find(sessionName) != softBusHandlerAsset.serverIdMap_.end()) { 116 EXPECT_EQ(softBusHandlerAsset.serverIdMap_.size(), 1); 118 softBusHandlerAsset.serverIdMap_.clear(); 138 …if (softBusHandlerAsset.serverIdMap_.find(sessionName) != softBusHandlerAsset.serverIdMap_.end()) { 144 softBusHandlerAsset.serverIdMap_.insert(make_pair("test", 0)); 149 EXPECT_EQ(softBusHandlerAsset.serverIdMap_.size(), 1); 154 EXPECT_EQ(softBusHandlerAsset.serverIdMap_.size(), 1); [all …]
|
H A D | softbus_agent_test.cpp | 188 agent->serverIdMap_.insert(std::make_pair(busName, 1)); 190 agent->serverIdMap_.erase(busName); 217 agent->serverIdMap_.insert(std::make_pair(busName, 1)); 225 agent->serverIdMap_.erase(busName);
|
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/ |
H A D | softbus_handler.cpp | 47 std::map<std::string, int32_t> SoftBusHandler::serverIdMap_; member in OHOS::Storage::DistributedFile::SoftBusHandler 54 auto it = serverIdMap_.find(info.name); in OnSinkSessionOpened() 55 if (it != serverIdMap_.end()) { in OnSinkSessionOpened() 57 serverIdMap_.erase(it); in OnSinkSessionOpened() 175 serverIdMap_.insert(std::make_pair(sessionName, socketId)); in CreateSessionServer() 310 if (!serverIdMap_.empty()) { in CloseSession() 312 auto it = serverIdMap_.find(sessionName); in CloseSession() 313 if (it != serverIdMap_.end()) { in CloseSession() 315 serverIdMap_.erase(it); in CloseSession() 397 auto it = serverIdMap_.find(sessionName); in IsService() [all …]
|
H A D | softbus_agent.cpp | 137 serverIdMap_.insert(std::make_pair(sessionName_, socketId)); in JoinDomain() 145 if (!serverIdMap_.empty()) { in QuitDomain() 146 for (auto it = serverIdMap_.begin(); it != serverIdMap_.end(); it++) { in QuitDomain() 148 int32_t serverId = serverIdMap_[sessionName_]; in QuitDomain()
|
H A D | softbus_handler_asset.cpp | 88 if (serverIdMap_.find(ASSET_LOCAL_SESSION_NAME) != serverIdMap_.end()) { in CreateAssetLocalSessionServer() 119 serverIdMap_.insert(std::make_pair(ASSET_LOCAL_SESSION_NAME, socketId)); in CreateAssetLocalSessionServer() 128 if (!serverIdMap_.empty()) { in DeleteAssetLocalSessionServer() 129 auto it = serverIdMap_.find(ASSET_LOCAL_SESSION_NAME); in DeleteAssetLocalSessionServer() 130 if (it == serverIdMap_.end()) { in DeleteAssetLocalSessionServer() 135 serverIdMap_.erase(it); in DeleteAssetLocalSessionServer()
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/softbusadapter/src/ |
H A D | softbus_adapter.cpp | 116 for (auto it = serverIdMap_.begin(); it != serverIdMap_.end(); it++) { in CreateSoftbusSessionServer() 147 serverIdMap_.insert(std::make_pair(socketId, sessionName + "_" + peerDevId)); in CreateSoftbusSessionServer() 166 for (auto it = serverIdMap_.begin(); it != serverIdMap_.end();) { in RemoveSoftbusSessionServer() 169 it = serverIdMap_.erase(it); in RemoveSoftbusSessionServer() 304 for (auto it = serverIdMap_.begin(); it != serverIdMap_.end(); it++) { in OnSoftbusSessionOpened()
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/softbusadapter/test/unittest/src/ |
H A D | softbus_adapter_test.cpp | 131 softbusAdapter.serverIdMap_.clear(); 152 softbusAdapter.serverIdMap_.clear(); 153 softbusAdapter.serverIdMap_.insert(std::make_pair(100000, sessionName + "_" + peerDevId)); 169 softbusAdapter.serverIdMap_.clear(); 170 softbusAdapter.serverIdMap_.insert(std::make_pair(100000, sessionName + "__" + peerDevId));
|
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/network/softbus/ |
H A D | softbus_agent.h | 48 std::map<std::string, int32_t> serverIdMap_; variable
|
H A D | softbus_handler.h | 68 static std::map<std::string, int32_t> serverIdMap_; variable
|
H A D | softbus_handler_asset.h | 88 std::map<std::string, int32_t> serverIdMap_; variable
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/softbusadapter/include/ |
H A D | softbus_adapter.h | 76 std::map<int32_t, std::string> serverIdMap_; variable
|