Home
last modified time | relevance | path

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

/frameworks/av/media/libnblog/
DReader.cpp74 ssize_t availToRead; in getSnapshot() local
89 availToRead = mFifoReader->obtain(iovec, capacity, NULL /*timeout*/, &lostTemp); in getSnapshot()
91 } while (availToRead < 0 || ++tries <= kMaxObtainTries); in getSnapshot()
93 if (availToRead <= 0) { in getSnapshot()
94 ALOGW_IF(availToRead < 0, "NBLog Reader %s failed to catch up with Writer", mName.c_str()); in getSnapshot()
107 name().c_str(), availToRead, capacity, (double)availToRead / (double)capacity, lost); in getSnapshot()
109 std::unique_ptr<Snapshot> snapshot(new Snapshot(availToRead)); in getSnapshot()
122 const uint8_t *back = snapshot->mData + availToRead; in getSnapshot()
/frameworks/av/media/libaudiohal/impl/
DStreamHalHidl.cpp683 const size_t availToRead = mDataMQ->availableToRead(); in read() local
684 if (!mDataMQ->read(static_cast<uint8_t*>(buffer), std::min(bytes, availToRead))) { in read()
687 ALOGW_IF(availToRead != readStatus.reply.read, in read()
689 (int32_t)availToRead, (int32_t)readStatus.reply.read); in read()