Home
last modified time | relevance | path

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

/system/bt/audio_hal_interface/
Dclient_interface.cc842 size_t total_written = 0; in WriteAudioData() local
849 if (avail_to_write > len - total_written) { in WriteAudioData()
850 avail_to_write = len - total_written; in WriteAudioData()
852 if (mDataMQ->write(p_buf + total_written, avail_to_write) == 0) { in WriteAudioData()
854 << " total_written=" << total_written << " failed"; in WriteAudioData()
857 total_written += avail_to_write; in WriteAudioData()
864 LOG(WARNING) << __func__ << ": " << (len - total_written) << "/" << len in WriteAudioData()
869 } while (total_written < len); in WriteAudioData()
874 VLOG(1) << __func__ << ": underflow " << len << " -> " << total_written in WriteAudioData()
877 VLOG(2) << __func__ << ": " << len << " -> " << total_written << " written"; in WriteAudioData()
[all …]
/system/core/fs_mgr/libsnapshot/
Dtest_helpers.cpp101 size_t total_written = 0; in WriteRandomData() local
102 while (!expect_size || total_written < *expect_size) { in WriteRandomData()
112 total_written += n; in WriteRandomData()
118 if (expect_size && total_written != *expect_size) { in WriteRandomData()
119 PLOG(ERROR) << "Written " << total_written << " bytes, expected " << *expect_size; in WriteRandomData()