Lines Matching refs:framesRead
8531 ssize_t framesRead = 0; // not needed, remove clang-tidy warning. in threadLoop() local
8543 framesRead = mPipeSource->read((uint8_t*)mRsmpInBuffer + rear * mFrameSize, in threadLoop()
8545 if (framesRead != OVERRUN) break; in threadLoop()
8561 if (framesRead < 0) { in threadLoop()
8562 status_t status = (status_t) framesRead; in threadLoop()
8566 framesRead = 0; in threadLoop()
8570 framesRead = -1; // Will cause an attempt to recover. in threadLoop()
8585 framesRead = result; in threadLoop()
8587 framesRead = bytesRead / mFrameSize; in threadLoop()
8595 if (framesRead >= 0) { in threadLoop()
8596 mTimestamp.mPosition[ExtendedTimestamp::LOCATION_SERVER] += framesRead; in threadLoop()
8644 if (framesRead < 0 || (framesRead == 0 && mPipeSource == 0)) { in threadLoop()
8645 ALOGE("read failed: framesRead=%zd", framesRead); in threadLoop()
8650 if (framesRead <= 0) { in threadLoop()
8653 ALOG_ASSERT(framesRead > 0); in threadLoop()
8654 mFramesRead += framesRead; in threadLoop()
8657 (void)mTee.write((uint8_t*)mRsmpInBuffer + rear * mFrameSize, framesRead); in threadLoop()
8662 if ((size_t) framesRead > part1) { in threadLoop()
8664 (framesRead - part1) * mFrameSize); in threadLoop()
8667 mRsmpInRear = audio_utils::safe_add_overflow(mRsmpInRear, (int32_t)framesRead); in threadLoop()
8808 {framesRead, readPeriodNs}, in threadLoop()