| /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 | 458 int SendToStream(uv_stream_t *handleStream, const uint8_t *buf, const int bufLen) in SendToStream() argument 461 if (bufLen > static_cast<int>(HDC_BUF_MAX_BYTES)) { in SendToStream() 464 uint8_t *pDynBuf = new uint8_t[bufLen]; in SendToStream() 466 WRITE_LOG(LOG_WARN, "SendToStream, alloc failed, size:%d", bufLen); in SendToStream() 469 if (memcpy_s(pDynBuf, bufLen, buf, bufLen)) { in SendToStream() 470 WRITE_LOG(LOG_WARN, "SendToStream, memory copy failed, size:%d", bufLen); in SendToStream() 474 return SendToStreamEx(handleStream, pDynBuf, bufLen, nullptr, in SendToStream() 480 …int SendToStreamEx(uv_stream_t *handleStream, const uint8_t *buf, const int bufLen, uv_stream_t *h… in SendToStreamEx() argument 487 WRITE_LOG(LOG_WARN, "SendToStreamEx, new write_t failed, size:%d", bufLen); in SendToStreamEx() 494 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); 58 int ReadBinFile(const char *pathName, void **buf, const size_t bufLen); 59 …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 | 772 int HdcSessionBase::SendByProtocol(HSession hSession, uint8_t *bufPtr, const int bufLen, bool echo ) in SendByProtocol() argument 785 ret = pTCP->WriteUvTcpFd(&hSession->hChildWorkTCP, bufPtr, bufLen); in SendByProtocol() 788 ret = pTCP->WriteUvTcpFd(&hSession->hWorkTCP, bufPtr, bufLen); in SendByProtocol() 790 ret = pTCP->WriteUvTcpFd(&hSession->hChildWorkTCP, bufPtr, bufLen); in SendByProtocol() 797 ret = pUSB->SendUSBBlock(hSession, bufPtr, bufLen); in SendByProtocol() 804 ret = pUART->SendUARTData(hSession, bufPtr, bufLen); in SendByProtocol() 899 int HdcSessionBase::OnRead(HSession hSession, uint8_t *bufPtr, const int bufLen) in OnRead() argument 919 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 | 152 size_t bufLen = 0; in GetDumpParam() local 154 if (napi_get_value_string_utf8(env, jsValue, buf, bufSize - 1, &bufLen) != napi_ok) { in GetDumpParam() 179 size_t bufLen = 0; in GetFileNameParam() local 180 napi_status status = napi_get_value_string_utf8(env, argv[0], nullptr, 0, &bufLen); in GetFileNameParam() 186 if (bufLen > bufMax || bufLen == 0) { in GetFileNameParam() 190 char buf[bufLen + 1]; in GetFileNameParam() 191 napi_get_value_string_utf8(env, argv[0], buf, bufLen + 1, &bufLen); in GetFileNameParam() 211 size_t bufLen = 0; in GetFileNameParamThrowErrorVersion() local 212 napi_status status = napi_get_value_string_utf8(env, argv[0], nullptr, 0, &bufLen); in GetFileNameParamThrowErrorVersion() 218 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/hdc/src/register/ |
| D | hdc_jdwp.h | 47 static bool SendToJpid(int fd, const uint8_t *buf, const int bufLen);
|
| D | hdc_jdwp.cpp | 64 bool HdcJdwpSimulator::SendToJpid(int fd, const uint8_t *buf, const int bufLen) in SendToJpid() argument 66 ssize_t rc = write(fd, buf, bufLen); in SendToJpid()
|
| /developtools/profiler/device/plugins/arkts_plugin/src/ |
| D | arkts_plugin.cpp | 372 int32_t bufLen = recv(client_, recvBuf, CLIENT_WEBSOCKET_UPGRADE_RSP_LEN, 0); in ClientRecvWSUpgradeRsp() local 373 if (bufLen != CLIENT_WEBSOCKET_UPGRADE_RSP_LEN) { in ClientRecvWSUpgradeRsp()
|