Home
last modified time | relevance | path

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

/frameworks/av/media/libnblog/
DReader.cpp79 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()
/frameworks/av/media/libaudiohal/impl/
DStreamHalHidl.cpp1034 const size_t availToRead = mDataMQ->availableToRead(); in read() local
1035 if (!mDataMQ->read(static_cast<uint8_t*>(buffer), std::min(bytes, availToRead))) { in read()
1038 ALOGW_IF(availToRead != readStatus.reply.read, in read()
1040 (int32_t)availToRead, (int32_t)readStatus.reply.read); in read()