Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 18 of 18) sorted by relevance

/device/linaro/hikey/bluetooth/
Dhci_packetizer.cc53 size_t bytes_read = TEMP_FAILURE_RETRY( in OnDataReady() local
56 CHECK(bytes_read > 0); in OnDataReady()
57 bytes_read_ += bytes_read; in OnDataReady()
71 size_t bytes_read = TEMP_FAILURE_RETRY(read( in OnDataReady() local
75 CHECK(bytes_read > 0); in OnDataReady()
76 bytes_remaining_ -= bytes_read; in OnDataReady()
77 bytes_read_ += bytes_read; in OnDataReady()
Dh4_protocol.cc60 size_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, 1)); in OnDataReady() local
61 CHECK(bytes_read == 1); in OnDataReady()
Dbluetooth_hci.cc71 size_t bytes_read = TEMP_FAILURE_RETRY(read(fd, tmp_buffer, tty_bytes)); in initialize() local
72 CHECK(static_cast<int>(bytes_read) == tty_bytes); in initialize()
/device/google/cuttlefish/host/frontend/adb_connector/
Dmain.cpp64 auto bytes_read = evt_shared_fd->Read(&event, sizeof(event)); in WaitForAdbdToBeStarted() local
65 if (bytes_read != sizeof(event)) { in WaitForAdbdToBeStarted()
66 LOG(ERROR) << "Fail to read a complete event, read " << bytes_read in WaitForAdbdToBeStarted()
/device/google/cuttlefish/host/commands/tombstone_receiver/
Dmain.cpp78 auto bytes_read = conn->Read(buff, sizeof(buff)); in main() local
79 if (bytes_read <= 0) { in main()
83 file.write(buff, bytes_read); in main()
/device/google/cuttlefish/host/commands/assemble_cvd/
Dboot_image_unpacker.cc61 auto bytes_read = boot_img->Read(&header, sizeof(header)); in FromImages() local
62 if (bytes_read != sizeof(header)) { in FromImages()
75 bytes_read = vendor_boot_img->Read(&vboot_header, sizeof(vboot_header)); in FromImages()
76 if (bytes_read != sizeof(vboot_header)) { in FromImages()
Dassemble_cvd.cc67 auto bytes_read = cuttlefish::ReadAll(input_fd, &input_files_str); in main() local
68 if (bytes_read < 0) { in main()
/device/google/cuttlefish/host/commands/console_forwarder/
Dmain.cpp182 auto bytes_read = console_out_->Read(buf_ptr->data(), buf_ptr->size()); in ReadLoop() local
183 if (bytes_read <= 0) { in ReadLoop()
189 buf_ptr->resize(bytes_read); in ReadLoop()
197 auto bytes_read = client_fd->Read(buf_ptr->data(), buf_ptr->size()); in ReadLoop() local
198 if (bytes_read <= 0) { in ReadLoop()
206 buf_ptr->resize(bytes_read); in ReadLoop()
/device/google/wahoo/dumpstate/
DDumpstateDevice.cpp190 … ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fdLog, buffer.data(), buffer.size())); in dumpModem() local
192 if (bytes_read == 0) { in dumpModem()
194 } else if (bytes_read < 0) { in dumpModem()
199 ssize_t result = TEMP_FAILURE_RETRY(write(fdModem, buffer.data(), bytes_read)); in dumpModem()
201 if (result != bytes_read) { in dumpModem()
202 … ALOGD("Failed to write %ld bytes, actually written: %ld", bytes_read, result); in dumpModem()
/device/google/crosshatch/dumpstate/
DDumpstateDevice.cpp206 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fdLog, buffer.data(), buffer.size())); in dumpModem() local
208 if (bytes_read == 0) { in dumpModem()
210 } else if (bytes_read < 0) { in dumpModem()
215 ssize_t result = TEMP_FAILURE_RETRY(write(fdModem, buffer.data(), bytes_read)); in dumpModem()
217 if (result != bytes_read) { in dumpModem()
218 ALOGD("Failed to write %ld bytes, actually written: %ld", bytes_read, result); in dumpModem()
/device/google/bonito/dumpstate/
DDumpstateDevice.cpp211 … ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fdLog, buffer.data(), buffer.size())); in dumpModemThread() local
213 if (bytes_read == 0) { in dumpModemThread()
215 } else if (bytes_read < 0) { in dumpModemThread()
220 ssize_t result = TEMP_FAILURE_RETRY(write(fdModem, buffer.data(), bytes_read)); in dumpModemThread()
222 if (result != bytes_read) { in dumpModemThread()
223 … ALOGD("Failed to write %ld bytes, actually written: %ld", bytes_read, result); in dumpModemThread()
/device/google/contexthub/util/nanotool/
Dcalibrationfile.cpp52 ssize_t bytes_read = file_->read(file_data.data(), file_size); in Initialize() local
53 if (bytes_read != file_size) { in Initialize()
55 bytes_read, file_size); in Initialize()
Dcontexthub.cpp157 size_t bytes_read = fread(firmware_data.data(), sizeof(uint8_t), in Flash() local
161 if (bytes_read != static_cast<size_t>(file_size)) { in Flash()
163 bytes_read, file_size); in Flash()
/device/google/cuttlefish/host/commands/run_cvd/
Dmain.cc88 auto bytes_read = boot_events_pipe->Read(&evt, sizeof(evt)); in OnBootEvtReceived() local
89 if (bytes_read != sizeof(evt)) { in OnBootEvtReceived()
90 LOG(ERROR) << "Fail to read a complete event, read " << bytes_read in OnBootEvtReceived()
187 auto bytes_read = read_end->Read(&exit_code, sizeof(exit_code)); in DaemonizeLauncher() local
188 if (bytes_read != sizeof(exit_code)) { in DaemonizeLauncher()
189 LOG(ERROR) << "Failed to read a complete exit code, read " << bytes_read in DaemonizeLauncher()
411 auto bytes_read = cuttlefish::ReadAll(input_fd, &input_files_str); in main() local
412 if (bytes_read < 0) { in main()
Dprocess_monitor.cc130 auto bytes_read = entry->proc->control_socket()->Read(buffer, sizeof(buffer)); in RestartOnExitCb() local
131 if (bytes_read > 0) { in RestartOnExitCb()
133 << bytes_read in RestartOnExitCb()
/device/google/coral/dumpstate/
DDumpstateDevice.cpp216 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fdLog, buffer.data(), buffer.size())); in dumpModem() local
218 if (bytes_read == 0) { in dumpModem()
220 } else if (bytes_read < 0) { in dumpModem()
225 ssize_t result = TEMP_FAILURE_RETRY(write(fdModem, buffer.data(), bytes_read)); in dumpModem()
227 if (result != bytes_read) { in dumpModem()
228 ALOGD("Failed to write %ld bytes, actually written: %ld", bytes_read, result); in dumpModem()
/device/google/cuttlefish/host/commands/modem_simulator/
Dchannel_monitor.cpp109 auto bytes_read = client.client_fd->Read(buffer.data(), buffer.size()); in ReadCommand() local
110 if (bytes_read <= 0) { in ReadCommand()
/device/google/cuttlefish/host/commands/modem_simulator/unittest/
Dservice_test.cpp107 auto bytes_read = ril_side_->client_fd->Read(buffer.data(), buffer.size()); in ReadCommandResponse() local
108 if (bytes_read <= 0) { in ReadCommandResponse()