Home
last modified time | relevance | path

Searched refs:numBytesRead (Results 1 – 12 of 12) 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/media/libstagefright/codecs/amrnb/dec/
DSoftAMR.cpp386 int32_t numBytesRead; in onQueueFilled() local
409 numBytesRead = in onQueueFilled()
416 if (numBytesRead == -1) { in onQueueFilled()
425 ++numBytesRead; // Include the frame type header byte. in onQueueFilled()
427 if (static_cast<size_t>(numBytesRead) > inHeader->nFilledLen) { in onQueueFilled()
494 numBytesRead = frameSize; in onQueueFilled()
497 inHeader->nOffset += numBytesRead; in onQueueFilled()
498 inHeader->nFilledLen -= numBytesRead; in onQueueFilled()
/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/native/libs/graphicsenv/
DGraphicsEnv.cpp478 ssize_t numBytesRead = read(rulesFd, mRulesBuffer.data(), rulesLength); in setAngleInfo() local
479 if (numBytesRead < 0) { in setAngleInfo()
480 ALOGE("Cannot read rules file: numBytesRead = %zd", numBytesRead); in setAngleInfo()
481 numBytesRead = 0; in setAngleInfo()
482 } else if (numBytesRead == 0) { in setAngleInfo()
485 if (numBytesRead != rulesLength) { in setAngleInfo()
488 rulesLength, numBytesRead); in setAngleInfo()
490 mRulesBuffer[numBytesRead] = '\0'; in setAngleInfo()
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DInstallationAsyncTask.java476 int numBytesRead; in installImage() local
478 while ((numBytesRead = sis.read(bytes, 0, READ_BUFFER_SIZE)) != -1) { in installImage()
483 memoryFile.writeBytes(bytes, 0, 0, numBytesRead); in installImage()
485 if (!mInstallationSession.submitFromAshmem(numBytesRead)) { in installImage()
489 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.cpp658 ssize_t numBytesRead = ::recv(fd, buf, sizeof(buf), MSG_DONTWAIT); in handleEvent() local
661 if (numBytesRead == sizeof(sensors_event_t)) { in handleEvent()
682 } else if (numBytesRead == sizeof(uint32_t)) { in handleEvent()
684 memcpy(&numAcks, buf, numBytesRead); in handleEvent()
/frameworks/base/core/jni/
Dandroid_util_Process.cpp1025 int numBytesRead = 0; in android_os_Process_readProcFile() local
1029 fileBuffer.resize(numBytesRead + kReadSize, 0); in android_os_Process_readProcFile()
1031 int len = TEMP_FAILURE_RETRY(read(fd, fileBuffer.data() + numBytesRead, kReadSize)); in android_os_Process_readProcFile()
1032 numBytesRead += len; in android_os_Process_readProcFile()
1046 fileBuffer.resize(numBytesRead); in android_os_Process_readProcFile()
1051 return android_os_Process_parseProcLineArray(env, clazz, fileBuffer.data(), 0, numBytesRead, in android_os_Process_readProcFile()
/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.cpp5932 ssize_t numBytesRead = mDataSource->readAt(offset, dstData + dstOffset, size); in read() local
5933 if (numBytesRead != (ssize_t)size) { in read()