Home
last modified time | relevance | path

Searched refs:g_sessionName (Results 1 – 25 of 35) sorted by relevance

12

/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/session/
H A Dclient_trans_message_service_test.cpp60 const char *g_sessionName = "ohos.distributedschedule.dms.test"; variable
143 sessionParam->sessionName = g_sessionName; in TestGenerateCommParam()
144 sessionParam->peerSessionName = g_sessionName; in TestGenerateCommParam()
254 DeleteSessionServerAndSession(g_sessionName, sessionId);
261 DeleteSessionServerAndSession(g_sessionName, sessionId);
268 DeleteSessionServerAndSession(g_sessionName, sessionId);
275 DeleteSessionServerAndSession(g_sessionName, sessionId);
282 DeleteSessionServerAndSession(g_sessionName, sessionId);
298 DeleteSessionServerAndSession(g_sessionName, sessionId);
305 DeleteSessionServerAndSession(g_sessionName, sessionId);
[all …]
H A Dclient_trans_session_test.cpp204 sessionParam->sessionName = g_sessionName; in TestGenerateCommParam()
205 sessionParam->peerSessionName = g_sessionName; in TestGenerateCommParam()
305 ret = ClientAddNewSession(g_sessionName, session);
340 ret = ClientAddNewSession(g_sessionName, session);
397 ret = OpenSession(g_sessionName, g_sessionName, g_networkId, g_groupId, &g_sessionAttr);
405 ret = OpenSession(g_sessionName, g_sessionName, g_networkId, g_groupId, &g_sessionAttr);
674 ret = strcmp(g_sessionName, sessionName);
994 sessionParam->sessionName = g_sessionName;
997 sessionParam->peerSessionName = g_sessionName;
1037 sessionParam->peerSessionName = g_sessionName;
[all …]
H A Dclient_trans_session_service_test.cpp126 sessionParam->sessionName = g_sessionName; in TestGenerateCommParam()
127 sessionParam->peerSessionName = g_sessionName; in TestGenerateCommParam()
241 sessionParam->sessionName = g_sessionName; in GenerateCommParam()
242 sessionParam->peerSessionName = g_sessionName; in GenerateCommParam()
264 ret = OpenSessionSync(g_sessionName, g_sessionName, NULL, g_groupid, &g_sessionAttr);
266 ret = OpenSessionSync(g_sessionName, g_sessionName, g_networkId, NULL, &g_sessionAttr);
268 ret = OpenSessionSync(g_sessionName, g_sessionName, g_networkId, g_groupid, NULL);
270 ret = OpenSessionSync(g_sessionName, g_sessionName, g_networkId, g_groupid, &g_sessionAttr);
335 ret = OpenSessionSync(g_sessionName, g_sessionName, g_networkId, g_groupid, &g_sessionAttr);
339 ret = OpenSessionSync(g_sessionName, g_sessionName, g_networkId, g_groupid, &g_sessionAttr);
[all …]
H A Dclient_trans_session_callback_test.cpp139 sessionParam->sessionName = g_sessionName; in TestGenerateCommParam()
140 sessionParam->peerSessionName = g_sessionName; in TestGenerateCommParam()
283 ret = ClientAddNewSession(g_sessionName, session);
323 ret = ClientAddNewSession(g_sessionName, session);
352 ret = ClientAddNewSession(g_sessionName, session);
383 ret = ClientAddNewSession(g_sessionName, session);
441 ret = ClientAddNewSession(g_sessionName, session);
490 ret = ClientAddNewSession(g_sessionName, session);
524 ret = ClientAddNewSession(g_sessionName, session);
553 ret = ClientAddNewSession(g_sessionName, session);
[all …]
H A Dclient_trans_session_manager_test.cpp148 sessionParam->sessionName = g_sessionName; in GenerateCommParam()
149 sessionParam->peerSessionName = g_sessionName; in GenerateCommParam()
204 ret = ClientAddNewSession(g_sessionName, session);
337 sessionParam->peerSessionName = g_sessionName;
426 newSessionParam->sessionName = g_sessionName;
634 ret = ClientAddNewSession(g_sessionName, session);
666 ret = ClientAddNewSession(g_sessionName, session);
863 ret = ClientAddNewSession(g_sessionName, session);
926 ret = ClientAddNewSession(g_sessionName, session);
961 ret = ClientAddNewSession(g_sessionName, session);
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/session/
H A Dtrans_session_manager_test.cpp115 res = TransSessionServerIsExist(g_sessionName);
146 ret = TransSessionServerDelItem(g_sessionName);
160 TransSessionServerDelItem(g_sessionName);
199 bool res = TransSessionServerIsExist(g_sessionName);
202 res = TransSessionServerIsExist(g_sessionName);
220 ret = TransGetUidAndPid(g_sessionName, NULL, &pid);
222 ret = TransGetUidAndPid(g_sessionName, &uid, NULL);
224 ret = TransGetUidAndPid(g_sessionName, &uid, &pid);
247 ret = TransSessionServerDelItem(g_sessionName);
300 ret = TransSessionServerDelItem(g_sessionName);
[all …]
H A Dtrans_session_service_test.cpp35 const char *g_sessionName = "ohos.distributedschedule.dms.test"; variable
99 …32_t ret = strcpy_s(sessionServer->sessionName, sizeof(sessionServer->sessionName), g_sessionName);
107 ret = TransSessionServerDelItem(g_sessionName);
119 int32_t ret = TransRemoveSessionServer(NULL, g_sessionName);
123 ret = TransRemoveSessionServer(g_pkgName, g_sessionName);
142 sessionPara.sessionName = g_sessionName;
145 sessionPara.peerSessionName = g_sessionName;
172 …32_t ret = strcpy_s(sessionServer->sessionName, sizeof(sessionServer->sessionName), g_sessionName);
182 sessionPara.sessionName = g_sessionName;
183 sessionPara.peerSessionName = g_sessionName;
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/benchmarktest/
H A Dtrans_test.cpp31 char g_sessionName[] = "ohos.distributedschedule.dms.test"; variable
157 int ret = CreateSessionServer(g_pkgName, g_sessionName, &g_sessionlistener); in BENCHMARK_F()
162 RemoveSessionServer(g_pkgName, g_sessionName); in BENCHMARK_F()
178 int ret = CreateSessionServer(g_pkgName, g_sessionName, &g_sessionlistener); in BENCHMARK_F()
180 ret = RemoveSessionServer(g_pkgName, g_sessionName); in BENCHMARK_F()
198 int ret = CreateSessionServer(g_pkgName, g_sessionName, &g_sessionlistener); in BENCHMARK_F()
200 … ret = SetFileReceiveListener(g_pkgName, g_sessionName, &g_fileRecvListener, RECV_ROOT_PATH); in BENCHMARK_F()
205 RemoveSessionServer(g_pkgName, g_sessionName); in BENCHMARK_F()
220 int ret = CreateSessionServer(g_pkgName, g_sessionName, &g_sessionlistener); in BENCHMARK_F()
222 ret = SetFileSendListener(g_pkgName, g_sessionName, &g_fileSendListener); in BENCHMARK_F()
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/common/security/permission/standard/unittest/
H A Dsoftbus_permission_test.cpp31 const char *g_sessionName = "ohos.distributedschedule.dms.test"; variable
73 ret = CheckTransPermission(0, 0, nullptr, g_sessionName, 0);
89 ret = CheckTransSecLevel(nullptr, g_sessionName);
92 ret = CheckTransSecLevel(g_sessionName, nullptr);
95 ret = CheckTransSecLevel(g_sessionName, g_sessionName);
144 ret = RemoveTransPermission(g_sessionName);
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/tcp_direct/
H A Dtrans_tcp_direct_test.cpp143 ret = RemoveSessionServer(g_pkgName, g_sessionName);
159 ret = RemoveSessionServer(g_pkgName, g_sessionName);
178 ret = RemoveSessionServer(g_pkgName, g_sessionName);
235 ret = RemoveSessionServer(NULL, g_sessionName);
278 ret = OpenSession(g_sessionName, g_sessionName, NULL, g_groupId, &g_sessionAttr);
281 ret = OpenSession(g_sessionName, g_sessionName, g_networkid, NULL, &g_sessionAttr);
284 ret = OpenSession(g_sessionName, g_sessionName, g_networkid, g_groupId, NULL);
288 ret = OpenSession(g_sessionName, g_sessionName, g_networkid, g_groupId, &g_sessionAttr);
697 info->peerSessionName = (char *)g_sessionName;
804 info->peerSessionName = (char *)g_sessionName;
[all …]
H A Dtrans_sdk_tcp_direct_test.cpp43 static const char *g_sessionName = "ohos.distributedschedule.dms.test"; variable
176 ret = ClientTransTdcOnChannelOpened(g_sessionName, nullptr);
179 ret = ClientTransTdcOnChannelOpened(g_sessionName, channel);
201 int32_t ret = ClientTransTdcOnChannelOpened(g_sessionName, channel);
284 info->peerSessionName = const_cast<char *>(g_sessionName);
290 int32_t ret = ClientTransTdcOnChannelOpened(g_sessionName, info);
431 ret = ClientTransTdcOnSessionOpened(g_sessionName, nullptr);
439 ret = ClientTransTdcOnSessionOpened(g_sessionName, info);
444 ret = ClientTransTdcOnSessionOpened(g_sessionName, info);
589 ret = ClientTransTdcOnChannelOpened(g_sessionName, channel);
[all …]
H A Dtrans_tdc_sdk_test.c42 char const *g_sessionName = "com.ctrlbustest.JtCreateSessionServerLimit"; variable
190 ret = CreateSessionServer(g_pkgName, g_sessionName, &g_sessionlistener); in CreateSsAndOpenSession()
196 ret = OpenSession(g_sessionName, g_sessionName, g_networkId, g_groupid, &g_sessionAttr); in CreateSsAndOpenSession()
199 ret = RemoveSessionServer(g_pkgName, g_sessionName); in CreateSsAndOpenSession()
211 ret = RemoveSessionServer(g_pkgName, g_sessionName); in RemoveSession()
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/ipc/
H A Dtrans_ipc_test.cpp209 param->sessionName = g_sessionName;
413 ret = transServerProxy.RemovePermission(g_sessionName);
431 ret = ServerIpcCreateSessionServer(nullptr, g_sessionName);
437 ret = ServerIpcCreateSessionServer(g_pkgName, g_sessionName);
457 ret = ServerIpcRemoveSessionServer(nullptr, g_sessionName);
463 ret = ServerIpcRemoveSessionServer(g_pkgName, g_sessionName);
497 param->sessionName = g_sessionName;
551 ret = ServerIpcOpenAuthSession(g_sessionName, nullptr);
554 ret = ServerIpcOpenAuthSession(g_sessionName, addrInfo);
731 ret = ServerIpcGrantPermission(uid, pid, g_sessionName);
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/common/
H A Dclient_trans_udp_manager_test.cpp30 const char *g_sessionName = "ohos.distributedschedule.dms.test"; variable
142 ret = TransOnUdpChannelOpened(g_sessionName, NULL, &udpPort);
145 ret = TransOnUdpChannelOpened(g_sessionName, &channel, NULL);
162 ret = TransOnUdpChannelOpened(g_sessionName, &channel, &udpPort);
174 ret = TransOnUdpChannelOpened(g_sessionName, &channel, &udpPort);
178 ret = TransOnUdpChannelOpened(g_sessionName, &channel, &udpPort);
195 ret = TransOnUdpChannelOpened(g_sessionName, &channel, &udpPort);
248 ret = TransOnUdpChannelOpened(g_sessionName, &channel, &udpPort);
254 ret = TransOnUdpChannelOpened(g_sessionName, &channel, &udpPort);
324 ret = TransOnUdpChannelOpened(g_sessionName, &channel, &udpPort);
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/auth_channel/
H A Dtrans_auth_channel_test.cpp50 const char *g_sessionName = "ohos.distributedschedule.dms.test"; variable
186 ret = GetAppInfo(g_sessionName, TRANS_TEST_CHANNEL_ID, appInfo, isClient);
190 ret = GetAppInfo(g_sessionName, TRANS_TEST_CHANNEL_ID, appInfo, isClient);
424 AuthChannelInfo *info = CreateAuthChannelInfo(g_sessionName, isClient);
457 AuthChannelInfo *info = CreateAuthChannelInfo(g_sessionName, isClient);
487 AuthChannelInfo *info = CreateAuthChannelInfo(g_sessionName, isClient);
588 AuthChannelInfo *info = CreateAuthChannelInfo(g_sessionName, isClient);
650 AuthChannelInfo *info = CreateAuthChannelInfo(g_sessionName, isClient);
879 AuthChannelInfo *info = CreateAuthChannelInfo(g_sessionName, isClient);
921 AuthChannelInfo *info = CreateAuthChannelInfo(g_sessionName, isClient);
[all …]
H A Dtrans_auth_manager_test.cpp32 const char *g_sessionName = "ohos.distributedschedule.dms.test"; variable
99 int32_t ret = TransOpenAuthMsgChannel(g_sessionName, connOpt, &channelId, NULL);
102 ret = TransOpenAuthMsgChannel(g_sessionName, connOpt, NULL, NULL);
104 ret = TransOpenAuthMsgChannel(g_sessionName, NULL, &channelId, NULL);
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/manager/
H A Dclient_trans_channel_callback_test.cpp34 const char *g_sessionName = "ohos.distributedschedule.dms.test"; variable
125 ret = TransOnChannelOpened(g_sessionName, nullptr);
129 ret = TransOnChannelOpened(g_sessionName, &info);
133 ret = TransOnChannelOpened(g_sessionName, &info);
137 ret = TransOnChannelOpened(g_sessionName, &info);
142 ret = TransOnChannelOpened(g_sessionName, &info);
147 ret = TransOnChannelOpened(g_sessionName, &info);
151 ret = TransOnChannelOpened(g_sessionName, &info);
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/monitor_permission_test/
H A Dcheckpermission_test.cpp30 const char *g_sessionName = "com.huawei.plrdtest.dsoftbus.test"; variable
66 …int ret = ClientAddSessionServer(SEC_TYPE_CIPHERTEXT, g_pkgName, g_sessionName, &g_sessionlistener… in SetUpTestCase()
70 .sessionName = g_sessionName, in SetUpTestCase()
71 .peerSessionName = g_sessionName, in SetUpTestCase()
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/common/softbus_message_open_channel_test/
H A Dsoftbus_message_open_channel_test.cpp33 static const char *g_sessionName = "com.test.trans.auth.demo"; variable
74 …mcpy_s(appInfo->myData.sessionName, SESSION_NAME_MAX_LEN, g_sessionName, (strlen(g_sessionName)+1)… in TestGetMsgPack()
143 int res = strcpy_s(appInfo->myData.pkgName, sizeof(appInfo->myData.pkgName), g_sessionName);
145 res = strcpy_s(appInfo->myData.sessionName, sizeof(appInfo->myData.sessionName), g_sessionName);
147 res = strcpy_s(appInfo->myData.authState, sizeof(appInfo->myData.authState), g_sessionName);
331 …mcpy_s(appInfo->myData.sessionName, SESSION_NAME_MAX_LEN, g_sessionName, (strlen(g_sessionName)+1)…
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/udp_negotiation/
H A Dtrans_udp_negotiation_test.cpp42 const char *g_sessionName = "ohos.distributedschedule.dms.test"; variable
140 strcpy_s(appInfo->myData.sessionName, sizeof(appInfo->myData.sessionName), g_sessionName);
231 g_sessionName);
249 g_sessionName);
254 RemoveSessionServer(g_pkgName, g_sessionName);
269 g_sessionName);
287 g_sessionName);
291 RemoveSessionServer(g_pkgName, g_sessionName);
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/ble/phone/
H A Dble_auth_channel_phone_test.cpp39 const char *g_sessionName = "com.plrdtest.dsoftbus"; variable
138 int32_t ret = CreateSessionServer(g_pkgName, g_sessionName, &g_sessionlistener); in TestCreateSessionServer()
148 int32_t ret = OpenAuthSession(g_sessionName, &g_addr1, 1, NULL); in TestOpenSession()
176 int32_t ret = RemoveSessionServer(g_pkgName, g_sessionName); in TestRemoveSessionServer()
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/ble/board/
H A Dble_auth_channel_test.cpp45 const char *g_sessionName = "objectstore"; variable
172 int32_t ret = CreateSessionServer(g_pkgName, g_sessionName, &g_sessionlistener); in TestCreateSessionServer()
182 int32_t ret = OpenAuthSession(g_sessionName, &g_addr1, 1, NULL); in TestOpenSession()
210 int32_t ret = RemoveSessionServer(g_pkgName, g_sessionName); in TestRemoveSessionServer()
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/removesessionserver_fuzzer/
H A Dremovesessionserver_fuzzer.cpp24 const char *g_sessionName = "objectstore"; variable
36 RemoveSessionServer((const char*)tmp, g_sessionName); in RemoveSessionServerTest()
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/
H A Dtrans_core_tcp_direct_test.cpp36 static const char *g_sessionName = "com.test.trans.auth.demo"; variable
81 … (void)memcpy_s(newNode->sessionName, SESSION_NAME_MAX_LEN, g_sessionName, strlen(g_sessionName)); in TestSetPack()
127 …mcpy_s(appInfo->myData.sessionName, SESSION_NAME_MAX_LEN, g_sessionName, (strlen(g_sessionName)+1)… in TestGetMsgPack()
459 ret = TransTdcGetPkgName(g_sessionName, pkgName, PKG_NAME_SIZE_MAX_LEN);
462 ret = TransTdcGetUidAndPid(g_sessionName, &uid, &pid);
551 (void)strcpy_s(conn->appInfo.myData.sessionName, SESSION_NAME_MAX_LEN, g_sessionName);
598 (void)strcpy_s(conn->appInfo.myData.sessionName, SESSION_NAME_MAX_LEN, g_sessionName);
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/createsessionserver_fuzzer/
H A Dcreatesessionserver_fuzzer.cpp24 const char *g_sessionName = "objectstore"; variable
54 CreateSessionServer((const char*)tmp, g_sessionName, &g_sessionlistener); in CreateSessionServerTest()

12