Home
last modified time | relevance | path

Searched refs:sessionId (Results 1 – 25 of 28) sorted by relevance

12

/test/xts/dcts/communication/softbus_standard/dsoftbusTest/
DdsoftbusTest.cpp81 static int OnFileSessionOpened(int sessionId, int result) in OnFileSessionOpened() argument
83 LOG("[cb][file]open session sid[%d],rst[%d]", sessionId, result); in OnFileSessionOpened()
87 static void OnFileSessionClosed(int sessionId) in OnFileSessionClosed() argument
89 LOG("[cb][file]close session sid[%d]", sessionId); in OnFileSessionClosed()
92 static void OnFileBytesReceived(int sessionId, const void* data, unsigned int dataLen) in OnFileBytesReceived() argument
94 LOG("[cb][file]ByteRec sid:%d, data len:%d", sessionId, dataLen); in OnFileBytesReceived()
96 LOG("[cb][file]ByteRec invalid data=null sid[%d]", sessionId); in OnFileBytesReceived()
100 static void OnFileMessageReceived(int sessionId, const void* data, unsigned int dataLen) in OnFileMessageReceived() argument
102 LOG("[cb][file]MessageRec sid:%d, data len:%d", sessionId, dataLen); in OnFileMessageReceived()
104 LOG("[cb][file]MessageRec invalid data=null sid[%d]", sessionId); in OnFileMessageReceived()
[all …]
/test/xts/dcts/communication/softbus_standard/common/
Dnet_trans_common.c206 static int OnReceiveFileStarted(int sessionId, const char* files, int fileCnt) in OnReceiveFileStarted() argument
208 LOG("[recv file]start,sid:%d, fileCnt:%d", sessionId, fileCnt); in OnReceiveFileStarted()
212 static int OnReceiveFileProcess(int sessionId, const char* firstFile, uint64_t bytesUpload, uint64_… in OnReceiveFileProcess() argument
217 static void OnReceiveFileFinished(int sessionId, const char* files, int fileCnt) in OnReceiveFileFinished() argument
219 LOG("[recv file]finish,sid:%d, fileCnt:%d", sessionId, fileCnt); in OnReceiveFileFinished()
222 static void OnRecvFileTransError(int sessionId) in OnRecvFileTransError() argument
224 LOG("[recv file]trans error,sid:%d", sessionId); in OnRecvFileTransError()
227 static int OnSendFileProcess(int sessionId, uint64_t bytesUpload, uint64_t bytesTotal) in OnSendFileProcess() argument
232 static int OnSendFileFinished(int sessionId, const char* firstFile) in OnSendFileFinished() argument
235 LOG("[send file]finish,sid:%d, firstFile:%s\n", sessionId, firstFile); in OnSendFileFinished()
[all …]
Dnet_trans_common.h217 int OpenSessionBatch4Data(char groupId[][GROUP_ID_LEN], int* sessionId, int count);
218 int OpenSessionBatch4Ctl(char groupId[][GROUP_ID_LEN], int* sessionId, int count);
221 int CloseSessionBatch4Data(int* sessionId, int count);
222 int CloseSessionBatch4Ctl(int* sessionId, int count);
226 void SetCurrentSessionId4Data(int sessionId);
227 void SetCurrentSessionId4Ctl(int sessionId);
228 void SetCurrentSessionId4Proxy(int sessionId);
/test/xts/dcts/communication/softbus_standard/transmission/sessionmgt/
Dtrans_session_func_test.cpp23 static int FileSessionOpened(int sessionId, int result) in FileSessionOpened() argument
25 LOG("[cb][file]open session sid[%d],rst[%d]", sessionId, result); in FileSessionOpened()
34 static void FileSessionClosed(int sessionId) in FileSessionClosed() argument
36 LOG("[cb][file]close session sid[%d]", sessionId); in FileSessionClosed()
39 static void FileBytesReceived(int sessionId, const void* data, unsigned int dataLen) in FileBytesReceived() argument
41 LOG("[cb][file]ByteRec sid:%d, data len:%d", sessionId, dataLen); in FileBytesReceived()
43 LOG("[cb][file]ByteRec invalid data=null sid[%d]", sessionId); in FileBytesReceived()
50 static void FileMessageReceived(int sessionId, const void* data, unsigned int dataLen) in FileMessageReceived() argument
52 LOG("[cb][file]MessageRec sid:%d, data len:%d", sessionId, dataLen); in FileMessageReceived()
54 LOG("[cb][file]MessageRec invalid data=null sid[%d]", sessionId); in FileMessageReceived()
[all …]
/test/xts/dcts/communication/softbus_standard/transmission/reliability/
Dtrans_reliability_test.cpp72 int sessionId = 0; variable
74 ret = SendBytes(sessionId, data.c_str(), data.length());
91 int sessionId = GetCurrentSessionId4Data(); variable
96 ret = SendBytes(sessionId, data.c_str(), data.length());
170 int sessionId = 0; variable
172 ret = SendMessage(sessionId, data.c_str(), data.length());
355 int sessionId; variable
357sessionId = OpenSession(SESSION_NAME_DATA, SESSION_NAME_DATA, GetNetworkId(), DEF_GROUP_ID, GetSes…
358 EXPECT_TRUE(sessionId < SESSION_ID_MIN) << "call OpenSession success,sid:" << sessionId;
359 SetCurrentSessionId4Data(sessionId);
[all …]
/test/xts/acts/communication_lite/dsoftbus_hal/src/
Dsession_test.c74 static int OnSendFileProcess(int sessionId, uint64_t bytesUpload, uint64_t bytesTotal) in OnSendFileProcess() argument
77 sessionId, bytesUpload, bytesTotal); in OnSendFileProcess()
81 static int OnSendFileFinished(int sessionId, const char *firstFile) in OnSendFileFinished() argument
83 LOG2_INFO("OnSendFileFinished sessionId = %d, first file = %s\n", sessionId, firstFile); in OnSendFileFinished()
88 static void OnFileTransError(int sessionId) in OnFileTransError() argument
90 LOG2_INFO("OnFileTransError sessionId = %d\n", sessionId); in OnFileTransError()
103 static int OnReceiveFileStarted(int sessionId, const char *files, int fileCnt) in OnReceiveFileStarted() argument
105 …LOG2_INFO("File receive start sessionId = %d, first file = %s, fileCnt = %d\n", sessionId, files, … in OnReceiveFileStarted()
109 static void OnReceiveFileFinished(int sessionId, const char *files, int fileCnt) in OnReceiveFileFinished() argument
111 …LOG2_INFO("File receive finished sessionId = %d, first file = %s, fileCnt = %d\n", sessionId, file… in OnReceiveFileFinished()
[all …]
/test/xts/dcts/communication/softbus_standard/transmission/sendstream/
Dtrans_stream_test.cpp88 int sessionId = OpenSession(SESSION_NAME_STREAM, SESSION_NAME_STREAM, GetNetworkId(), variable
90 …EXPECT_TRUE(sessionId >= SESSION_ID_MIN) << "call OpenSession[Stream] fail, sessionId=" << session…
91 if (sessionId >= SESSION_ID_MIN) {
97 ret = SendStream(sessionId, &streamData, &extStreamData, &frame);
100 CloseSession(sessionId);
136 int sessionId = OpenSession(SESSION_NAME_STREAM, SESSION_NAME_STREAM, GetNetworkId(), variable
138 …EXPECT_TRUE(sessionId >= SESSION_ID_MIN) << "call OpenSession[Stream] fail, sessionId=" << session…
139 if (sessionId >= SESSION_ID_MIN) {
145 ret = SendStream(sessionId, &streamData, &extStreamData, &frame);
148 CloseSession(sessionId);
/test/xts/acts/multimedia/avsession/avsession_js_standard/avsessionManager/src/main/js/test/
DAVSessionManagerCallback.test.js62 } else if (value.sessionId.length === 64){
64 console.info(`TestLog: AVSession :${session.sessionId}created successfully`);
74 console.info(`TestLog: AVSession :${session.sessionId}destroyed successfully`);
96 console.info(`TestLog: AVSession ${data.sessionId} created successfully`);
117 console.info(`TestLog: AVSession ${data.sessionId} created successfully`);
138 } else if (value.sessionId.length === 64){
140 console.info(`TestLog: AVSession :${session.sessionId}created successfully`);
150 console.info(`TestLog: AVSession :${session.sessionId}destroyed successfully`);
DAVSessionManager.test.js63 if (currentAVSession.sessionId.length === 64) {
128 if (currentAVSession.sessionId.length === 64) {
157 … console.info(`CreateAVSession : SUCCESS : sessionId = ${currentAVSession.sessionId}`);
165 … console.info(`getAVCastController : SUCCESS : sessionid : ${aVCastController.sessionId}`);
224 … console.info(`CreateAVSession : SUCCESS : sessionId = ${currentAVSession.sessionId}`);
259 … console.info(`CreateAVSession : SUCCESS : sessionId = ${currentAVSession.sessionId}`);
292 … console.info(`CreateAVSession : SUCCESS : sessionId = ${currentAVSession.sessionId}`);
299 … console.info(`getAVCastController : SUCCESS : sessionid : ${aVCastController.sessionId}`);
333 … console.info(`CreateAVSession : SUCCESS : sessionId = ${currentAVSession.sessionId}`);
340 … console.info(`getAVCastController : SUCCESS : sessionid : ${aVCastController.sessionId}`);
/test/xts/acts/distributeddatamgr/dataObjecttest/dataObjectjstest/hap/src/main/js/test/
DObjectStoreJsunit.test.js24 function changeCallback(sessionId, changeData) { argument
25 console.info("changeCallback start" + sessionId + " " + changeData);
32 console.info(TAG + "changeCallback end" + sessionId + " " + changeData);
35 function changeCallback2(sessionId, changeData) { argument
36 console.info("changeCallback2 satrt" + sessionId + " " + changeData);
42 console.info(TAG + "changeCallback2 end" + sessionId + " " + changeData);
45 function statusCallback1(sessionId, networkId, status) { argument
46 console.info(TAG + "statusCallback1" + sessionId);
47 this.response += "\nstatus changed " + sessionId + " " + status + " " + networkId;
50 function statusCallback2(sessionId, networkId, status) { argument
[all …]
DObjectStoreJsunitV9.test.js24 function changeCallback(sessionId, changeData) { argument
26 console.info(TAG + "sessionId:" + " " + sessionId);
35 function statusCallback1(sessionId, networkId, status) { argument
36 console.info(TAG + "statusCallback1" + " " + sessionId);
37 this.response += "\nstatus changed " + sessionId + " " + status + " " + networkId;
40 function statusCallback2(sessionId, networkId, status) { argument
41 console.info(TAG + "statusCallback2" + " " + sessionId);
42 this.response += "\nstatus changed " + sessionId + " " + status + " " + networkId;
261 g_object.on("change", function (sessionId, changeData) { argument
306 g_object.on(123, function (sessionId, changeData) { argument
[all …]
/test/xts/acts/ai_lite/ai_engine_posix/base/src/aie_client/
DAieClientDestroyFunctionTest.cpp61 … EXPECT_EQ(true, clientInfo.sessionId > 0) << "sessionId(" << std::to_string(clientInfo.sessionId) in TestAieClientDestroy()
136 … EXPECT_EQ(true, clientInfo.sessionId > 0) << "sessionId(" << std::to_string(clientInfo.sessionId)
DAieClientSetOptionFunctionTest.cpp70 … EXPECT_EQ(true, clientInfo.sessionId > 0) << "sessionId(" << std::to_string(clientInfo.sessionId) in TestAieClientSetOption()
162 … EXPECT_EQ(true, clientInfo.sessionId > 0) << "sessionId(" << std::to_string(clientInfo.sessionId) in TestAieClientSetOptionWithoutPrepare()
DAieClientInitFunctionTest.cpp68 … EXPECT_EQ(true, clientInfo.sessionId > 0) << "sessionId(" << std::to_string(clientInfo.sessionId) in TestAieClientInit()
DAieClientSyncProcessShareMemoryFunctionTest.cpp68 … EXPECT_EQ(true, clientInfo.sessionId > 0) << "sessionId(" << std::to_string(clientInfo.sessionId) in TestAieClientSyncProcess()
DAieClientSyncProcessFunctionTest.cpp68 … EXPECT_EQ(true, clientInfo.sessionId > 0) << "sessionId(" << std::to_string(clientInfo.sessionId) in TestAieClientSyncProcess()
DAieClientAsyncProcessFunctionTest.cpp73 … EXPECT_EQ(true, clientInfo.sessionId > 0) << "sessionId(" << std::to_string(clientInfo.sessionId) in TestAieClientAsyncProcess()
DAieClientReleaseFunctionTest.cpp62 … EXPECT_EQ(true, clientInfo.sessionId > 0) << "sessionId(" << std::to_string(clientInfo.sessionId) in TestAieClientRelease()
DAieClientPrepareFunctionTest.cpp68 … EXPECT_EQ(true, clientInfo.sessionId > 0) << "sessionId(" << std::to_string(clientInfo.sessionId) in TestAieClientPrepare()
/test/xts/dcts/distributeddatamgr/jstest/distributed_data_object/client/hap/src/main/js/test/
DDataObjectJsunit.test.js185 g_object.on("change", function (sessionId, changeData) { argument
186 console.info(logTag + "change start " + sessionId);
250 g_object.on("change", function (sessionId, changeData) { argument
251 console.info(logTag + "change start " + sessionId);
314 g_object.on("change", function (sessionId, changeData) { argument
315 console.info(logTag + "change start " + sessionId);
379 g_object.on("change", function (sessionId, changeData) { argument
380 console.info(logTag + "change start " + sessionId);
447 g_object.on("change", function (sessionId, changeData) { argument
448 console.info(logTag + "change start " + sessionId);
[all …]
/test/xts/dcts/communication/softbus_standard/transmission/sendmsg/
Dtrans_func_test.cpp120 int sessionId = GetCurrentSessionId4Data(); variable
121 ret = SendBytes(sessionId, emptyStr.c_str(), size);
280 int sessionId = GetCurrentSessionId4Proxy(); variable
281 ret = SendMessage(sessionId, emptystr.c_str(), size);
408 int sessionId = GetCurrentSessionId4Data(); variable
409 ret = SendBytes(sessionId, emptyStr.c_str(), size);
589 int sessionId = GetCurrentSessionId4Proxy(); variable
590 ret = SendMessage(sessionId, emptystr.c_str(), size);
/test/xts/dcts/communication/softbus_standard/transmission/sendfile/
Dtrans_file_func_test.cpp24 static int FileSessionOpened(int sessionId, int result) in FileSessionOpened() argument
26 LOG("[cb][file]open session sid[%d],rst[%d]", sessionId, result); in FileSessionOpened()
35 static void FileSessionClosed(int sessionId) in FileSessionClosed() argument
37 LOG("[cb][file]close session sid[%d]", sessionId); in FileSessionClosed()
40 static void FileBytesReceived(int sessionId, const void* data, unsigned int dataLen) in FileBytesReceived() argument
42 LOG("[cb][file]ByteRec sid:%d, data len:%d", sessionId, dataLen); in FileBytesReceived()
44 LOG("[cb][file]ByteRec invalid data=null sid[%d]", sessionId); in FileBytesReceived()
51 static void FileMessageReceived(int sessionId, const void* data, unsigned int dataLen) in FileMessageReceived() argument
53 LOG("[cb][file]MessageRec sid:%d, data len:%d", sessionId, dataLen); in FileMessageReceived()
55 LOG("[cb][file]MessageRec invalid data=null sid[%d]", sessionId); in FileMessageReceived()
/test/xts/dcts/multimedia/avsession/src/main/js/test/
DAVSessionManagerJsUnit.test.js36 let sessionId = "";
135 sessionId = session.sessionId;
136 sessionToken = { sessionId, pid, uid }; property
682 await avSession.createController(session.sessionId).then((data) => {
734 await avSession.createController(session.sessionId).then((data) => {
801 await avSession.createController(session.sessionId).then((data) => {
869 await avSession.createController(session.sessionId).then((data) => {
878 if (controller.sessionId === data.sessionId) {
992 await avSession.createController(session.sessionId).then((data) => {
1043 await avSession.createController(session.sessionId).then((data) => {
[all …]
/test/xts/dcts/testtools/disjsTest/server/
DtestApi.js272 async setSessionId(sessionId){ argument
280 g_object.setSessionId(sessionId).then(() => {
281 console.info(logTag + "remote join session success. sessionId=" + sessionId);
/test/xts/dcts/testtools/disjsTest/client/
DremoteHelper.js186 async setSessionId(sessionId){ argument
189 ["string"],[String(sessionId)]," ");

12