Home
last modified time | relevance | path

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

12

/frameworks/native/libs/gui/
DBufferQueueCore.cpp68 mSlots(), in BufferQueueCore()
144 const sp<GraphicBuffer>& buffer(mSlots[s].mGraphicBuffer); in dumpState()
148 (mSlots[s].mBufferState.isAcquired()) ? ">" : " ", s, in dumpState()
150 outResult->appendFormat("state=%-8s %p frame=%" PRIu64, mSlots[s].mBufferState.string(), in dumpState()
151 buffer->handle, mSlots[s].mFrameNumber); in dumpState()
157 mSlots[s].mBufferState.string(), mSlots[s].mFrameNumber); in dumpState()
161 const sp<GraphicBuffer>& buffer(mSlots[s].mGraphicBuffer); in dumpState()
163 outResult->appendFormat("state=%-8s %p frame=%" PRIu64, mSlots[s].mBufferState.string(), in dumpState()
164 buffer->handle, mSlots[s].mFrameNumber); in dumpState()
170 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()
211 outBuffer->mGraphicBuffer = mSlots[slot].mGraphicBuffer; in acquireBuffer()
222 outBuffer->mAcquireCalled = mSlots[slot].mAcquireCalled; in acquireBuffer()
242 mSlots[slot].mAcquireCalled = true; in acquireBuffer()
247 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.cpp560 sp<GraphicBuffer>& gbuf(mSlots[mSharedBufferSlot].buffer); in dequeueBuffer()
598 sp<GraphicBuffer>& gbuf(mSlots[buf].buffer); in dequeueBuffer()
684 if (mSlots[i].buffer != nullptr && in getSlotFromBufferLocked()
685 mSlots[i].buffer->handle == buffer->handle) { in getSlotFromBufferLocked()
1380 if (mSlots[i].buffer != nullptr && in detachNextBuffer()
1381 mSlots[i].buffer->getId() == buffer->getId()) { in detachNextBuffer()
1383 mRemovedBuffers.push_back(mSlots[i].buffer); in detachNextBuffer()
1385 mSlots[i].buffer = nullptr; in detachNextBuffer()
1412 if (mReportRemovedBuffers && (mSlots[attachedSlot].buffer != nullptr)) { in attachBuffer()
1413 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/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.cpp200 mImageSlots[slot].createIfNeeded(st.mSlots[slot].mGraphicBuffer, in dequeueImage()
219 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueImage()
242 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueImage()
249 st.mCurrentTexture, st.mSlots[st.mCurrentTexture].mGraphicBuffer, releaseFence); in dequeueImage()
252 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueImage()
260 st.mCurrentTexture, st.mSlots[st.mCurrentTexture].mGraphicBuffer, display, in dequeueImage()
282 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()
DSurfaceTexture.cpp279 : mSlots[mCurrentTexture].mGraphicBuffer; in computeCurrentTransformMatrixLocked()
/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.h200 BufferQueueDefs::SlotsType mSlots; variable
DBufferQueueProducer.h223 BufferQueueDefs::SlotsType& mSlots; variable
DSurface.h323 BufferSlot mSlots[NUM_BUFFER_SLOTS]; variable
/frameworks/native/services/surfaceflinger/DisplayHardware/
DFramebufferSurface.cpp136 mCurrentBuffer = mSlots[mCurrentBufferSlot].mGraphicBuffer; in nextBuffer()
DVirtualDisplaySurface.cpp488 mFbFence = mSlots[item.mSlot].mFence; in queueBuffer()
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.cpp319 item.mGraphicBuffer = mSlots[item.mSlot].mGraphicBuffer; in onFrameAvailable()

12