Home
last modified time | relevance | path

Searched refs:currentSessionId (Results 1 – 5 of 5) sorted by relevance

/developtools/hdc/src/daemon/
Ddaemon_uart.cpp165 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()
Ddaemon_usb.cpp218 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()
Ddaemon_uart.h61 uint32_t currentSessionId = 0; variable
Ddaemon_usb.h62 uint32_t currentSessionId = 0; // USB mode,limit only one session variable
/developtools/hdc/test/unittest/common/
Ddaemon_uart_test.cpp139 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);