/developtools/hdc/hdc_rust/src/cffi/ |
D | uart.cpp | 248 DWORD bytesRead = 0; local 251 bytesRead = 0; 252 …BOOL bReadStatus = ReadFile(handle, uartReadBuffer, sizeof(uartReadBuffer), &bytesRead, &overRead); 255 bytesRead = 0; 260 if (!GetOverlappedResultEx(handle, &overRead, &bytesRead, 265 totalBytesRead += bytesRead; 267 __FUNCTION__, bytesRead, totalBytesRead); 270 totalBytesRead += bytesRead; 272 __FUNCTION__, bytesRead, totalBytesRead); 285 if (bytesRead > 0) { [all …]
|
/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 | 810 int bytesRead = 0; in RunPipeComand() local 813 bytesOnce = fread(outBuf, 1, sizeOutBuf - bytesRead, pipeHandle); in RunPipeComand() 817 bytesRead += bytesOnce; in RunPipeComand() 819 if (bytesRead && ignoreTailLf) { in RunPipeComand() 820 if (outBuf[bytesRead - 1] == '\n') { in RunPipeComand() 821 outBuf[bytesRead - 1] = '\0'; in RunPipeComand() 825 return bytesRead; in RunPipeComand() 1808 DWORD bytesRead = 0; in ReadFromFd() local 1811 BOOL bWriteStat = ReadFile((HANDLE)s, buf, count, &bytesRead, &ov); in ReadFromFd() 1813 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 | 1537 int bytesRead; in copy() local 1539 while ((bytesRead = input.read(data, 0, BUFFER_SIZE)) != -1) { in copy() 1540 output.write(data, 0, bytesRead); in copy() 3214 int bytesRead; in writeToFile() local 3215 while ((bytesRead = zipInputStream.read(buffer)) != -1) { in writeToFile() 3216 fos.write(buffer, 0, bytesRead); in writeToFile()
|
D | Uncompress.java | 1551 int bytesRead = 0; in writeToTempFile() local 1553 while ((bytesRead = stream.read(buffer)) != -1) { in writeToTempFile() 1554 fileOutputStream.write(buffer, 0, bytesRead); in writeToTempFile()
|
/developtools/smartperf_host/ide/test/trace/component/chart/ |
D | SpAbilityMonitor.test.ts | 87 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 | 169 ssize_t bytesRead = 0; in ReadFile() local 202 bytesRead = read(fd, g_buffer.get(), BUFFER_SIZE - 1); in ReadFile() 203 if (bytesRead <= 0) { in ReadFile() 211 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 | 542 let maxBytesRead = maxList[0].bytesRead;
|