| /developtools/hdc/src/common/ |
| D | session.cpp | 136 void HdcSessionBase::ClearOwnTasks(HSession hSession, const uint32_t channelIDInput) in ClearOwnTasks() 169 HSession hSession = (HSession)v.second; in ClearSessions() local 208 void HdcSessionBase::EnumUSBDeviceRegister(void (*pCallBack)(HSession hSession)) in EnumUSBDeviceRegister() 347 int HdcSessionBase::MallocSessionByConnectType(HSession hSession) in MallocSessionByConnectType() 400 HSession hSession = new(std::nothrow) HdcSession(); in MallocSession() local 463 void HdcSessionBase::FreeSessionByConnectType(HSession hSession) in FreeSessionByConnectType() 520 HSession hSession = (HSession)handle->data; in FreeSessionFinally() local 538 void HdcSessionBase::FreeSessionContinue(HSession hSession) in FreeSessionContinue() 541 HSession hSession = (HSession)handle->data; in FreeSessionContinue() local 563 HSession hSession = (HSession)handle->data; in FreeSessionOpeate() local [all …]
|
| D | usb.cpp | 31 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() 144 int HdcUSBBase::CheckPacketOption(HSession hSession, uint8_t *appendData, int dataSize) in CheckPacketOption() 169 int HdcUSBBase::SendToHdcStream(HSession hSession, uv_stream_t *stream, uint8_t *appendData, int da… in SendToHdcStream()
|
| D | usb.h | 25 virtual void CancelUsbIo(HSession hSession) {}; in CancelUsbIo() 29 virtual int SendUSBRaw(HSession hSession, uint8_t *data, const int length) in SendUSBRaw()
|
| D | task.cpp | 98 HdcSessionBase *hSession = (HdcSessionBase *)taskInfo->ownerSessionClass; in ServerCommand() local 106 HSession hSession = sessionBase->AdminSession(OP_QUERY, taskInfo->sessionId, nullptr); in ThreadCtrlCommunicate() local
|
| D | uart.cpp | 390 HSession hSession = (HSession)stream->data; in UartToHdcProtocol() local 434 RetErrCode HdcUARTBase::DispatchToWorkThread(HSession hSession, uint8_t *readBuf, int readBytes) in DispatchToWorkThread() 445 size_t HdcUARTBase::PackageProcess(vector<uint8_t> &data, HSession hSession) in PackageProcess() 518 bool HdcUARTBase::SendUARTRaw(HSession hSession, uint8_t *data, const size_t length) in SendUARTRaw() 560 bool HdcUARTBase::UartSendToHdcStream(HSession hSession, uint8_t *data, size_t size) in UartSendToHdcStream() 888 int HdcUARTBase::SendUARTData(HSession hSession, uint8_t *data, const size_t length) in SendUARTData() 941 HSession hSession = (HSession)stream->data; in ReadDataFromUARTStream() local 972 bool HdcUARTBase::ReadyForWorkThread(HSession hSession) in ReadyForWorkThread() 1000 void HdcUARTBase::StopSession(HSession hSession) in StopSession()
|
| D | session.h | 62 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()
|
| D | debug.cpp | 81 void DetermineThread(HSession hSession) in DetermineThread()
|
| D | tcp.cpp | 72 HSession hSession = (HSession)tcp->data; in ReadStream() local
|
| D | define_plus.h | 495 HSession hSession; member
|
| /developtools/hdc/src/daemon/ |
| D | daemon_uart.cpp | 167 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 315 bool HdcDaemonUART::IsSendReady(HSession hSession) in IsSendReady()
|
| D | daemon.cpp | 146 bool HdcDaemon::RedirectToTask(HTaskInfo hTaskInfo, HSession hSession, const uint32_t channelId, in RedirectToTask() 200 bool HdcDaemon::HandDaemonAuth(HSession hSession, const uint32_t channelId, SessionHandShake &hands… in HandDaemonAuth() 247 bool HdcDaemon::DaemonSessionHandshake(HSession hSession, const uint32_t channelId, uint8_t *payloa… in DaemonSessionHandshake() 324 bool HdcDaemon::FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, u… in FetchCommand() 407 void HdcDaemon::NotifyInstanceSessionFree(HSession hSession, bool freeOrClear) in NotifyInstanceSessionFree()
|
| D | daemon_usb.cpp | 224 HSession hSession = daemon->AdminSession(OP_QUERY, sessionId, nullptr); in ResetOldSession() local 256 bool HdcDaemonUSB::ReadyForWorkThread(HSession hSession) in ReadyForWorkThread() 294 int HdcDaemonUSB::SendUSBIOSync(HSession hSession, HUSB hMainUSB, const uint8_t *data, const int le… in SendUSBIOSync() 327 int HdcDaemonUSB::SendUSBRaw(HSession hSession, uint8_t *data, const int length) in SendUSBRaw() 348 void HdcDaemonUSB::OnSessionFreeFinally(const HSession hSession) in OnSessionFreeFinally()
|
| D | daemon_tcp.cpp | 78 HSession hSession = ptrConnect->MallocSession(false, CONN_TCP, thisClass); in AcceptClient() local
|
| /developtools/hdc/src/host/ |
| D | host_uart.cpp | 44 bool HdcHostUART::NeedStop(const HSession hSession) in NeedStop() 75 void HdcHostUART::UartReadThread(HSession hSession) in UartReadThread() 410 void HdcHostUART::UpdateUARTDaemonInfo(const std::string &connectKey, HSession hSession, in EnumSerialPort() 445 bool HdcHostUART::StartUartReadThread(HSession hSession) in EnumSerialPort() 476 HSession HdcHostUART::ConnectDaemonByUart(const HSession hSession, const HDaemonInfo) in EnumSerialPort() 572 HSession hSession = server.MallocSession(true, CONN_SERIAL, this); in EnumSerialPort() local 602 void HdcHostUART::KickoutZombie(HSession hSession) in EnumSerialPort() 679 void HdcHostUART::StopSession(HSession hSession) in EnumSerialPort() 758 void HdcHostUART::SendUartSoftReset(HSession hSession, uint32_t sessionId) in EnumSerialPort()
|
| D | server.cpp | 392 void HdcServer::NotifyInstanceSessionFree(HSession hSession, bool freeOrClear) in NotifyInstanceSessionFree() 423 bool HdcServer::HandServerAuth(HSession hSession, SessionHandShake &handshake) in HandServerAuth() 474 bool HdcServer::ServerSessionHandshake(HSession hSession, uint8_t *payload, int payloadSize) in ServerSessionHandshake() 523 bool HdcServer::FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, u… in FetchCommand() 707 HSession hSession = (HSession)handle->data; in UsbPreConnect() local 740 HSession hSession = (HSession)handle->data; in UartPreConnect() local 773 void HdcServer::CreatConnectUart(HSession hSession) in CreatConnectUart() 820 HSession hSession = nullptr; in CreateConnect() local 854 void HdcServer::AttachChannel(HSession hSession, const uint32_t channelId) in AttachChannel() 880 void HdcServer::DeatchChannel(HSession hSession, const uint32_t channelId) in DeatchChannel() [all …]
|
| D | host_usb.cpp | 156 HSession hSession = hdcServer->MallocSession(true, CONN_USB, this); in DetectMyNeed() local 172 void HdcHostUSB::KickoutZombie(HSession hSession) in KickoutZombie() 288 void HdcHostUSB::UpdateUSBDaemonInfo(HUSB hUSB, HSession hSession, uint8_t connStatus) in UpdateUSBDaemonInfo() 392 void HdcHostUSB::CancelUsbIo(HSession hSession) in CancelUsbIo() 419 HSession hSession = (HSession)stream->data; in UsbToHdcProtocol() local 492 int HdcHostUSB::SubmitUsbBio(HSession hSession, bool sendOrRecv, uint8_t *buf, int bufSize) in SubmitUsbBio() 529 void HdcHostUSB::BeginUsbRead(HSession hSession) in BeginUsbRead() 592 int HdcHostUSB::SendUSBRaw(HSession hSession, uint8_t *data, const int length) in SendUSBRaw() 657 bool HdcHostUSB::ReadyForWorkThread(HSession hSession) in ReadyForWorkThread() 664 HSession HdcHostUSB::ConnectDetectDaemon(const HSession hSession, const HDaemonInfo pdi) in ConnectDetectDaemon()
|
| D | host_tcp.cpp | 98 HSession hSession = (HSession)connection->data; in Connect() local 132 HSession hSession = ptrConnect->MallocSession(true, CONN_TCP, this); in ConnectDaemon() local
|
| D | server_for_client.cpp | 301 HSession hSession = ptrServer->AdminSession(OP_QUERY, hfi->sessionId, nullptr); in CommandRemoveForward() local 516 HSession hSession = FindAliveSession(hChannel->targetSessionId); in TaskCommand() local 631 HSession hSession = nullptr; in FindAliveSessionFromDaemonMap() local 674 HSession hSession = nullptr; in BindChannelToSession() local 791 HSession hSession = ptrServer->AdminSession(OP_QUERY, sessionId, nullptr); in FindAliveSession() local 801 HSession hSession = FindAliveSession(sessionId); in ChannelSendSessionCtrlMsg() local
|
| /developtools/hdc/test/unittest/common/ |
| D | host_uart_test.cpp | 375 [&](const std::string &connectKey, HSession hSession, ConnStatus connStatus) { in __anon5322a9160702() 411 EXPECT_CALL(mockHostUART, StartUartReadThread).WillOnce(Invoke([&](HSession hSession) { in __anon5322a9160802() 566 EXPECT_CALL(mockHostUART, NeedStop).WillRepeatedly([&](const HSession hSession) { in __anon5322a9160b02() 647 EXPECT_CALL(mockHostUART, UartReadThread).WillRepeatedly(Invoke([&](HSession hSession) { in __anon5322a9160e02()
|
| D | uart_test.cpp | 186 HSession hSession = nullptr; variable 220 HSession hSession = nullptr; variable
|
| D | daemon_uart_test.cpp | 354 ON_CALL(mockDaemonUART, IsSendReady).WillByDefault([&](HSession hSession) { in __anon1935506c0602()
|