Home
last modified time | relevance | path

Searched refs:bytesToRead (Results 1 – 11 of 11) sorted by relevance

/frameworks/av/media/libaaudio/src/utility/
DFixedBlockReader.cpp37 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/
DEncoder.cpp50 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/
DEncoder.java286 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/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenInternalAudioRecorder.java219 int bytesToRead = readBytes > bufferSize ? bufferSize : readBytes; in encode() local
220 totalBytesRead += bytesToRead; in encode()
221 readBytes -= bytesToRead; in encode()
222 buff.put(buffer, offset, bytesToRead); in encode()
223 offset += bytesToRead; in encode()
224 mCodec.queueInputBuffer(bufferIndex, 0, bytesToRead, mPresentationTime, 0); in encode()
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
Dmp3reader.cpp247 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/
DBluetoothSocket.java522 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/extractors/mp3/
DMP3Extractor.cpp97 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/libheif/
DHeifDecoderImpl.cpp249 size_t bytesToRead = offset + size - mCachedOffset - mCachedSize; in readAt() local
250 size_t bytesRead = mStream->read(mCache.get() + mCachedSize, bytesToRead); in readAt()
251 if (bytesRead > bytesToRead || bytesRead == 0) { in readAt()
255 } else if (bytesRead < bytesToRead) { in readAt()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamRecord.cpp434 size_t bytesToRead = framesToRead * bytesPerDeviceFrame; in read() local
435 … bytesActuallyRead = mAudioRecord->read(mFormatConversionBufferI16.get(), bytesToRead, blocking); in read()
/frameworks/base/media/java/android/media/
DExifInterface.java4892 int bytesToRead = Math.min(remainder, 8192); in copy() local
4893 int bytesRead = in.read(buffer, 0, bytesToRead); in copy()
4894 if (bytesRead != bytesToRead) { in copy()
DMediaPlayer.java3002 int bytesToRead = (int) Math.min(buffer.length, length2 - total); in addTimedTextSource()
3003 int bytes = IoBridge.read(dupedFd, buffer, 0, bytesToRead); in addTimedTextSource()