/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/auth/ |
H A D | auth_session_test.c | 50 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() 146 if (g_sessionId > 0) { in TestCloseSession() 147 CloseSession(g_sessionId); in TestCloseSession() 148 g_sessionId = -1; in TestCloseSession() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/integration_test/ |
H A D | file_test.cpp | 36 int g_sessionId = -1; variable 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, 127 ASSERT_GT(g_sessionId, 0); 131 ASSERT_EQ(WaitConnectionReady(g_sessionId, 20), 0); 132 LOG("SendFile with sessionId %d", g_sessionId); 133 … EXPECT_EQ(0, SendFile(g_sessionId, sFileList, nullptr, sizeof(sFileList) / sizeof(const char *))); 135 CloseSession(g_sessionId);
|
H A D | test_server.cpp | 32 int g_sessionId = -1; variable 41 if (sessionId == g_sessionId) { in EsOnSessionOpened() 52 if (sessionId == g_sessionId) { in EsOnSessionClosed() 54 g_sessionId = -1; in EsOnSessionClosed()
|
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/ble/phone/ |
H A D | ble_auth_channel_phone_test.cpp | 42 int g_sessionId = -1; variable 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(); 199 EXPECT_TRUE(g_sessionId >= 0);
|
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/br/ |
H A D | auth_session_test.cpp | 61 int32_t g_sessionId = -1; variable 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 = -1; in TestCloseSession() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/monitor_permission_test/ |
H A D | checkpermission_test.cpp | 37 static int32_t g_sessionId = INVALID_SESSION_ID; variable 77 ret = ClientAddSession(¶m, &g_sessionId, &isEnabled); in SetUpTestCase() 97 int ret = SendBytes(g_sessionId, data, len); 115 int ret = SendMessage(g_sessionId, data, len); 134 int ret = SendStream(g_sessionId, &streamData, &ext, ¶m); 155 int ret = SendFile(g_sessionId, sfileList, nullptr, FILE_NUM);
|
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/ble/board/ |
H A D | ble_auth_channel_test.cpp | 48 int g_sessionId = -1; variable 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(); 238 EXPECT_TRUE(g_sessionId >= 0);
|
/ohos5.0/foundation/distributedhardware/device_manager/test/commonfuzztest/dmauthmanager_fuzzer/ |
H A D | dm_auth_manager_fuzzer.cpp | 37 int32_t g_sessionId = 1; variable 78 g_authManager->OnSessionOpened(g_sessionId, g_sessionSide, g_result); in DmAuthManagerFuzzTest() 85 g_authManager->OnDataReceived(g_sessionId, str); in DmAuthManagerFuzzTest() 88 g_authManager->StartNegotiate(g_sessionId); in DmAuthManagerFuzzTest() 89 g_authManager->RespNegotiate(g_sessionId); in DmAuthManagerFuzzTest() 90 g_authManager->SendAuthRequest(g_sessionId); in DmAuthManagerFuzzTest() 101 g_authManager->OnSessionClosed(g_sessionId); in DmAuthManagerFuzzTest()
|
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/file/ |
H A D | dsoftbus_app_dfile.c | 60 static int32_t g_sessionId = -1; variable 212 …g_sessionId = OpenSession(g_testSessionName, g_testSessionName, g_networkId, g_testGroupId, &g_ses… 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()
|
H A D | dsoftbus_app_dfile.cpp | 66 int32_t g_sessionId = -1; variable 209 …g_sessionId = OpenSession(g_testSessionName, g_testSessionName, g_networkId, g_testGroupId, &g_ses… 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()
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/server/src/ |
H A D | policy_handler.cpp | 142 std::atomic<uint32_t> g_sessionId = {FIRST_SESSIONID}; // begin at 100000 variable 146 uint32_t sessionId = g_sessionId++; in GenerateSessionId() 148 if (g_sessionId > MAX_VALID_SESSIONID) { in GenerateSessionId() 150 g_sessionId = FIRST_SESSIONID; in GenerateSessionId()
|
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/tcp_direct/ |
H A D | trans_tdc_sdk_test.c | 39 static int 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()
|
/ohos5.0/base/update/updateservice/frameworks/js/napi/session/src/ |
H A D | napi_session.cpp | 27 uint32_t g_sessionId = 0; variable 30 : sessionId(++g_sessionId), client_(client), sessionParams_(sessionParams), totalArgc_(argc), in NapiSession()
|
/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/ |
H A D | hks_sa.cpp | 61 uint32_t g_sessionId = 0; variable 269 g_sessionId++; in OnRemoteRequest() 270 …KS_LOG_I("OnRemoteRequest code:%" LOG_PUBLIC "d, sessionId = %" LOG_PUBLIC "u", code, g_sessionId); in OnRemoteRequest() 298 LOG_PUBLIC "u", code, leaveTime - enterTime, g_sessionId); in OnRemoteRequest()
|
/ohos5.0/base/security/huks/frameworks/huks_standard/main/common/include/ |
H A D | hks_log.h | 68 extern uint32_t g_sessionId;
|
/ohos5.0/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/src/mini/ |
H A D | softbus_adapter.c | 112 static int g_sessionId = -1; variable 1216 g_sessionId = sessionId; in OnSessionOpened() 1235 g_sessionId = -1; in OnSessionClosed() 1292 if (SendBytes(g_sessionId, retStr, strlen(retStr)) != SOFTBUS_OK) { in ProcessSinkMsg() 1346 CloseSession(g_sessionId); in ProcessSourceMsg()
|
/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/ipc/ |
H A D | hks_response.cpp | 103 callingUid, userId, g_sessionId); in HksGetProcessInfoForIPC()
|
/ohos5.0/foundation/multimedia/av_session/frameworks/native/session/test/benchmarktest/avsession_benchmark_test/ |
H A D | avsession_benchmark_test.cpp | 34 static int32_t g_sessionId = AVSESSION_ERROR; variable 60 g_sessionId++; in SetUp()
|
/ohos5.0/foundation/multimedia/av_session/frameworks/native/session/test/unittest/ |
H A D | avcast_controller_test.cpp | 44 static int32_t g_sessionId = AVSESSION_ERROR; variable 124 g_sessionId++; in SetUp()
|
H A D | avsession_test.cpp | 41 static int32_t g_sessionId = AVSESSION_ERROR; variable 121 g_sessionId++; in SetUp()
|
H A D | avsession_controller_test.cpp | 37 static int32_t g_sessionId = AVSESSION_ERROR; variable 115 g_sessionId++; in SetUp()
|
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/session/src/ |
H A D | client_trans_session_manager.c | 43 static int32_t g_sessionId = 1; variable 197 id = g_sessionId++; in GenerateSessionId() 198 if (g_sessionId < 0) { in GenerateSessionId() 199 g_sessionId = 1; in GenerateSessionId()
|