/frameworks/base/core/java/android/util/proto/ |
D | EncodedBuffer.java | 40 private final ArrayList<byte[]> mBuffers = new ArrayList<byte[]>(); field in EncodedBuffer 110 mBuffers.add(mWriteBuffer); in EncodedBuffer() 125 mWriteBuffer = mBuffers.get(0); in startEditing() 138 mReadBuffer = mBuffers.get(0); in rewindRead() 182 mReadBuffer = mBuffers.get(mReadBufIndex); in skipRead() 201 mReadBuffer = mBuffers.get(mReadBufIndex); in readRawByte() 252 mBuffers.add(mWriteBuffer); in nextWriteBuffer() 255 mWriteBuffer = mBuffers.get(mWriteBufIndex); in nextWriteBuffer() 455 mWriteBuffer = mBuffers.get(mWriteBufIndex); 462 byte[] readBuffer = mBuffers.get(readBufIndex); [all …]
|
/frameworks/av/media/libstagefright/foundation/ |
D | MediaBufferGroup.cpp | 84 for (MediaBuffer *buffer : mBuffers) { in ~MediaBufferGroup() 112 for (auto it = mBuffers.begin(); in add_buffer() 114 && mBuffers.size() >= mGrowthLimit in add_buffer() 115 && it != mBuffers.end();) { in add_buffer() 119 it = mBuffers.erase(it); in add_buffer() 126 mBuffers.emplace_back(buffer); in add_buffer() 130 if (mBuffers.size() < mGrowthLimit) { in has_buffers() 133 for (MediaBuffer *buffer : mBuffers) { in has_buffers() 147 auto free = mBuffers.end(); in acquire_buffer() 148 for (auto it = mBuffers.begin(); it != mBuffers.end(); ++it) { in acquire_buffer() [all …]
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
D | AnotherPacketSource.cpp | 99 List<sp<ABuffer> >::iterator it = mBuffers.begin(); in getFormat() 100 while (it != mBuffers.end()) { in getFormat() 120 while (mEOSResult == OK && mBuffers.empty()) { in dequeueAccessUnit() 124 if (!mBuffers.empty()) { in dequeueAccessUnit() 125 *buffer = *mBuffers.begin(); in dequeueAccessUnit() 126 mBuffers.erase(mBuffers.begin()); in dequeueAccessUnit() 163 mBuffers.push_front(buffer); in requeueAccessUnit() 171 while (mEOSResult == OK && mBuffers.empty()) { in read() 175 if (!mBuffers.empty()) { in read() 177 const sp<ABuffer> buffer = *mBuffers.begin(); in read() [all …]
|
/frameworks/base/cmds/incidentd/src/ |
D | FdBuffer.cpp | 33 :mBuffers(), in FdBuffer() 44 const int N = mBuffers.size(); in ~FdBuffer() 46 uint8_t* buf = mBuffers[i]; in ~FdBuffer() 65 if (mBuffers.size() == MAX_BUFFER_COUNT) { in read() 73 mBuffers.push_back(buf); in read() 115 return ((mBuffers.size() - 1) * BUFFER_SIZE) + mCurrentWritten; in size() 121 const int N = mBuffers.size() - 1; in write() 123 reporter->write(mBuffers[i], BUFFER_SIZE); in write() 125 reporter->write(mBuffers[N], mCurrentWritten); in write()
|
D | FdBuffer.h | 77 vector<uint8_t*> mBuffers;
|
/frameworks/native/opengl/libagl/ |
D | BufferObjectManager.cpp | 45 GLsizei n = mBuffers.size(); in ~EGLBufferObjectManager() 47 buffer_t* bo = mBuffers.valueAt(i); in ~EGLBufferObjectManager() 56 int32_t i = mBuffers.indexOfKey(buffer); in bind() 58 return mBuffers.valueAt(i); in bind() 65 mBuffers.add(buffer, bo); in bind() 91 int32_t index = mBuffers.indexOfKey(t); in deleteBuffers() 93 buffer_t* bo = mBuffers.valueAt(index); in deleteBuffers() 95 mBuffers.removeItemsAt(index); in deleteBuffers()
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | HWComposerBufferCache.cpp | 25 mBuffers.reserve(BufferQueue::NUM_BUFFER_SLOTS); in HWComposerBufferCache() 37 if (static_cast<size_t>(slot) >= mBuffers.size()) { in getHwcBuffer() 38 mBuffers.resize(slot + 1); in getHwcBuffer() 43 if (mBuffers[slot] == buffer) { in getHwcBuffer() 50 mBuffers[slot] = buffer; in getHwcBuffer()
|
D | HWComposerBufferCache.h | 55 std::vector<sp<GraphicBuffer>> mBuffers;
|
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/ |
D | BufferPool.java | 28 private final ByteBuffer[] mBuffers; field in BufferPool 35 mBuffers = new ByteBuffer[maxBuffers]; in BufferPool() 43 return grow(mBuffers[mAvailable], needed); in acquire() 46 if (mAllocated < mBuffers.length) { in acquire() 62 mBuffers[mAvailable++] = buffer; in release()
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | Camera2Heap.h | 34 mBuffers = new sp<MemoryBase>[mNumBufs]; in mBufSize() 36 mBuffers[i] = new MemoryBase(mHeap, in mBufSize() 43 delete [] mBuffers; in ~Camera2Heap() 49 sp<MemoryBase> *mBuffers; variable
|
D | JpegCompressor.cpp | 51 mBuffers = buffers; in start() 78 mAuxBuffer = mBuffers[0]; // input in threadLoop() 79 mJpegBuffer = mBuffers[1]; // output in threadLoop() 151 if (mBuffers.size() && mIsBusy) { in isStreamInUse() 152 for (size_t i = 0; i < mBuffers.size(); i++) { in isStreamInUse()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3StreamSplitter.cpp | 56 if (mBuffers.size() > 0) { in connect() 57 SP_LOGE("%s: still has %zu pending buffers", __FUNCTION__, mBuffers.size()); in connect() 127 if (mBuffers.size() > 0) { in disconnect() 128 SP_LOGW("%zu buffers still being tracked", mBuffers.size()); in disconnect() 129 mBuffers.clear(); in disconnect() 234 const BufferTracker& tracker = *(mBuffers[bufferId]); in outputBufferLocked() 281 std::unique_ptr<BufferTracker> tracker_ptr = std::move(mBuffers[bufferId]); in notifyBufferReleased() 282 mBuffers.erase(bufferId); in notifyBufferReleased() 337 mBuffers[bufferId] = std::move(tracker); in attachBufferToOutputs() 354 if (mBuffers.find(bufferItem.mGraphicBuffer->getId()) == mBuffers.end()) { in onFrameAvailable() [all …]
|
/frameworks/native/libs/gui/ |
D | StreamSplitter.cpp | 59 mOutstandingBuffers(0), mInput(inputQueue), mOutputs(), mBuffers() {} in StreamSplitter() 68 if (mBuffers.size() > 0) { in ~StreamSplitter() 69 ALOGE("%zu buffers still being tracked", mBuffers.size()); in ~StreamSplitter() 140 mBuffers.add(bufferItem.mGraphicBuffer->getId(), in onFrameAvailable() 159 mBuffers.editValueFor(bufferItem.mGraphicBuffer->getId())-> in onFrameAvailable() 174 mBuffers.editValueFor(bufferItem.mGraphicBuffer->getId())-> in onFrameAvailable() 208 const sp<BufferTracker>& tracker = mBuffers.editValueFor(buffer->getId()); in onBufferReleasedByOutput() 225 mBuffers.removeItem(buffer->getId()); in onBufferReleasedByOutput() 244 mBuffers.removeItem(buffer->getId()); in onBufferReleasedByOutput()
|
/frameworks/av/media/libstagefright/omx/ |
D | SimpleSoftOMXComponent.cpp | 243 CHECK_LT(port->mBuffers.size(), port->mDef.nBufferCountActual); in useBuffer() 245 port->mBuffers.push(); in useBuffer() 248 &port->mBuffers.editItemAt(port->mBuffers.size() - 1); in useBuffer() 253 if (port->mBuffers.size() == port->mDef.nBufferCountActual) { in useBuffer() 299 for (size_t i = 0; i < port->mBuffers.size(); ++i) { in freeBuffer() 300 BufferInfo *buffer = &port->mBuffers.editItemAt(i); in freeBuffer() 316 port->mBuffers.removeAt(i); in freeBuffer() 385 for (size_t j = 0; j < port->mBuffers.size(); ++j) { in onMessageReceived() 386 BufferInfo *buffer = &port->mBuffers.editItemAt(j); in onMessageReceived() 510 for (size_t i = 0; i < port->mBuffers.size(); ++i) { in onPortEnable() [all …]
|
/frameworks/av/media/libstagefright/filters/ |
D | MediaFilter.cpp | 216 CHECK(mBuffers[portIndex].isEmpty()); in allocateBuffersOnPort() 239 mBuffers[portIndex].push_back(info); in allocateBuffersOnPort() 243 &mBuffers[portIndex].editItemAt(i)); in allocateBuffersOnPort() 247 std::vector<ACodecBufferChannel::BufferAndId> array(mBuffers[portIndex].size()); in allocateBuffersOnPort() 248 for (size_t i = 0; i < mBuffers[portIndex].size(); ++i) { in allocateBuffersOnPort() 249 array[i] = {mBuffers[portIndex][i].mData, mBuffers[portIndex][i].mBufferID}; in allocateBuffersOnPort() 263 for (size_t i = 0; i < mBuffers[portIndex].size(); ++i) { in findBufferByID() 264 BufferInfo *info = &mBuffers[portIndex].editItemAt(i); in findBufferByID() 323 for (size_t i = 0; i < mBuffers[kPortIndexInput].size(); ++i) { in requestFillEmptyInput() 324 BufferInfo *info = &mBuffers[kPortIndexInput].editItemAt(i); in requestFillEmptyInput() [all …]
|
/frameworks/base/core/jni/ |
D | com_android_internal_os_FuseAppLoop.cpp | 49 std::map<uint64_t, std::unique_ptr<LocalBytes>> mBuffers; member in android::__anondd2e1b1b0111::Callback 71 mBuffers.insert(std::make_pair(inode, std::unique_ptr<LocalBytes>( in OnOpen() 80 mBuffers.erase(inode); in OnRelease() 87 auto it = mBuffers.find(inode); in OnRead() 88 CHECK(it != mBuffers.end()); in OnRead() 97 auto it = mBuffers.find(inode); in OnWrite() 98 CHECK(it != mBuffers.end()); in OnWrite()
|
/frameworks/av/cmds/stagefright/ |
D | stream.cpp | 64 Vector<sp<IMemory> > mBuffers; member 89 mBuffers = buffers; in setBuffers() 93 CHECK_LT(index, mBuffers.size()); in onBufferAvailable() 114 sp<IMemory> mem = mBuffers.itemAt(index); in onBufferAvailable() 143 Vector<sp<IMemory> > mBuffers; member 206 mBuffers = buffers; in setBuffers() 231 sp<IMemory> mem = mBuffers.itemAt(mCurrentBufferIndex); in writeData()
|
D | SimplePlayer.cpp | 346 err = state->mCodec->getInputBuffers(&state->mBuffers[0]); in onPrepare() 349 err = state->mCodec->getOutputBuffers(&state->mBuffers[1]); in onPrepare() 359 const sp<MediaCodecBuffer> &dstBuffer = state->mBuffers[0].itemAt(index); in onPrepare() 457 err = state->mCodec->getOutputBuffers(&state->mBuffers[1]); in onDoMoreStuff() 487 state->mBuffers[0].itemAt(index); in onDoMoreStuff() 537 state->mBuffers[1].itemAt(info->mIndex); in onDoMoreStuff()
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerStreamListener.cpp | 44 mBuffers.push(mem); in NuPlayerStreamListener() 46 mSource->setBuffers(mBuffers); in NuPlayerStreamListener() 147 if (entry->mIndex >= mBuffers.size()) { in read() 151 sp<IMemory> mem = mBuffers.editItemAt(entry->mIndex); in read()
|
/frameworks/wilhelm/src/android/ |
D | android_StreamPlayer.cpp | 71 mBuffers = buffers; in setBuffers() 84 CHECK_LT(index, mBuffers.size()); in onBufferAvailable() 86 sp<IMemory> mem = mBuffers.itemAt(index); in onBufferAvailable() 117 mBuffers.clear(); in disconnect() 200 CHECK_LT(bufferId, mBuffers.size()); in pullFromBuffQueue() 201 sp<IMemory> mem = mBuffers.itemAt(bufferId); in pullFromBuffQueue()
|
/frameworks/av/media/libstagefright/include/ |
D | MediaBufferGroup.h | 54 size_t buffers() const { return mBuffers.size(); } in buffers() 65 std::list<MediaBuffer *> mBuffers; variable
|
/frameworks/native/libs/gui/tests/ |
D | BufferItemConsumer_test.cpp | 85 ret = mProducer->requestBuffer(slot, &mBuffers[slot]); in DequeueBuffer() 115 buffer.mGraphicBuffer = mBuffers[slot]; in ReleaseBuffer() 128 sp<GraphicBuffer> mBuffers[BufferQueueDefs::NUM_BUFFER_SLOTS]; member in android::BufferItemConsumerTest
|
/frameworks/base/media/jni/ |
D | android_media_ImageReader.cpp | 118 List<BufferItem*> mBuffers; member in JNIImageReaderContext 139 mBuffers.push_back(buffer); in JNIImageReaderContext() 169 if (mBuffers.empty()) { in getBufferItem() 173 List<BufferItem*>::iterator it = mBuffers.begin(); in getBufferItem() 175 mBuffers.erase(it); in getBufferItem() 181 mBuffers.push_back(buffer); in returnBufferItem() 198 for (List<BufferItem *>::iterator it = mBuffers.begin(); in ~JNIImageReaderContext() 199 it != mBuffers.end(); it++) { in ~JNIImageReaderContext()
|
/frameworks/av/media/ndk/ |
D | NdkImageReader.cpp | 305 mBuffers.push_back(buffer); in init() 347 for (auto it = mBuffers.begin(); in ~AImageReader() 348 it != mBuffers.end(); it++) { in ~AImageReader() 458 if (mBuffers.empty()) { in getBufferItemLocked() 462 auto it = mBuffers.begin(); in getBufferItemLocked() 464 mBuffers.erase(it); in getBufferItemLocked() 470 mBuffers.push_back(buffer); in returnBufferItemLocked()
|
/frameworks/av/services/camera/libcameraservice/device1/ |
D | CameraHardwareInterface.h | 345 mBuffers = new sp<MemoryBase>[mNumBufs]; in commonInitialization() 347 mBuffers[i] = new MemoryBase(mHeap, in commonInitialization() 356 delete [] mBuffers; in ~CameraHeapMemory() 362 sp<MemoryBase> *mBuffers; variable
|