Home
last modified time | relevance | path

Searched refs:g_sessionId (Results 1 - 18 of 18) sorted by relevance

/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/auth/
H A Dauth_session_test.c50 static int32_t g_sessionId = -1; variable
59 if (g_sessionId == -1 || sessionId == g_sessionId) { in OnSessionOpened()
60 if (g_sessionId == -1) { in OnSessionOpened()
62 g_sessionId = sessionId; in OnSessionOpened()
74 g_sessionId = -1; in OnSessionClosed()
80 if (g_sessionId == -1 || sessionId == g_sessionId) { in OnBytesReceived()
89 if (g_sessionId == -1 || sessionId == g_sessionId) { in OnMessageReceived()
[all...]
/foundation/communication/dsoftbus/tests/sdk/transmission/integration_test/
H A Dfile_test.cpp36 int32_t g_sessionId = -1; member
70 if (sessionId == g_sessionId && result == 0) { in EsOnSessionOpened()
78 if (sessionId == g_sessionId) { in EsOnSessionClosed()
80 g_sessionId = -1; in EsOnSessionClosed()
125 g_sessionId = OpenSession(ECHO_SERVICE_SESSION_NAME, ECHO_SERVICE_SESSION_NAME, in HWTEST_F()
127 ASSERT_GT(g_sessionId, 0); in HWTEST_F()
131 ASSERT_EQ(WaitConnectionReady(g_sessionId, 20), 0); in HWTEST_F()
132 LOG("SendFile with sessionId %d", g_sessionId); in HWTEST_F()
133 EXPECT_EQ(0, SendFile(g_sessionId, sFileList, nullptr, sizeof(sFileList) / sizeof(const char *))); in HWTEST_F()
135 CloseSession(g_sessionId); in HWTEST_F()
[all...]
H A Dtest_server.cpp32 int32_t g_sessionId = -1; variable
41 if (sessionId == g_sessionId) { in EsOnSessionOpened()
52 if (sessionId == g_sessionId) { in EsOnSessionClosed()
54 g_sessionId = -1; in EsOnSessionClosed()
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/ble/phone/
H A Dble_auth_channel_phone_test.cpp42 int32_t g_sessionId = -1; member
91 EXPECT_TRUE(g_sessionId == sessionId); in OnSessionOpened()
157 int32_t ret = SendBytes(g_sessionId, data, len); in TestSendData()
166 if (g_sessionId > 0) { in TestCloseSeeesion()
167 CloseSession(g_sessionId); in TestCloseSeeesion()
168 g_sessionId = -1; in TestCloseSeeesion()
198 g_sessionId = TestOpenSession(); in HWTEST_F()
199 EXPECT_TRUE(g_sessionId >= 0); in HWTEST_F()
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/monitor_permission_test/
H A Dcheckpermission_test.cpp37 static int32_t g_sessionId = INVALID_SESSION_ID; member
77 ret = ClientAddSession(&param, &g_sessionId, &isEnabled); in SetUpTestCase()
97 int32_t ret = SendBytes(g_sessionId, data, len); in HWTEST_F()
115 int32_t ret = SendMessage(g_sessionId, data, len); in HWTEST_F()
134 int32_t ret = SendStream(g_sessionId, &streamData, &ext, &param); in HWTEST_F()
155 int32_t ret = SendFile(g_sessionId, sfileList, nullptr, FILE_NUM); in HWTEST_F()
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/br/
H A Dauth_session_test.cpp61 int32_t g_sessionId = -1; member
136 if (g_sessionId == -1) { in OnSessionOpened()
137 g_sessionId = sessionId; in OnSessionOpened()
148 g_sessionId = -1; in OnSessionClosed()
186 g_sessionId = OpenAuthSession(g_testSessionName, addrInfo, 1, NULL); in TestOpenAuthSession()
187 if (g_sessionId < 0) { in TestOpenAuthSession()
188 printf("OpenAuthSession ret[%d]", g_sessionId); in TestOpenAuthSession()
213 if (g_sessionId > 0) { in TestCloseSession()
214 CloseSession(g_sessionId); in TestCloseSession()
215 g_sessionId in TestCloseSession()
[all...]
/foundation/distributedhardware/device_manager/test/commonfuzztest/dmauthmanager_fuzzer/
H A Ddm_auth_manager_fuzzer.cpp37 int32_t g_sessionId = 1; member
79 g_authManager->OnSessionOpened(g_sessionId, g_sessionSide, g_result); in DmAuthManagerFuzzTest()
86 g_authManager->OnDataReceived(g_sessionId, str); in DmAuthManagerFuzzTest()
89 g_authManager->StartNegotiate(g_sessionId); in DmAuthManagerFuzzTest()
90 g_authManager->RespNegotiate(g_sessionId); in DmAuthManagerFuzzTest()
91 g_authManager->SendAuthRequest(g_sessionId); in DmAuthManagerFuzzTest()
101 g_authManager->OnSessionClosed(g_sessionId); in DmAuthManagerFuzzTest()
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/ble/board/
H A Dble_auth_channel_test.cpp48 int32_t g_sessionId = -1; member
116 EXPECT_TRUE(g_sessionId == sessionId); in OnSessionOpened()
191 int32_t ret = SendBytes(g_sessionId, data, len); in TestSendData()
200 if (g_sessionId > 0) { in TestCloseSeeesion()
201 CloseSession(g_sessionId); in TestCloseSeeesion()
202 g_sessionId = -1; in TestCloseSeeesion()
237 g_sessionId = TestOpenSession(); in HWTEST_F()
238 EXPECT_TRUE(g_sessionId >= 0); in HWTEST_F()
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/file/
H A Ddsoftbus_app_dfile.cpp66 int32_t g_sessionId = -1; member
209 g_sessionId = OpenSession(g_testSessionName, g_testSessionName, g_networkId, g_testGroupId, &g_sessionAttr); in TransStateOpen()
210 if (g_sessionId < 0) { in TransStateOpen()
211 LOG2_ERR("OpenSession ret[%d]", g_sessionId); in TransStateOpen()
218 TestSendFile(g_sessionId); in TransStateSendFile()
224 CloseSession(g_sessionId); in TransStateClose()
225 g_sessionId = -1; in TransStateClose()
H A Ddsoftbus_app_dfile.c60 static int32_t g_sessionId = -1; variable
212 g_sessionId = OpenSession(g_testSessionName, g_testSessionName, g_networkId, g_testGroupId, &g_sessionAttr); in TestActiveSendFile()
213 if (g_sessionId < 0) { in TestActiveSendFile()
214 LOG2_ERR("OpenSession ret[%d]", g_sessionId); in TestActiveSendFile()
219 TestSendFile(g_sessionId); in TestActiveSendFile()
223 CloseSession(g_sessionId); in TestActiveSendFile()
224 g_sessionId = -1; in TestActiveSendFile()
/foundation/multimedia/audio_framework/services/audio_service/server/src/
H A Dpolicy_handler.cpp142 std::atomic<uint32_t> g_sessionId = {FIRST_SESSIONID}; // begin at 100000 member
146 uint32_t sessionId = g_sessionId++; in GenerateSessionId()
148 if (g_sessionId > MAX_VALID_SESSIONID) { in GenerateSessionId()
150 g_sessionId = FIRST_SESSIONID; in GenerateSessionId()
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/tcp_direct/
H A Dtrans_tdc_sdk_test.c39 static int32_t g_sessionId = 0; variable
151 g_sessionId = sessionId; in OnSessionOpened()
232 ret = SendBytes(g_sessionId, g_contcx, size); in DataSend()
236 ret = SendMessage(g_sessionId, g_contcx, size); in DataSend()
/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/src/mini/
H A Dsoftbus_adapter.c109 static int g_sessionId = -1; variable
1232 g_sessionId = sessionId; in OnSessionOpened()
1251 g_sessionId = -1; in OnSessionClosed()
1308 if (SendBytes(g_sessionId, retStr, strlen(retStr)) != SOFTBUS_OK) { in ProcessSinkMsg()
1362 CloseSession(g_sessionId); in ProcessSourceMsg()
/foundation/multimedia/av_session/frameworks/native/session/test/benchmarktest/avsession_benchmark_test/
H A Davsession_benchmark_test.cpp34 static int32_t g_sessionId = AVSESSION_ERROR; member
60 g_sessionId++;
/foundation/multimedia/av_session/frameworks/native/session/test/unittest/
H A Davcast_controller_test.cpp44 static int32_t g_sessionId = AVSESSION_ERROR; member
124 g_sessionId++; in SetUp()
H A Davsession_test.cpp41 static int32_t g_sessionId = AVSESSION_ERROR; member
121 g_sessionId++; in SetUp()
H A Davsession_controller_test.cpp37 static int32_t g_sessionId = AVSESSION_ERROR; member
115 g_sessionId++; in SetUp()
/foundation/communication/dsoftbus/sdk/transmission/session/src/
H A Dclient_trans_session_manager.c44 static int32_t g_sessionId = 1; variable
198 id = g_sessionId++; in GenerateSessionId()
199 if (g_sessionId < 0) { in GenerateSessionId()
200 g_sessionId = 1; in GenerateSessionId()

Completed in 16 milliseconds