Home
last modified time | relevance | path

Searched refs:bytes_written (Results 1 – 22 of 22) sorted by relevance

/packages/services/BuiltInPrintService/jni/lib/
Dprinter.c94 ssize_t bytes_written; in _send_data() local
100 bytes_written = write(print_job->psock, buffer, length); in _send_data()
101 if (bytes_written < 0) { in _send_data()
104 length -= bytes_written; in _send_data()
105 buffer += bytes_written; in _send_data()
124 bytes_written = write(print_job->psock, buffer, length); in _send_data()
125 if (bytes_written < 0) { in _send_data()
129 length -= bytes_written; in _send_data()
130 buffer += bytes_written; in _send_data()
Dlib_wprint.c270 ssize_t bytes_written; in _stream_dbg_job_data() local
273 bytes_written = write(jq->job_debug_fd, buff, nbytes); in _stream_dbg_job_data()
274 if (bytes_written < 0) { in _stream_dbg_job_data()
277 nbytes -= bytes_written; in _stream_dbg_job_data()
278 buff += bytes_written; in _stream_dbg_job_data()
294 ssize_t bytes_written; in _stream_dbg_page_data() local
297 bytes_written = write(jq->page_debug_fd, buff, nbytes); in _stream_dbg_page_data()
298 if (bytes_written < 0) { in _stream_dbg_page_data()
301 nbytes -= bytes_written; in _stream_dbg_page_data()
302 buff += bytes_written; in _stream_dbg_page_data()
/packages/modules/Bluetooth/system/bta/le_audio/audio_hal_client/
Daudio_sink_hal_client.cc239 size_t bytes_written; in SendData() local
251 bytes_written = halSourceInterface_->Write(data, size); in SendData()
252 if (bytes_written != size) { in SendData()
255 bytes_written, size); in SendData()
258 return bytes_written; in SendData()
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Dhfp_client_interface_aidl.cc192 void HfpDecodingTransport::LogBytesRead(size_t bytes_written) { in LogBytesRead() argument
193 transport_->LogBytesProcessed(bytes_written); in LogBytesRead()
246 void HfpEncodingTransport::LogBytesWritten(size_t bytes_written) { in LogBytesWritten() argument
247 transport_->LogBytesProcessed(bytes_written); in LogBytesWritten()
Dtransport_instance.h131 virtual void LogBytesWritten(size_t bytes_written) = 0;
Dhfp_client_interface_aidl.h151 void LogBytesWritten(size_t bytes_written) override;
Dle_audio_software_aidl.h217 void LogBytesWritten(size_t bytes_written) override;
Dle_audio_software_aidl.cc530 void LeAudioSourceTransport::LogBytesWritten(size_t bytes_written) { in LogBytesWritten() argument
531 transport_->LogBytesProcessed(bytes_written); in LogBytesWritten()
/packages/modules/adb/
Dsocket_test.cpp109 size_t bytes_written; member
117 arg->bytes_written = 0; in CreateCloser()
127 arg->bytes_written += data.size(); in CreateCloser()
197 std::vector<char> buf(arg.bytes_written); in TEST_F()
198 ASSERT_NE(0u, arg.bytes_written); in TEST_F()
Dsysdeps_win32.cpp505 DWORD bytes_written = 0; in adb_pwrite() local
506 if (!::WriteFile(adb_get_os_handle(fd), buf, len, &bytes_written, &params)) { in adb_pwrite()
517 return static_cast<int>(bytes_written); in adb_pwrite()
733 DWORD bytes_written = 0; in _fh_socket_writev() local
734 int result = WSASend(f->fh_socket, wsabuf, iovcnt, &bytes_written, 0, nullptr, nullptr); in _fh_socket_writev()
746 CHECK_GE(static_cast<DWORD>(std::numeric_limits<int>::max()), bytes_written); in _fh_socket_writev()
747 return static_cast<int>(bytes_written); in _fh_socket_writev()
Dadb.cpp740 const size_t bytes_written = fwrite(buf, 1, bytes_read, stream.get()); in _redirect_pipe_thread() local
741 if (bytes_written != bytes_read) { in _redirect_pipe_thread()
742 fprintf(stderr, "adb: error: only wrote %zu of %lu bytes to %s\n", bytes_written, in _redirect_pipe_thread()
/packages/modules/Bluetooth/system/gd/rust/linux/utils/src/
Dsocket.rs392 let mut bytes_written; in write_mgmt_packet() localVariable
394 bytes_written = libc::write( in write_mgmt_packet()
401 let retry = bytes_written == -1 in write_mgmt_packet()
409 bytes_written in write_mgmt_packet()
/packages/services/Car/cpp/bugreport/
Dmain.cpp464 size_t bytes_written = 0; in main() local
473 bool is_success = doBugreport(progress_socket, &bytes_written, &zip_path); in main()
494 ALOGI("bugreport %s in %.02fs, %zu bytes written", result.c_str(), delta_sec, bytes_written); in main()
/packages/modules/Bluetooth/system/audio_hal_interface/
Dle_audio_software_host_transport.cc299 void LeAudioSourceTransport::LogBytesWritten(size_t bytes_written) { in LogBytesWritten() argument
300 transport_->LogBytesProcessed(bytes_written); in LogBytesWritten()
Dle_audio_software_host_transport.h152 void LogBytesWritten(size_t bytes_written);
/packages/modules/Bluetooth/system/audio_hal_interface/hidl/
Dle_audio_software_hidl.cc410 void LeAudioSourceTransport::LogBytesWritten(size_t bytes_written) { in LogBytesWritten() argument
411 transport_->LogBytesProcessed(bytes_written); in LogBytesWritten()
Dle_audio_software_hidl.h176 void LogBytesWritten(size_t bytes_written) override;
Dclient_interface_hidl.h179 virtual void LogBytesWritten(size_t bytes_written) = 0;
Dclient_interface_hidl_unittest.cc209 void LogBytesWritten(size_t bytes_written __unused) override{}; in LogBytesWritten()
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Dsuspend.rs96 let bytes_written = btsock.write_mgmt_packet(command.into()); in notify_suspend_state() localVariable
97 if bytes_written <= 0 { in notify_suspend_state()
/packages/modules/Bluetooth/system/gd/hal/
Dhci_hal_host_rootcanal.cc230 auto bytes_written = write(sock_fd_, (void*)packet_to_send.data(), packet_to_send.size()); in send_packet_ready() local
232 if (bytes_written == -1) { in send_packet_ready()
Dhci_hal_host.cc369 auto bytes_written = write(sock_fd_, (void*)packet_to_send.data(), packet_to_send.size()); in send_packet_ready() local
371 if (bytes_written == -1) { in send_packet_ready()