Home
last modified time | relevance | path

Searched refs:bytesRead (Results 1 – 20 of 20) sorted by relevance

/developtools/hdc/hdc_rust/src/cffi/
Dbase.cpp44 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()
Dusb_util.cpp87 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()
Duart.cpp249 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/
Dconnection.cpp31 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/
Duart.cpp235 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 …]
Dbase.cpp714 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/
Ddiskio_data_plugin.cpp119 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/
Ddaemon_uart.cpp247 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/
Dprocess_data_plugin.cpp136 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/
DScan.java211 int bytesRead; in unpackEntryToFile() local
212 while ((bytesRead = zipInputStream.read(buffer)) != -1) { in unpackEntryToFile()
213 fos.write(buffer, 0, bytesRead); in unpackEntryToFile()
DScanStatSuffix.java526 int bytesRead; in unpackEntryToFile() local
527 while ((bytesRead = zipInputStream.read(buffer)) != -1) { in unpackEntryToFile()
528 fos.write(buffer, 0, bytesRead); in unpackEntryToFile()
DCompressor.java1529 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()
DUncompress.java1554 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/
DSpAbilityMonitor.test.ts80 bytesRead: 1,
/developtools/hdc/src/host/
Dhost_uart.cpp87 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()
Dclient.cpp181 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/
Dcpu_data_plugin.cpp175 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/
Dcheck_hook_data_test.cpp155 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/
Dmemory_data_plugin.cpp562 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/
DSpAbilityMonitorChart.ts501 let maxBytesRead = maxList[0].bytesRead;