Searched refs:currentSessionId (Results 1 – 5 of 5) sorted by relevance
| /developtools/hdc/src/daemon/ |
| D | daemon_uart.cpp | 165 sessionId = currentSessionId; in ResetOldSession() 200 currentSessionId = sessionId; in OnNewHandshakeOK() 211 if (currentSessionId != 0) { in PrepareNewSession() 214 WRITE_LOG(LOG_WARN, "New session coming, restart old sessionId:%u", currentSessionId); in PrepareNewSession() 215 daemon.PushAsyncMessage(currentSessionId, ASYNC_FREE_SESSION, nullptr, 0); in PrepareNewSession() 346 ResponseUartTrans(currentSessionId, 0, PKG_OPTION_FREE); in Stop()
|
| D | daemon_usb.cpp | 218 sessionId = currentSessionId; in ResetOldSession() 343 currentSessionId = sessionId; // sync with server, and set server's real Id in OnNewHandshakeOK() 349 if (currentSessionId == hSession->sessionId) { in OnSessionFreeFinally() 363 currentSessionId = sessionId; in PrepareNewSession() 468 sessionId = currentSessionId; in DispatchToWorkThread() 470 if (currentSessionId != 0 && sessionId != currentSessionId) { in DispatchToWorkThread() 471 WRITE_LOG(LOG_WARN, "New session coming, restart old sessionId:%u", currentSessionId); in DispatchToWorkThread() 472 ResetOldSession(currentSessionId); in DispatchToWorkThread() 473 currentSessionId = 0; in DispatchToWorkThread()
|
| D | daemon_uart.h | 61 uint32_t currentSessionId = 0; variable
|
| D | daemon_usb.h | 62 uint32_t currentSessionId = 0; // USB mode,limit only one session variable
|
| /developtools/hdc/test/unittest/common/ |
| D | daemon_uart_test.cpp | 139 EXPECT_EQ(daemonUART.currentSessionId, 0u); 417 mockDaemonUART.currentSessionId = 0; 423 mockDaemonUART.currentSessionId = sessionTestId; 430 mockDaemonUART.currentSessionId = sessionTestId; 714 EXPECT_EQ(mockDaemonUART.currentSessionId, sessionId); 718 EXPECT_EQ(mockDaemonUART.currentSessionId, rndId);
|