Lines Matching refs:framesRead
7296 ssize_t framesRead; in threadLoop() local
7308 framesRead = mPipeSource->read((uint8_t*)mRsmpInBuffer + rear * mFrameSize, in threadLoop()
7310 if (framesRead != OVERRUN) break; in threadLoop()
7325 if (framesRead < 0) { in threadLoop()
7326 status_t status = (status_t) framesRead; in threadLoop()
7330 framesRead = 0; in threadLoop()
7334 framesRead = -1; // Will cause an attempt to recover. in threadLoop()
7349 framesRead = result; in threadLoop()
7351 framesRead = bytesRead / mFrameSize; in threadLoop()
7359 if (framesRead >= 0) { in threadLoop()
7360 mTimestamp.mPosition[ExtendedTimestamp::LOCATION_SERVER] += framesRead; in threadLoop()
7408 if (framesRead < 0 || (framesRead == 0 && mPipeSource == 0)) { in threadLoop()
7409 ALOGE("read failed: framesRead=%zd", framesRead); in threadLoop()
7414 if (framesRead <= 0) { in threadLoop()
7417 ALOG_ASSERT(framesRead > 0); in threadLoop()
7418 mFramesRead += framesRead; in threadLoop()
7421 (void)mTee.write((uint8_t*)mRsmpInBuffer + rear * mFrameSize, framesRead); in threadLoop()
7426 if ((size_t) framesRead > part1) { in threadLoop()
7428 (framesRead - part1) * mFrameSize); in threadLoop()
7431 rear = mRsmpInRear += framesRead; in threadLoop()
7584 {framesRead, readPeriodNs}, in threadLoop()