Searched refs:bytes_read (Results 1 – 8 of 8) sorted by relevance
/packages/services/Car/cpp/bugreport/ |
D | main.cpp | 144 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, sizeof(buffer))); in zipFilesToFd() local 145 if (bytes_read == 0) { in zipFilesToFd() 148 if (bytes_read == -1) { in zipFilesToFd() 157 error = writer->WriteBytes(buffer, bytes_read); in zipFilesToFd() 178 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd_in, buffer, buffer_len)); in copyTo() local 179 if (bytes_read == 0) { in copyTo() 182 if (bytes_read == -1) { in copyTo() 192 if (!android::base::WriteFully(fd_out, buffer, bytes_read)) { in copyTo() 196 return bytes_read; in copyTo() 248 ssize_t bytes_read = copyTo(s, progress_socket, buffer, sizeof(buffer)); in doBugreport() local [all …]
|
/packages/modules/adb/client/ |
D | incremental.cpp | 231 int bytes_read; in wait_for_installation() local 234 while ((bytes_read = adb_read(read_fd, child_stdout.data() + buf_size, in wait_for_installation() 237 fprintf(stdout, "%.*s", bytes_read, child_stdout.data() + buf_size); in wait_for_installation() 239 buf_size += bytes_read; in wait_for_installation()
|
D | incremental_server.cpp | 160 int64_t bytes_read = -1; in ReadDataBlock() local 162 bytes_read = adb_pread(fd_, buf, kBlockSize, offsetStart); in ReadDataBlock() 163 return bytes_read; in ReadDataBlock() 166 int64_t bytes_read = -1; in ReadTreeBlock() local 168 bytes_read = adb_pread(tree_fd_, buf, kBlockSize, offsetStart); in ReadTreeBlock() 169 return bytes_read; in ReadTreeBlock()
|
D | file_sync_client.cpp | 749 int bytes_read = adb_read(lfd, sbuf.data, max); in SendLargeFileLegacy() local 750 if (bytes_read == -1) { in SendLargeFileLegacy() 753 } else if (bytes_read == 0) { in SendLargeFileLegacy() 757 sbuf.size = bytes_read; in SendLargeFileLegacy() 758 WriteOrDie(lpath, rpath, &sbuf, sizeof(SyncRequest) + bytes_read); in SendLargeFileLegacy() 760 RecordBytesTransferred(bytes_read); in SendLargeFileLegacy() 761 bytes_copied += bytes_read; in SendLargeFileLegacy()
|
D | commandline.cpp | 1118 ssize_t bytes_read = adb_read(fd, cur, bytes_left); in adb_root() local 1119 if (bytes_read == 0) { in adb_root() 1121 } else if (bytes_read < 0) { in adb_root() 1125 cur += bytes_read; in adb_root() 1126 bytes_left -= bytes_read; in adb_root()
|
/packages/modules/adb/tls/ |
D | tls_connection.cpp | 328 int bytes_read = in ReadFully() local 330 if (bytes_read <= 0) { in ReadFully() 334 size -= bytes_read; in ReadFully() 335 offset += bytes_read; in ReadFully()
|
/packages/modules/adb/ |
D | adb.cpp | 640 DWORD bytes_read = 0; in _redirect_pipe_thread() local 641 if (!ReadFile(read_pipe.get(), buf, sizeof(buf), &bytes_read, NULL)) { in _redirect_pipe_thread() 657 const size_t bytes_written = fwrite(buf, 1, bytes_read, stream.get()); in _redirect_pipe_thread() 658 if (bytes_written != bytes_read) { in _redirect_pipe_thread() 660 bytes_read, output_name); in _redirect_pipe_thread()
|
D | sysdeps_win32.cpp | 463 DWORD bytes_read; in adb_pread() local 464 if (!::ReadFile(adb_get_os_handle(fd), buf, static_cast<DWORD>(len), &bytes_read, in adb_pread() 476 return static_cast<int>(bytes_read); in adb_pread() 1926 const int bytes_read = std::min(len, g_console_input_buffer.size()); in _console_read() local 1927 memcpy(buf, g_console_input_buffer.data(), bytes_read); in _console_read() 1929 g_console_input_buffer.erase(begin, begin + bytes_read); in _console_read() 1930 return bytes_read; in _console_read()
|