Searched refs:numBytesRead (Results 1 – 7 of 7) sorted by relevance
/frameworks/av/include/media/stagefright/ |
D | DataSource.h | 157 ssize_t numBytesRead; in getVector() local 164 numBytesRead = this->readAt(offset, (void*)&tmp, numBytesPerChunk); in getVector() 165 if (numBytesRead == -1) { // If readAt() returns -1, there is an error. in getVector() 168 if (numBytesRead < numBytesPerChunk) { in getVector() 171 x->appendArray(tmp, (size_t)numBytesRead / sizeof(T)); in getVector() 181 numBytesRead = this->readAt(offset, (void*)&tmp, (count - i) * sizeof(T)); in getVector() 182 if (numBytesRead == -1) { in getVector() 185 x->appendArray(tmp, (size_t)numBytesRead / sizeof(T)); in getVector()
|
/frameworks/av/media/libstagefright/http/ |
D | MediaHTTP.cpp | 96 size_t numBytesRead = 0; in readAt() local 97 while (numBytesRead < size) { in readAt() 98 size_t copy = size - numBytesRead; in readAt() 107 offset + numBytesRead, (uint8_t *)data + numBytesRead, copy); in readAt() 115 numBytesRead += n; in readAt() 120 addBandwidthMeasurement(numBytesRead, delayUs); in readAt() 122 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/media/libstagefright/codecs/amrnb/dec/ |
D | SoftAMR.cpp | 339 int32_t numBytesRead; in onQueueFilled() local 362 numBytesRead = in onQueueFilled() 369 if (numBytesRead == -1) { in onQueueFilled() 378 ++numBytesRead; // Include the frame type header byte. in onQueueFilled() 380 if (static_cast<size_t>(numBytesRead) > inHeader->nFilledLen) { in onQueueFilled() 447 numBytesRead = frameSize; in onQueueFilled() 450 inHeader->nOffset += numBytesRead; in onQueueFilled() 451 inHeader->nFilledLen -= numBytesRead; in onQueueFilled()
|
/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/native/services/sensorservice/ |
D | SensorEventConnection.cpp | 551 ssize_t numBytesRead = ::recv(fd, buf, sizeof(buf), MSG_DONTWAIT); in handleEvent() local 554 if (numBytesRead == sizeof(sensors_event_t)) { in handleEvent() 575 } else if (numBytesRead == sizeof(uint32_t)) { in handleEvent() 577 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()
|