Home
last modified time | relevance | path

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

/developtools/hdc_standard/src/common/
Dsession.cpp123 void HdcSessionBase::ClearOwnTasks(HSession hSession, const uint32_t channelIDInput) in ClearOwnTasks()
157 HSession hSession = (HSession)v.second; in ClearSessions() local
196 void HdcSessionBase::EnumUSBDeviceRegister(void (*pCallBack)(HSession hSession)) in EnumUSBDeviceRegister()
335 int HdcSessionBase::MallocSessionByConnectType(HSession hSession) in MallocSessionByConnectType()
389 HSession hSession = new(std::nothrow) HdcSession(); in MallocSession() local
450 void HdcSessionBase::FreeSessionByConnectType(HSession hSession) in FreeSessionByConnectType()
516 HSession hSession = (HSession)handle->data; in FreeSessionFinally() local
534 void HdcSessionBase::FreeSessionContinue(HSession hSession) in FreeSessionContinue()
537 HSession hSession = (HSession)handle->data; in FreeSessionContinue() local
559 HSession hSession = (HSession)handle->data; in FreeSessionOpeate() local
[all …]
Dusb.cpp31 HSession hSession = (HSession)stream->data; in ReadUSB() local
38 bool HdcUSBBase::ReadyForWorkThread(HSession hSession) in ReadyForWorkThread()
74 int HdcUSBBase::SendUSBBlock(HSession hSession, uint8_t *data, const int length) in SendUSBBlock()
129 void HdcUSBBase::PreSendUsbSoftReset(HSession hSession, uint32_t sessionIdOld) in PreSendUsbSoftReset()
145 int HdcUSBBase::CheckPacketOption(HSession hSession, uint8_t *appendData, int dataSize) in CheckPacketOption()
170 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()
Dtask.cpp74 HdcSessionBase *hSession = (HdcSessionBase *)taskInfo->ownerSessionClass; in ServerCommand() local
82 HSession hSession = sessionBase->AdminSession(OP_QUERY, taskInfo->sessionId, nullptr); in ThreadCtrlCommunicate() local
Duart.cpp333 HSession hSession = (HSession)stream->data; in UartToHdcProtocol() local
377 RetErrCode HdcUARTBase::DispatchToWorkThread(HSession hSession, uint8_t *readBuf, int readBytes) in DispatchToWorkThread()
388 size_t HdcUARTBase::PackageProcess(vector<uint8_t> &data, HSession hSession) in PackageProcess()
461 bool HdcUARTBase::SendUARTRaw(HSession hSession, uint8_t *data, const size_t length) in SendUARTRaw()
503 bool HdcUARTBase::UartSendToHdcStream(HSession hSession, uint8_t *data, size_t size) in UartSendToHdcStream()
828 int HdcUARTBase::SendUARTData(HSession hSession, uint8_t *data, const size_t length) in SendUARTData()
881 HSession hSession = (HSession)stream->data; in ReadDataFromUARTStream() local
912 bool HdcUARTBase::ReadyForWorkThread(HSession hSession) in ReadyForWorkThread()
940 void HdcUARTBase::StopSession(HSession hSession) in StopSession()
Dsession.h60 virtual void AttachChannel(HSession hSession, const uint32_t channelId) in AttachChannel()
63 virtual void DeatchChannel(HSession hSession, const uint32_t channelId) in DeatchChannel()
66 virtual void NotifyInstanceSessionFree(HSession hSession, bool freeOrClear) in NotifyInstanceSessionFree()
69 virtual bool RedirectToTask(HTaskInfo hTaskInfo, HSession hSession, const uint32_t channelId, in RedirectToTask()
105 …virtual bool FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, uin… in FetchCommand()
Ddebug.cpp81 void DetermineThread(HSession hSession) in DetermineThread()
Dtcp.cpp72 HSession hSession = (HSession)tcp->data; in ReadStream() local
Ddefine_plus.h462 HSession hSession; member
/developtools/hdc_standard/src/daemon/
Ddaemon_uart.cpp169 HSession hSession = daemon.AdminSession(OP_QUERY, sessionId, nullptr); in ResetOldSession() local
183 HSession hSession = daemon.AdminSession(OP_QUERY, sessionId, nullptr); in GetSession() local
208 HSession hSession = daemon.MallocSession(false, CONN_SERIAL, this, sessionId); in PrepareNewSession() local
222 HSession hSession = reinterpret_cast<HSession>(handle->data); in PrepareNewSession() local
317 bool HdcDaemonUART::IsSendReady(HSession hSession) in IsSendReady()
Ddaemon.cpp138 bool HdcDaemon::RedirectToTask(HTaskInfo hTaskInfo, HSession hSession, const uint32_t channelId, in RedirectToTask()
190 bool HdcDaemon::HandDaemonAuth(HSession hSession, const uint32_t channelId, SessionHandShake &hands… in HandDaemonAuth()
235 bool HdcDaemon::DaemonSessionHandshake(HSession hSession, const uint32_t channelId, uint8_t *payloa… in DaemonSessionHandshake()
291 bool HdcDaemon::FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, u… in FetchCommand()
368 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()
289 int HdcDaemonUSB::SendUSBIOSync(HSession hSession, HUSB hMainUSB, const uint8_t *data, const int le… in SendUSBIOSync()
322 int HdcDaemonUSB::SendUSBRaw(HSession hSession, uint8_t *data, const int length) in SendUSBRaw()
343 void HdcDaemonUSB::OnSessionFreeFinally(const HSession hSession) in OnSessionFreeFinally()
Ddaemon_tcp.cpp69 HSession hSession = ptrConnect->MallocSession(false, CONN_TCP, thisClass); in AcceptClient() local
/developtools/hdc_standard/src/host/
Dserver.cpp374 void HdcServer::NotifyInstanceSessionFree(HSession hSession, bool freeOrClear) in NotifyInstanceSessionFree()
405 bool HdcServer::HandServerAuth(HSession hSession, SessionHandShake &handshake) in HandServerAuth()
452 bool HdcServer::ServerSessionHandshake(HSession hSession, uint8_t *payload, int payloadSize) in ServerSessionHandshake()
493 bool HdcServer::FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, u… in FetchCommand()
560 HSession hSession = AdminSession(OP_QUERY, hChannel->targetSessionId, nullptr); in FetchCommand() local
659 HSession hSession = (HSession)handle->data; in UsbPreConnect() local
692 HSession hSession = (HSession)handle->data; in UartPreConnect() local
725 void HdcServer::CreatConnectUart(HSession hSession) in CreatConnectUart()
769 HSession hSession = nullptr; in CreateConnect() local
802 void HdcServer::AttachChannel(HSession hSession, const uint32_t channelId) in AttachChannel()
[all …]
Dhost_usb.cpp81 HSession hSession = hdcServer->MallocSession(true, CONN_USB, this); in DetectMyNeed() local
97 void HdcHostUSB::KickoutZombie(HSession hSession) in KickoutZombie()
215 void HdcHostUSB::UpdateUSBDaemonInfo(HUSB hUSB, HSession hSession, uint8_t connStatus) in UpdateUSBDaemonInfo()
322 void HdcHostUSB::CancelUsbIo(HSession hSession) in CancelUsbIo()
349 HSession hSession = (HSession)stream->data; in UsbToHdcProtocol() local
422 int HdcHostUSB::SubmitUsbBio(HSession hSession, bool sendOrRecv, uint8_t *buf, int bufSize) in SubmitUsbBio()
459 void HdcHostUSB::BeginUsbRead(HSession hSession) in BeginUsbRead()
525 int HdcHostUSB::SendUSBRaw(HSession hSession, uint8_t *data, const int length) in SendUSBRaw()
584 bool HdcHostUSB::ReadyForWorkThread(HSession hSession) in ReadyForWorkThread()
591 HSession HdcHostUSB::ConnectDetectDaemon(const HSession hSession, const HDaemonInfo pdi) in ConnectDetectDaemon()
Dhost_uart.cpp41 bool HdcHostUART::NeedStop(const HSession hSession) in NeedStop()
72 void HdcHostUART::UartReadThread(HSession hSession) in UartReadThread()
403 void HdcHostUART::UpdateUARTDaemonInfo(const std::string &connectKey, HSession hSession, in UpdateUARTDaemonInfo()
438 bool HdcHostUART::StartUartReadThread(HSession hSession) in StartUartReadThread()
469 HSession HdcHostUART::ConnectDaemonByUart(const HSession hSession, const HDaemonInfo) in ConnectDaemonByUart()
566 HSession hSession = server.MallocSession(true, CONN_SERIAL, this); in ConnectMyNeed() local
595 void HdcHostUART::KickoutZombie(HSession hSession) in KickoutZombie()
672 void HdcHostUART::StopSession(HSession hSession) in StopSession()
751 void HdcHostUART::SendUartSoftReset(HSession hSession, uint32_t sessionId) in SendUartSoftReset()
Dserver_for_client.cpp269 HSession hSession = ptrServer->AdminSession(OP_QUERY, hfi->sessionId, nullptr); in CommandRemoveForward() local
442 HSession hSession = FindAliveSession(hChannel->targetSessionId); in TaskCommand() local
519 HSession hSession = nullptr; in FindAliveSessionFromDaemonMap() local
541 HSession hSession = nullptr; in BindChannelToSession() local
563 HSession hSession = nullptr; in BindChannelToSession() local
662 HSession hSession = ptrServer->AdminSession(OP_QUERY, sessionId, nullptr); in FindAliveSession() local
672 HSession hSession = FindAliveSession(sessionId); in ChannelSendSessionCtrlMsg() local
Dhost_tcp.cpp98 HSession hSession = (HSession)connection->data; in Connect() local
132 HSession hSession = ptrConnect->MallocSession(true, CONN_TCP, this); in ConnectDaemon() local
/developtools/hdc_standard/test/unittest/common/
Dhost_uart_test.cpp375 [&](const std::string &connectKey, HSession hSession, ConnStatus connStatus) { in __anonec2afa2a0702()
411 EXPECT_CALL(mockHostUART, StartUartReadThread).WillOnce(Invoke([&](HSession hSession) { in __anonec2afa2a0802()
566 EXPECT_CALL(mockHostUART, NeedStop).WillRepeatedly([&](const HSession hSession) { in __anonec2afa2a0b02()
647 EXPECT_CALL(mockHostUART, UartReadThread).WillRepeatedly(Invoke([&](HSession hSession) { in __anonec2afa2a0e02()
Duart_test.cpp186 HSession hSession = nullptr; variable
220 HSession hSession = nullptr; variable
Ddaemon_uart_test.cpp354 ON_CALL(mockDaemonUART, IsSendReady).WillByDefault([&](HSession hSession) { in __anon159636800602()