Home
last modified time | relevance | path

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

12

/frameworks/native/libs/gui/
DBufferQueueProducer.cpp39 mSlots(core->mSlots), in BufferQueueProducer()
59 } else if (mSlots[slot].mBufferState != BufferSlot::DEQUEUED) { in requestBuffer()
61 "(state = %d)", slot, mSlots[slot].mBufferState); in requestBuffer()
65 mSlots[slot].mRequestBufferCalled = true; in requestBuffer()
66 *buf = mSlots[slot].mGraphicBuffer; in requestBuffer()
92 if (mSlots[s].mBufferState == BufferSlot::DEQUEUED) { in setBufferCount()
152 assert(mSlots[s].mBufferState == BufferSlot::FREE); in waitForFreeSlotThenRelock()
153 if (mSlots[s].mGraphicBuffer != NULL) { in waitForFreeSlotThenRelock()
164 switch (mSlots[s].mBufferState) { in waitForFreeSlotThenRelock()
176 mSlots[s].mFrameNumber < mSlots[*found].mFrameNumber) { in waitForFreeSlotThenRelock()
[all …]
DBufferQueueConsumer.cpp33 mSlots(core->mSlots), in BufferQueueConsumer()
49 if (mSlots[s].mBufferState == BufferSlot::ACQUIRED) { in acquireBuffer()
122 mSlots[front->mSlot].mBufferState = BufferSlot::FREE; in acquireBuffer()
154 mSlots[slot].mAcquireCalled = true; in acquireBuffer()
155 mSlots[slot].mNeedsCleanupOnRelease = false; in acquireBuffer()
156 mSlots[slot].mBufferState = BufferSlot::ACQUIRED; in acquireBuffer()
157 mSlots[slot].mFence = Fence::NO_FENCE; in acquireBuffer()
194 } else if (mSlots[slot].mBufferState != BufferSlot::ACQUIRED) { in detachBuffer()
196 "(state = %d)", slot, mSlots[slot].mBufferState); in detachBuffer()
225 if (mSlots[s].mBufferState == BufferSlot::ACQUIRED) { in attachBuffer()
[all …]
DConsumerBase.cpp96 mSlots[slotIndex].mGraphicBuffer = 0; in freeBufferLocked()
97 mSlots[slotIndex].mFence = Fence::NO_FENCE; in freeBufferLocked()
98 mSlots[slotIndex].mFrameNumber = 0; in freeBufferLocked()
190 mSlots[item->mBuf].mGraphicBuffer = item->mGraphicBuffer; in acquireBufferLocked()
193 mSlots[item->mBuf].mFrameNumber = item->mFrameNumber; in acquireBufferLocked()
194 mSlots[item->mBuf].mFence = item->mFence; in acquireBufferLocked()
218 if (!mSlots[slot].mFence.get()) { in addReleaseFenceLocked()
219 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
223 mSlots[slot].mFence, fence); in addReleaseFenceLocked()
228 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
[all …]
DBufferQueueCore.cpp54 mSlots(), in BufferQueueCore()
107 const BufferSlot& slot(mSlots[s]); in dump()
116 const BufferSlot& slot(mSlots[s]); in dump()
165 BufferSlot::BufferState state = mSlots[s].mBufferState; in getMaxBufferCountLocked()
192 mSlots[slot].mGraphicBuffer.clear(); in freeBufferLocked()
193 if (mSlots[slot].mBufferState == BufferSlot::ACQUIRED) { in freeBufferLocked()
194 mSlots[slot].mNeedsCleanupOnRelease = true; in freeBufferLocked()
196 mSlots[slot].mBufferState = BufferSlot::FREE; in freeBufferLocked()
197 mSlots[slot].mFrameNumber = UINT32_MAX; in freeBufferLocked()
198 mSlots[slot].mAcquireCalled = false; in freeBufferLocked()
[all …]
DCpuConsumer.cpp100 if (mSlots[buf].mGraphicBuffer->getPixelFormat() == in lockNextBuffer()
102 err = mSlots[buf].mGraphicBuffer->lockAsyncYCbCr( in lockNextBuffer()
115 err = mSlots[buf].mGraphicBuffer->lockAsync( in lockNextBuffer()
128 if (mSlots[buf].mGraphicBuffer->getPixelFormat() == in lockNextBuffer()
130 err = mSlots[buf].mGraphicBuffer->lockYCbCr( in lockNextBuffer()
142 err = mSlots[buf].mGraphicBuffer->lock( in lockNextBuffer()
167 ab.mGraphicBuffer = mSlots[buf].mGraphicBuffer; in lockNextBuffer()
171 nativeBuffer->width = mSlots[buf].mGraphicBuffer->getWidth(); in lockNextBuffer()
172 nativeBuffer->height = mSlots[buf].mGraphicBuffer->getHeight(); in lockNextBuffer()
173 nativeBuffer->format = mSlots[buf].mGraphicBuffer->getPixelFormat(); in lockNextBuffer()
[all …]
DSurface.cpp227 sp<GraphicBuffer>& gbuf(mSlots[buf].buffer); in dequeueBuffer()
279 if (mSlots[i].buffer != NULL && in getSlotFromBufferLocked()
280 mSlots[i].buffer->handle == buffer->handle) { in getSlotFromBufferLocked()
736 mSlots[i].buffer = 0; in freeAllBuffers()
848 mSlots[i].dirtyRegion.clear(); in lock()
857 Region& dirtyRegion(mSlots[backBufferSlot].dirtyRegion); in lock()
DGLConsumer.cpp275 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in releaseTexImage()
374 releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, in updateAndReleaseLocked()
382 releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, in updateAndReleaseLocked()
396 releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, in updateAndReleaseLocked()
408 releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, in updateAndReleaseLocked()
416 buf, mSlots[buf].mGraphicBuffer->handle); in updateAndReleaseLocked()
DBufferItemConsumer.cpp81 item->mGraphicBuffer = mSlots[item->mBuf].mGraphicBuffer; in acquireBuffer()
/frameworks/base/core/java/com/android/internal/statusbar/
DStatusBarIconList.java25 private String[] mSlots; field in StatusBarIconList
36 this.mSlots = in.readStringArray(); in readFromParcel()
51 out.writeStringArray(mSlots); in writeToParcel()
92 String[] s = mSlots = new String[N]; in defineSlots()
100 final int N = mSlots.length; in getSlotIndex()
102 if (slot.equals(mSlots[i])) { in getSlotIndex()
110 return mSlots.length; in size()
122 return mSlots[index]; in getSlot()
140 if (that.mSlots == null) { in copyFrom()
141 this.mSlots = null; in copyFrom()
[all …]
/frameworks/rs/
DrsGrallocConsumer.cpp93 if (mSlots[buf].mGraphicBuffer->getPixelFormat() == in lockNextBuffer()
95 err = mSlots[buf].mGraphicBuffer->lockYCbCr( in lockNextBuffer()
107 err = mSlots[buf].mGraphicBuffer->lock( in lockNextBuffer()
124 mAcquiredBuffer.mGraphicBuffer = mSlots[buf].mGraphicBuffer; in lockNextBuffer()
127 mAlloc->mHal.drvState.lod[0].stride = mSlots[buf].mGraphicBuffer->getStride() * in lockNextBuffer()
133 mSlots[buf].mGraphicBuffer->getWidth()); in lockNextBuffer()
135 mSlots[buf].mGraphicBuffer->getHeight()); in lockNextBuffer()
178 mSlots[buf].mGraphicBuffer)) { in releaseAcquiredBufferLocked()
DrsScript.cpp27 mSlots = NULL; in Script()
34 if (mSlots) { in ~Script()
35 delete [] mSlots; in ~Script()
36 mSlots = NULL; in ~Script()
51 mSlots[slot].set(a); in setSlot()
DrsScriptC.cpp105 if (mSlots[ct].get() && !mTypes[ct].get()) { in setupScript()
106 mTypes[ct].set(mSlots[ct]->getType()); in setupScript()
111 rsc->mHal.funcs.script.setGlobalBind(rsc, this, ct, mSlots[ct].get()); in setupScript()
365 mSlots = new ObjectBaseRef<Allocation>[mHal.info.exportedVariableCount]; in runCompiler()
DrsScriptIntrinsic.cpp37 mSlots = new ObjectBaseRef<Allocation>[2]; in init()
DrsScript.h140 ObjectBaseRef<Allocation> *mSlots; variable
/frameworks/base/rs/java/android/renderscript/
DProgramFragmentFixedFunction.java159 Slot[] mSlots; field in ProgramFragmentFixedFunction.Builder
182 switch(mSlots[i].env) { in buildShaderString()
184 switch (mSlots[i].format) { in buildShaderString()
200 switch (mSlots[i].format) { in buildShaderString()
233 mSlots = new Slot[MAX_TEXTURE]; in Builder()
256 mSlots[slot] = new Slot(env, fmt); in setTexture()
295 if(mSlots[i] != null) { in create()
/frameworks/av/media/libstagefright/
DSurfaceMediaSource.cpp310 mSlots[item.mBuf].mGraphicBuffer = item.mGraphicBuffer; in read()
312 mSlots[item.mBuf].mFrameNumber = item.mFrameNumber; in read()
352 mSlots[item.mBuf].mGraphicBuffer = item.mGraphicBuffer; in read()
354 mSlots[item.mBuf].mFrameNumber = item.mFrameNumber; in read()
356 mCurrentBuffers.push_back(mSlots[mCurrentSlot].mGraphicBuffer); in read()
363 passMetadataBuffer(buffer, mSlots[mCurrentSlot].mGraphicBuffer->handle); in read()
413 if (mSlots[id].mGraphicBuffer == NULL) { in signalBufferReturned()
417 if (bufferHandle == mSlots[id].mGraphicBuffer->handle) { in signalBufferReturned()
419 mSlots[id].mGraphicBuffer->handle); in signalBufferReturned()
421 mConsumer->releaseBuffer(id, mSlots[id].mFrameNumber, in signalBufferReturned()
[all …]
/frameworks/native/services/surfaceflinger/
DSurfaceFlingerConsumer.cpp73 if (rejecter && rejecter->reject(mSlots[buf].mGraphicBuffer, item)) { in updateTexImage()
74 releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, EGL_NO_SYNC_KHR); in updateTexImage()
/frameworks/native/include/gui/
DConsumerBase.h207 Slot mSlots[BufferQueue::NUM_BUFFER_SLOTS]; variable
DBufferQueueProducer.h191 BufferQueueDefs::SlotsType& mSlots; variable
DBufferQueueConsumer.h171 BufferQueueDefs::SlotsType& mSlots; variable
DBufferQueueCore.h175 BufferQueueDefs::SlotsType mSlots; variable
DSurface.h202 BufferSlot mSlots[NUM_BUFFER_SLOTS]; variable
/frameworks/av/include/media/stagefright/
DSurfaceMediaSource.h160 SlotData mSlots[BufferQueue::NUM_BUFFER_SLOTS]; variable
/frameworks/native/services/surfaceflinger/DisplayHardware/
DFramebufferSurface.cpp118 mCurrentBuffer = mSlots[mCurrentBufferSlot].mGraphicBuffer; in nextBuffer()
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.cpp321 item.mGraphicBuffer = mSlots[item.mBuf].mGraphicBuffer; in onFrameAvailable()

12