/frameworks/base/core/java/com/android/internal/util/ |
D | LineBreakBufferedWriter.java | 44 private int bufferIndex; field in LineBreakBufferedWriter 83 this.bufferIndex = 0; in LineBreakBufferedWriter() 93 writeBuffer(bufferIndex); in flush() 94 bufferIndex = 0; in flush() 100 if (bufferIndex < buffer.length) { in write() 101 buffer[bufferIndex] = (char)c; in write() 102 bufferIndex++; in write() 104 lastNewline = bufferIndex; in write() 120 while (bufferIndex + len > bufferSize) { in write() 124 int maxLength = bufferSize - bufferIndex; in write() [all …]
|
/frameworks/av/media/ndk/fuzzer/ |
D | NdkMediaCodecFuzzerBase.cpp | 330 ssize_t bufferIndex = 0; in invokeCodecFormatAPI() local 332 bufferIndex = AMediaCodec_dequeueOutputBuffer(codec, &info, timeOutUs); in invokeCodecFormatAPI() 334 bufferIndex = in invokeCodecFormatAPI() 337 codecFormat = AMediaCodec_getBufferFormat(codec, bufferIndex); in invokeCodecFormatAPI() 348 ssize_t bufferIndex = 0; in invokeInputBufferOperationAPI() local 351 bufferIndex = AMediaCodec_dequeueInputBuffer(codec, timeOutUs); in invokeInputBufferOperationAPI() 353 bufferIndex = mFdp->ConsumeIntegralInRange<size_t>(kMinBufferIndex, kMaxBufferIndex); in invokeInputBufferOperationAPI() 356 uint8_t* buffer = AMediaCodec_getInputBuffer(codec, bufferIndex, &bufferSize); in invokeInputBufferOperationAPI() 367 AMediaCodec_queueInputBuffer(codec, bufferIndex, 0 /* offset */, bufferSize, 0 /* time */, in invokeInputBufferOperationAPI() 371 AMediaCodec_queueSecureInputBuffer(codec, bufferIndex, 0 /* offset */, cryptoInfo, in invokeInputBufferOperationAPI() [all …]
|
D | ndk_async_codec_fuzzer.cpp | 178 void invokeInputBufferAPI(AMediaCodec* codec, int32_t bufferIndex); 179 void invokeOutputBufferAPI(AMediaCodec* codec, int32_t bufferIndex, 241 void NdkAsyncCodecFuzzer::invokeInputBufferAPI(AMediaCodec* codec, int32_t bufferIndex) { in invokeInputBufferAPI() argument 248 if (mStopCodec || bufferIndex < 0 || mSawInputEOS) { in invokeInputBufferAPI() 252 uint8_t* buffer = AMediaCodec_getInputBuffer(codec, bufferIndex, &bufferSize); in invokeInputBufferAPI() 268 AMediaCodec_queueInputBuffer(codec, bufferIndex, 0 /* offset */, bufferSize, 0 /* time */, in invokeInputBufferAPI() 273 void NdkAsyncCodecFuzzer::invokeOutputBufferAPI(AMediaCodec* codec, int32_t bufferIndex, in invokeOutputBufferAPI() argument 283 if (mStopCodec || bufferIndex < 0 || mIsDone) { in invokeOutputBufferAPI() 288 (void)AMediaCodec_getOutputBuffer(codec, bufferIndex, &bufferSize); in invokeOutputBufferAPI() 290 AMediaCodec_releaseOutputBuffer(codec, bufferIndex, mFdp.ConsumeBool()); in invokeOutputBufferAPI()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/ |
D | ScreenInternalAudioRecorder.java | 238 int bufferIndex = mCodec.dequeueInputBuffer(TIMEOUT); in encode() local 239 if (bufferIndex < 0) { in encode() 243 ByteBuffer buff = mCodec.getInputBuffer(bufferIndex); in encode() 251 mCodec.queueInputBuffer(bufferIndex, 0, bytesToRead, mPresentationTime, 0); in encode() 260 int bufferIndex = mCodec.dequeueInputBuffer(TIMEOUT); in endStream() local 261 mCodec.queueInputBuffer(bufferIndex, 0, 0, mPresentationTime, in endStream() 269 int bufferIndex = mCodec.dequeueOutputBuffer(bufferInfo, TIMEOUT); in writeOutput() local 270 if (bufferIndex == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) { in writeOutput() 275 if (bufferIndex == MediaCodec.INFO_TRY_AGAIN_LATER) { in writeOutput() 279 ByteBuffer buff = mCodec.getOutputBuffer(bufferIndex); in writeOutput() [all …]
|
/frameworks/av/media/tests/SampleVideoEncoder/app/src/main/java/com/android/media/samplevideoencoder/ |
D | MediaCodecSurfaceEncoder.java | 225 private void dequeueDecoderOutput(int bufferIndex, MediaCodec.BufferInfo info) { in dequeueDecoderOutput() argument 231 "output: id: " + bufferIndex + " flags: " + info.flags + " size: " + info.size + in dequeueDecoderOutput() 237 mDecoder.releaseOutputBuffer(bufferIndex, mSurface != null); in dequeueDecoderOutput() 240 private void enqueueDecoderInput(int bufferIndex) { in enqueueDecoderInput() argument 241 ByteBuffer inputBuffer = mDecoder.getInputBuffer(bufferIndex); in enqueueDecoderInput() 244 enqueueDecoderEOS(bufferIndex); in enqueueDecoderInput() 260 Log.d(TAG, "input: id: " + bufferIndex + " size: " + size + " pts: " + pts + in enqueueDecoderInput() 263 mDecoder.queueInputBuffer(bufferIndex, 0, size, pts, codecFlags); in enqueueDecoderInput() 331 private void enqueueDecoderEOS(int bufferIndex) { in enqueueDecoderEOS() argument 333 mDecoder.queueInputBuffer(bufferIndex, 0, 0, 0, MediaCodec.BUFFER_FLAG_END_OF_STREAM); in enqueueDecoderEOS() [all …]
|
D | MediaCodecBase.java | 59 public void onInputBufferAvailable(MediaCodec codec, int bufferIndex) { in onInputBufferAvailable() argument 61 mCbInputQueue.add(new Pair<>(bufferIndex, (MediaCodec.BufferInfo) null)); in onInputBufferAvailable() 67 public void onOutputBufferAvailable(MediaCodec codec, int bufferIndex, in onOutputBufferAvailable() argument 70 mCbOutputQueue.add(new Pair<>(bufferIndex, info)); in onOutputBufferAvailable()
|
/frameworks/av/media/codec2/hal/hidl/1.0/utils/include/codec2/hidl/1.0/ |
D | InputBufferManager.h | 189 size_t bufferIndex; member 193 size_t bufferIndex, in TrackedBuffer() 197 bufferIndex(bufferIndex), in TrackedBuffer()
|
/frameworks/av/media/codec2/hal/aidl/include/codec2/aidl/ |
D | InputBufferManager.h | 187 size_t bufferIndex; member 191 size_t bufferIndex, in TrackedBuffer() 195 bufferIndex(bufferIndex), in TrackedBuffer()
|
/frameworks/native/include/input/ |
D | RingBuffer.h | 107 reference back() { return mBuffer[bufferIndex(mSize - 1)]; } in back() 108 const_reference back() const { return mBuffer[bufferIndex(mSize - 1)]; } in back() 110 reference operator[](size_type i) { return mBuffer[bufferIndex(i)]; } 111 const_reference operator[](size_type i) const { return mBuffer[bufferIndex(i)]; } 130 size_type backIndex = bufferIndex(mSize - 1); in popBack() 160 new (std::addressof(mBuffer[bufferIndex(mSize)])) in pushBack() 278 size_type bufferIndex(size_type elementIndex) const { in bufferIndex() function
|
/frameworks/av/media/codec2/hal/hidl/1.0/utils/ |
D | InputBufferManager.cpp | 142 << ", bufferIndex = " << bufferId->bufferIndex in _unregisterFrameData() 204 << ", bufferIndex = " << bufferId->bufferIndex in _unregisterFrameData() 261 << ", bufferIndex = " << bufferId->bufferIndex in _onBufferDestroyed() 269 << ", bufferIndex = " << bufferId->bufferIndex in _onBufferDestroyed() 282 << ", bufferIndex = " << std::dec << bufferId->bufferIndex in _onBufferDestroyed() 292 << "bufferIndex = " << bufferId->bufferIndex in _onBufferDestroyed() 308 deathNotifications.indices[bufferId->frameIndex].emplace_back(bufferId->bufferIndex); in _onBufferDestroyed() 381 for (const size_t& bufferIndex : bufferIndices) { in processNotifications() local 384 inputBuffer.arrayIndex = bufferIndex; in processNotifications()
|
/frameworks/av/media/codec2/hal/aidl/ |
D | InputBufferManager.cpp | 135 << ", bufferIndex = " << bufferId->bufferIndex in _unregisterFrameData() 191 << ", bufferIndex = " << bufferId->bufferIndex in _unregisterFrameData() 247 << ", bufferIndex = " << bufferId->bufferIndex in _onBufferDestroyed() 254 << ", bufferIndex = " << bufferId->bufferIndex in _onBufferDestroyed() 266 << ", bufferIndex = " << bufferId->bufferIndex in _onBufferDestroyed() 276 << "bufferIndex = " << bufferId->bufferIndex in _onBufferDestroyed() 291 deathNotifications.indices[bufferId->frameIndex].emplace_back(bufferId->bufferIndex); in _onBufferDestroyed() 364 for (const size_t& bufferIndex : bufferIndices) { in processNotifications() local 367 inputBuffer.arrayIndex = bufferIndex; in processNotifications()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
D | AudioTrackDecoder.java | 77 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { in onDataAvailable() argument 78 ByteBuffer buffer = buffers[bufferIndex]; in onDataAvailable() 96 codec.releaseOutputBuffer(bufferIndex, false); in onDataAvailable()
|
D | CpuVideoTrackDecoder.java | 81 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { in onDataAvailable() argument 84 mDecodedBuffer = buffers[bufferIndex]; in onDataAvailable() 96 codec.releaseOutputBuffer(bufferIndex, false); in onDataAvailable()
|
D | GpuVideoTrackDecoder.java | 107 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { in onDataAvailable() argument 113 codec.releaseOutputBuffer(bufferIndex, textureAvailable); in onDataAvailable()
|
D | TrackDecoder.java | 67 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info); in onDataAvailable() argument
|
/frameworks/av/media/module/libmediatranscoding/transcoder/include/media/ |
D | VideoTrackTranscoder.h | 79 void enqueueInputSample(int32_t bufferIndex); 82 void transferBuffer(int32_t bufferIndex, AMediaCodecBufferInfo bufferInfo); 85 void dequeueOutputSample(int32_t bufferIndex, AMediaCodecBufferInfo bufferInfo);
|
/frameworks/av/media/module/libmediatranscoding/transcoder/ |
D | VideoTrackTranscoder.cpp | 400 void VideoTrackTranscoder::enqueueInputSample(int32_t bufferIndex) { in enqueueInputSample() argument 417 uint8_t* sourceBuffer = AMediaCodec_getInputBuffer(mDecoder, bufferIndex, &bufferSize); in enqueueInputSample() 444 status = AMediaCodec_queueInputBuffer(mDecoder, bufferIndex, 0, mSampleInfo.size, in enqueueInputSample() 453 void VideoTrackTranscoder::transferBuffer(int32_t bufferIndex, AMediaCodecBufferInfo bufferInfo) { in transferBuffer() argument 454 if (bufferIndex >= 0) { in transferBuffer() 456 AMediaCodec_releaseOutputBuffer(mDecoder, bufferIndex, needsRender); in transferBuffer() 469 void VideoTrackTranscoder::dequeueOutputSample(int32_t bufferIndex, in dequeueOutputSample() argument 471 if (bufferIndex >= 0) { in dequeueOutputSample() 474 AMediaCodec_getOutputBuffer(mEncoder->getCodec(), bufferIndex, &sampleSize); in dequeueOutputSample() 483 buffer, bufferInfo.offset, bufferIndex, bufferReleaseCallback); in dequeueOutputSample()
|
/frameworks/av/media/libeffects/lvm/wrapper/Aidl/ |
D | BundleContext.cpp | 818 int bufferIndex = 0; in process() local 828 lvmStatus = LVM_Process(mInstance, in + bufferIndex, out + bufferIndex, in process() 836 bufferIndex += processedSize; in process()
|
/frameworks/base/location/java/com/android/internal/location/altitude/ |
D | GeoidMap.java | 198 int bufferIndex = (int) (maskedS2CellId >>> numBitsRightOfMap); in mergeByteBufferValues() local 200 values[i] += ((int) byteBuffer.get(bufferIndex)) & 0xFF; in mergeByteBufferValues()
|
/frameworks/av/media/libstagefright/ |
D | MediaCodecSource.cpp | 711 size_t bufferIndex = *mAvailEncoderInputIndices.begin(); in feedEncoderInputBuffers() local 726 mAvailEncoderInputIndices.push_back(bufferIndex); in feedEncoderInputBuffers() 751 status_t err = mEncoder->getInputBuffer(bufferIndex, &inbuf); in feedEncoderInputBuffers() 794 bufferIndex, 0, size, timeUs, flags); in feedEncoderInputBuffers()
|
D | MediaCodec.cpp | 5948 status_t MediaCodec::queueCSDInputBuffer(size_t bufferIndex) { in queueCSDInputBuffer() argument 5994 const BufferInfo &info = mPortBuffers[kPortIndexInput][bufferIndex]; in queueCSDInputBuffer() 6005 ALOGV("Input buffer %zu is not properly allocated", bufferIndex); in queueCSDInputBuffer() 6007 "Fatal error: input buffer %zu is not properly allocated", bufferIndex)); in queueCSDInputBuffer() 6017 msg->setSize("index", bufferIndex); in queueCSDInputBuffer()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | MediaCodec.h | 650 status_t queueCSDInputBuffer(size_t bufferIndex);
|