| /developtools/hdc/src/host/ |
| D | host_usb.cpp | 146 int childRet = OpenDeviceMyNeed(hUSB); in DetectMyNeed() local 147 if (childRet < 0) { in DetectMyNeed() 148 WRITE_LOG(LOG_FATAL, "DetectMyNeed OpenDeviceMyNeed childRet:%d", childRet); in DetectMyNeed() 297 int childRet = 0; in CheckDescriptor() local 309 …childRet = libusb_get_string_descriptor_ascii(hUSB->devHandle, desc.iSerialNumber, (uint8_t *)seri… in CheckDescriptor() 311 if (childRet < 0) { in CheckDescriptor() 470 int childRet = 0; in UsbToHdcProtocol() local 473 childRet = select(fd + 1, nullptr, &fdSet, nullptr, &timeout); in UsbToHdcProtocol() 474 if (childRet <= 0) { in UsbToHdcProtocol() 482 WRITE_LOG(LOG_FATAL, "select error:%d [%s][%d]", errno, buf, childRet); in UsbToHdcProtocol() [all …]
|
| D | server_for_client.cpp | 313 int childRet = ((HdcServer *)ptrServer)->CreateConnect(connectKey, isCheck); in NewConnectTry() local 316 if (childRet == -1) { in NewConnectTry() 318 } else if (childRet == connectError) { in NewConnectTry() 330 …childRet = snprintf_s(hChannel->bufStd + 2, sizeof(hChannel->bufStd) - 2, sizeof(hChannel->bufStd)… in NewConnectTry() 332 if (childRet > 0) { in NewConnectTry()
|
| /developtools/hdc/src/common/ |
| D | usb.cpp | 83 int childRet = 0; in SendUSBBlock() local 93 if ((childRet = SendUSBRaw(hSession, data, length)) <= 0) { in SendUSBBlock() 97 if (childRet > 0 && (childRet % hSession->hUSB->wMaxPacketSizeSend == 0)) { in SendUSBBlock() 183 int childRet = 0; in SendToHdcStream() local 188 if (hUSB->payloadSize <= static_cast<uint32_t>(childRet)) { in SendToHdcStream() 191 dataSize, hUSB->payloadSize, childRet); in SendToHdcStream() 195 if ((childRet = UsbToHdcProtocol(stream, appendData, dataSize)) < 0) { in SendToHdcStream() 199 hUSB->payloadSize -= childRet; in SendToHdcStream()
|
| D | session.cpp | 935 int childRet = 0; in FetchIOBuf() local 946 childRet = ptrConnect->OnRead(hSession, ioBuf + indexBuf, hSession->availTailIndex); in FetchIOBuf() 947 if (childRet > 0) { in FetchIOBuf() 948 hSession->availTailIndex -= childRet; in FetchIOBuf() 949 indexBuf += childRet; in FetchIOBuf() 950 } else if (childRet == 0) { in FetchIOBuf() 954 … WRITE_LOG(LOG_FATAL, "FetchIOBuf error childRet:%d sessionId:%u", childRet, hSession->sessionId); in FetchIOBuf() 1049 int childRet = 0; in WorkThreadStartSession() local 1057 if ((childRet = uv_tcp_open(&hSession->hChildWorkTCP, hSession->fdChildWorkTCP)) < 0) { in WorkThreadStartSession() 1060 uv_strerror_r(childRet, buf, bufSize); in WorkThreadStartSession()
|
| D | uart.cpp | 404 int childRet = 0; in UartToHdcProtocol() local 407 childRet = select(fd + 1, NULL, &fdSet, NULL, &timeout); in UartToHdcProtocol() 408 if (childRet <= 0) { in UartToHdcProtocol() 417 buf, childRet); in UartToHdcProtocol() 420 childRet = send(fd, (const char *)data + index, dataSize - index, 0); in UartToHdcProtocol() 421 if (childRet < 0) { in UartToHdcProtocol() 432 index += childRet; in UartToHdcProtocol()
|
| D | file.cpp | 248 bool childRet = false; in SlaveCheck() local 272 childRet = SmartSlavePath(stat.clientCwd, ctxNow.localPath, stat.optionalName.c_str()); in SlaveCheck() 273 if (childRet && ctxNow.transferConfig.updateIfNew) { // file exist and option need update in SlaveCheck()
|
| D | channel.cpp | 116 int childRet = 0; in ReadStream() local 150 childRet = thisClass->ReadChannel(hChannel, reinterpret_cast<uint8_t *>(hChannel->ioBuf) + in ReadStream() 152 if (childRet < 0) { in ReadStream() 154 childRet, channelId, hChannel->keepAlive); in ReadStream()
|
| D | auth.cpp | 412 int childRet = 0; in AuthVerify() local 418 childRet = RSA_verify(NID_sha256, reinterpret_cast<const unsigned char *>(token), in AuthVerify() 422 if (childRet) { in AuthVerify()
|
| D | base.cpp | 1268 int childRet = Base64EncodeBuf(input, length, pBuf); in Base64Encode() local 1269 if (childRet <= 0) { in Base64Encode() 1272 retVec.insert(retVec.begin(), pBuf, pBuf + childRet); in Base64Encode() 1325 int childRet = Base64DecodeBuf(input, length, pBuf); in Base64Decode() local 1326 if (childRet <= 0) { in Base64Decode()
|
| /developtools/hdc/src/daemon/ |
| D | daemon_usb.cpp | 296 int childRet = 0; in SendUSBIOSync() local 301 childRet = write(bulkIn, const_cast<uint8_t *>(data) + offset, length - offset); in SendUSBIOSync() 302 if (childRet <= 0) { in SendUSBIOSync() 314 offset += childRet; in SendUSBIOSync() 468 int childRet = RET_SUCCESS; in DispatchToWorkThread() local 493 if ((childRet = SendToHdcStream(hChildSession, stream, readBuf, readBytes)) < 0) { in DispatchToWorkThread() 494 WRITE_LOG(LOG_WARN, "DispatchToWorkThread SendToHdcStream err ret:%d", childRet); in DispatchToWorkThread() 497 return childRet; in DispatchToWorkThread() 523 int childRet = 0; in OnUSBRead() local 555 …if ((childRet = thisClass->AvailablePacket((uint8_t *)bufPtr, bytesIOBytes, &sessionId)) != RET_SU… in OnUSBRead() [all …]
|