| /developtools/hdc/src/common/ |
| D | session.cpp | 154 void HdcSessionBase::ClearOwnTasks(HSession hSession, const uint32_t channelIDInput) in ClearOwnTasks() 188 HSession hSession = (HSession)v.second; in ClearSessions() local 228 void HdcSessionBase::EnumUSBDeviceRegister(void (*pCallBack)(HSession hSession)) in EnumUSBDeviceRegister() 367 int HdcSessionBase::MallocSessionByConnectType(HSession hSession) in MallocSessionByConnectType() 424 HSession hSession = new(std::nothrow) HdcSession(); in MallocSession() local 497 void HdcSessionBase::FreeSessionByConnectType(HSession hSession) in FreeSessionByConnectType() 554 HSession hSession = (HSession)handle->data; in FreeSessionFinally() local 574 void HdcSessionBase::FreeSessionContinue(HSession hSession) in FreeSessionContinue() 577 HSession hSession = (HSession)handle->data; in FreeSessionContinue() local 606 HSession hSession = (HSession)handle->data; in FreeSessionOpeate() local [all …]
|
| D | usb.cpp | 32 HSession hSession = (HSession)stream->data; in ReadUSB() local 40 bool HdcUSBBase::ReadyForWorkThread(HSession hSession) in ReadyForWorkThread() 81 int HdcUSBBase::SendUSBBlock(HSession hSession, uint8_t *data, const int length) in SendUSBBlock() 137 void HdcUSBBase::PreSendUsbSoftReset(HSession hSession, uint32_t sessionIdOld) in PreSendUsbSoftReset() 153 int HdcUSBBase::CheckPacketOption(HSession hSession, uint8_t *appendData, int dataSize) in CheckPacketOption() 180 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 | uart.cpp | 397 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()
|
| D | session.h | 64 virtual void AttachChannel(HSession hSession, const uint32_t channelId) in AttachChannel() 67 virtual void DeatchChannel(HSession hSession, const uint32_t channelId) in DeatchChannel() 70 virtual void NotifyInstanceSessionFree(HSession hSession, bool freeOrClear) in NotifyInstanceSessionFree() 73 virtual bool RedirectToTask(HTaskInfo hTaskInfo, HSession hSession, const uint32_t channelId, in RedirectToTask() 112 …virtual bool FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, uin… in FetchCommand()
|
| D | task.cpp | 107 HdcSessionBase *hSession = (HdcSessionBase *)taskInfo->ownerSessionClass; in ServerCommand() local 115 HSession hSession = sessionBase->AdminSession(OP_QUERY, taskInfo->sessionId, nullptr); in ThreadCtrlCommunicate() local
|
| 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 | 360 HSession hSession; member 379 HSession hSession = nullptr; 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 314 bool HdcDaemonUART::IsSendReady(HSession hSession) in IsSendReady()
|
| D | daemon.cpp | 192 bool HdcDaemon::RedirectToTask(HTaskInfo hTaskInfo, HSession hSession, const uint32_t channelId, in InitMod() 423 bool HdcDaemon::HandDaemonAuthInit(HSession hSession, const uint32_t channelId, SessionHandShake &h… in InitMod() 446 bool HdcDaemon::HandDaemonAuthPubkey(HSession hSession, const uint32_t channelId, SessionHandShake … in InitMod() 500 bool HdcDaemon::RsaSignVerify(HSession hSession, EVP_PKEY_CTX *ctx, const string &tokenSignBase64, … in InitMod() 526 bool HdcDaemon::AuthVerifyRsaSign(HSession hSession, const string &tokenSign, const string &token, … in InitMod() 577 bool HdcDaemon::AuthVerify(HSession hSession, const string &encryptToken, const string &token, cons… in InitMod() 617 bool HdcDaemon::AuthVerifyRsa(HSession hSession, const string &encryptToken, const string &token, R… in InitMod() 646 bool HdcDaemon::HandDaemonAuthSignature(HSession hSession, const uint32_t channelId, SessionHandSha… in InitMod() 679 bool HdcDaemon::HandDaemonAuth(HSession hSession, const uint32_t channelId, SessionHandShake &hands… in InitMod() 716 void HdcDaemon::GetServerCapability(HSession &hSession, SessionHandShake &handshake) in InitMod() [all …]
|
| D | daemon_usb.cpp | 223 HSession hSession = daemon->AdminSession(OP_QUERY, sessionId, nullptr); in ResetOldSession() local 260 bool HdcDaemonUSB::ReadyForWorkThread(HSession hSession) in ReadyForWorkThread() 298 int HdcDaemonUSB::SendUSBIOSync(HSession hSession, HUSB hMainUSB, const uint8_t *data, const int le… in SendUSBIOSync() 333 int HdcDaemonUSB::SendUSBRaw(HSession hSession, uint8_t *data, const int length) in SendUSBRaw() 360 void HdcDaemonUSB::OnSessionFreeFinally(const HSession hSession) in OnSessionFreeFinally()
|
| D | daemon_bridge.cpp | 76 HSession hSession = ptrConnect->MallocSession(false, CONN_TCP, thisClass); in AcceptClient() local
|
| D | daemon_tcp.cpp | 75 HSession hSession = ptrConnect->MallocSession(false, CONN_TCP, thisClass); in AcceptClient() local
|
| /developtools/hdc/src/host/ |
| D | server.cpp | 393 void HdcServer::NotifyInstanceSessionFree(HSession hSession, bool freeOrClear) in NotifyInstanceSessionFree() 425 void HdcServer::GetDaemonAuthType(HSession hSession, SessionHandShake &handshake) in GetDaemonAuthType() 449 bool HdcServer::HandServerAuth(HSession hSession, SessionHandShake &handshake) in HandServerAuth() 531 bool HdcServer::ServerSessionHandshake(HSession hSession, uint8_t *payload, int payloadSize) in ServerSessionHandshake() 564 bool HdcServer::FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, u… in FetchCommand() 749 HSession hSession = (HSession)handle->data; in UsbPreConnect() local 776 HSession hSession = (HSession)handle->data; in UartPreConnect() local 809 void HdcServer::CreatConnectUart(HSession hSession) in CreatConnectUart() 856 HSession hSession = nullptr; in CreateConnect() local 896 void HdcServer::AttachChannel(HSession hSession, const uint32_t channelId) in AttachChannel() [all …]
|
| D | host_uart.cpp | 44 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()
|
| D | host_usb.cpp | 161 HSession hSession = hdcServer->MallocSession(true, CONN_USB, this); in DetectMyNeed() local 183 void HdcHostUSB::KickoutZombie(HSession hSession) in KickoutZombie() 326 void HdcHostUSB::UpdateUSBDaemonInfo(HUSB hUSB, HSession hSession, uint8_t connStatus) in UpdateUSBDaemonInfo() 440 void HdcHostUSB::CancelUsbIo(HSession hSession) in CancelUsbIo() 467 HSession hSession = (HSession)stream->data; in UsbToHdcProtocol() local 541 int HdcHostUSB::SubmitUsbBio(HSession hSession, bool sendOrRecv, uint8_t *buf, int bufSize) in SubmitUsbBio() 580 void HdcHostUSB::BeginUsbRead(HSession hSession) in BeginUsbRead() 661 int HdcHostUSB::SendUSBRaw(HSession hSession, uint8_t *data, const int length) in SendUSBRaw() 730 bool HdcHostUSB::ReadyForWorkThread(HSession hSession) in ReadyForWorkThread() 737 HSession HdcHostUSB::ConnectDetectDaemon(const HSession hSession, const HDaemonInfo pdi) in ConnectDetectDaemon() [all …]
|
| D | host_tcp.cpp | 98 HSession hSession = (HSession)connection->data; in Connect() local 135 HSession hSession = ptrConnect->MallocSession(true, CONN_TCP, this); in ConnectDaemon() local
|
| D | server_for_client.cpp | 373 HSession hSession = ptrServer->AdminSession(OP_QUERY, hfi->sessionId, nullptr); in RemoveFportkey() local 587 HSession hSession = FindAliveSession(hChannel->targetSessionId); in TaskCommand() local 706 HSession hSession = nullptr; in FindAliveSessionFromDaemonMap() local 758 HSession hSession = nullptr; in BindChannelToSession() local 896 HSession hSession = ptrServer->AdminSession(OP_QUERY, sessionId, nullptr); in FindAliveSession() local 907 HSession hSession = FindAliveSession(sessionId); in ChannelSendSessionCtrlMsg() local
|
| /developtools/hdc/test/unittest/common/ |
| D | host_uart_test.cpp | 376 [&](const std::string &connectKey, HSession hSession, ConnStatus connStatus) { in __anon99d22b170702() 412 EXPECT_CALL(mockHostUART, StartUartReadThread).WillOnce(Invoke([&](HSession hSession) { in __anon99d22b170802() 567 EXPECT_CALL(mockHostUART, NeedStop).WillRepeatedly([&](const HSession hSession) { in __anon99d22b170b02() 648 EXPECT_CALL(mockHostUART, UartReadThread).WillRepeatedly(Invoke([&](HSession hSession) { in __anon99d22b170e02()
|
| 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 __anonc9cd56ad0602()
|