| /developtools/hdc/hdc_rust/src/cffi/ |
| D | base.cpp | 44 int bytesRead = 0; in RunPipeComand() local 47 bytesOnce = fread(outBuf, 1, sizeOutBuf - bytesRead, pipeHandle); in RunPipeComand() 51 bytesRead += bytesOnce; in RunPipeComand() 53 if (bytesRead && ignoreTailLf) { in RunPipeComand() 54 if (outBuf[bytesRead - 1] == '\n') { in RunPipeComand() 55 outBuf[bytesRead - 1] = '\0'; in RunPipeComand() 59 return bytesRead; in RunPipeComand()
|
| D | usb_util.cpp | 87 int bytesRead = 0; in RunPipeComand() local 90 bytesOnce = fread(outBuf, 1, sizeOutBuf - bytesRead, pipeHandle); in RunPipeComand() 94 bytesRead += bytesOnce; in RunPipeComand() 96 if (bytesRead && ignoreTailLf) { in RunPipeComand() 97 if (outBuf[bytesRead - 1] == '\n') { in RunPipeComand() 98 outBuf[bytesRead - 1] = '\0'; in RunPipeComand() 102 return bytesRead; in RunPipeComand()
|
| D | uart.cpp | 249 DWORD bytesRead = 0; local 252 bytesRead = 0; 253 …BOOL bReadStatus = ReadFile(handle, uartReadBuffer, sizeof(uartReadBuffer), &bytesRead, &overRead); 256 bytesRead = 0; 261 if (!GetOverlappedResultEx(handle, &overRead, &bytesRead, 266 totalBytesRead += bytesRead; 268 bytesRead, totalBytesRead); 271 totalBytesRead += bytesRead; 272 printf("%s error timeout. %lu %zd", __FUNCTION__, bytesRead, 286 if (bytesRead > 0) { [all …]
|
| /developtools/hdc/hdcd_user_permit/src/ |
| D | connection.cpp | 31 int bytesRead; in GetSettingBundleName() local 40 bytesRead = fread(buf, sizeof(char), bufSize, fp); in GetSettingBundleName() 42 if (bytesRead > 0) { in GetSettingBundleName() 45 bundle.assign(buf, bytesRead); in GetSettingBundleName() 54 return bytesRead > 0; in GetSettingBundleName()
|
| /developtools/hdc/src/common/ |
| D | uart.cpp | 235 DWORD bytesRead = 0; in ReadUartDev() local 237 ssize_t bytesRead = 0; in ReadUartDev() local 240 bytesRead = 0; in ReadUartDev() 243 &bytesRead, &uart.ovRead); in ReadUartDev() 246 bytesRead = 0; in ReadUartDev() 251 if (!GetOverlappedResultEx(uart.devUartHandle, &uart.ovRead, &bytesRead, in ReadUartDev() 256 totalBytesRead += bytesRead; in ReadUartDev() 258 bytesRead, totalBytesRead); in ReadUartDev() 264 totalBytesRead += bytesRead; in ReadUartDev() 265 WRITE_LOG(LOG_DEBUG, "%s error timeout. %u %zd", __FUNCTION__, bytesRead, in ReadUartDev() [all …]
|
| D | base.cpp | 714 int bytesRead = 0; in RunPipeComand() local 717 bytesOnce = fread(outBuf, 1, sizeOutBuf - bytesRead, pipeHandle); in RunPipeComand() 721 bytesRead += bytesOnce; in RunPipeComand() 723 if (bytesRead && ignoreTailLf) { in RunPipeComand() 724 if (outBuf[bytesRead - 1] == '\n') { in RunPipeComand() 725 outBuf[bytesRead - 1] = '\0'; in RunPipeComand() 729 return bytesRead; in RunPipeComand() 1707 DWORD bytesRead = 0; in ReadFromFd() local 1710 BOOL bWriteStat = ReadFile((HANDLE)s, buf, count, &bytesRead, &ov); in ReadFromFd() 1712 return bytesRead; in ReadFromFd()
|
| /developtools/profiler/device/plugins/diskio_plugin/src/ |
| D | diskio_data_plugin.cpp | 119 ssize_t bytesRead = 0; in ReadFile() local 135 bytesRead = read(fd, buffer_, READ_BUFFER_SIZE - 1); in ReadFile() 136 if (bytesRead <= 0) { in ReadFile() 144 return bytesRead; in ReadFile()
|
| /developtools/hdc/src/daemon/ |
| D | daemon_uart.cpp | 247 ssize_t bytesRead = ReadUartDev(dataReadBuf, expectedSize, deamonUart); in DeamonReadThread() local 248 if (bytesRead == 0) { in DeamonReadThread() 250 bytesRead); in DeamonReadThread() 255 } else if (bytesRead < 0) { in DeamonReadThread() 260 WRITE_LOG(LOG_DEBUG, "DeamonReadThread bytesRead:%d, totalReadBytes.size():%d.", bytesRead, in DeamonReadThread()
|
| /developtools/profiler/device/plugins/process_plugin/src/ |
| D | process_data_plugin.cpp | 136 ssize_t bytesRead = 0; in ReadProcPidFile() local 157 bytesRead = read(fd, buffer_.get(), READ_BUFFER_SIZE - 1); in ReadProcPidFile() 158 if (bytesRead < 0) { in ReadProcPidFile() 164 buffer_.get()[bytesRead] = '\0'; in ReadProcPidFile() 167 return bytesRead; in ReadProcPidFile()
|
| /developtools/packing_tool/adapter/ohos/ |
| D | Scan.java | 211 int bytesRead; in unpackEntryToFile() local 212 while ((bytesRead = zipInputStream.read(buffer)) != -1) { in unpackEntryToFile() 213 fos.write(buffer, 0, bytesRead); in unpackEntryToFile()
|
| D | ScanStatSuffix.java | 526 int bytesRead; in unpackEntryToFile() local 527 while ((bytesRead = zipInputStream.read(buffer)) != -1) { in unpackEntryToFile() 528 fos.write(buffer, 0, bytesRead); in unpackEntryToFile()
|
| D | Compressor.java | 1529 int bytesRead; in copy() local 1531 while ((bytesRead = input.read(data, 0, BUFFER_SIZE)) != -1) { in copy() 1532 output.write(data, 0, bytesRead); in copy() 3102 int bytesRead; in unpackHap() local 3103 while ((bytesRead = zipInputStream.read(buffer)) != -1) { in unpackHap() 3104 fos.write(buffer, 0, bytesRead); in unpackHap()
|
| D | Uncompress.java | 1554 int bytesRead = 0; in writeToTempFile() local 1556 while ((bytesRead = stream.read(buffer)) != -1) { in writeToTempFile() 1557 fileOutputStream.write(buffer, 0, bytesRead); in writeToTempFile()
|
| /developtools/smartperf_host/ide/test/trace/component/chart/ |
| D | SpAbilityMonitor.test.ts | 80 bytesRead: 1,
|
| /developtools/hdc/src/host/ |
| D | host_uart.cpp | 87 ssize_t bytesRead = ReadUartDev(dataReadBuf, expectedSize, *hUART); in UartReadThread() local 88 if (bytesRead < 0) { in UartReadThread() 91 } else if (bytesRead == 0) { in UartReadThread() 93 bytesRead); in UartReadThread() 100 WRITE_LOG(LOG_DEBUG, "%s bytesRead:%d, dataReadBuf.size():%d.", __FUNCTION__, bytesRead, in UartReadThread()
|
| D | client.cpp | 181 DWORD bytesRead = 0; in ReadFileThreadFunc() local 185 if (!ReadFile(*read, buffer, BUF_SIZE_DEFAULT - 1, &bytesRead, NULL)) { in ReadFileThreadFunc() 188 string str = std::to_string(bytesRead); in ReadFileThreadFunc()
|
| /developtools/profiler/device/plugins/cpu_plugin/src/ |
| D | cpu_data_plugin.cpp | 175 ssize_t bytesRead = 0; in ReadFile() local 209 bytesRead = read(fd, buffer_, READ_BUFFER_SIZE - 1); in ReadFile() 210 if (bytesRead <= 0) { in ReadFile() 218 return bytesRead; in ReadFile()
|
| /developtools/profiler/device/plugins/native_hook/test/unittest/ |
| D | check_hook_data_test.cpp | 155 ssize_t bytesRead = 0; in ReadFile() local 188 bytesRead = read(fd, g_buffer.get(), BUFFER_SIZE - 1); in ReadFile() 189 if (bytesRead <= 0) { in ReadFile() 197 return bytesRead; in ReadFile()
|
| /developtools/profiler/device/plugins/memory_plugin/src/ |
| D | memory_data_plugin.cpp | 562 ssize_t bytesRead = 0; in ReadProcPidFile() local 587 bytesRead = read(fd, buffer_.get(), READ_BUFFER_SIZE - 1); in ReadProcPidFile() 588 if (bytesRead < 0) { in ReadProcPidFile() 597 buffer_.get()[bytesRead] = '\0'; in ReadProcPidFile() 600 return bytesRead; in ReadProcPidFile()
|
| /developtools/smartperf_host/ide/src/trace/component/chart/ |
| D | SpAbilityMonitorChart.ts | 501 let maxBytesRead = maxList[0].bytesRead;
|