/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/ |
H A D | softbus_session_dispatcher.cpp | 67 weak_ptr<SoftbusAgent> SoftbusSessionDispatcher::GetAgent(int32_t sessionId, std::string peerSessionName) in GetAgent() argument 69 if (peerSessionName.empty()) { in GetAgent() 73 auto agent = busNameToAgent_.find(string(peerSessionName)); in GetAgent() 75 LOGI("Get softbus Agent Success, busName:%{public}s", peerSessionName.c_str()); in GetAgent() 84 std::string peerSessionName(info.name); in OnSessionOpened() 88 idMap_[sessionId] = std::make_pair(peerDevId, peerSessionName); in OnSessionOpened() 90 auto agent = GetAgent(sessionId, peerSessionName); in OnSessionOpened() 102 std::string peerSessionName = ""; in OnSessionClosed() local 109 peerSessionName = it->second.second; in OnSessionClosed() 114 auto agent = GetAgent(sessionId, peerSessionName); in OnSessionClosed() [all...] |
/foundation/communication/dsoftbus/tests/sdk/transmission/session/ |
H A D | client_trans_session_service_impl_test.cpp | 164 std::string peerSessionName = "peerSessionName"; in HWTEST_F() local 170 sessionServiceImpl.OpenSession(mySessionName, peerSessionName, peerNetworkId, groupId, flags); in HWTEST_F() 176 * @tc.desc: Test when peerSessionName is empty then OpenSession returns nullptr. 183 std::string peerSessionName = ""; in HWTEST_F() local 189 sessionServiceImpl.OpenSession(mySessionName, peerSessionName, peerNetworkId, groupId, flags); in HWTEST_F() 202 std::string peerSessionName = "peerSessionName"; in HWTEST_F() local 208 sessionServiceImpl.OpenSession(mySessionName, peerSessionName, peerNetworkId, groupId, flags); in HWTEST_F() 221 std::string peerSessionName 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() 106 if (!PermIsSecLevelPublic(peerSessionName)) { in CheckTransSecLevel() 107 COMM_LOGI(COMM_PERM, "peerSessionName isn't seclevel"); in CheckTransSecLevel()
|
/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 30 (void)peerSessionName; 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() 119 if (!PermIsSecLevelPublic(peerSessionName)) { in CheckTransSecLevel() 120 COMM_LOGI(COMM_PERM, "peerSessionName 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() 111 if (strlen(peerSessionName) == 0) { in CheckSecLevelPublic() 115 if (strcmp(mySessionName, peerSessionName) != 0) { in CheckSecLevelPublic()
|
/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 42 (void)peerSessionName; in CheckTransSecLevel()
|
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sinkfuzztest/softbusonsinksessionopened_fuzzer/ |
H A D | softbusonsinksessionopened_fuzzer.cpp | 29 std::string peerSessionName(reinterpret_cast<const char*>(data), size); in SoftbusOnSinkSessionOpenedFuzzTest() 33 .name = const_cast<char*>(peerSessionName.c_str()), in SoftbusOnSinkSessionOpenedFuzzTest()
|
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sourcefuzztest/softbusonsourcesessionopened_fuzzer/ |
H A D | softbusonsourcesessionopened_fuzzer.cpp | 29 std::string peerSessionName(reinterpret_cast<const char*>(data), size); in SoftbusOnSourceSessionOpenedFuzzTest() 33 .name = const_cast<char*>(peerSessionName.c_str()), in SoftbusOnSourceSessionOpenedFuzzTest()
|
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/br/file/ |
H A D | proxy_session_file_test.cpp | 87 string peerSessionName; 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() 499 transInfo.peerSessionName = FILE_SESSION_NAME; in HWTEST_F() 503 transInfo.peerSessionName = FILE_SESSION_NAME_DEMO; in HWTEST_F() 545 std::string peerSessionName; in HWTEST_F() local 549 peerSessionName = FILE_SESSION_NAME; in HWTEST_F() 553 peerSessionName in HWTEST_F() [all...] |
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sourcefuzztest/softbusadapter_fuzzer/ |
H A D | softbusadapter_fuzzer.cpp | 29 std::string peerSessionName = "dh_control_0"; in SoftbusCreatSoftBusSinkSocketServerFuzzTest() local 34 sessionMode, peerDevId, peerSessionName); in SoftbusCreatSoftBusSinkSocketServerFuzzTest() 61 std::string peerSessionName = "dh_control_0"; in SoftbusDestroySoftbusSessionServerFuzzTest() local 66 sessionMode, peerDevId, peerSessionName); in SoftbusDestroySoftbusSessionServerFuzzTest()
|
/foundation/communication/dsoftbus/sdk/transmission/session/src/ |
H A D | client_trans_socket_manager.c | 46 (param->peerSessionName == NULL) || in IsValidSessionParam() 67 if (strcpy_s(session->info.peerSessionName, SESSION_NAME_SIZE_MAX, param->peerSessionName) != EOK || in CreateNewSession() 240 if (strcpy_s(session->info.peerSessionName, SESSION_NAME_SIZE_MAX, sessionName) != EOK) { in CreateNonEncryptSessionInfo() 493 if (param->peerSessionName != NULL && in CreateNewSocketSession() 494 strcpy_s(session->info.peerSessionName, SESSION_NAME_SIZE_MAX, param->peerSessionName) != EOK) { in CreateNewSocketSession() 496 Anonymize(param->peerSessionName, &anonySessionName); in CreateNewSocketSession() 498 AnonymizeWrapper(anonySessionName), strlen(param->peerSessionName)); in CreateNewSocketSession() 539 if (!IsValidString(session->info.peerSessionName, SESSION_NAME_SIZE_MA in CheckBindSocketInfo() [all...] |
H A D | client_trans_session_service.c | 178 static int32_t CheckParamIsValid(const char *mySessionName, const char *peerSessionName, in CheckParamIsValid() argument 188 if (!IsValidString(peerSessionName, SESSION_NAME_SIZE_MAX - 1)) { in CheckParamIsValid() 190 Anonymize(peerSessionName, &tmpPeerName); in CheckParamIsValid() 191 TRANS_LOGE(TRANS_SDK, "invalid peerSessionName. tmpPeerName=%{public}s", AnonymizeWrapper(tmpPeerName)); in CheckParamIsValid() 218 static void PrintSessionName(const char *mySessionName, const char *peerSessionName) in PrintSessionName() argument 223 Anonymize(peerSessionName, &tmpPeerName); 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 251 param->peerSessionName = peerSessionName; in InitSessionParam() 260 OpenSession(const char *mySessionName, const char *peerSessionName, const char *peerNetworkId, const char *groupId, const SessionAttribute *attr) OpenSession() argument 499 OpenSessionSync(const char *mySessionName, const char *peerSessionName, const char *peerNetworkId, const char *groupId, const SessionAttribute *attr) OpenSessionSync() argument [all...] |
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/distributed_stream/ |
H A D | distributed_stream_test.cpp | 78 const string &peerSessionName); 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/distributedhardware/distributed_camera/services/channel/src/ |
H A D | dcamera_softbus_adapter.cpp | 146 DCameraSessionMode sessionMode, std::string peerDevId, std::string peerSessionName) in CreatSoftBusSinkSocketServer() 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() 154 .peerName = const_cast<char*>(peerSessionName.c_str()), 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() 195 int32_t DCameraSoftbusAdapter::CreateSoftBusSourceSocketClient(std::string myDevId, std::string peerSessionName, in CreateSoftBusSourceSocketClient() argument 198 DHLOGI("create socket client start, myDevId: %{public}s, peerSessionName: %{public}s", in CreateSoftBusSourceSocketClient() 199 GetAnonyString(myDevId).c_str(), GetAnonyString(peerSessionName).c_str()); in CreateSoftBusSourceSocketClient() 204 myDevIdPeerSessionName = myDevId + std::string("_") + peerSessionName; in CreateSoftBusSourceSocketClient() 145 CreatSoftBusSinkSocketServer(std::string mySessionName, DCAMERA_CHANNEL_ROLE role, DCameraSessionMode sessionMode, std::string peerDevId, std::string peerSessionName) CreatSoftBusSinkSocketServer() argument 506 FindSessNameByPeerSessName(const std::string peerSessionName) FindSessNameByPeerSessName() argument [all...] |
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/statistics/ |
H A D | client_trans_statistics_test.cpp | 70 info->peerSessionName = g_peerSessionName;
in TestGetErrorChannelInfo() 82 info->peerSessionName = g_peerSessionName;
in TestGetServerChannelInfo() 96 info->peerSessionName = g_peerSessionName;
in TestGetRightChannelInfo()
|
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/tcp_direct/ |
H A D | trans_session_test.cpp | 269 char peerSessionName[TEST_SESSION_NAME_LEN] = "com.test.trans.session.sendfile"; in HWTEST_F() local 277 .peerSessionName = peerSessionName, in HWTEST_F() 333 char peerSessionName[TEST_SESSION_NAME_LEN] = "com.test.trans.session.sendfile"; in HWTEST_F() local 341 .peerSessionName = peerSessionName, in HWTEST_F()
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/network/softbus/ |
H A D | softbus_session_dispatcher_test.cpp | 168 std::string peerSessionName = "peerSessionName"; in HWTEST_F() local 170 weak_ptr<SoftbusAgent> wp = SoftbusSessionDispatcher::GetAgent(TEST_SESSION_ID, peerSessionName); in HWTEST_F() 187 std::string peerSessionName = "peerSessionName"; in HWTEST_F() local 189 weak_ptr<SoftbusAgent> wp = SoftbusSessionDispatcher::GetAgent(TEST_INVALID_SESSION_ID, peerSessionName); in HWTEST_F() 219 std::string peerSessionName = "peerSessionName"; in HWTEST_F() local 220 weak_ptr<SoftbusAgent> wp = SoftbusSessionDispatcher::GetAgent(TEST_SESSION_ID, peerSessionName); in HWTEST_F()
|
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/br/optimization/ |
H A D | auth_session_test2.cpp | 62 string peerSessionName; 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() 490 .peerSessionName = FILE_SESSION_NAME, in HWTEST_F() 520 .peerSessionName = FILE_SESSION_NAME_DEMO, in HWTEST_F() 563 transInfo.peerSessionName = FILE_SESSION_NAME; in HWTEST_F() 567 transInfo.peerSessionName in HWTEST_F() [all...] |
/foundation/communication/dsoftbus/tests/sdk/transmission/demo/transport/ |
H A D | getsessioninfo_demo.c | 116 char peerSessionName[SESSION_NAME_SIZE_MAX] = {0}; in main() local 117 ret = GetPeerSessionName(sessionId, peerSessionName, SESSION_NAME_SIZE_MAX); in main() 118 printf("get peerSessionName result = %d\n", ret); in main()
|
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/clienttranssessionservice_fuzzer/ |
H A D | clienttranssessionservice_fuzzer.cpp | 70 char peerSessionName[SESSION_NAME_SIZE_MAX] = "ohos.fuzz.dms.test"; in OpenSessionSyncTest() local 76 OpenSessionSync(nullptr, peerSessionName, peerNetworkId, groupId, &attr); in OpenSessionSyncTest()
|
/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()
|
/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_camera/services/channel/include/ |
H A D | dcamera_softbus_adapter.h | 42 DCameraSessionMode sessionMode, std::string peerDevId, std::string peerSessionName); 43 int32_t CreateSoftBusSourceSocketClient(std::string myDevId, std::string peerSessionName, 80 std::string FindSessNameByPeerSessName(const std::string peerSessionName);
|
/foundation/distributedhardware/distributed_input/dfx_utils/test/dfxtest/ |
H A D | distributed_input_dfx_test.cpp | 108 std::string peerSessionName = "peerSessionName_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()
|