Home
last modified time | relevance | path

Searched refs:total_written (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Dclient_interface_aidl.cc621 size_t total_written = 0; in WriteAudioData() local
628 if (avail_to_write > len - total_written) { in WriteAudioData()
629 avail_to_write = len - total_written; in WriteAudioData()
631 if (data_mq_->write((const MqDataType*)p_buf + total_written, in WriteAudioData()
633 log::warn("len={} total_written={} failed", len, total_written); in WriteAudioData()
636 total_written += avail_to_write; in WriteAudioData()
643 log::warn("{}/{} no data {} ms", len - total_written, len, in WriteAudioData()
647 } while (total_written < len); in WriteAudioData()
652 log::verbose("underflow {} -> {} read {} ms", len, total_written, in WriteAudioData()
655 log::verbose("{} -> {} written", len, total_written); in WriteAudioData()
[all …]
/packages/modules/Bluetooth/system/audio_hal_interface/hidl/
Dclient_interface_hidl.cc845 size_t total_written = 0; in WriteAudioData() local
852 if (avail_to_write > len - total_written) { in WriteAudioData()
853 avail_to_write = len - total_written; in WriteAudioData()
855 if (mDataMQ->write(p_buf + total_written, avail_to_write) == 0) { in WriteAudioData()
856 log::warn("len={} total_written={} failed", len, total_written); in WriteAudioData()
859 total_written += avail_to_write; in WriteAudioData()
866 log::warn("{}/{} no data {} ms", len - total_written, len, in WriteAudioData()
870 } while (total_written < len); in WriteAudioData()
875 log::verbose("underflow {} -> {} read {} ms", len, total_written, in WriteAudioData()
878 log::verbose("{} -> {} written", len, total_written); in WriteAudioData()
[all …]