Searched refs:availToRead (Results 1 – 4 of 4) sorted by relevance
/aosp12/system/media/audio_utils/ |
H A D | fifo.cpp | 458 if (availToRead > 0) { in read() 466 release(availToRead); in read() 468 return availToRead; in read() 620 size_t availToRead = (size_t) filled; in obtain() local 621 if (availToRead > count) { in obtain() 622 availToRead = count; in obtain() 626 if (part1 > availToRead) { in obtain() 627 part1 = availToRead; in obtain() 629 size_t part2 = part1 > 0 ? availToRead - part1 : 0; in obtain() 636 mObtained = availToRead; in obtain() [all …]
|
/aosp12/frameworks/av/media/libnblog/ |
H A D | Reader.cpp | 79 ssize_t availToRead; in getSnapshot() local 94 availToRead = mFifoReader->obtain(iovec, capacity, NULL /*timeout*/, &lostTemp); in getSnapshot() 96 } while (availToRead < 0 || ++tries <= kMaxObtainTries); in getSnapshot() 98 if (availToRead <= 0) { in getSnapshot() 99 ALOGW_IF(availToRead < 0, "NBLog Reader %s failed to catch up with Writer", mName.c_str()); in getSnapshot() 112 name().c_str(), availToRead, capacity, (double)availToRead / (double)capacity, lost); in getSnapshot() 114 std::unique_ptr<Snapshot> snapshot(new Snapshot(availToRead)); in getSnapshot() 127 const uint8_t *back = snapshot->mData + availToRead; in getSnapshot()
|
/aosp12/frameworks/av/media/libaudiohal/impl/ |
H A D | StreamHalHidl.cpp | 865 const size_t availToRead = mDataMQ->availableToRead(); in read() local 866 if (!mDataMQ->read(static_cast<uint8_t*>(buffer), std::min(bytes, availToRead))) { in read() 869 ALOGW_IF(availToRead != readStatus.reply.read, in read() 871 (int32_t)availToRead, (int32_t)readStatus.reply.read); in read()
|
/aosp12/hardware/interfaces/audio/core/all-versions/default/ |
H A D | StreamOut.cpp | 84 const size_t availToRead = mDataMQ->availableToRead(); in doWrite() local 87 if (mDataMQ->read(&mBuffer[0], availToRead)) { in doWrite() 88 ssize_t writeResult = mStream->write(mStream, &mBuffer[0], availToRead); in doWrite()
|