Searched refs:bytesToRead (Results 1 – 9 of 9) sorted by relevance
/frameworks/av/media/libaaudio/src/utility/ |
D | FixedBlockReader.cpp | 37 int32_t bytesToRead = numBytes; in readFromStorage() local 39 if (bytesToRead > dataAvailable) { in readFromStorage() 40 bytesToRead = dataAvailable; in readFromStorage() 42 memcpy(buffer, mStorage + mPosition, bytesToRead); in readFromStorage() 43 mPosition += bytesToRead; in readFromStorage() 44 return bytesToRead; in readFromStorage()
|
/frameworks/av/media/tests/benchmark/src/native/encoder/ |
D | Encoder.cpp | 50 size_t bytesToRead = mParams.frameSize; in onInputAvailable() local 52 bytesToRead = mInputBufferSize - mOffset; in onInputAvailable() 55 if (bufSize < bytesToRead) { in onInputAvailable() 58 bytesToRead = bufSize; in onInputAvailable() 61 ALOGE("bytes to read %zu bufSize %zu \n", bytesToRead, bufSize); in onInputAvailable() 68 if (bytesToRead < mParams.frameSize && mNumInputFrame < mParams.numFrames - 1) { in onInputAvailable() 70 mNumInputFrame, bytesToRead, mParams.frameSize, mParams.numFrames); in onInputAvailable() 76 mEleStream->read(buf, bytesToRead); in onInputAvailable() 78 if (bytesgcount != bytesToRead) { in onInputAvailable() 79 ALOGE("bytes to read %zu actual bytes read %zu \n", bytesToRead, bytesgcount); in onInputAvailable() [all …]
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/ |
D | Encoder.java | 286 int bytesToRead = mFrameSize; in onInputAvailable() local 288 bytesToRead = (int) (mInputBufferSize - mOffset); in onInputAvailable() 291 if (bufSize < bytesToRead) { in onInputAvailable() 294 bytesToRead = bufSize; in onInputAvailable() 302 byte[] inputArray = new byte[bytesToRead]; in onInputAvailable() 303 mInputStream.read(inputArray, 0, bytesToRead); in onInputAvailable() 306 if (mNumInputFrame >= mNumFrames - 1 || bytesToRead == 0) { in onInputAvailable() 317 mediaCodec.queueInputBuffer(inputBufferId, 0, bytesToRead, presentationTimeUs, flag); in onInputAvailable() 319 mOffset += bytesToRead; in onInputAvailable()
|
/frameworks/av/media/libstagefright/codecs/mp3dec/test/ |
D | mp3reader.cpp | 247 ssize_t bytesToRead = kMaxReadBytes; in resync() local 264 bytesToRead = kMaxReadBytes - remainingBytes; in resync() 272 buf + remainingBytes, bytesToRead); in resync() 277 reachEOS = (totalBytesRead != bytesToRead); in resync()
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothSocket.java | 522 int bytesToRead = length; in read() local 536 if (bytesToRead > mL2capBuffer.remaining()) { in read() 537 bytesToRead = mL2capBuffer.remaining(); in read() 541 + " bytesToRead: " + bytesToRead); in read() 543 mL2capBuffer.get(b, offset, bytesToRead); in read() 544 ret = bytesToRead; in read()
|
/frameworks/av/media/libheif/ |
D | HeifDecoderImpl.cpp | 232 size_t bytesToRead = offset + size - mCachedOffset - mCachedSize; in readAt() local 233 size_t bytesRead = mStream->read(mCache.get() + mCachedSize, bytesToRead); in readAt() 234 if (bytesRead > bytesToRead || bytesRead == 0) { in readAt() 238 } else if (bytesRead < bytesToRead) { in readAt()
|
/frameworks/av/media/extractors/mp3/ |
D | MP3Extractor.cpp | 97 ssize_t bytesToRead = kMaxReadBytes; in Resync() local 115 bytesToRead = kMaxReadBytes - remainingBytes; in Resync() 124 bytesToRead); in Resync() 128 reachEOS = (totalBytesRead != bytesToRead); in Resync()
|
/frameworks/av/media/libaaudio/src/legacy/ |
D | AudioStreamRecord.cpp | 417 size_t bytesToRead = framesToRead * bytesPerDeviceFrame; in read() local 418 … bytesActuallyRead = mAudioRecord->read(mFormatConversionBufferI16.get(), bytesToRead, blocking); in read()
|
/frameworks/base/media/java/android/media/ |
D | MediaPlayer.java | 3001 int bytesToRead = (int) Math.min(buffer.length, length2 - total); in addTimedTextSource() 3002 int bytes = IoBridge.read(dupedFd, buffer, 0, bytesToRead); in addTimedTextSource()
|