/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() 190 mReadBuffer = mBuffers.get(mReadBufIndex); in skipRead() 209 mReadBuffer = mBuffers.get(mReadBufIndex); in readRawByte() 260 mBuffers.add(mWriteBuffer); in nextWriteBuffer() 263 mWriteBuffer = mBuffers.get(mWriteBufIndex); in nextWriteBuffer() 463 mWriteBuffer = mBuffers.get(mWriteBufIndex); 470 byte[] readBuffer = mBuffers.get(readBufIndex); [all …]
|
/frameworks/av/media/module/mpeg2ts/ |
D | AnotherPacketSource.cpp | 100 List<sp<ABuffer> >::iterator it = mBuffers.begin(); in getFormat() 101 while (it != mBuffers.end()) { in getFormat() 121 while (mEOSResult == OK && mBuffers.empty()) { in dequeueAccessUnit() 125 if (!mBuffers.empty()) { in dequeueAccessUnit() 126 *buffer = *mBuffers.begin(); in dequeueAccessUnit() 127 mBuffers.erase(mBuffers.begin()); in dequeueAccessUnit() 164 mBuffers.push_front(buffer); in requeueAccessUnit() 172 while (mEOSResult == OK && mBuffers.empty()) { in read() 176 if (!mBuffers.empty()) { in read() 178 const sp<ABuffer> buffer = *mBuffers.begin(); in read() [all …]
|
/frameworks/av/media/module/foundation/ |
D | MediaBufferGroup.cpp | 43 std::list<MediaBufferBase *> mBuffers; member 105 for (MediaBufferBase *buffer : mInternal->mBuffers) { in ~MediaBufferGroup() 135 for (auto it = mInternal->mBuffers.begin(); in add_buffer() 137 && mInternal->mBuffers.size() >= mInternal->mGrowthLimit in add_buffer() 138 && it != mInternal->mBuffers.end();) { in add_buffer() 142 it = mInternal->mBuffers.erase(it); in add_buffer() 149 mInternal->mBuffers.emplace_back(buffer); in add_buffer() 153 if (mInternal->mBuffers.size() < mInternal->mGrowthLimit) { in has_buffers() 156 for (MediaBufferBase *buffer : mInternal->mBuffers) { in has_buffers() 171 auto free = mInternal->mBuffers.end(); in acquire_buffer() [all …]
|
/frameworks/libs/net/common/testutils/devicetests/com/android/testutils/async/ |
D | ReadableDataAnswer.java | 25 private final ArrayList<byte[]> mBuffers = new ArrayList<>(); field in ReadableDataAnswer 36 mBuffers.add(buffer); in addBuffer() 42 for (byte[] buffer : mBuffers) { in getRemainingSize() 49 if (!mBuffers.isEmpty() && mBufferPos == mBuffers.get(0).length) { in cleanupBuffers() 50 mBuffers.remove(0); in cleanupBuffers() 59 if (mBuffers.isEmpty()) { in answer() 63 byte[] src = mBuffers.get(0); in answer()
|
/frameworks/av/media/codec2/sfplugin/ |
D | CCodecBuffers.cpp | 492 for (size_t i = 0; i < mBuffers.size(); ++i) { in assignSlot() 493 if (mBuffers[i].clientBuffer == nullptr in assignSlot() 494 && mBuffers[i].compBuffer.expired()) { in assignSlot() 495 mBuffers[i].clientBuffer = buffer; in assignSlot() 499 mBuffers.push_back({ buffer, std::weak_ptr<C2Buffer>() }); in assignSlot() 500 return mBuffers.size() - 1; in assignSlot() 508 size_t index = mBuffers.size(); in releaseSlot() 509 for (size_t i = 0; i < mBuffers.size(); ++i) { in releaseSlot() 510 if (mBuffers[i].clientBuffer == buffer) { in releaseSlot() 511 clientBuffer = mBuffers[i].clientBuffer; in releaseSlot() [all …]
|
/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/native/services/surfaceflinger/ |
D | ClientCache.cpp | 43 auto it = mBuffers.find(processToken); in getBuffer() 44 if (it == mBuffers.end()) { in getBuffer() 80 auto it = mBuffers.find(processToken); in add() 81 if (it == mBuffers.end()) { in add() 97 mBuffers.emplace(processToken, in add() 142 mBuffers[processToken].second.erase(id); in erase() 197 auto itr = mBuffers.find(processToken); in removeProcess() 198 if (itr == mBuffers.end()) { in removeProcess() 212 mBuffers.erase(itr); in removeProcess() 226 for (const auto& [_, cache] : mBuffers) { in dump()
|
/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
|
/frameworks/av/media/codec2/hal/client/ |
D | output.cpp | 264 if (mBqId == 0 || !mBuffers[i] || stopped) { in configure() 276 if ((mBuffers[i]->getUsage() & consumerUsage) != consumerUsage) { in configure() 277 mBuffers[i] = new GraphicBuffer( in configure() 278 mBuffers[i]->handle, GraphicBuffer::CLONE_HANDLE, in configure() 279 mBuffers[i]->width, mBuffers[i]->height, in configure() 280 mBuffers[i]->format, mBuffers[i]->layerCount, in configure() 281 mBuffers[i]->getUsage() | consumerUsage, in configure() 282 mBuffers[i]->stride); in configure() 283 if (mBuffers[i]->initCheck() != OK) { in configure() 286 __func__, mBuffers[i]->getUsage(), consumerUsage); in configure() [all …]
|
/frameworks/base/media/packages/BluetoothMidiService/tests/unit/src/com/android/bluetoothmidiservice/ |
D | AccumulatingMidiReceiver.java | 28 ArrayList<byte[]> mBuffers = new ArrayList<byte[]>(); field in AccumulatingMidiReceiver 35 mBuffers.add(actualRow); in onSend() 40 return mBuffers.toArray(new byte[mBuffers.size()][]); in getBuffers()
|
D | BluetoothMidiEncoderTest.java | 43 ArrayList<byte[]> mBuffers = new ArrayList<byte[]>(); field in BluetoothMidiEncoderTest.AccumulatingPacketReceiver 49 mBuffers.add(actualRow); in writePacket() 54 return mBuffers.toArray(new byte[mBuffers.size()][]); in getBuffers()
|
/frameworks/native/libs/input/ |
D | MotionPredictor.cpp | 89 if (!mBuffers) { in record() 90 mBuffers = std::make_unique<TfLiteMotionPredictorBuffers>(mModel->inputLength()); in record() 96 mBuffers->reset(); in record() 122 mBuffers->pushSample(event.getHistoricalEventTime(i), in record() 148 if (mBuffers == nullptr || !mBuffers->isReady()) { in predict() 153 mBuffers->copyTo(*mModel); in predict() 161 TfLiteMotionPredictorSample::Point axisFrom = mBuffers->axisFrom().position; in predict() 162 TfLiteMotionPredictorSample::Point axisTo = mBuffers->axisTo().position; in predict() 181 int64_t predictionTime = mBuffers->lastTimestamp(); in predict()
|
/frameworks/native/libs/gui/ |
D | StreamSplitter.cpp | 61 mOutstandingBuffers(0), mInput(inputQueue), mOutputs(), mBuffers() {} in StreamSplitter() 70 if (mBuffers.size() > 0) { in ~StreamSplitter() 71 ALOGE("%zu buffers still being tracked", mBuffers.size()); in ~StreamSplitter() 142 mBuffers.add(bufferItem.mGraphicBuffer->getId(), in onFrameAvailable() 161 mBuffers.editValueFor(bufferItem.mGraphicBuffer->getId())-> in onFrameAvailable() 176 mBuffers.editValueFor(bufferItem.mGraphicBuffer->getId())-> in onFrameAvailable() 210 const sp<BufferTracker>& tracker = mBuffers.editValueFor(buffer->getId()); in onBufferReleasedByOutput() 227 mBuffers.removeItem(buffer->getId()); in onBufferReleasedByOutput() 246 mBuffers.removeItem(buffer->getId()); in onBufferReleasedByOutput()
|
/frameworks/av/media/module/bufferpool/1.0/ |
D | AccessorImpl.cpp | 219 auto bufferIt = mBufferPool.mBuffers.find(bufferId); in fetch() 220 if (bufferIt != mBufferPool.mBuffers.end()) { in fetch() 269 auto iter = mBuffers.find(bufferId); in handleOwnBuffer() 280 auto iter = mBuffers.find(bufferId); in handleReleaseBuffer() 302 auto bufferIter = mBuffers.find(message.bufferId); in handleTransferTo() 303 if (bufferIter == mBuffers.end() || in handleTransferTo() 340 auto bufferIter = mBuffers.find(message.bufferId); in handleTransferFrom() 359 auto bufferIter = mBuffers.find(message.bufferId); in handleTransferResult() 429 auto bufferIter = mBuffers.find(bufferId); in handleClose() 452 auto bufferIter = mBuffers.find(bufferId); in handleClose() [all …]
|
D | BufferPoolClient.cpp | 115 std::map<BufferId, std::unique_ptr<ClientBuffer>> mBuffers; member 317 auto cacheIt = mCache.mBuffers.find(bufferId); in allocate() 318 if (cacheIt != mCache.mBuffers.end()) { in allocate() 320 mCache.mBuffers.erase(cacheIt); in allocate() 325 auto result = mCache.mBuffers.insert(std::make_pair( in allocate() 365 auto cacheIt = mCache.mBuffers.find(bufferId); in receive() 366 if (cacheIt != mCache.mBuffers.end()) { in receive() 397 auto result = mCache.mBuffers.insert( in receive() 551 auto found = mCache.mBuffers.find(id); in syncReleased() 552 if (found != mCache.mBuffers.end()) { in syncReleased() [all …]
|
/frameworks/av/media/module/bufferpool/2.0/ |
D | BufferPoolClient.cpp | 126 std::map<BufferId, std::unique_ptr<ClientBuffer>> mBuffers; member 143 return mBuffers.size() - mActive; in cachedBufferCount() 372 auto cacheIt = mCache.mBuffers.find(bufferId); in allocate() 373 if (cacheIt != mCache.mBuffers.end()) { in allocate() 375 mCache.mBuffers.erase(cacheIt); in allocate() 380 auto result = mCache.mBuffers.insert(std::make_pair( in allocate() 420 auto cacheIt = mCache.mBuffers.find(bufferId); in receive() 421 if (cacheIt != mCache.mBuffers.end()) { in receive() 452 auto result = mCache.mBuffers.insert( in receive() 613 auto found = mCache.mBuffers.find(id); in syncReleased() [all …]
|
D | AccessorImpl.cpp | 251 auto bufferIt = mBufferPool.mBuffers.find(bufferId); in fetch() 252 if (bufferIt != mBufferPool.mBuffers.end()) { in fetch() 447 auto iter = mBuffers.find(bufferId); in handleOwnBuffer() 458 auto iter = mBuffers.find(bufferId); in handleReleaseBuffer() 468 mBuffers.erase(iter); in handleReleaseBuffer() 487 auto bufferIter = mBuffers.find(message.bufferId); in handleTransferTo() 488 if (bufferIter == mBuffers.end() || in handleTransferTo() 525 auto bufferIter = mBuffers.find(message.bufferId); in handleTransferFrom() 544 auto bufferIter = mBuffers.find(message.bufferId); in handleTransferResult() 557 mBuffers.erase(bufferIter); in handleTransferResult() [all …]
|
/frameworks/av/media/libstagefright/omx/ |
D | SimpleSoftOMXComponent.cpp | 280 CHECK_LT(port->mBuffers.size(), port->mDef.nBufferCountActual); in useBuffer() 282 port->mBuffers.push(); in useBuffer() 285 &port->mBuffers.editItemAt(port->mBuffers.size() - 1); in useBuffer() 290 if (port->mBuffers.size() == port->mDef.nBufferCountActual) { in useBuffer() 336 for (size_t i = 0; i < port->mBuffers.size(); ++i) { in freeBuffer() 337 BufferInfo *buffer = &port->mBuffers.editItemAt(i); in freeBuffer() 353 port->mBuffers.removeAt(i); in freeBuffer() 430 for (size_t j = 0; j < port->mBuffers.size(); ++j) { in onMessageReceived() 431 BufferInfo *buffer = &port->mBuffers.editItemAt(j); in onMessageReceived() 561 for (size_t i = 0; i < port->mBuffers.size(); ++i) { in onPortEnable() [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::__anonf1d915a00111::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/services/camera/libcameraservice/device3/ |
D | Camera3StreamSplitter.cpp | 60 if (mBuffers.size() > 0) { in connect() 61 SP_LOGE("%s: still has %zu pending buffers", __FUNCTION__, mBuffers.size()); in connect() 151 if (mBuffers.size() > 0) { in disconnect() 152 SP_LOGW("%zu buffers still being tracked", mBuffers.size()); in disconnect() 153 mBuffers.clear(); in disconnect() 363 const BufferTracker& tracker = *(mBuffers[bufferId]); in outputBufferLocked() 422 std::unique_ptr<BufferTracker> tracker_ptr = std::move(mBuffers[bufferId]); in notifyBufferReleased() 423 mBuffers.erase(bufferId); in notifyBufferReleased() 490 mBuffers[bufferId] = std::move(tracker); in attachBufferToOutputs() 521 if (mBuffers.find(bufferId) == mBuffers.end()) { in onFrameAvailable() [all …]
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerStreamListener.cpp | 42 mBuffers.push(mem); in NuPlayerStreamListener() 44 mSource->setBuffers(mBuffers); in NuPlayerStreamListener() 145 if (entry->mIndex >= mBuffers.size()) { in read() 149 sp<IMemory> mem = mBuffers.editItemAt(entry->mIndex); in read()
|
/frameworks/base/libs/protoutil/src/ |
D | EncodedBuffer.cpp | 91 :mBuffers() in EncodedBuffer() 102 for (size_t i=0; i<mBuffers.size(); i++) { in ~EncodedBuffer() 103 uint8_t* buf = mBuffers[i]; in ~EncodedBuffer() 111 return mBuffers[p.index()] + p.offset(); in at() 138 if (mWp.index() > mBuffers.size()) return NULL; in writeBuffer() 140 if (mWp.index() == mBuffers.size()) { in writeBuffer() 148 mBuffers.push_back(buf); in writeBuffer()
|
/frameworks/av/cmds/stagefright/ |
D | stream.cpp | 67 Vector<sp<IMemory> > mBuffers; member 92 mBuffers = buffers; in setBuffers() 96 CHECK_LT(index, mBuffers.size()); in onBufferAvailable() 117 sp<IMemory> mem = mBuffers.itemAt(index); in onBufferAvailable() 146 Vector<sp<IMemory> > mBuffers; member 209 mBuffers = buffers; in setBuffers() 234 sp<IMemory> mem = mBuffers.itemAt(mCurrentBufferIndex); in writeData()
|
/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/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
|