Home
last modified time | relevance | path

Searched refs:numBytesRead (Results 1 – 11 of 11) 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/native/libs/graphicsenv/
DGraphicsEnv.cpp490 ssize_t numBytesRead = read(rulesFd, mRulesBuffer.data(), rulesLength); in setAngleInfo() local
491 if (numBytesRead < 0) { in setAngleInfo()
492 ALOGE("Cannot read rules file: numBytesRead = %zd", numBytesRead); in setAngleInfo()
493 numBytesRead = 0; in setAngleInfo()
494 } else if (numBytesRead == 0) { in setAngleInfo()
497 if (numBytesRead != rulesLength) { in setAngleInfo()
500 rulesLength, numBytesRead); in setAngleInfo()
502 mRulesBuffer[numBytesRead] = '\0'; in setAngleInfo()
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DInstallationAsyncTask.java504 int numBytesRead; in installImage() local
506 while ((numBytesRead = sis.read(bytes, 0, READ_BUFFER_SIZE)) != -1) { in installImage()
511 memoryFile.writeBytes(bytes, 0, 0, numBytesRead); in installImage()
513 if (!mInstallationSession.submitFromAshmem(numBytesRead)) { in installImage()
517 installedSize += numBytesRead; in installImage()
/frameworks/av/media/libstagefright/mpeg2ts/test/
DMpeg2tsUnitTest.cpp116 ssize_t numBytesRead = -1; in TEST_P() local
123 while ((numBytesRead = mSource->readAt(mOffset, packet, kTSPacketSize)) == kTSPacketSize) { in TEST_P()
133 mOffset += numBytesRead; in TEST_P()
/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.cpp6435 ssize_t numBytesRead = mDataSource->readAt(offset, dstData + dstOffset, size); in read() local
6436 if (numBytesRead != (ssize_t)size) { in read()