Home
last modified time | relevance | path

Searched refs:numBytesRead (Results 1 – 10 of 10) sorted by relevance

/frameworks/av/media/libdatasource/
DMediaHTTP.cpp101 size_t numBytesRead = 0; in readAt() local
102 while (numBytesRead < size) { in readAt()
103 size_t copy = size - numBytesRead; in readAt()
112 offset + numBytesRead, (uint8_t *)data + numBytesRead, copy); in readAt()
120 numBytesRead += n; in readAt()
125 addBandwidthMeasurement(numBytesRead, delayUs); in readAt()
127 return numBytesRead; in readAt()
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
DFwdLockFile.c300 ssize_t numBytesRead; in FwdLockFile_read() local
303 numBytesRead = -1; in FwdLockFile_read()
307 numBytesRead = read(pSession->fileDesc, pBuffer, numBytes); in FwdLockFile_read()
308 for (i = 0; i < numBytesRead; ++i) { in FwdLockFile_read()
313 return numBytesRead; in FwdLockFile_read()
387 ssize_t numBytesRead; in FwdLockFile_CheckDataIntegrity() local
389 while ((numBytesRead = in FwdLockFile_CheckDataIntegrity()
391 HMAC_Update(&pSession->signingContext, pData->buffer, (size_t)numBytesRead); in FwdLockFile_CheckDataIntegrity()
393 if (numBytesRead < 0) { in FwdLockFile_CheckDataIntegrity()
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/
DFwdLockGlue.c129 ssize_t numBytesRead = 0; in FwdLockGlue_GetRandomNumber() local
132 numBytesRead = read(fileDesc, pBuffer, numBytes); in FwdLockGlue_GetRandomNumber()
135 return numBytesRead >= 0 && (size_t)numBytesRead == numBytes; in FwdLockGlue_GetRandomNumber()
/frameworks/av/media/libstagefright/codecs/amrnb/dec/
DSoftAMR.cpp383 int32_t numBytesRead; in onQueueFilled() local
406 numBytesRead = in onQueueFilled()
413 if (numBytesRead == -1) { in onQueueFilled()
422 ++numBytesRead; // Include the frame type header byte. in onQueueFilled()
424 if (static_cast<size_t>(numBytesRead) > inHeader->nFilledLen) { in onQueueFilled()
490 numBytesRead = frameSize; in onQueueFilled()
493 inHeader->nOffset += numBytesRead; in onQueueFilled()
494 inHeader->nFilledLen -= numBytesRead; in onQueueFilled()
/frameworks/av/media/libstagefright/mpeg2ts/test/
DMpeg2tsUnitTest.cpp115 ssize_t numBytesRead = -1; in TEST_P() local
122 while ((numBytesRead = mSource->readAt(mOffset, packet, kTSPacketSize)) == kTSPacketSize) { in TEST_P()
132 mOffset += numBytesRead; in TEST_P()
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DInstallationAsyncTask.java712 final int numBytesRead = sis.read(readBuffer, 0, readBuffer.length); in installImage() local
736 if (numBytesRead < 0) { in installImage()
745 buffer.put(readBuffer, 0, numBytesRead); in installImage()
747 executor.submit(() -> mInstallationSession.submitFromAshmem(numBytesRead)); in installImage()
751 installedSize += numBytesRead; in installImage()
/frameworks/native/services/sensorservice/
DSensorEventConnection.cpp843 ssize_t numBytesRead = ::recv(fd, buf, sizeof(buf), MSG_DONTWAIT); in handleEvent() local
846 if (numBytesRead == sizeof(sensors_event_t)) { in handleEvent()
867 } else if (numBytesRead == sizeof(uint32_t)) { in handleEvent()
869 memcpy(&numAcks, buf, numBytesRead); in handleEvent()
/frameworks/av/media/codec2/components/amr_nb_wb/
DC2SoftAmrDec.cpp323 int32_t numBytesRead = AMRDecode(mAmrHandle, in process() local
326 if (static_cast<size_t>(numBytesRead + 1) != *it) { in process()
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
DFwdLockConv.c1272 ssize_t numBytesRead; in FwdLockConv_ConvertOpenFile() local
1274 while ((numBytesRead = in FwdLockConv_ConvertOpenFile()
1276 status = FwdLockConv_ConvertData(sessionId, pReadBuffer, (size_t)numBytesRead, in FwdLockConv_ConvertOpenFile()
1296 if (numBytesRead < 0) { in FwdLockConv_ConvertOpenFile()
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp6454 ssize_t numBytesRead = mDataSource->readAt(offset, dstData + dstOffset, size); in read() local
6455 if (numBytesRead != (ssize_t)size) { in read()