Searched refs:total_written (Results 1 – 2 of 2) sorted by relevance
842 size_t total_written = 0; in WriteAudioData() local849 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 …]
101 size_t total_written = 0; in WriteRandomData() local102 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()