/developtools/hdc/src/host/ |
H A 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() 298 int childRet = 0; in CheckDescriptor() local 310 childRet = libusb_get_string_descriptor_ascii(hUSB->devHandle, desc.iSerialNumber, (uint8_t *)serialNum, in CheckDescriptor() 312 if (childRet < 0) { in CheckDescriptor() 468 int childRet = 0; in UsbToHdcProtocol() local 478 childRet = select(fd + 1, nullptr, &fdSet, nullptr, &timeout); in UsbToHdcProtocol() 479 if (childRet < in UsbToHdcProtocol() 513 int childRet = 0; USBBulkCallback() local 543 int childRet = 0; SubmitUsbBio() local 713 int childRet = OpenDeviceMyNeed(hUSB); FindDeviceByID() local [all...] |
H A D | server_for_client.cpp | 314 int childRet = ((HdcServer *)ptrServer)->CreateConnect(connectKey, isCheck); in NewConnectTry() local 319 if (childRet == -1) { in NewConnectTry() 321 } else if (childRet == connectError) { in NewConnectTry() 333 childRet = snprintf_s(hChannel->bufStd + bufOffsetTwo, sizeof(hChannel->bufStd) - bufOffsetTwo, in NewConnectTry() 336 if (childRet > 0) { in NewConnectTry()
|
/developtools/hdc/src/common/ |
H A 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() 190 WRITE_LOG(LOG_WARN, "SendToHdcStream softreset dataSize:%d payloadSize:%u childRet:%d", 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() [all...] |
H A D | channel.cpp | 115 int childRet = 0; in ReadStream() local 149 childRet = thisClass->ReadChannel(hChannel, reinterpret_cast<uint8_t *>(hChannel->ioBuf) + in ReadStream() 151 if (childRet < 0) { in ReadStream() 152 WRITE_LOG(LOG_WARN, "ReadStream childRet:%d channelId:%u keepAlive:%d", in ReadStream() 153 childRet, channelId, hChannel->keepAlive); in ReadStream()
|
H A D | file.cpp | 257 bool childRet = false; in SlaveCheck() local 280 childRet = SmartSlavePath(stat.clientCwd, ctxNow.localPath, stat.optionalName.c_str()); in SlaveCheck() 281 if (childRet && ctxNow.transferConfig.updateIfNew) { // file exist and option need update in SlaveCheck()
|
H A 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()
|
H A D | session.cpp | 951 int childRet = 0; in FetchIOBuf() local 963 childRet = ptrConnect->OnRead(hSession, ioBuf + indexBuf, hSession->availTailIndex); in FetchIOBuf() 964 if (childRet > 0) { in FetchIOBuf() 965 hSession->availTailIndex -= childRet; in FetchIOBuf() 966 indexBuf += childRet; in FetchIOBuf() 967 } else if (childRet == 0) { in FetchIOBuf() 971 WRITE_LOG(LOG_FATAL, "FetchIOBuf error childRet:%d sessionId:%u", childRet, hSession->sessionId); in FetchIOBuf() 1080 int childRet = 0; in WorkThreadStartSession() local 1088 if ((childRet in WorkThreadStartSession() [all...] |
H A D | auth.cpp | 420 int childRet = 0; in AuthVerify() local 426 childRet = RSA_verify(NID_sha256, reinterpret_cast<const unsigned char *>(token), in AuthVerify() 430 if (childRet) { in AuthVerify()
|
H A D | base.cpp | 1762 int childRet = Base64EncodeBuf(input, length, pBuf); in Base64Encode() local 1763 if (childRet <= 0) { in Base64Encode() 1766 retVec.insert(retVec.begin(), pBuf, pBuf + childRet); in Base64Encode() 1819 int childRet = Base64DecodeBuf(input, length, pBuf); in Base64Decode() local 1820 if (childRet <= 0) { in Base64Decode()
|
/developtools/hdc/hdc_rust/src/cffi/host/ |
H A D | host_usb.cpp | 174 int childRet = OpenDeviceMyNeed(hUSB);
in DetectMyNeed() local 175 if (childRet < 0) {
in DetectMyNeed() 246 int childRet = 0;
in OpenDeviceMyNeed() local 257 childRet = libusb_get_string_descriptor_ascii(hUSB->devHandle, desc.iSerialNumber, (uint8_t *)serialNum,
in OpenDeviceMyNeed() 259 if (childRet < 0) {
in OpenDeviceMyNeed() 369 int childRet = OpenDeviceMyNeed(hUSB);
in OpenDeviceMyNeed() local 370 if (!childRet) {
in OpenDeviceMyNeed() 417 int childRet = 0;
in OpenDeviceMyNeed() local 430 childRet = libusb_submit_transfer(transfer);
in OpenDeviceMyNeed() 431 if (childRet ! in OpenDeviceMyNeed() 444 int childRet = 0; OpenDeviceMyNeed() local 480 int childRet = 0; OpenDeviceMyNeed() local [all...] |
/developtools/hdc/src/daemon/ |
H A D | daemon_usb.cpp | 301 int childRet = 0; in SendUSBIOSync() local 306 childRet = write(bulkIn, const_cast<uint8_t *>(data) + offset, length - offset); in SendUSBIOSync() 307 if (childRet <= 0) { in SendUSBIOSync() 319 offset += childRet; in SendUSBIOSync() 538 int childRet = RET_SUCCESS; in DispatchToWorkThread() local 563 if ((childRet = SendToHdcStream(hChildSession, stream, readBuf, readBytes)) < 0) { in DispatchToWorkThread() 564 WRITE_LOG(LOG_WARN, "DispatchToWorkThread SendToHdcStream err ret:%d", childRet); in DispatchToWorkThread() 567 return childRet; in DispatchToWorkThread() 593 int childRet = 0; in OnUSBRead() local 625 if ((childRet in OnUSBRead() [all...] |