Home
last modified time | relevance | path

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

12

/frameworks/native/libs/gui/
DBufferQueueCore.cpp69 mSlots(), in BufferQueueCore()
145 const sp<GraphicBuffer>& buffer(mSlots[s].mGraphicBuffer); in dumpState()
149 (mSlots[s].mBufferState.isAcquired()) ? ">" : " ", s, in dumpState()
151 outResult->appendFormat("state=%-8s %p frame=%" PRIu64, mSlots[s].mBufferState.string(), in dumpState()
152 buffer->handle, mSlots[s].mFrameNumber); in dumpState()
158 mSlots[s].mBufferState.string(), mSlots[s].mFrameNumber); in dumpState()
162 const sp<GraphicBuffer>& buffer(mSlots[s].mGraphicBuffer); in dumpState()
164 outResult->appendFormat("state=%-8s %p frame=%" PRIu64, mSlots[s].mBufferState.string(), in dumpState()
165 buffer->handle, mSlots[s].mFrameNumber); in dumpState()
171 const sp<GraphicBuffer>& buffer(mSlots[s].mGraphicBuffer); in dumpState()
[all …]
DBufferQueueConsumer.cpp49 mSlots(core->mSlots), in BufferQueueConsumer()
69 if (mSlots[s].mBufferState.isAcquired()) { in acquireBuffer()
153 mSlots[front->mSlot].mBufferState.freeQueued(); in acquireBuffer()
159 mSlots[front->mSlot].mBufferState.isFree()) { in acquireBuffer()
160 mSlots[front->mSlot].mBufferState.mShared = false; in acquireBuffer()
164 if (!mSlots[front->mSlot].mBufferState.isShared()) { in acquireBuffer()
213 outBuffer->mGraphicBuffer = mSlots[slot].mGraphicBuffer; in acquireBuffer()
224 outBuffer->mAcquireCalled = mSlots[slot].mAcquireCalled; in acquireBuffer()
244 mSlots[slot].mAcquireCalled = true; in acquireBuffer()
249 mSlots[slot].mBufferState.acquireNotInQueue(); in acquireBuffer()
[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()
356 if (mSlots[item->mSlot].mGraphicBuffer != nullptr) { in acquireBufferLocked()
359 mSlots[item->mSlot].mGraphicBuffer = item->mGraphicBuffer; in acquireBufferLocked()
362 mSlots[item->mSlot].mFrameNumber = item->mFrameNumber; in acquireBufferLocked()
363 mSlots[item->mSlot].mFence = item->mFence; in acquireBufferLocked()
387 if (!mSlots[slot].mFence.get()) { in addReleaseFenceLocked()
388 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
395 auto currentStatus = mSlots[slot].mFence->getStatus(); in addReleaseFenceLocked()
[all …]
DBufferQueueProducer.cpp52 mSlots(core->mSlots), in BufferQueueProducer()
86 } else if (!mSlots[slot].mBufferState.isDequeued()) { in requestBuffer()
88 "(state = %s)", slot, mSlots[slot].mBufferState.string()); in requestBuffer()
92 mSlots[slot].mRequestBufferCalled = true; in requestBuffer()
93 *buf = mSlots[slot].mGraphicBuffer; in requestBuffer()
122 if (mSlots[s].mBufferState.isDequeued()) { in setMaxDequeuedBufferCount()
264 if (mSlots[s].mBufferState.isDequeued()) { in waitForFreeSlotThenRelock()
267 if (mSlots[s].mBufferState.isAcquired()) { in waitForFreeSlotThenRelock()
426 const sp<GraphicBuffer>& buffer(mSlots[found].mGraphicBuffer); in dequeueBuffer()
446 const sp<GraphicBuffer>& buffer(mSlots[found].mGraphicBuffer); in dequeueBuffer()
[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.cpp561 sp<GraphicBuffer>& gbuf(mSlots[mSharedBufferSlot].buffer); in dequeueBuffer()
599 sp<GraphicBuffer>& gbuf(mSlots[buf].buffer); in dequeueBuffer()
685 if (mSlots[i].buffer != nullptr && in getSlotFromBufferLocked()
686 mSlots[i].buffer->handle == buffer->handle) { in getSlotFromBufferLocked()
1389 if (mSlots[i].buffer != nullptr && in detachNextBuffer()
1390 mSlots[i].buffer->getId() == buffer->getId()) { in detachNextBuffer()
1392 mRemovedBuffers.push_back(mSlots[i].buffer); in detachNextBuffer()
1394 mSlots[i].buffer = nullptr; in detachNextBuffer()
1421 if (mReportRemovedBuffers && (mSlots[attachedSlot].buffer != nullptr)) { in attachBuffer()
1422 mRemovedBuffers.push_back(mSlots[attachedSlot].buffer); in attachBuffer()
[all …]
DGLConsumer.cpp263 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in releaseTexImage()
367 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, in updateAndReleaseLocked()
375 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, in updateAndReleaseLocked()
389 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, in updateAndReleaseLocked()
402 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, in updateAndReleaseLocked()
411 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/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/base/libs/hwui/surfacetexture/
DImageConsumer.cpp212 mImageSlots[slot].createIfNeeded(st.mSlots[slot].mGraphicBuffer, in dequeueImage()
231 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueImage()
254 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueImage()
261 st.mCurrentTexture, st.mSlots[st.mCurrentTexture].mGraphicBuffer, releaseFence); in dequeueImage()
264 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueImage()
272 st.mCurrentTexture, st.mSlots[st.mCurrentTexture].mGraphicBuffer, display, in dequeueImage()
294 mImageSlots[slot].createIfNeeded(st.mSlots[slot].mGraphicBuffer, item.mDataSpace, true, in dequeueImage()
DEGLConsumer.cpp152 err = st.releaseBufferLocked(buf, st.mSlots[buf].mGraphicBuffer, mEglDisplay, in releaseTexImage()
218 mEglSlots[slot].mEglImage = new EglImage(st.mSlots[slot].mGraphicBuffer); in onAcquireBufferLocked()
236 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
243 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
256 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
268 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, mEglDisplay, in updateAndReleaseLocked()
277 slot, st.mSlots[slot].mGraphicBuffer->handle); in updateAndReleaseLocked()
434 mEglSlots[slot].mEglImage = new EglImage(st.mSlots[slot].mGraphicBuffer); in attachToContext()
/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()
79 if (mSlots) { in clearSlots()
81 mSlots[i].clear(); in clearSlots()
108 Slot* slot = &mSlots[mCurrentSlot]; in process()
DMultiTouchInputMapper.h80 inline const Slot* getSlot(size_t index) const { return &mSlots[index]; } in getSlot()
85 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.cpp142 if (rejecter && rejecter->reject(mSlots[slot].mGraphicBuffer, item)) { in updateTexImage()
143 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer); in updateTexImage()
240 slot, mSlots[slot].mGraphicBuffer->handle); in updateAndReleaseLocked()
/frameworks/native/libs/gui/include/gui/
DConsumerBase.h241 Slot mSlots[BufferQueueDefs::NUM_BUFFER_SLOTS]; variable
DBufferQueueCore.h204 BufferQueueDefs::SlotsType mSlots; variable
DBufferQueueProducer.h223 BufferQueueDefs::SlotsType& mSlots; variable
DSurface.h364 BufferSlot mSlots[NUM_BUFFER_SLOTS]; variable
/frameworks/native/services/surfaceflinger/DisplayHardware/
DFramebufferSurface.cpp136 mCurrentBuffer = mSlots[mCurrentBufferSlot].mGraphicBuffer; in nextBuffer()
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.cpp319 item.mGraphicBuffer = mSlots[item.mSlot].mGraphicBuffer; in onFrameAvailable()

12