Home
last modified time | relevance | path

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

12

/developtools/hdc/src/common/
Dsession.cpp156 void HdcSessionBase::ClearOwnTasks(HSession hSession, const uint32_t channelIDInput) in ClearOwnTasks()
191 HSession hSession = (HSession)v.second; in ClearSessions() local
231 void HdcSessionBase::EnumUSBDeviceRegister(void (*pCallBack)(HSession hSession)) in EnumUSBDeviceRegister()
373 int HdcSessionBase::MallocSessionByConnectType(HSession hSession) in MallocSessionByConnectType()
431 HSession hSession = new(std::nothrow) HdcSession(); in MallocSession() local
522 void HdcSessionBase::FreeSessionByConnectType(HSession hSession) in FreeSessionByConnectType()
579 HSession hSession = (HSession)handle->data; in FreeSessionFinally() local
609 void HdcSessionBase::FreeSessionContinue(HSession hSession) in FreeSessionContinue()
612 HSession hSession = (HSession)handle->data; in FreeSessionContinue() local
646 HSession hSession = (HSession)handle->data; in FreeSessionOpeate() local
[all …]
Dusb.cpp32 HSession hSession = (HSession)stream->data; in ReadUSB() local
41 bool HdcUSBBase::ReadyForWorkThread(HSession hSession) in ReadyForWorkThread()
83 int HdcUSBBase::SendUSBBlock(HSession hSession, uint8_t *data, const int length) in SendUSBBlock()
139 void HdcUSBBase::PreSendUsbSoftReset(HSession hSession, uint32_t sessionIdOld) in PreSendUsbSoftReset()
155 int HdcUSBBase::CheckPacketOption(HSession hSession, uint8_t *appendData, int dataSize) in CheckPacketOption()
182 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.cpp397 HSession hSession = (HSession)stream->data; in UartToHdcProtocol() local
441 RetErrCode HdcUARTBase::DispatchToWorkThread(HSession hSession, uint8_t *readBuf, int readBytes) in DispatchToWorkThread()
452 size_t HdcUARTBase::PackageProcess(vector<uint8_t> &data, HSession hSession) in PackageProcess()
525 bool HdcUARTBase::SendUARTRaw(HSession hSession, uint8_t *data, const size_t length) in SendUARTRaw()
567 bool HdcUARTBase::UartSendToHdcStream(HSession hSession, uint8_t *data, size_t size) in UartSendToHdcStream()
895 int HdcUARTBase::SendUARTData(HSession hSession, uint8_t *data, const size_t length) in SendUARTData()
948 HSession hSession = (HSession)stream->data; in ReadDataFromUARTStream() local
979 bool HdcUARTBase::ReadyForWorkThread(HSession hSession) in ReadyForWorkThread()
1007 void HdcUARTBase::StopSession(HSession hSession) in StopSession()
Dtask.cpp112 HdcSessionBase *hSession = (HdcSessionBase *)taskInfo->ownerSessionClass; in ServerCommand() local
120 HSession hSession = sessionBase->AdminSession(OP_QUERY, taskInfo->sessionId, nullptr); in ThreadCtrlCommunicate() local
Dsession.h69 virtual void AttachChannel(HSession hSession, const uint32_t channelId) in AttachChannel()
72 virtual void DeatchChannel(HSession hSession, const uint32_t channelId) in DeatchChannel()
75 virtual void NotifyInstanceSessionFree(HSession hSession, bool freeOrClear) in NotifyInstanceSessionFree()
78 virtual bool RedirectToTask(HTaskInfo hTaskInfo, HSession hSession, const uint32_t channelId, in RedirectToTask()
122 …virtual bool FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, uin… in FetchCommand()
Dtcp.cpp74 HSession hSession = (HSession)tcp->data; in ReadStream() local
120 HSession hSession = reinterpret_cast<HSession>(tcp->data); in WriteUvSslFd() local
Ddebug.cpp81 void DetermineThread(HSession hSession) in DetermineThread()
Dhdc_ssl.cpp56 void HdcSSLBase::SetSSLInfo(SSLInfoPtr hSSLInfo, HSession hSession) in SetSSLInfo()
360 bool HdcSSLBase::SetHandshakeLabel(HSession hSession) in SetHandshakeLabel()
/developtools/hdc/src/host/
Dserver.cpp414 void HdcServer::NotifyInstanceSessionFree(HSession hSession, bool freeOrClear) in NotifyInstanceSessionFree()
448 void HdcServer::GetDaemonAuthType(HSession hSession, SessionHandShake &handshake) in GetDaemonAuthType()
472 bool HdcServer::HandServerAuth(HSession hSession, SessionHandShake &handshake) in HandServerAuth()
520 void HdcServer::UpdateHdiInfo(Hdc::HdcSessionBase::SessionHandShake &handshake, HSession &hSession) in UpdateHdiInfo()
575 bool HdcServer::ServerSSLHandshake(HSession hSession, SessionHandShake &handshake) in ServerSSLHandshake()
619 bool HdcServer::ServerSessionSSLInit(HSession hSession, SessionHandShake &handshake) in ServerSessionSSLInit()
670 bool HdcServer::ServerSessionHandshake(HSession hSession, uint8_t *payload, int payloadSize) in ServerSessionHandshake()
703 bool HdcServer::FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, u… in FetchCommand()
909 HSession hSession = (HSession)handle->data; in UsbPreConnect() local
937 HSession hSession = (HSession)handle->data; in UartPreConnect() local
[all …]
Dhost_usb.cpp187 HSession hSession = hdcServer->MallocSession(true, CONN_USB, this); in DetectMyNeed() local
210 void HdcHostUSB::KickoutZombie(HSession hSession) in KickoutZombie()
373 void HdcHostUSB::UpdateUSBDaemonInfo(HUSB hUSB, HSession hSession, uint8_t connStatus) in UpdateUSBDaemonInfo()
487 void HdcHostUSB::CancelUsbIo(HSession hSession) in CancelUsbIo()
514 HSession hSession = (HSession)stream->data; in UsbToHdcProtocol() local
590 int HdcHostUSB::SubmitUsbBio(HSession hSession, bool sendOrRecv, uint8_t *buf, int bufSize) in SubmitUsbBio()
636 void HdcHostUSB::BeginUsbRead(HSession hSession) in BeginUsbRead()
712 int HdcHostUSB::SendUSBRaw(HSession hSession, uint8_t *data, const int length) in SendUSBRaw()
782 bool HdcHostUSB::ReadyForWorkThread(HSession hSession) in ReadyForWorkThread()
789 HSession HdcHostUSB::ConnectDetectDaemon(const HSession hSession, const HDaemonInfo pdi) in ConnectDetectDaemon()
[all …]
Dhost_uart.cpp44 bool HdcHostUART::NeedStop(const HSession hSession) in NeedStop()
75 void HdcHostUART::UartReadThread(HSession hSession) in UartReadThread()
417 void HdcHostUART::UpdateUARTDaemonInfo(const std::string &connectKey, HSession hSession, in EnumSerialPort()
452 bool HdcHostUART::StartUartReadThread(HSession hSession) in EnumSerialPort()
483 HSession HdcHostUART::ConnectDaemonByUart(const HSession hSession, const HDaemonInfo) in EnumSerialPort()
578 HSession hSession = server.MallocSession(true, CONN_SERIAL, this); in EnumSerialPort() local
614 void HdcHostUART::KickoutZombie(HSession hSession) in EnumSerialPort()
691 void HdcHostUART::StopSession(HSession hSession) in EnumSerialPort()
770 void HdcHostUART::SendUartSoftReset(HSession hSession, uint32_t sessionId) in EnumSerialPort()
Dhost_tcp.cpp100 HSession hSession = (HSession)connection->data; in Connect() local
142 HSession hSession = ptrConnect->MallocSession(true, CONN_TCP, this); in ConnectDaemon() local
Dhost_usb.h22 HSession hSession = nullptr; member
Dserver_for_client.cpp521 HSession hSession = ptrServer->AdminSession(OP_QUERY, hfi->sessionId, nullptr); in RemoveFportkey() local
766 HSession hSession = FindAliveSession(hChannel->targetSessionId); in TaskCommand() local
925 HSession hSession = nullptr; in FindAliveSessionFromDaemonMap() local
1000 HSession hSession = nullptr; in BindChannelToSession() local
1037 HSession hSession = nullptr; in BindChannelToSession() local
1182 HSession hSession = ptrServer->AdminSession(OP_QUERY, sessionId, nullptr); in FindAliveSession() local
1193 HSession hSession = FindAliveSession(sessionId); in ChannelSendSessionCtrlMsg() local
/developtools/hdc/src/daemon/
Ddaemon.cpp227 bool HdcDaemon::RedirectToTask(HTaskInfo hTaskInfo, HSession hSession, const uint32_t channelId, in InitMod()
462 bool HdcDaemon::HandDaemonAuthInit(HSession hSession, const uint32_t channelId, SessionHandShake &h… in InitMod()
485 bool HdcDaemon::HandDaemonAuthPubkey(HSession hSession, const uint32_t channelId, SessionHandShake … in InitMod()
539 bool HdcDaemon::RsaSignVerify(HSession hSession, EVP_PKEY_CTX *ctx, const string &tokenSignBase64, … in InitMod()
565 bool HdcDaemon::AuthVerifyRsaSign(HSession hSession, const string &tokenSign, const string &token, … in InitMod()
616 bool HdcDaemon::AuthVerify(HSession hSession, const string &encryptToken, const string &token, cons… in InitMod()
656 bool HdcDaemon::AuthVerifyRsa(HSession hSession, const string &encryptToken, const string &token, R… in InitMod()
689 bool HdcDaemon::HandDaemonAuthSignature(HSession hSession, const uint32_t channelId, SessionHandSha… in InitMod()
722 bool HdcDaemon::HandDaemonAuth(HSession hSession, const uint32_t channelId, SessionHandShake &hands… in InitMod()
760 void HdcDaemon::GetServerCapability(HSession &hSession, SessionHandShake &handshake) in InitMod()
[all …]
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_usb.cpp227 HSession hSession = daemon->AdminSession(OP_QUERY, sessionId, nullptr); in ResetOldSession() local
264 bool HdcDaemonUSB::ReadyForWorkThread(HSession hSession) in ReadyForWorkThread()
305 int HdcDaemonUSB::SendUSBIOSync(HSession hSession, HUSB hMainUSB, const uint8_t *data, const int le… in SendUSBIOSync()
340 int HdcDaemonUSB::SendUSBRaw(HSession hSession, uint8_t *data, const int length) in SendUSBRaw()
367 void HdcDaemonUSB::OnSessionFreeFinally(const HSession hSession) in OnSessionFreeFinally()
Ddaemon_bridge.cpp77 HSession hSession = ptrConnect->MallocSession(false, CONN_TCP, thisClass); in AcceptClient() local
Ddaemon_tcp.cpp76 HSession hSession = ptrConnect->MallocSession(false, CONN_TCP, thisClass); in AcceptClient() local
/developtools/hdc/test/unittest/common/
Dhdc_ssl_ut.cpp157 HSession hSession = new HdcSession(); variable
176 HSession hSession = new HdcSession(); variable
198 HSession hSession = new HdcSession(); variable
220 HSession hSession = new HdcSession(); variable
244 HSession hSession = new HdcSession(); variable
322 HSession hSession = new HdcSession(); variable
488 HSession hSession = new HdcSession(); variable
506 HSession hSession = new HdcSession(); variable
601 HSession hSession = new HdcSession(); variable
Dhost_uart_test.cpp376 [&](const std::string &connectKey, HSession hSession, ConnStatus connStatus) { in __anonee5ad5f70702()
412 EXPECT_CALL(mockHostUART, StartUartReadThread).WillOnce(Invoke([&](HSession hSession) { in __anonee5ad5f70802()
567 EXPECT_CALL(mockHostUART, NeedStop).WillRepeatedly([&](const HSession hSession) { in __anonee5ad5f70b02()
648 EXPECT_CALL(mockHostUART, UartReadThread).WillRepeatedly(Invoke([&](HSession hSession) { in __anonee5ad5f70e02()
Duart_test.cpp186 HSession hSession = nullptr; variable
220 HSession hSession = nullptr; variable
Ddaemon_uart_test.cpp354 ON_CALL(mockDaemonUART, IsSendReady).WillByDefault([&](HSession hSession) { in __anon632c398d0602()
/developtools/hdc/test/unittest/host/
Dhost_uds_server_test.cpp57 HSession hSession = server.MallocSession(true, CONN_USB, nullptr); variable

12