| /developtools/hdc_standard/src/common/ |
| D | session.cpp | 123 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 …]
|
| 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() 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()
|
| 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 | 74 HdcSessionBase *hSession = (HdcSessionBase *)taskInfo->ownerSessionClass; in ServerCommand() local 82 HSession hSession = sessionBase->AdminSession(OP_QUERY, taskInfo->sessionId, nullptr); in ThreadCtrlCommunicate() local
|
| D | uart.cpp | 333 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()
|
| D | session.h | 60 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()
|
| 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 | 462 HSession hSession; member
|
| /developtools/hdc_standard/src/daemon/ |
| D | daemon_uart.cpp | 169 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()
|
| D | daemon.cpp | 138 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()
|
| D | daemon_usb.cpp | 220 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()
|
| D | daemon_tcp.cpp | 69 HSession hSession = ptrConnect->MallocSession(false, CONN_TCP, thisClass); in AcceptClient() local
|
| /developtools/hdc_standard/src/host/ |
| D | server.cpp | 374 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 …]
|
| D | host_usb.cpp | 81 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()
|
| D | host_uart.cpp | 41 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()
|
| D | server_for_client.cpp | 269 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
|
| 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
|
| /developtools/hdc_standard/test/unittest/common/ |
| D | host_uart_test.cpp | 375 [&](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()
|
| 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 __anon159636800602()
|