| /developtools/hdc/src/common/ |
| D | debug.cpp | 20 int WriteHexToDebugFile(const char *fileName, const uint8_t *buf, const int bufLen) in WriteHexToDebugFile() argument 42 fwrite(buf, 1, bufLen, fp); in WriteHexToDebugFile() 48 int ReadHexFromDebugFile(const char *fileName, uint8_t *buf, const int bufLen) in ReadHexFromDebugFile() argument 68 if (size > bufLen) { in ReadHexFromDebugFile() 92 int PrintfHexBuf(const uint8_t *buf, int bufLen) in PrintfHexBuf() argument 95 for (i = 0; i < bufLen; ++i) { in PrintfHexBuf()
|
| D | debug.h | 21 int WriteHexToDebugFile(const char *fileName, const uint8_t *buf, const int bufLen); 22 int ReadHexFromDebugFile(const char *fileName, uint8_t *buf, const int bufLen); 24 int PrintfHexBuf(const uint8_t *buf, int bufLen);
|
| D | base.cpp | 409 int SendToStream(uv_stream_t *handleStream, const uint8_t *buf, const int bufLen) in SendToStream() argument 412 if (bufLen > static_cast<int>(HDC_BUF_MAX_BYTES)) { in SendToStream() 415 uint8_t *pDynBuf = new uint8_t[bufLen]; in SendToStream() 417 WRITE_LOG(LOG_WARN, "SendToStream, alloc failed, size:%d", bufLen); in SendToStream() 420 if (memcpy_s(pDynBuf, bufLen, buf, bufLen)) { in SendToStream() 421 WRITE_LOG(LOG_WARN, "SendToStream, memory copy failed, size:%d", bufLen); in SendToStream() 425 return SendToStreamEx(handleStream, pDynBuf, bufLen, nullptr, in SendToStream() 431 …int SendToStreamEx(uv_stream_t *handleStream, const uint8_t *buf, const int bufLen, uv_stream_t *h… in SendToStreamEx() argument 438 WRITE_LOG(LOG_WARN, "SendToStreamEx, new write_t failed, size:%d", bufLen); in SendToStreamEx() 445 bfr.len = bufLen; in SendToStreamEx() [all …]
|
| D | tcp.cpp | 56 int bufLen = BUF_SIZE_DEFAULT; in AllocStreamUDP() local 57 char *pRecvBuf = reinterpret_cast<char *>(new uint8_t[bufLen]()); in AllocStreamUDP() 62 buf->len = bufLen; in AllocStreamUDP()
|
| D | base.h | 31 …int SendToStreamEx(uv_stream_t *handleStream, const uint8_t *buf, const int bufLen, uv_stream_t *h… 33 int SendToStream(uv_stream_t *handleStream, const uint8_t *buf, const int bufLen); 34 int SendToPollFd(int fd, const uint8_t *buf, const int bufLen); 57 int ReadBinFile(const char *pathName, void **buf, const size_t bufLen); 58 …int WriteBinFile(const char *pathName, const uint8_t *buf, const size_t bufLen, bool newFile = fal…
|
| D | session.h | 91 int OnRead(HSession hSession, uint8_t *bufPtr, const int bufLen); 94 int SendByProtocol(HSession hSession, uint8_t *bufPtr, const int bufLen, bool echo = false);
|
| D | session.cpp | 756 int HdcSessionBase::SendByProtocol(HSession hSession, uint8_t *bufPtr, const int bufLen, bool echo ) in SendByProtocol() argument 768 ret = pTCP->WriteUvTcpFd(&hSession->hChildWorkTCP, bufPtr, bufLen); in SendByProtocol() 771 ret = pTCP->WriteUvTcpFd(&hSession->hWorkTCP, bufPtr, bufLen); in SendByProtocol() 773 ret = pTCP->WriteUvTcpFd(&hSession->hChildWorkTCP, bufPtr, bufLen); in SendByProtocol() 780 ret = pUSB->SendUSBBlock(hSession, bufPtr, bufLen); in SendByProtocol() 787 ret = pUART->SendUARTData(hSession, bufPtr, bufLen); in SendByProtocol() 882 int HdcSessionBase::OnRead(HSession hSession, uint8_t *bufPtr, const int bufLen) in OnRead() argument 902 if (bufLen - packetHeadSize < tobeReadLen) { in OnRead()
|
| D | uart.h | 143 virtual int SendToStream(uv_stream_t *handleStream, const uint8_t *buf, const int bufLen);
|
| /developtools/profiler/hidebug/interfaces/js/kits/napi/ |
| D | napi_hidebug.cpp | 145 size_t bufLen = 0; in GetDumpParam() local 147 if (napi_get_value_string_utf8(env, jsValue, buf, bufSize - 1, &bufLen) != napi_ok) { in GetDumpParam() 172 size_t bufLen = 0; in GetFileNameParam() local 173 napi_status status = napi_get_value_string_utf8(env, argv[0], nullptr, 0, &bufLen); in GetFileNameParam() 179 if (bufLen > bufMax || bufLen == 0) { in GetFileNameParam() 183 char buf[bufLen + 1]; in GetFileNameParam() 184 napi_get_value_string_utf8(env, argv[0], buf, bufLen + 1, &bufLen); in GetFileNameParam() 204 size_t bufLen = 0; in GetFileNameParamThrowErrorVersion() local 205 napi_status status = napi_get_value_string_utf8(env, argv[0], nullptr, 0, &bufLen); in GetFileNameParamThrowErrorVersion() 211 if (bufLen > bufMax || bufLen == 0) { in GetFileNameParamThrowErrorVersion() [all …]
|
| /developtools/hdc/src/test/jdwp/ |
| D | HdcJdwpSimulator.cpp | 40 const int bufLen, const void *finishCallback) in SendToStream() argument 42 HiLog::Info(LABEL, "HdcJdwpSimulator::SendToStream: %{public}s, %{public}d", buf, bufLen); in SendToStream() 44 if (bufLen <= 0) { in SendToStream() 48 uint8_t *pDynBuf = new uint8_t[bufLen]; in SendToStream() 53 if (memcpy_s(pDynBuf, bufLen, buf, bufLen)) { in SendToStream() 69 bfr.len = bufLen; in SendToStream()
|
| D | HdcJdwpSimulator.h | 52 static RetErrCode SendToStream(uv_stream_t *handleStream, const uint8_t *buf, const int bufLen,
|
| /developtools/profiler/device/plugins/arkts_plugin/src/ |
| D | arkts_plugin.cpp | 250 int32_t bufLen = recv(client_, recvBuf, CLIENT_WEBSOCKET_UPGRADE_RSP_LEN, 0); in ClientRecvWSUpgradeRsp() local 251 if (bufLen != CLIENT_WEBSOCKET_UPGRADE_RSP_LEN) { in ClientRecvWSUpgradeRsp()
|