Searched refs:ctxJdwp (Results 1 – 4 of 4) sorted by relevance
| /developtools/hdc/src/test/jdwp/ |
| D | HdcJdwpSimulator.cpp | 143 HCtxJdwpSimulator ctxJdwp = static_cast<HCtxJdwpSimulator>(q->data); in ReceiveNewFd() local 144 HdcJdwpSimulator *thisClass = static_cast<HdcJdwpSimulator *>(ctxJdwp->thisClass); in ReceiveNewFd() 168 uv_tcp_init(thisClass->loop, &ctxJdwp->newFd); in ReceiveNewFd() 169 if (uv_accept(q, reinterpret_cast<uv_stream_t *>(&ctxJdwp->newFd)) == 0) { in ReceiveNewFd() 171 ctxJdwp->hasNewFd = true; in ReceiveNewFd() 172 uv_fileno(reinterpret_cast<const uv_handle_t *>(&ctxJdwp->newFd), &fd); in ReceiveNewFd() 174 uv_read_start(reinterpret_cast<uv_stream_t *>(&ctxJdwp->newFd), alloc_buffer, in ReceiveNewFd() 177 ctxJdwp->hasNewFd = false; in ReceiveNewFd() 178 uv_close(reinterpret_cast<uv_handle_t *>(&ctxJdwp->newFd), NULL); in ReceiveNewFd() 190 HCtxJdwpSimulator ctxJdwp = static_cast<HCtxJdwpSimulator>(connection->data); in ConnectJdwp() local [all …]
|
| /developtools/hdc/test/unittest/common/ |
| D | HdcJdwpTest.cpp | 80 HdcJdwp::HCtxJdwp ctxJdwp = (HdcJdwp::HCtxJdwp)mJdwpTest->MallocContext(); variable 81 ctxJdwp->finish = true; // For skip HdcJdwp::FreeContext, because the pipe 83 pipe.data = ctxJdwp; 94 uint8_t *info = reinterpret_cast<uint8_t *>(ctxJdwp->buf); 96 memset_s(info, sizeof(ctxJdwp->buf), 0, sizeof(ctxJdwp->buf));
|
| /developtools/hdc/src/daemon/ |
| D | jdwp.cpp | 122 HCtxJdwp ctxJdwp = static_cast<HCtxJdwp>(pipe->data); in ReadStream() local 123 HdcJdwp *thisClass = static_cast<HdcJdwp *>(ctxJdwp->thisClass); in ReadStream() 126 char *p = ctxJdwp->buf; in ReadStream() 135 ctxJdwp->pkgName = pkgName; in ReadStream() 143 ctxJdwp->pid = pid; in ReadStream() 145 WRITE_LOG(LOG_DEBUG, "JDWP accept pid:%d-pkg:%s", pid, ctxJdwp->pkgName.c_str()); in ReadStream() 149 thisClass->AdminContext(OP_ADD, pid, ctxJdwp); in ReadStream() 152 if (uv_fileno(reinterpret_cast<uv_handle_t *>(&(ctxJdwp->pipe)), &fd) < 0) { in ReadStream() 162 Base::ZeroArray(ctxJdwp->buf); in ReadStream() 164 WRITE_LOG(LOG_INFO, "ReadStream proc:%d err, free it.", ctxJdwp->pid); in ReadStream() [all …]
|
| D | jdwp.h | 91 void *AdminContext(const uint8_t op, const uint32_t pid, HCtxJdwp ctxJdwp);
|