Searched refs:numBytesRead (Results 1 – 6 of 6) sorted by relevance
/frameworks/av/media/libstagefright/http/ |
D | MediaHTTP.cpp | 100 size_t numBytesRead = 0; in readAt() local 101 while (numBytesRead < size) { in readAt() 102 size_t copy = size - numBytesRead; in readAt() 111 offset + numBytesRead, (uint8_t *)data + numBytesRead, copy); in readAt() 119 numBytesRead += n; in readAt() 124 addBandwidthMeasurement(numBytesRead, delayUs); in readAt() 126 return numBytesRead; in readAt()
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/ |
D | FwdLockFile.c | 300 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/ |
D | FwdLockGlue.c | 129 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/ |
D | SoftAMR.cpp | 386 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/native/services/sensorservice/ |
D | SensorEventConnection.cpp | 610 ssize_t numBytesRead = ::recv(fd, buf, sizeof(buf), MSG_DONTWAIT); in handleEvent() local 613 if (numBytesRead == sizeof(sensors_event_t)) { in handleEvent() 634 } else if (numBytesRead == sizeof(uint32_t)) { in handleEvent() 636 memcpy(&numAcks, buf, numBytesRead); in handleEvent()
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/ |
D | FwdLockConv.c | 1272 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()
|