Lines Matching refs:HdcJdwpSimulator
16 #include "HdcJdwpSimulator.h"
20 HdcJdwpSimulator::HdcJdwpSimulator(uv_loop_t *loopIn, string pkg)
27 HdcJdwpSimulator::~HdcJdwpSimulator() {}
29 void HdcJdwpSimulator::FinishWriteCallback(uv_write_t *req, int status)
39 RetErrCode HdcJdwpSimulator::SendToStream(uv_stream_t *handleStream, const uint8_t *buf,
42 HiLog::Info(LABEL, "HdcJdwpSimulator::SendToStream: %{public}s, %{public}d", buf, bufLen);
45 HiLog::Error(LABEL, "HdcJdwpSimulator::SendToStream wrong bufLen.");
50 HiLog::Error(LABEL, "HdcJdwpSimulator::SendToStream new pDynBuf fail.");
55 HiLog::Error(LABEL, "HdcJdwpSimulator::SendToStream memcpy fail.");
61 HiLog::Error(LABEL, "HdcJdwpSimulator::SendToStream alloc reqWrite fail.");
84 void HdcJdwpSimulator::alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf)
96 void HdcJdwpSimulator::ProcessIncoming(uv_stream_t *client, ssize_t nread, const uv_buf_t *buf)
141 void HdcJdwpSimulator::ReceiveNewFd(uv_stream_t *q, ssize_t nread, const uv_buf_t *buf)
144 HdcJdwpSimulator *thisClass = static_cast<HdcJdwpSimulator *>(ctxJdwp->thisClass);
146 HiLog::Debug(LABEL, "HdcJdwpSimulator::ReceiveNewFd pid: %{public}d, nread: %{public}d\n",
183 void HdcJdwpSimulator::ConnectJdwp(uv_connect_t *connection, int status)
191 HdcJdwpSimulator *thisClass = static_cast<HdcJdwpSimulator *>(ctxJdwp->thisClass);
246 void *HdcJdwpSimulator::MallocContext()
258 void HdcJdwpSimulator::FreeContext()
260 HiLog::Debug(LABEL, "HdcJdwpSimulator::FreeContext start");
273 HiLog::Debug(LABEL, "HdcJdwpSimulator::FreeContext end");
276 bool HdcJdwpSimulator::Connect()
287 HiLog::Info(LABEL, " HdcJdwpSimulator Connect begin");
292 void HdcJdwpSimulator::stop()
294 HiLog::Debug(LABEL, "HdcJdwpSimulator::stop.");