/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/base/packages/SystemUI/src/com/android/systemui/screenrecord/ |
D | ScreenInternalAudioRecorder.java | 219 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/ |
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/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/libheif/ |
D | HeifDecoderImpl.cpp | 249 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/ |
D | AudioStreamRecord.cpp | 434 size_t bytesToRead = framesToRead * bytesPerDeviceFrame; in read() local 435 … bytesActuallyRead = mAudioRecord->read(mFormatConversionBufferI16.get(), bytesToRead, blocking); in read()
|
/frameworks/base/media/java/android/media/ |
D | ExifInterface.java | 4892 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()
|
D | MediaPlayer.java | 3002 int bytesToRead = (int) Math.min(buffer.length, length2 - total); in addTimedTextSource() 3003 int bytes = IoBridge.read(dupedFd, buffer, 0, bytesToRead); in addTimedTextSource()
|