Lines Matching refs:framesRead
7429 ssize_t framesRead; in threadLoop() local
7441 framesRead = mPipeSource->read((uint8_t*)mRsmpInBuffer + rear * mFrameSize, in threadLoop()
7443 if (framesRead != OVERRUN) break; in threadLoop()
7458 if (framesRead < 0) { in threadLoop()
7459 status_t status = (status_t) framesRead; in threadLoop()
7463 framesRead = 0; in threadLoop()
7467 framesRead = -1; // Will cause an attempt to recover. in threadLoop()
7482 framesRead = result; in threadLoop()
7484 framesRead = bytesRead / mFrameSize; in threadLoop()
7492 if (framesRead >= 0) { in threadLoop()
7493 mTimestamp.mPosition[ExtendedTimestamp::LOCATION_SERVER] += framesRead; in threadLoop()
7543 if (framesRead < 0 || (framesRead == 0 && mPipeSource == 0)) { in threadLoop()
7544 ALOGE("read failed: framesRead=%zd", framesRead); in threadLoop()
7549 if (framesRead <= 0) { in threadLoop()
7552 ALOG_ASSERT(framesRead > 0); in threadLoop()
7553 mFramesRead += framesRead; in threadLoop()
7556 (void)mTee.write((uint8_t*)mRsmpInBuffer + rear * mFrameSize, framesRead); in threadLoop()
7561 if ((size_t) framesRead > part1) { in threadLoop()
7563 (framesRead - part1) * mFrameSize); in threadLoop()
7566 mRsmpInRear = audio_utils::safe_add_overflow(mRsmpInRear, (int32_t)framesRead); in threadLoop()
7719 {framesRead, readPeriodNs}, in threadLoop()