Home
last modified time | relevance | path

Searched refs:STREAM_MAIN (Results 1 – 12 of 12) sorted by relevance

/developtools/hdc/src/common/
Dsession.cpp450 hSession->pollHandle[STREAM_MAIN] = (uv_poll_t *)malloc(handleSize); in MallocSession()
451 uv_poll_t *pollHandleMain = hSession->pollHandle[STREAM_MAIN]; in MallocSession()
458 uv_poll_init_socket(&loopMain, pollHandleMain, hSession->ctrlFd[STREAM_MAIN]); in MallocSession()
460 hSession->pollHandle[STREAM_MAIN]->data = hSession; in MallocSession()
463 uv_tcp_init(&loopMain, &hSession->dataPipe[STREAM_MAIN]); in MallocSession()
468 uv_tcp_open(&hSession->dataPipe[STREAM_MAIN], hSession->dataFd[STREAM_MAIN]); in MallocSession()
469 hSession->dataPipe[STREAM_MAIN].data = hSession; in MallocSession()
472 Base::SetTcpOptions(&hSession->dataPipe[STREAM_MAIN], HOST_SOCKETPAIR_SIZE); in MallocSession()
474 Base::SetTcpOptions(&hSession->dataPipe[STREAM_MAIN]); in MallocSession()
569 if (handle == reinterpret_cast<uv_handle_t *>(hSession->pollHandle[STREAM_MAIN])) { in FreeSessionContinue()
[all …]
Ddefine.h40 constexpr uint8_t STREAM_MAIN = 0; // work at main thread variable
Duart.cpp398 unsigned int fd = hSession->dataFd[STREAM_MAIN]; in UartToHdcProtocol()
599 if (UartToHdcProtocol(reinterpret_cast<uv_stream_t *>(&hSession->dataPipe[STREAM_MAIN]), in UartSendToHdcStream()
/developtools/hdc/src/daemon/
Ddaemon_tcp.cpp97 Base::SendToPollFd(hSession->ctrlFd[STREAM_MAIN], ctrl.data(), ctrl.size()); in AcceptClient()
Ddaemon_usb.cpp377 Base::SendToPollFd(hChildSession->ctrlFd[STREAM_MAIN], ctrl.data(), ctrl.size()); in PrepareNewSession()
492 uv_stream_t *stream = reinterpret_cast<uv_stream_t *>(&hChildSession->dataPipe[STREAM_MAIN]); in DispatchToWorkThread()
Ddaemon_uart.cpp228 Base::SendToPollFd(hSession->ctrlFd[STREAM_MAIN], ctrl.data(), ctrl.size()); in PrepareNewSession()
/developtools/hdc/src/host/
Dhost_tcp.cpp118 Base::SendToPollFd(hSession->ctrlFd[STREAM_MAIN], ctrl.data(), ctrl.size()); in Connect()
Dhost_usb.cpp464 unsigned int fd = hSession->dataFd[STREAM_MAIN]; in UsbToHdcProtocol()
594 …dRet = SendToHdcStream(hSession, reinterpret_cast<uv_stream_t *>(&hSession->dataPipe[STREAM_MAIN]), in BeginUsbRead()
742 Base::SendToPollFd(hSession->ctrlFd[STREAM_MAIN], ctrl.data(), ctrl.size()); in ConnectDetectDaemon()
Dserver_for_client.cpp742 Base::SendToPollFd(hSession->ctrlFd[STREAM_MAIN], ctrl.data(), ctrl.size()); in BindChannelToSession()
876 return Base::SendToPollFd(hSession->ctrlFd[STREAM_MAIN], ctrlMsg.data(), ctrlMsg.size()) > 0; in ChannelSendSessionCtrlMsg()
Dhost_uart.cpp500 externInterface.SendToPollFd(hSession->ctrlFd[STREAM_MAIN], ctrl.data(), ctrl.size()); in EnumSerialPort()
/developtools/hdc/test/unittest/common/
Dhost_uart_test.cpp218 SendToPollFd(mySession.ctrlFd[STREAM_MAIN], _, _))
232 SendToPollFd(mySession.ctrlFd[STREAM_MAIN], _, _))
Duart_test.cpp507 EXPECT_EQ(close(session.dataFd[STREAM_MAIN]), 0);