Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Dclient_interface_aidl.cc563 size_t avail_to_read = data_mq_->availableToRead(); in ReadAudioData() local
564 if (avail_to_read) { in ReadAudioData()
565 if (avail_to_read > len - total_read) { in ReadAudioData()
566 avail_to_read = len - total_read; in ReadAudioData()
568 if (data_mq_->read((MqDataType*)p_buf + total_read, avail_to_read) == 0) { in ReadAudioData()
572 total_read += avail_to_read; in ReadAudioData()
/packages/modules/Bluetooth/system/audio_hal_interface/hidl/
Dclient_interface_hidl.cc775 size_t avail_to_read = mDataMQ->availableToRead(); in ReadAudioData() local
776 if (avail_to_read) { in ReadAudioData()
777 if (avail_to_read > len - total_read) { in ReadAudioData()
778 avail_to_read = len - total_read; in ReadAudioData()
780 if (mDataMQ->read(p_buf + total_read, avail_to_read) == 0) { in ReadAudioData()
784 total_read += avail_to_read; in ReadAudioData()