/foundation/CastEngine/castengine_cast_plus_stream/src/channel/src/softbus/ |
H A D | softbus_connection.cpp | 195 std::string mySessionName = SoftBusWrapper::GetSoftBusMySessionName(sessionId); in GetConnection() local 196 if (mySessionName.empty()) { in GetConnection() 197 CLOGE("Find mySessionName Failed in GetConnection, sessionId = %{public}d.", sessionId); in GetConnection() 202 auto iter = connectionMap_.find(mySessionName); in GetConnection() 204 CLOGE("Find Conn Failed in GetConnection, sessionId = %{public}d, mySessionName = %{public}s.", sessionId, in GetConnection() 205 mySessionName.c_str()); in GetConnection() 209 ret = std::make_pair(true, connectionMap_[mySessionName]); in GetConnection() 334 std::string mySessionName = softbus_.GetSpecMySessionName(); in StartListen() local 335 int ret = SoftBusWrapper::StartSoftBusService(PACKAGE_NAME, mySessionName, &sessionListener_); in StartListen() 337 CLOGE("StartSoftBusService Failed When Listening. mySessionName in StartListen() 350 std::string mySessionName = softbus_.GetSpecMySessionName(); SetupSession() local 475 std::string mySessionName = softbus_.GetSpecMySessionName(); CloseConnection() local [all...] |
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/channel/src/softbus/ |
H A D | softbus_connection.cpp | 195 std::string mySessionName = SoftBusWrapper::GetSoftBusMySessionName(sessionId); in GetConnection() local 196 if (mySessionName.empty()) { in GetConnection() 197 CLOGE("Find mySessionName Failed in GetConnection, sessionId = %{public}d.", sessionId); in GetConnection() 202 auto iter = connectionMap_.find(mySessionName); in GetConnection() 204 CLOGE("Find Conn Failed in GetConnection, sessionId = %{public}d, mySessionName = %{public}s.", sessionId, in GetConnection() 205 mySessionName.c_str()); in GetConnection() 209 ret = std::make_pair(true, connectionMap_[mySessionName]); in GetConnection() 331 std::string mySessionName = softbus_.GetSpecMySessionName(); in StartListen() local 332 int ret = SoftBusWrapper::StartSoftBusService(PACKAGE_NAME, mySessionName, &sessionListener_); in StartListen() 334 CLOGE("StartSoftBusService Failed When Listening. mySessionName in StartListen() 347 std::string mySessionName = softbus_.GetSpecMySessionName(); SetupSession() local 472 std::string mySessionName = softbus_.GetSpecMySessionName(); CloseConnection() local [all...] |
/foundation/communication/dsoftbus/tests/core/transmission/fuzztest/softbusproxychannellistener_fuzzer/ |
H A D | softbusproxychannellistener_fuzzer.cpp | 34 char mySessionName[SESSION_NAME_SIZE_MAX] = {0}; in TransOpenNetWorkingChannelSessionNameTest() local 35 if (memcpy_s(mySessionName, SESSION_NAME_SIZE_MAX, data, size)) { in TransOpenNetWorkingChannelSessionNameTest() 41 TransOpenNetWorkingChannel(mySessionName, peerNetworkId, nullptr); in TransOpenNetWorkingChannelSessionNameTest() 55 const char *mySessionName = TEST_SESSION_NAME; in TransOpenNetWorkingChannelPeerNetworkIdTest() local 56 TransOpenNetWorkingChannel(mySessionName, peerNetworkId, nullptr); in TransOpenNetWorkingChannelPeerNetworkIdTest()
|
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/br/file/ |
H A D | proxy_session_file_test.cpp | 86 string mySessionName; member 244 static void OpenAllSession(int32_t dataType, const string &mySessionName, const string &peerSessionName); 327 void AuthSessionTest::OpenAllSession(int32_t dataType, const string &mySessionName, const string &peerSessionName) in OpenAllSession() argument 333 int32_t ret = OpenSession(mySessionName.c_str(), peerSessionName.c_str(), networkId.c_str(), "", &attribute); in OpenAllSession() 437 OpenAllSession(transInfo.dataType, transInfo.mySessionName, transInfo.peerSessionName); in TransTest() 498 transInfo.mySessionName = FILE_SESSION_NAME; in HWTEST_F() 502 transInfo.mySessionName = FILE_SESSION_NAME_DEMO; in HWTEST_F() 508 int32_t ret = CreateSessionServer(pkgName.c_str(), transInfo.mySessionName.c_str(), &g_listener); in HWTEST_F() 510 ret = SetFileSendListener(pkgName.c_str(), transInfo.mySessionName.c_str(), &g_fileSendListener); in HWTEST_F() 513 ret = RemoveSessionServer(pkgName.c_str(), transInfo.mySessionName in HWTEST_F() 544 std::string mySessionName; HWTEST_F() local [all...] |
/foundation/communication/dsoftbus/tests/sdk/transmission/session/ |
H A D | client_trans_session_service_impl_test.cpp | 157 * @tc.desc: Test when mySessionName is empty then OpenSession returns nullptr. 163 std::string mySessionName = ""; in HWTEST_F() local 170 sessionServiceImpl.OpenSession(mySessionName, peerSessionName, peerNetworkId, groupId, flags); in HWTEST_F() 182 std::string mySessionName = "mySessionName"; in HWTEST_F() local 189 sessionServiceImpl.OpenSession(mySessionName, peerSessionName, peerNetworkId, groupId, flags); in HWTEST_F() 201 std::string mySessionName = "mySessionName"; in HWTEST_F() local 208 sessionServiceImpl.OpenSession(mySessionName, peerSessionName, peerNetworkId, groupId, flags); in HWTEST_F() 220 std::string mySessionName in HWTEST_F() local [all...] |
/foundation/communication/dsoftbus/core/common/security/permission/small/ |
H A D | softbus_permission.c | 93 int32_t CheckTransSecLevel(const char *mySessionName, const char *peerSessionName) in CheckTransSecLevel() argument 95 if (mySessionName == NULL || peerSessionName == NULL) { in CheckTransSecLevel() 99 if (strcmp(mySessionName, peerSessionName) == 0) { in CheckTransSecLevel() 102 if (!PermIsSecLevelPublic(mySessionName)) { in CheckTransSecLevel() 103 COMM_LOGI(COMM_PERM, "mySessionName isn't seclevel"); in CheckTransSecLevel()
|
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/sessionmock_fuzzer/ |
H A D | sessionmock_fuzzer.cpp | 30 char mySessionName[SESSION_NAME_SIZE_MAX] = "ohos.fuzz.dms.test"; in CreateSessionServerInnerTest() local 31 CreateSessionServerInner(nullptr, mySessionName); in CreateSessionServerInnerTest() 40 char mySessionName[SESSION_NAME_SIZE_MAX] = "ohos.fuzz.dms.test"; in RemoveSessionServerInnerTest() local 41 RemoveSessionServerInner(nullptr, mySessionName); in RemoveSessionServerInnerTest() 53 char mySessionName[SESSION_NAME_SIZE_MAX] = "ohos.fuzz.dms.test"; in OpenSessionInnerTest() local 57 OpenSessionInner(mySessionName, peerSessionName, peerNetworkId, groupId, size); in OpenSessionInnerTest()
|
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/br/optimization/ |
H A D | auth_session_test2.cpp | 61 string mySessionName; member 219 static void OpenAllSession(int32_t dataType, const string &mySessionName, const string &peerSessionName); 306 void AuthSessionTest::OpenAllSession(int32_t dataType, const string &mySessionName, const string &peerSessionName) in OpenAllSession() argument 312 int32_t ret = OpenSession(mySessionName.c_str(), peerSessionName.c_str(), networkId.c_str(), "", &attribute); in OpenAllSession() 413 OpenAllSession(transInfo.dataType, transInfo.mySessionName, transInfo.peerSessionName); in TransTest() 453 OpenAllSession(transInfo.dataType, transInfo.mySessionName, transInfo.peerSessionName); in TransTestCase001() 489 .mySessionName = FILE_SESSION_NAME, in HWTEST_F() 495 int32_t ret = CreateSessionServer(FILE_TEST_PKG_NAME.c_str(), transInfo.mySessionName.c_str(), &g_listener); in HWTEST_F() 499 ret = RemoveSessionServer(FILE_TEST_PKG_NAME.c_str(), transInfo.mySessionName.c_str()); in HWTEST_F() 519 .mySessionName in HWTEST_F() [all...] |
/foundation/communication/dsoftbus/core/common/security/permission/standard/ |
H A D | access_control_virtual.c | 27 int32_t CheckSecLevelPublic(const char *mySessionName, const char *peerSessionName) in CheckSecLevelPublic() argument 29 (void)mySessionName; in CheckSecLevelPublic()
|
H A D | softbus_permission.cpp | 106 int32_t CheckTransSecLevel(const char *mySessionName, const char *peerSessionName) in CheckTransSecLevel() argument 108 if (mySessionName == nullptr || peerSessionName == nullptr) { in CheckTransSecLevel() 112 if (strcmp(mySessionName, peerSessionName) == 0) { in CheckTransSecLevel() 115 if (!PermIsSecLevelPublic(mySessionName)) { in CheckTransSecLevel() 116 COMM_LOGI(COMM_PERM, "mySessionName isn't seclevel"); in CheckTransSecLevel()
|
H A D | access_control.cpp | 104 int32_t CheckSecLevelPublic(const char *mySessionName, const char *peerSessionName) in CheckSecLevelPublic() argument 106 if (mySessionName == nullptr || peerSessionName == nullptr) { in CheckSecLevelPublic() 115 if (strcmp(mySessionName, peerSessionName) != 0) { in CheckSecLevelPublic() 116 if (!PermIsSecLevelPublic(mySessionName)) { in CheckSecLevelPublic() 118 Anonymize(mySessionName, &tmpName); in CheckSecLevelPublic()
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/src/ |
H A D | client_trans_file_listener.c | 76 if (strcmp(fileNode->mySessionName, sessionName) == 0) { in TransSetFileReceiveListener() 99 if (strcpy_s(fileNode->mySessionName, SESSION_NAME_SIZE_MAX, sessionName) != EOK || in TransSetFileReceiveListener() 130 if (strcmp(fileNode->mySessionName, sessionName) == 0) { in TransSetFileSendListener() 152 if (strcpy_s(fileNode->mySessionName, SESSION_NAME_SIZE_MAX, sessionName) != EOK || in TransSetFileSendListener() 178 if (strcpy_s(listener->mySessionName, SESSION_NAME_SIZE_MAX, sessionName) != EOK) { in TransAddNewSocketFileListener() 210 if (strcmp(fileNode->mySessionName, sessionName) == 0) { in TransSetSocketFileListener() 254 if (strcmp(fileNode->mySessionName, sessionName) == 0) { in TransGetFileListener() 285 if (strcmp(fileNode->mySessionName, sessionName) == 0) { in TransDeleteFileListener()
|
/foundation/communication/dsoftbus/core/common/security/permission/mini/ |
H A D | softbus_permission.c | 39 int32_t CheckTransSecLevel(const char *mySessionName, const char *peerSessionName) in CheckTransSecLevel() argument 41 (void)mySessionName; in CheckTransSecLevel()
|
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/opensession_fuzzer/ |
H A D | opensession_fuzzer.cpp | 29 char *mySessionName = nullptr; in OpenSessionTest() local 38 OpenSession((const char*)tmp, mySessionName, workId, groupId, &attr); in OpenSessionTest()
|
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/distributed_stream/ |
H A D | distributed_stream_test.cpp | 77 void P2pTransTest(bool isRawStream, bool isP2P, int32_t sendCnt, const string &mySessionName, 82 void OpenAllSession(bool isRawStream, bool isP2P, const string &mySessionName, const string &peerSessionName); 83 void OpenCtrlSession(const string &mySessionName, const string &peerSessionName); 322 const string &mySessionName, const string &peerSessionName) in OpenAllSession() 335 int32_t ret = OpenSession(mySessionName.c_str(), peerSessionName.c_str(), networkId.c_str(), "", &attribute); in OpenAllSession() 351 void DistributeStreamTest::OpenCtrlSession(const string &mySessionName, const string &peerSessionName) in OpenCtrlSession() argument 361 int32_t ret = OpenSession(mySessionName.c_str(), peerSessionName.c_str(), networkId.c_str(), "", &attribute); in OpenCtrlSession() 430 int32_t sendCnt, const string &mySessionName, const string &peerSessionName) in P2pTransTest() 432 OpenAllSession(isRawStream, isP2P, mySessionName, peerSessionName); in P2pTransTest() 321 OpenAllSession(bool isRawStream, bool isP2P, const string &mySessionName, const string &peerSessionName) OpenAllSession() argument 429 P2pTransTest(bool isRawStream, bool isP2P, int32_t sendCnt, const string &mySessionName, const string &peerSessionName) P2pTransTest() argument
|
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/tcp_direct/ |
H A D | trans_session_test.cpp | 268 char mySessionName[TEST_SESSION_NAME_LEN] = "com.test.trans.session.sendfile"; in HWTEST_F() local 276 .sessionName = mySessionName, in HWTEST_F() 286 (void)ClientAddSessionServer(SEC_TYPE_CIPHERTEXT, pkgName, mySessionName, &g_sessionlistener); in HWTEST_F() 332 char mySessionName[TEST_SESSION_NAME_LEN] = "com.test.trans.session.sendfile"; in HWTEST_F() local 340 .sessionName = mySessionName, in HWTEST_F() 349 int32_t ret = ClientAddSessionServer(SEC_TYPE_CIPHERTEXT, pkgName, mySessionName, &g_sessionlistener); in HWTEST_F()
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/ |
H A D | softbus_handler.cpp | 162 int32_t SoftBusHandler::OpenSession(const std::string &mySessionName, const std::string &peerSessionName, in OpenSession() argument 165 if (mySessionName.empty() || peerSessionName.empty() || peerDevId.empty()) { in OpenSession() 175 if (!CreatSocketId(mySessionName, peerSessionName, peerDevId, socketId)) { in OpenSession() 182 RadarDotsOpenSession("OpenSession", mySessionName, peerSessionName, ret, Utils::StageRes::STAGE_FAIL); in OpenSession() 187 clientSessNameMap_.insert(std::make_pair(socketId, mySessionName)); in OpenSession() 193 RadarDotsOpenSession("OpenSession", mySessionName, peerSessionName, ret, Utils::StageRes::STAGE_SUCCESS); in OpenSession() 198 bool SoftBusHandler::CreatSocketId(const std::string &mySessionName, const std::string &peerSessionName, in CreatSocketId() argument 202 .name = const_cast<char*>((mySessionName.c_str())), in CreatSocketId()
|
/foundation/distributedhardware/distributed_camera/services/channel/src/ |
H A D | dcamera_softbus_adapter.cpp | 145 int32_t DCameraSoftbusAdapter::CreatSoftBusSinkSocketServer(std::string mySessionName, DCAMERA_CHANNEL_ROLE role, in CreatSoftBusSinkSocketServer() argument 148 DHLOGI("create socket server start, mySessionName: %{public}s,peerSessionName: %{public}s", in CreatSoftBusSinkSocketServer() 149 GetAnonyString(mySessionName).c_str(), GetAnonyString(peerSessionName).c_str()); in CreatSoftBusSinkSocketServer() 153 .name = const_cast<char*>(mySessionName.c_str()), in CreatSoftBusSinkSocketServer() 161 .name = const_cast<char*>(mySessionName.c_str()), in CreatSoftBusSinkSocketServer() 187 std::string peerDevIdMySessionName = peerDevId + std::string("_") + mySessionName; in CreatSoftBusSinkSocketServer() 188 peerDevIdMySessionNameMap_[peerDevIdMySessionName] = mySessionName; in CreatSoftBusSinkSocketServer() 190 DHLOGI("create socket server end, mySessionName: %{public}s, peerSessionName: %{public}s", in CreatSoftBusSinkSocketServer() 191 GetAnonyString(mySessionName).c_str(), GetAnonyString(peerSessionName).c_str()); in CreatSoftBusSinkSocketServer() 520 std::string mySessionName in DCameraSoftBusGetSessionByPeerSocket() local [all...] |
/foundation/communication/dsoftbus/sdk/transmission/session/cpp/src/ |
H A D | session_mock.cpp | 41 int OpenSessionInner(const char *mySessionName, const char *peerSessionName, const char *peerNetworkId, in OpenSessionInner() argument 45 return OpenSessionSync(mySessionName, peerSessionName, peerNetworkId, groupId, &attr); in OpenSessionInner()
|
H A D | session_service_impl.cpp | 81 std::shared_ptr<Session> SessionServiceImpl::OpenSession(const std::string &mySessionName, in OpenSession() argument 85 if (mySessionName.empty() || peerSessionName.empty() || peerNetworkId.empty()) { in OpenSession() 89 OpenSessionInner(mySessionName.c_str(), peerSessionName.c_str(), peerNetworkId.c_str(), groupId.c_str(), flags); in OpenSession() 158 std::string mySessionName(str); in CreateSession() 159 session->SetMySessionName(mySessionName); in CreateSession() 274 std::string mySessionName(str); in GetSessionListenerOnSessionOpened() 277 auto iterListener = listenerMap_.find(mySessionName); in GetSessionListenerOnSessionOpened()
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/network/softbus/ |
H A D | softbus_handler.h | 42 int32_t OpenSession(const std::string &mySessionName, const std::string &peerSessionName, 59 bool CreatSocketId(const std::string &mySessionName, const std::string &peerSessionName,
|
/foundation/distributedhardware/distributed_input/dfx_utils/test/dfxtest/ |
H A D | distributed_input_dfx_test.cpp | 107 std::string mySessionName = "mySessionName_test"; in HWTEST_F() local 111 HiDumper::GetInstance().CreateSessionInfo(remoteDevId, sessionId, mySessionName, peerSessionName, sessionStatus); in HWTEST_F() 117 HiDumper::GetInstance().CreateSessionInfo(remoteDevId, sessionId, mySessionName, peerSessionName, sessionStatus); in HWTEST_F()
|
/foundation/communication/dsoftbus/core/common/security/permission/include/ |
H A D | access_control.h | 37 int32_t CheckSecLevelPublic(const char *mySessionName, const char *peerSessionName);
|
/foundation/communication/dsoftbus/sdk/transmission/session/include/ |
H A D | client_trans_session_service.h | 27 int OpenSessionSync(const char *mySessionName, const char *peerSessionName, const char *peerNetworkId,
|
/foundation/communication/dsoftbus/sdk/transmission/session/src/ |
H A D | client_trans_session_service.c | 178 static int32_t CheckParamIsValid(const char *mySessionName, const char *peerSessionName, in CheckParamIsValid() argument 181 if (!IsValidString(mySessionName, SESSION_NAME_SIZE_MAX - 1)) { in CheckParamIsValid() 183 Anonymize(mySessionName, &tmpMyName); in CheckParamIsValid() 184 TRANS_LOGE(TRANS_SDK, "invalid mySessionName. tmpMyName=%{public}s", AnonymizeWrapper(tmpMyName)); in CheckParamIsValid() 218 static void PrintSessionName(const char *mySessionName, const char *peerSessionName) in PrintSessionName() argument 222 Anonymize(mySessionName, &tmpMyName); in PrintSessionName() 224 TRANS_LOGI(TRANS_SDK, "OpenSession: mySessionName=%{public}s, peerSessionName=%{public}s", in PrintSessionName() 247 static void InitSessionParam(const char *mySessionName, const char *peerSessionName, const char *peerNetworkId, in InitSessionParam() argument 250 param->sessionName = mySessionName; in InitSessionParam() 260 int OpenSession(const char *mySessionName, cons argument 499 OpenSessionSync(const char *mySessionName, const char *peerSessionName, const char *peerNetworkId, const char *groupId, const SessionAttribute *attr) OpenSessionSync() argument [all...] |