Home
last modified time | relevance | path

Searched refs:mBuffers (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/base/core/java/android/util/proto/
DEncodedBuffer.java41 private final ArrayList<byte[]> mBuffers = new ArrayList<byte[]>(); field in EncodedBuffer
111 mBuffers.add(mWriteBuffer); in EncodedBuffer()
126 mWriteBuffer = mBuffers.get(0); in startEditing()
139 mReadBuffer = mBuffers.get(0); in rewindRead()
191 mReadBuffer = mBuffers.get(mReadBufIndex); in skipRead()
210 mReadBuffer = mBuffers.get(mReadBufIndex); in readRawByte()
261 mBuffers.add(mWriteBuffer); in nextWriteBuffer()
264 mWriteBuffer = mBuffers.get(mWriteBufIndex); in nextWriteBuffer()
464 mWriteBuffer = mBuffers.get(mWriteBufIndex);
471 byte[] readBuffer = mBuffers.get(readBufIndex);
[all …]
/frameworks/av/media/module/mpeg2ts/
DAnotherPacketSource.cpp100 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/
DMediaBufferGroup.cpp43 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/base/services/core/java/com/android/server/policy/
DDeferredKeyActionExecutor.java34 private final SparseArray<TimedActionsBuffer> mBuffers = new SparseArray<>(); field in DeferredKeyActionExecutor
85 TimedActionsBuffer actionsBuffer = mBuffers.get(keyCode); in cancelQueuedAction()
92 TimedActionsBuffer buffer = mBuffers.get(keyCode); in getActionsBufferWithLazyCleanUp()
101 mBuffers.put(keyCode, buffer); in getActionsBufferWithLazyCleanUp()
108 if (mBuffers.size() == 0) { in dump()
112 for (int i = 0; i < mBuffers.size(); i++) { in dump()
113 mBuffers.valueAt(i).dump(prefix, pw); in dump()
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
DBufferPool.java28 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/
DClientCache.cpp43 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/media/codec2/sfplugin/
DCCodecBuffers.cpp670 for (size_t i = 0; i < mBuffers.size(); ++i) { in assignSlot()
671 if (mBuffers[i].clientBuffer == nullptr in assignSlot()
672 && mBuffers[i].compBuffer.expired()) { in assignSlot()
673 mBuffers[i].clientBuffer = buffer; in assignSlot()
677 mBuffers.push_back({ buffer, std::weak_ptr<C2Buffer>() }); in assignSlot()
678 return mBuffers.size() - 1; in assignSlot()
686 size_t index = mBuffers.size(); in releaseSlot()
687 for (size_t i = 0; i < mBuffers.size(); ++i) { in releaseSlot()
688 if (mBuffers[i].clientBuffer == buffer) { in releaseSlot()
689 clientBuffer = mBuffers[i].clientBuffer; in releaseSlot()
[all …]
/frameworks/av/services/camera/libcameraservice/api1/client2/
DCamera2Heap.h34 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/base/media/packages/BluetoothMidiService/tests/unit/src/com/android/bluetoothmidiservice/
DAccumulatingMidiReceiver.java28 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()
DBluetoothMidiEncoderTest.java43 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/av/media/codec2/hal/client/
Doutput.cpp269 if (mBqId == 0 || !mBuffers[i] || stopped) { in configure()
281 if ((mBuffers[i]->getUsage() & consumerUsage) != consumerUsage) { in configure()
282 mBuffers[i] = new GraphicBuffer( in configure()
283 mBuffers[i]->handle, GraphicBuffer::CLONE_HANDLE, in configure()
284 mBuffers[i]->width, mBuffers[i]->height, in configure()
285 mBuffers[i]->format, mBuffers[i]->layerCount, in configure()
286 mBuffers[i]->getUsage() | consumerUsage, in configure()
287 mBuffers[i]->stride); in configure()
288 if (mBuffers[i]->initCheck() != OK) { in configure()
291 __func__, mBuffers[i]->getUsage(), consumerUsage); in configure()
[all …]
/frameworks/native/libs/gui/
DStreamSplitter.cpp61 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/
DAccessorImpl.cpp219 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 …]
DBufferPoolClient.cpp115 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/native/libs/input/
DMotionPredictor.cpp164 if (!mBuffers) { in record()
165 mBuffers = std::make_unique<TfLiteMotionPredictorBuffers>(mModel->inputLength()); in record()
178 mBuffers->reset(); in record()
205 mBuffers->pushSample(event.getHistoricalEventTime(i), in record()
228 if (mBuffers == nullptr || !mBuffers->isReady()) { in predict()
233 mBuffers->copyTo(*mModel); in predict()
241 TfLiteMotionPredictorSample::Point axisFrom = mBuffers->axisFrom().position; in predict()
242 TfLiteMotionPredictorSample::Point axisTo = mBuffers->axisTo().position; in predict()
261 int64_t predictionTime = mBuffers->lastTimestamp(); in predict()
/frameworks/av/media/module/bufferpool/2.0/
DBufferPoolClient.cpp126 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 …]
DAccessorImpl.cpp267 auto bufferIt = mBufferPool.mBuffers.find(bufferId); in fetch()
268 if (bufferIt != mBufferPool.mBuffers.end()) { in fetch()
463 auto iter = mBuffers.find(bufferId); in handleOwnBuffer()
474 auto iter = mBuffers.find(bufferId); in handleReleaseBuffer()
484 mBuffers.erase(iter); in handleReleaseBuffer()
503 auto bufferIter = mBuffers.find(message.bufferId); in handleTransferTo()
504 if (bufferIter == mBuffers.end() || in handleTransferTo()
541 auto bufferIter = mBuffers.find(message.bufferId); in handleTransferFrom()
560 auto bufferIter = mBuffers.find(message.bufferId); in handleTransferResult()
573 mBuffers.erase(bufferIter); in handleTransferResult()
[all …]
/frameworks/av/media/libstagefright/omx/
DSimpleSoftOMXComponent.cpp280 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/av/services/camera/libcameraservice/device3/
DCamera3StreamSplitter.cpp61 if (mBuffers.size() > 0) { in connect()
62 SP_LOGE("%s: still has %zu pending buffers", __FUNCTION__, mBuffers.size()); in connect()
152 if (mBuffers.size() > 0) { in disconnect()
153 SP_LOGW("%zu buffers still being tracked", mBuffers.size()); in disconnect()
154 mBuffers.clear(); in disconnect()
369 const BufferTracker& tracker = *(mBuffers[bufferId]); in outputBufferLocked()
428 std::unique_ptr<BufferTracker> tracker_ptr = std::move(mBuffers[bufferId]); in notifyBufferReleased()
429 mBuffers.erase(bufferId); in notifyBufferReleased()
496 mBuffers[bufferId] = std::move(tracker); in attachBufferToOutputs()
527 if (mBuffers.find(bufferId) == mBuffers.end()) { in onFrameAvailable()
[all …]
/frameworks/base/core/jni/
Dcom_android_internal_os_FuseAppLoop.cpp49 std::map<uint64_t, std::unique_ptr<LocalBytes>> mBuffers; member in android::__anonc02c3faf0111::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/media/libmediaplayerservice/nuplayer/
DNuPlayerStreamListener.cpp42 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/
DEncodedBuffer.cpp93 :mBuffers() in EncodedBuffer()
104 for (size_t i=0; i<mBuffers.size(); i++) { in ~EncodedBuffer()
105 uint8_t* buf = mBuffers[i]; in ~EncodedBuffer()
113 return mBuffers[p.index()] + p.offset(); in at()
140 if (mWp.index() > mBuffers.size()) return NULL; in writeBuffer()
142 if (mWp.index() == mBuffers.size()) { in writeBuffer()
150 mBuffers.push_back(buf); in writeBuffer()
/frameworks/av/services/camera/virtualcamera/
DVirtualCameraStream.cc110 mBuffers.emplace(std::piecewise_construct, in importBuffer()
149 auto it = mBuffers.find(bufferId); in getHardwareBufferLocked()
150 return it != mBuffers.end() ? it->second : nullptr; in getHardwareBufferLocked()
156 return mBuffers.erase(bufferId) == 1; in removeBuffer()
/frameworks/av/cmds/stagefright/
Dstream.cpp67 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/
Dandroid_StreamPlayer.cpp71 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()

123