Home
last modified time | relevance | path

Searched defs:hSession (Results 1 – 21 of 21) sorted by relevance

/developtools/hdc/src/common/
Dsession.cpp139 void HdcSessionBase::ClearOwnTasks(HSession hSession, const uint32_t channelIDInput) in ClearOwnTasks()
173 HSession hSession = (HSession)v.second; in ClearSessions() local
213 void HdcSessionBase::EnumUSBDeviceRegister(void (*pCallBack)(HSession hSession)) in EnumUSBDeviceRegister()
352 int HdcSessionBase::MallocSessionByConnectType(HSession hSession) in MallocSessionByConnectType()
405 HSession hSession = new(std::nothrow) HdcSession(); in MallocSession() local
474 void HdcSessionBase::FreeSessionByConnectType(HSession hSession) in FreeSessionByConnectType()
531 HSession hSession = (HSession)handle->data; in FreeSessionFinally() local
549 void HdcSessionBase::FreeSessionContinue(HSession hSession) in FreeSessionContinue()
552 HSession hSession = (HSession)handle->data; in FreeSessionContinue() local
578 HSession hSession = (HSession)handle->data; in FreeSessionOpeate() local
[all …]
Dusb.cpp32 HSession hSession = (HSession)stream->data; in ReadUSB() local
39 bool HdcUSBBase::ReadyForWorkThread(HSession hSession) in ReadyForWorkThread()
76 int HdcUSBBase::SendUSBBlock(HSession hSession, uint8_t *data, const int length) in SendUSBBlock()
132 void HdcUSBBase::PreSendUsbSoftReset(HSession hSession, uint32_t sessionIdOld) in PreSendUsbSoftReset()
148 int HdcUSBBase::CheckPacketOption(HSession hSession, uint8_t *appendData, int dataSize) in CheckPacketOption()
175 int HdcUSBBase::SendToHdcStream(HSession hSession, uv_stream_t *stream, uint8_t *appendData, int da… in SendToHdcStream()
Dusb.h25 virtual void CancelUsbIo(HSession hSession) {}; in CancelUsbIo()
29 virtual int SendUSBRaw(HSession hSession, uint8_t *data, const int length) in SendUSBRaw()
Duart.cpp395 HSession hSession = (HSession)stream->data; in UartToHdcProtocol() local
439 RetErrCode HdcUARTBase::DispatchToWorkThread(HSession hSession, uint8_t *readBuf, int readBytes) in DispatchToWorkThread()
450 size_t HdcUARTBase::PackageProcess(vector<uint8_t> &data, HSession hSession) in PackageProcess()
523 bool HdcUARTBase::SendUARTRaw(HSession hSession, uint8_t *data, const size_t length) in SendUARTRaw()
565 bool HdcUARTBase::UartSendToHdcStream(HSession hSession, uint8_t *data, size_t size) in UartSendToHdcStream()
893 int HdcUARTBase::SendUARTData(HSession hSession, uint8_t *data, const size_t length) in SendUARTData()
946 HSession hSession = (HSession)stream->data; in ReadDataFromUARTStream() local
977 bool HdcUARTBase::ReadyForWorkThread(HSession hSession) in ReadyForWorkThread()
1005 void HdcUARTBase::StopSession(HSession hSession) in StopSession()
Dsession.h62 virtual void AttachChannel(HSession hSession, const uint32_t channelId) in AttachChannel()
65 virtual void DeatchChannel(HSession hSession, const uint32_t channelId) in DeatchChannel()
68 virtual void NotifyInstanceSessionFree(HSession hSession, bool freeOrClear) in NotifyInstanceSessionFree()
71 virtual bool RedirectToTask(HTaskInfo hTaskInfo, HSession hSession, const uint32_t channelId, in RedirectToTask()
107 …virtual bool FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, uin… in FetchCommand()
Dtask.cpp101 HdcSessionBase *hSession = (HdcSessionBase *)taskInfo->ownerSessionClass; in ServerCommand() local
109 HSession hSession = sessionBase->AdminSession(OP_QUERY, taskInfo->sessionId, nullptr); in ThreadCtrlCommunicate() local
Ddebug.cpp81 void DetermineThread(HSession hSession) in DetermineThread()
Dtcp.cpp72 HSession hSession = (HSession)tcp->data; in ReadStream() local
Ddefine_plus.h526 HSession hSession; member
/developtools/hdc/src/daemon/
Ddaemon_uart.cpp167 HSession hSession = daemon.AdminSession(OP_QUERY, sessionId, nullptr); in ResetOldSession() local
181 HSession hSession = daemon.AdminSession(OP_QUERY, sessionId, nullptr); in GetSession() local
206 HSession hSession = daemon.MallocSession(false, CONN_SERIAL, this, sessionId); in PrepareNewSession() local
220 HSession hSession = reinterpret_cast<HSession>(handle->data); in PrepareNewSession() local
314 bool HdcDaemonUART::IsSendReady(HSession hSession) in IsSendReady()
Ddaemon.cpp146 bool HdcDaemon::RedirectToTask(HTaskInfo hTaskInfo, HSession hSession, const uint32_t channelId, in RedirectToTask()
201 bool HdcDaemon::HandDaemonAuth(HSession hSession, const uint32_t channelId, SessionHandShake &hands… in HandDaemonAuth()
248 bool HdcDaemon::DaemonSessionHandshake(HSession hSession, const uint32_t channelId, uint8_t *payloa… in DaemonSessionHandshake()
381 bool HdcDaemon::FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, u… in FetchCommand()
472 void HdcDaemon::NotifyInstanceSessionFree(HSession hSession, bool freeOrClear) in NotifyInstanceSessionFree()
Ddaemon_usb.cpp220 HSession hSession = daemon->AdminSession(OP_QUERY, sessionId, nullptr); in ResetOldSession() local
252 bool HdcDaemonUSB::ReadyForWorkThread(HSession hSession) in ReadyForWorkThread()
290 int HdcDaemonUSB::SendUSBIOSync(HSession hSession, HUSB hMainUSB, const uint8_t *data, const int le… in SendUSBIOSync()
325 int HdcDaemonUSB::SendUSBRaw(HSession hSession, uint8_t *data, const int length) in SendUSBRaw()
347 void HdcDaemonUSB::OnSessionFreeFinally(const HSession hSession) in OnSessionFreeFinally()
Ddaemon_tcp.cpp78 HSession hSession = ptrConnect->MallocSession(false, CONN_TCP, thisClass); in AcceptClient() local
/developtools/hdc/src/host/
Dserver.cpp396 void HdcServer::NotifyInstanceSessionFree(HSession hSession, bool freeOrClear) in NotifyInstanceSessionFree()
427 bool HdcServer::HandServerAuth(HSession hSession, SessionHandShake &handshake) in HandServerAuth()
478 bool HdcServer::ServerSessionHandshake(HSession hSession, uint8_t *payload, int payloadSize) in ServerSessionHandshake()
527 bool HdcServer::FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, u… in FetchCommand()
715 HSession hSession = (HSession)handle->data; in UsbPreConnect() local
748 HSession hSession = (HSession)handle->data; in UartPreConnect() local
781 void HdcServer::CreatConnectUart(HSession hSession) in CreatConnectUart()
828 HSession hSession = nullptr; in CreateConnect() local
862 void HdcServer::AttachChannel(HSession hSession, const uint32_t channelId) in AttachChannel()
888 void HdcServer::DeatchChannel(HSession hSession, const uint32_t channelId) in DeatchChannel()
[all …]
Dhost_uart.cpp44 bool HdcHostUART::NeedStop(const HSession hSession) in NeedStop()
75 void HdcHostUART::UartReadThread(HSession hSession) in UartReadThread()
412 void HdcHostUART::UpdateUARTDaemonInfo(const std::string &connectKey, HSession hSession, in EnumSerialPort()
447 bool HdcHostUART::StartUartReadThread(HSession hSession) in EnumSerialPort()
478 HSession HdcHostUART::ConnectDaemonByUart(const HSession hSession, const HDaemonInfo) in EnumSerialPort()
573 HSession hSession = server.MallocSession(true, CONN_SERIAL, this); in EnumSerialPort() local
603 void HdcHostUART::KickoutZombie(HSession hSession) in EnumSerialPort()
680 void HdcHostUART::StopSession(HSession hSession) in EnumSerialPort()
759 void HdcHostUART::SendUartSoftReset(HSession hSession, uint32_t sessionId) in EnumSerialPort()
Dhost_usb.cpp160 HSession hSession = hdcServer->MallocSession(true, CONN_USB, this); in DetectMyNeed() local
176 void HdcHostUSB::KickoutZombie(HSession hSession) in KickoutZombie()
316 void HdcHostUSB::UpdateUSBDaemonInfo(HUSB hUSB, HSession hSession, uint8_t connStatus) in UpdateUSBDaemonInfo()
423 void HdcHostUSB::CancelUsbIo(HSession hSession) in CancelUsbIo()
450 HSession hSession = (HSession)stream->data; in UsbToHdcProtocol() local
523 int HdcHostUSB::SubmitUsbBio(HSession hSession, bool sendOrRecv, uint8_t *buf, int bufSize) in SubmitUsbBio()
560 void HdcHostUSB::BeginUsbRead(HSession hSession) in BeginUsbRead()
623 int HdcHostUSB::SendUSBRaw(HSession hSession, uint8_t *data, const int length) in SendUSBRaw()
688 bool HdcHostUSB::ReadyForWorkThread(HSession hSession) in ReadyForWorkThread()
695 HSession HdcHostUSB::ConnectDetectDaemon(const HSession hSession, const HDaemonInfo pdi) in ConnectDetectDaemon()
Dhost_tcp.cpp98 HSession hSession = (HSession)connection->data; in Connect() local
132 HSession hSession = ptrConnect->MallocSession(true, CONN_TCP, this); in ConnectDaemon() local
Dserver_for_client.cpp354 HSession hSession = ptrServer->AdminSession(OP_QUERY, hfi->sessionId, nullptr); in CommandRemoveForward() local
569 HSession hSession = FindAliveSession(hChannel->targetSessionId); in TaskCommand() local
684 HSession hSession = nullptr; in FindAliveSessionFromDaemonMap() local
727 HSession hSession = nullptr; in BindChannelToSession() local
845 HSession hSession = ptrServer->AdminSession(OP_QUERY, sessionId, nullptr); in FindAliveSession() local
855 HSession hSession = FindAliveSession(sessionId); in ChannelSendSessionCtrlMsg() local
/developtools/hdc/test/unittest/common/
Dhost_uart_test.cpp376 [&](const std::string &connectKey, HSession hSession, ConnStatus connStatus) { in __anon30f4ad350702()
412 EXPECT_CALL(mockHostUART, StartUartReadThread).WillOnce(Invoke([&](HSession hSession) { in __anon30f4ad350802()
567 EXPECT_CALL(mockHostUART, NeedStop).WillRepeatedly([&](const HSession hSession) { in __anon30f4ad350b02()
648 EXPECT_CALL(mockHostUART, UartReadThread).WillRepeatedly(Invoke([&](HSession hSession) { in __anon30f4ad350e02()
Duart_test.cpp186 HSession hSession = nullptr; variable
220 HSession hSession = nullptr; variable
Ddaemon_uart_test.cpp354 ON_CALL(mockDaemonUART, IsSendReady).WillByDefault([&](HSession hSession) { in __anonb398d84b0602()