Home
last modified time | relevance | path

Searched refs:mySessionName (Results 1 – 25 of 55) sorted by relevance

123

/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/br/file/
H A Dproxy_session_file_test.cpp86 string mySessionName; member
498 transInfo.mySessionName = FILE_SESSION_NAME;
502 transInfo.mySessionName = FILE_SESSION_NAME_DEMO;
513 ret = RemoveSessionServer(pkgName.c_str(), transInfo.mySessionName.c_str());
544 std::string mySessionName; variable
548 mySessionName = FILE_SESSION_NAME;
552 mySessionName = FILE_SESSION_NAME_DEMO;
568 OpenAllSession(TYPE_FILE, mySessionName, peerSessionName);
579 ret = RemoveSessionServer(pkgName.c_str(), mySessionName.c_str());
610 transInfo.mySessionName = FILE_SESSION_NAME;
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/br/optimization/
H A Dauth_session_test2.cpp61 string mySessionName; member
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,
499 ret = RemoveSessionServer(FILE_TEST_PKG_NAME.c_str(), transInfo.mySessionName.c_str());
519 .mySessionName = FILE_SESSION_NAME_DEMO,
529 ret = RemoveSessionServer(FILE_TEST_PKG_NAME_DEMO.c_str(), transInfo.mySessionName.c_str());
562 transInfo.mySessionName = FILE_SESSION_NAME;
566 transInfo.mySessionName = FILE_SESSION_NAME_DEMO;
572 … int32_t ret = CreateSessionServer(pkgName.c_str(), transInfo.mySessionName.c_str(), &g_listener);
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/fuzztest/softbusproxychannellistener_fuzzer/
H A Dsoftbusproxychannellistener_fuzzer.cpp34 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()
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/session/
H A Dclient_trans_session_service_impl_test.cpp163 std::string mySessionName = ""; variable
170 … sessionServiceImpl.OpenSession(mySessionName, peerSessionName, peerNetworkId, groupId, flags);
182 std::string mySessionName = "mySessionName"; variable
189 … sessionServiceImpl.OpenSession(mySessionName, peerSessionName, peerNetworkId, groupId, flags);
201 std::string mySessionName = "mySessionName"; variable
208 … sessionServiceImpl.OpenSession(mySessionName, peerSessionName, peerNetworkId, groupId, flags);
220 std::string mySessionName = "mySessionName"; variable
227 … sessionServiceImpl.OpenSession(mySessionName, peerSessionName, peerNetworkId, groupId, flags);
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/sessionmock_fuzzer/
H A Dsessionmock_fuzzer.cpp30 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()
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/src/
H A Dclient_trans_file_listener.c76 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()
/ohos5.0/foundation/communication/dsoftbus/core/common/security/permission/small/
H A Dsoftbus_permission.c93 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()
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/tcp_direct/
H A Dtrans_session_test.cpp268 char mySessionName[TEST_SESSION_NAME_LEN] = "com.test.trans.session.sendfile"; variable
276 .sessionName = mySessionName,
286 (void)ClientAddSessionServer(SEC_TYPE_CIPHERTEXT, pkgName, mySessionName, &g_sessionlistener);
332 char mySessionName[TEST_SESSION_NAME_LEN] = "com.test.trans.session.sendfile"; variable
340 .sessionName = mySessionName,
349 …int32_t ret = ClientAddSessionServer(SEC_TYPE_CIPHERTEXT, pkgName, mySessionName, &g_sessionlisten…
/ohos5.0/foundation/communication/dsoftbus/core/common/security/permission/standard/
H A Dsoftbus_permission.cpp106 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()
H A Daccess_control.cpp104 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()
H A Daccess_control_virtual.c27 int32_t CheckSecLevelPublic(const char *mySessionName, const char *peerSessionName) in CheckSecLevelPublic() argument
29 (void)mySessionName; in CheckSecLevelPublic()
/ohos5.0/foundation/distributedhardware/distributed_camera/services/channel/src/
H A Ddcamera_softbus_adapter.cpp135 GetAnonyString(mySessionName).c_str(), GetAnonyString(peerSessionName).c_str()); in CreatSoftBusSinkSocketServer()
138 if (mySessionNameSet_.find(mySessionName) != mySessionNameSet_.end()) { in CreatSoftBusSinkSocketServer()
142 mySessionNameSet_.insert(mySessionName); in CreatSoftBusSinkSocketServer()
145 .name = const_cast<char*>(mySessionName.c_str()), in CreatSoftBusSinkSocketServer()
164 std::string peerDevIdMySessionName = peerDevId + std::string("_") + mySessionName; in CreatSoftBusSinkSocketServer()
165 peerDevIdMySessionNameMap_[peerDevIdMySessionName] = mySessionName; in CreatSoftBusSinkSocketServer()
168 GetAnonyString(mySessionName).c_str(), GetAnonyString(peerSessionName).c_str()); in CreatSoftBusSinkSocketServer()
502 std::string mySessionName = ""; in DCameraSoftBusGetSessionByPeerSocket() local
510 mySessionName = sessionNameIter->second; in DCameraSoftBusGetSessionByPeerSocket()
512 auto iter = sinkSessions_.find(std::string(mySessionName)); in DCameraSoftBusGetSessionByPeerSocket()
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/distributed_stream/
H A Ddistributed_stream_test.cpp77 void P2pTransTest(bool isRawStream, bool isP2P, int sendCnt, const string &mySessionName,
82 …void OpenAllSession(bool isRawStream, bool isP2P, const string &mySessionName, const string &peerS…
83 void OpenCtrlSession(const string &mySessionName, const string &peerSessionName);
322 const string &mySessionName, const string &peerSessionName) in OpenAllSession() argument
335 …int ret = OpenSession(mySessionName.c_str(), peerSessionName.c_str(), networkId.c_str(), "", &attr… in OpenAllSession()
351 void DistributeStreamTest::OpenCtrlSession(const string &mySessionName, const string &peerSessionNa… in OpenCtrlSession() argument
361 …int ret = OpenSession(mySessionName.c_str(), peerSessionName.c_str(), networkId.c_str(), "", &attr… in OpenCtrlSession()
430 int sendCnt, const string &mySessionName, const string &peerSessionName) in P2pTransTest() argument
432 OpenAllSession(isRawStream, isP2P, mySessionName, peerSessionName); in P2pTransTest()
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/session/cpp/src/
H A Dsession_service_impl.cpp81 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_… in OpenSession()
158 std::string mySessionName(str); in CreateSession() local
159 session->SetMySessionName(mySessionName); in CreateSession()
274 std::string mySessionName(str); in GetSessionListenerOnSessionOpened() local
277 auto iterListener = listenerMap_.find(mySessionName); in GetSessionListenerOnSessionOpened()
H A Dsession_mock.cpp41 int OpenSessionInner(const char *mySessionName, const char *peerSessionName, const char *peerNetwor… in OpenSessionInner() argument
45 return OpenSessionSync(mySessionName, peerSessionName, peerNetworkId, groupId, &attr); in OpenSessionInner()
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/
H A Dsoftbus_handler.cpp182 int32_t SoftBusHandler::OpenSession(const std::string &mySessionName, const std::string &peerSessio… in OpenSession() argument
185 if (mySessionName.empty() || peerSessionName.empty() || peerDevId.empty()) { in OpenSession()
199 if (!CreatSocketId(mySessionName, peerSessionName, peerDevId, socketId)) { in OpenSession()
206 …RadarDotsOpenSession("OpenSession", mySessionName, peerSessionName, ret, Utils::StageRes::STAGE_FA… in OpenSession()
211 clientSessNameMap_.insert(std::make_pair(socketId, mySessionName)); in OpenSession()
217 …RadarDotsOpenSession("OpenSession", mySessionName, peerSessionName, ret, Utils::StageRes::STAGE_SU… in OpenSession()
222 bool SoftBusHandler::CreatSocketId(const std::string &mySessionName, const std::string &peerSession… in CreatSocketId() argument
226 .name = const_cast<char*>((mySessionName.c_str())), in CreatSocketId()
/ohos5.0/foundation/communication/dsoftbus/core/common/security/permission/mini/
H A Dsoftbus_permission.c39 int32_t CheckTransSecLevel(const char *mySessionName, const char *peerSessionName) in CheckTransSecLevel() argument
41 (void)mySessionName; in CheckTransSecLevel()
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/opensession_fuzzer/
H A Dopensession_fuzzer.cpp29 char *mySessionName = nullptr; in OpenSessionTest() local
38 OpenSession((const char*)tmp, mySessionName, workId, groupId, &attr); in OpenSessionTest()
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/session/src/
H A Dclient_trans_session_service.c177 static int32_t CheckParamIsValid(const char *mySessionName, const char *peerSessionName, in CheckParamIsValid() argument
180 if (!IsValidString(mySessionName, SESSION_NAME_SIZE_MAX - 1)) { in CheckParamIsValid()
182 Anonymize(mySessionName, &tmpMyName); in CheckParamIsValid()
217 static void PrintSessionName(const char *mySessionName, const char *peerSessionName) in PrintSessionName() argument
221 Anonymize(mySessionName, &tmpMyName); in PrintSessionName()
249 param->sessionName = mySessionName; in InitSessionParam()
265 PrintSessionName(mySessionName, peerSessionName); in OpenSession()
269 InitSessionParam(mySessionName, peerSessionName, peerNetworkId, groupId, &param); in OpenSession()
501 int ret = CheckParamIsValid(mySessionName, peerSessionName, peerNetworkId, groupId, attr); in OpenSessionSync()
503 PrintSessionName(mySessionName, peerSessionName); in OpenSessionSync()
[all …]
/ohos5.0/foundation/distributedhardware/distributed_input/dfx_utils/test/dfxtest/
H A Ddistributed_input_dfx_test.cpp107 std::string mySessionName = "mySessionName_test"; variable
111 …HiDumper::GetInstance().CreateSessionInfo(remoteDevId, sessionId, mySessionName, peerSessionName, …
117 …HiDumper::GetInstance().CreateSessionInfo(remoteDevId, sessionId, mySessionName, peerSessionName, …
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/network/softbus/
H A Dsoftbus_handler.h42 int32_t OpenSession(const std::string &mySessionName, const std::string &peerSessionName,
59 bool CreatSocketId(const std::string &mySessionName, const std::string &peerSessionName,
/ohos5.0/foundation/communication/dsoftbus/tests/core/frame/unittest/mock/
H A Dsoftbus_server_stub_test_mock.cpp46 int32_t CheckTransSecLevel(const char *mySessionName, const char *peerSessionName) in CheckTransSecLevel() argument
48 return GetSoftbusServerStubTestInterface()->CheckTransSecLevel(mySessionName, peerSessionName); in CheckTransSecLevel()
H A Dsoftbus_server_stub_test_mock.h38 virtual int32_t CheckTransSecLevel(const char *mySessionName, const char *peerSessionName) = 0;
62 …MOCK_METHOD2(CheckTransSecLevel, int32_t (const char *mySessionName, const char *peerSessionName));
/ohos5.0/foundation/distributedhardware/distributed_camera/services/channel/test/unittest/common/channel/
H A Ddcamera_softbus_session_test.cpp68 std::string mySessionName = "testmysession"; in SetUp() local
77 softbusSession_ = std::make_shared<DCameraSoftbusSession>(myDevId, mySessionName, peerDevId, in SetUp()
132 std::string mySessionName = "testmysession"; variable
133 auto runner = AppExecFwk::EventRunner::Create(mySessionName);
/ohos5.0/foundation/distributedhardware/distributed_screen/services/softbusadapter/src/
H A Dsoftbus_adapter.cpp180 int32_t SoftbusAdapter::OpenSoftbusSession(const std::string &mySessionName, const std::string &pee… in OpenSoftbusSession() argument
184 mySessionName.c_str(), peerSessionName.c_str(), GetAnonyString(peerDevId).c_str()); in OpenSoftbusSession()
191 std::string localSesionName = mySessionName + "_" + std::to_string(GetCurrentTimeUs()); in OpenSoftbusSession()
211 devId2SessIdMap_.insert(std::make_pair(socketId, mySessionName + "_" + peerDevId)); in OpenSoftbusSession()

123