Home
last modified time | relevance | path

Searched refs:mSlots (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/native/libs/gui/
DBufferQueueCore.cpp100 mSlots(), in BufferQueueCore()
193 const sp<GraphicBuffer>& buffer(mSlots[s].mGraphicBuffer); in dumpState()
197 (mSlots[s].mBufferState.isAcquired()) ? ">" : " ", s, in dumpState()
199 outResult->appendFormat("state=%-8s %p frame=%" PRIu64, mSlots[s].mBufferState.string(), in dumpState()
200 buffer->handle, mSlots[s].mFrameNumber); in dumpState()
206 mSlots[s].mBufferState.string(), mSlots[s].mFrameNumber); in dumpState()
210 const sp<GraphicBuffer>& buffer(mSlots[s].mGraphicBuffer); in dumpState()
212 outResult->appendFormat("state=%-8s %p frame=%" PRIu64, mSlots[s].mBufferState.string(), in dumpState()
213 buffer->handle, mSlots[s].mFrameNumber); in dumpState()
219 const sp<GraphicBuffer>& buffer(mSlots[s].mGraphicBuffer); in dumpState()
[all …]
DBufferQueueConsumer.cpp73 mSlots(core->mSlots), in BufferQueueConsumer()
93 if (mSlots[s].mBufferState.isAcquired()) { in acquireBuffer()
177 mSlots[front->mSlot].mBufferState.freeQueued(); in acquireBuffer()
183 mSlots[front->mSlot].mBufferState.isFree()) { in acquireBuffer()
184 mSlots[front->mSlot].mBufferState.mShared = false; in acquireBuffer()
188 if (!mSlots[front->mSlot].mBufferState.isShared()) { in acquireBuffer()
237 outBuffer->mGraphicBuffer = mSlots[slot].mGraphicBuffer; in acquireBuffer()
248 outBuffer->mAcquireCalled = mSlots[slot].mAcquireCalled; in acquireBuffer()
268 mSlots[slot].mAcquireCalled = true; in acquireBuffer()
273 mSlots[slot].mBufferState.acquireNotInQueue(); in acquireBuffer()
[all …]
DBufferQueueProducer.cpp75 mSlots(core->mSlots), in BufferQueueProducer()
109 } else if (!mSlots[slot].mBufferState.isDequeued()) { in requestBuffer()
111 "(state = %s)", slot, mSlots[slot].mBufferState.string()); in requestBuffer()
115 mSlots[slot].mRequestBufferCalled = true; in requestBuffer()
116 *buf = mSlots[slot].mGraphicBuffer; in requestBuffer()
145 if (mSlots[s].mBufferState.isDequeued()) { in setMaxDequeuedBufferCount()
287 if (mSlots[s].mBufferState.isDequeued()) { in waitForFreeSlotThenRelock()
290 if (mSlots[s].mBufferState.isAcquired()) { in waitForFreeSlotThenRelock()
453 const sp<GraphicBuffer>& buffer(mSlots[found].mGraphicBuffer); in dequeueBuffer()
473 const sp<GraphicBuffer>& buffer(mSlots[found].mGraphicBuffer); in dequeueBuffer()
[all …]
DConsumerBase.cpp99 mSlots[slotIndex].mGraphicBuffer = nullptr; in freeBufferLocked()
100 mSlots[slotIndex].mFence = Fence::NO_FENCE; in freeBufferLocked()
101 mSlots[slotIndex].mFrameNumber = 0; in freeBufferLocked()
398 if (mSlots[item->mSlot].mGraphicBuffer != nullptr) { in acquireBufferLocked()
401 mSlots[item->mSlot].mGraphicBuffer = item->mGraphicBuffer; in acquireBufferLocked()
404 mSlots[item->mSlot].mFrameNumber = item->mFrameNumber; in acquireBufferLocked()
405 mSlots[item->mSlot].mFence = item->mFence; in acquireBufferLocked()
429 if (!mSlots[slot].mFence.get()) { in addReleaseFenceLocked()
430 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
437 auto currentStatus = mSlots[slot].mFence->getStatus(); in addReleaseFenceLocked()
[all …]
DBufferItemConsumer.cpp83 item->mGraphicBuffer = mSlots[item->mSlot].mGraphicBuffer; in acquireBuffer()
110 if (listener != nullptr && mSlots[slotIndex].mGraphicBuffer != nullptr) { in freeBufferLocked()
113 listener->onBufferFreed(mSlots[slotIndex].mGraphicBuffer); in freeBufferLocked()
DSurface.cpp645 sp<GraphicBuffer>& gbuf(mSlots[mSharedBufferSlot].buffer); in dequeueBuffer()
683 sp<GraphicBuffer>& gbuf(mSlots[buf].buffer); in dequeueBuffer()
769 if (mSlots[i].buffer != nullptr && in getSlotFromBufferLocked()
770 mSlots[i].buffer->handle == buffer->handle) { in getSlotFromBufferLocked()
1627 if (mSlots[i].buffer != nullptr && in detachNextBuffer()
1628 mSlots[i].buffer->getId() == buffer->getId()) { in detachNextBuffer()
1630 mRemovedBuffers.push_back(mSlots[i].buffer); in detachNextBuffer()
1632 mSlots[i].buffer = nullptr; in detachNextBuffer()
1659 if (mReportRemovedBuffers && (mSlots[attachedSlot].buffer != nullptr)) { in attachBuffer()
1660 mRemovedBuffers.push_back(mSlots[attachedSlot].buffer); in attachBuffer()
[all …]
DGLConsumer.cpp262 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in releaseTexImage()
366 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, in updateAndReleaseLocked()
374 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, in updateAndReleaseLocked()
388 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, in updateAndReleaseLocked()
401 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, in updateAndReleaseLocked()
410 slot, mSlots[slot].mGraphicBuffer->handle); in updateAndReleaseLocked()
DCpuConsumer.cpp176 b.mGraphicBuffer = mSlots[b.mSlot].mGraphicBuffer; in lockNextBuffer()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarIconList.java31 private ArrayList<Slot> mSlots = new ArrayList<>(); field in StatusBarIconList
36 mSlots.add(new Slot(slots[i], null)); in StatusBarIconList()
41 final int N = mSlots.size(); in getSlotIndex()
43 Slot item = mSlots.get(i); in getSlotIndex()
49 mSlots.add(0, new Slot(slot, null)); in getSlotIndex()
54 return new ArrayList<>(mSlots); in getSlots()
58 return mSlots.get(getSlotIndex(name)); in getSlot()
62 return mSlots.size(); in size()
66 mSlots.get(index).addHolder(holder); in setIcon()
70 mSlots.get(index).removeForTag(tag); in removeIcon()
[all …]
/frameworks/native/libs/nativedisplay/surfacetexture/
DImageConsumer.cpp47 return st.mSlots[slot].mGraphicBuffer; in dequeueBuffer()
58 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueBuffer()
73 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueBuffer()
81 st.mSlots[st.mCurrentTexture].mGraphicBuffer, in dequeueBuffer()
85 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueBuffer()
94 st.mSlots[st.mCurrentTexture].mGraphicBuffer, display, in dequeueBuffer()
118 return st.mSlots[slot].mGraphicBuffer; in dequeueBuffer()
DEGLConsumer.cpp153 err = st.releaseBufferLocked(buf, st.mSlots[buf].mGraphicBuffer, mEglDisplay, in releaseTexImage()
220 mEglSlots[slot].mEglImage = new EglImage(st.mSlots[slot].mGraphicBuffer); in onAcquireBufferLocked()
237 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
244 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
257 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
269 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, mEglDisplay, in updateAndReleaseLocked()
278 slot, st.mSlots[slot].mGraphicBuffer->handle); in updateAndReleaseLocked()
437 mEglSlots[slot].mEglImage = new EglImage(st.mSlots[slot].mGraphicBuffer); in attachToContext()
DSurfaceTexture.cpp267 : mSlots[mCurrentTexture].mGraphicBuffer; in computeCurrentTransformMatrixLocked()
/frameworks/base/rs/java/android/renderscript/
DProgramFragmentFixedFunction.java166 Slot[] mSlots; field in ProgramFragmentFixedFunction.Builder
189 switch(mSlots[i].env) { in buildShaderString()
191 switch (mSlots[i].format) { in buildShaderString()
207 switch (mSlots[i].format) { in buildShaderString()
241 mSlots = new Slot[MAX_TEXTURE]; in Builder()
265 mSlots[slot] = new Slot(env, fmt); in setTexture()
306 if(mSlots[i] != null) { in create()
/frameworks/native/services/inputflinger/reader/mapper/
DMultiTouchInputMapper.cpp32 mSlots(nullptr), in MultiTouchMotionAccumulator()
38 delete[] mSlots; in ~MultiTouchMotionAccumulator()
47 delete[] mSlots; in configure()
48 mSlots = new Slot[slotCount]; in configure()
77 if (mSlots) { in clearSlots()
79 mSlots[i].clear(); in clearSlots()
106 Slot* slot = &mSlots[mCurrentSlot]; in process()
DMultiTouchInputMapper.h80 inline const Slot* getSlot(size_t index) const { return &mSlots[index]; } in getSlot()
84 Slot* mSlots; variable
/frameworks/rs/
DrsScript.cpp27 mSlots = nullptr; in Script()
35 if (mSlots) { in ~Script()
36 delete [] mSlots; in ~Script()
37 mSlots = nullptr; in ~Script()
54 mSlots[slot].set(a); in setSlot()
DrsScriptC.cpp119 if (mSlots[ct].get() && !mTypes[ct].get()) { in setupScript()
120 mTypes[ct].set(mSlots[ct]->getType()); in setupScript()
125 rsc->mHal.funcs.script.setGlobalBind(rsc, this, ct, mSlots[ct].get()); in setupScript()
433 mSlots = new ObjectBaseRef<Allocation>[mHal.info.exportedVariableCount]; in runCompiler()
DrsScriptIntrinsic.cpp37 mSlots = new ObjectBaseRef<Allocation>[2]; in init()
DrsScript.h157 ObjectBaseRef<Allocation> *mSlots; variable
/frameworks/native/services/surfaceflinger/
DBufferLayerConsumer.cpp146 if (rejecter && rejecter->reject(mSlots[slot].mGraphicBuffer, item)) { in updateTexImage()
147 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer); in updateTexImage()
244 slot, mSlots[slot].mGraphicBuffer->handle); in updateAndReleaseLocked()
/frameworks/native/libs/gui/include/gui/
DBufferQueueCore.h198 BufferQueueDefs::SlotsType mSlots; variable
DConsumerBase.h247 Slot mSlots[BufferQueueDefs::NUM_BUFFER_SLOTS]; variable
DBufferQueueProducer.h231 BufferQueueDefs::SlotsType& mSlots; variable
/frameworks/native/services/surfaceflinger/DisplayHardware/
DFramebufferSurface.cpp145 mCurrentBuffer = mSlots[mCurrentBufferSlot].mGraphicBuffer; in nextBuffer()
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.cpp319 item.mGraphicBuffer = mSlots[item.mSlot].mGraphicBuffer; in onFrameAvailable()

12