Home
last modified time | relevance | path

Searched refs:serverIdMap_ (Results 1 - 13 of 13) sorted by relevance

/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/network/softbus/
H A Dsoftbus_handler_test.cpp126 handler.serverIdMap_.erase(sessionName); in HWTEST_F()
132 handler.serverIdMap_.erase(sessionName); in HWTEST_F()
139 if (handler.serverIdMap_.find(sessionName) != handler.serverIdMap_.end()) { in HWTEST_F()
144 handler.serverIdMap_.erase(sessionName); in HWTEST_F()
349 handler.serverIdMap_.clear(); in HWTEST_F()
350 handler.serverIdMap_.insert(std::make_pair(sessionName2, 2)); in HWTEST_F()
358 auto iter = handler.serverIdMap_.find(sessionName2); in HWTEST_F()
359 if (iter != handler.serverIdMap_.end()) { in HWTEST_F()
360 handler.serverIdMap_ in HWTEST_F()
[all...]
H A Dsoftbus_file_send_listener_test.cpp117 SoftBusHandler::GetInstance().serverIdMap_.insert(std::make_pair(SESSION_NAME, SOCKET_ID)); in HWTEST_F()
121 auto it = SoftBusHandler::GetInstance().serverIdMap_.find(SESSION_NAME); in HWTEST_F()
122 if (it == SoftBusHandler::GetInstance().serverIdMap_.end()) { in HWTEST_F()
144 SoftBusHandler::GetInstance().serverIdMap_.insert(std::make_pair(SESSION_NAME, SOCKET_ID)); in HWTEST_F()
147 auto it = SoftBusHandler::GetInstance().serverIdMap_.find(SESSION_NAME); in HWTEST_F()
148 if (it == SoftBusHandler::GetInstance().serverIdMap_.end()) { in HWTEST_F()
H A Dsoftbus_handler_asset_test.cpp94 softBusHandlerAsset.serverIdMap_.clear(); in HWTEST_F()
97 EXPECT_EQ(softBusHandlerAsset.serverIdMap_.size(), 0); in HWTEST_F()
102 EXPECT_EQ(softBusHandlerAsset.serverIdMap_.size(), 0); in HWTEST_F()
107 if (softBusHandlerAsset.serverIdMap_.find(sessionName) != softBusHandlerAsset.serverIdMap_.end()) { in HWTEST_F()
116 EXPECT_EQ(softBusHandlerAsset.serverIdMap_.size(), 1); in HWTEST_F()
118 softBusHandlerAsset.serverIdMap_.clear(); in HWTEST_F()
138 if (softBusHandlerAsset.serverIdMap_.find(sessionName) != softBusHandlerAsset.serverIdMap_.end()) { in HWTEST_F()
144 softBusHandlerAsset.serverIdMap_ in HWTEST_F()
[all...]
H A Dsoftbus_agent_test.cpp186 agent->serverIdMap_.insert(std::make_pair(busName, 1)); in HWTEST_F()
188 agent->serverIdMap_.erase(busName); in HWTEST_F()
215 agent->serverIdMap_.insert(std::make_pair(busName, 1)); in HWTEST_F()
223 agent->serverIdMap_.erase(busName); in HWTEST_F()
/foundation/distributedhardware/distributed_screen/services/softbusadapter/src/
H A Dsoftbus_adapter.cpp116 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()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/
H A Dsoftbus_handler.cpp45 std::map<std::string, int32_t> SoftBusHandler::serverIdMap_; member in OHOS::Storage::DistributedFile::SoftBusHandler
155 serverIdMap_.insert(std::make_pair(sessionName, socketId)); in CreateSessionServer()
286 if (!serverIdMap_.empty()) { in CloseSession()
288 auto it = serverIdMap_.find(sessionName); in CloseSession()
289 if (it != serverIdMap_.end()) { in CloseSession()
291 serverIdMap_.erase(it); in CloseSession()
367 auto it = serverIdMap_.find(sessionName); in IsService()
368 if (it == serverIdMap_.end()) { in IsService()
H A Dsoftbus_agent.cpp130 serverIdMap_.insert(std::make_pair(sessionName_, socketId)); in JoinDomain()
138 if (!serverIdMap_.empty()) { in QuitDomain()
139 for (auto it = serverIdMap_.begin(); it != serverIdMap_.end(); it++) { in QuitDomain()
141 int32_t serverId = serverIdMap_[sessionName_]; in QuitDomain()
H A Dsoftbus_handler_asset.cpp88 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()
/foundation/distributedhardware/distributed_screen/services/softbusadapter/test/unittest/src/
H A Dsoftbus_adapter_test.cpp131 softbusAdapter.serverIdMap_.clear(); in HWTEST_F()
152 softbusAdapter.serverIdMap_.clear(); in HWTEST_F()
153 softbusAdapter.serverIdMap_.insert(std::make_pair(100000, sessionName + "_" + peerDevId)); in HWTEST_F()
169 softbusAdapter.serverIdMap_.clear(); in HWTEST_F()
170 softbusAdapter.serverIdMap_.insert(std::make_pair(100000, sessionName + "__" + peerDevId)); in HWTEST_F()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/network/softbus/
H A Dsoftbus_agent.h49 std::map<std::string, int32_t> serverIdMap_; member in OHOS::Storage::DistributedFile::final
H A Dsoftbus_handler.h68 static std::map<std::string, int32_t> serverIdMap_; member in OHOS::Storage::DistributedFile::SoftBusHandler
H A Dsoftbus_handler_asset.h88 std::map<std::string, int32_t> serverIdMap_; member in OHOS::Storage::DistributedFile::SoftBusHandlerAsset
/foundation/distributedhardware/distributed_screen/services/softbusadapter/include/
H A Dsoftbus_adapter.h76 std::map<int32_t, std::string> serverIdMap_; member in OHOS::DistributedHardware::SoftbusAdapter

Completed in 10 milliseconds