Home
last modified time | relevance | path

Searched refs:mSlot (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/av/media/libstagefright/filters/
DGraphicBufferListener.cpp105 item.mSlot = -1; in getBufferItem()
109 item.mSlot = -1; in getBufferItem()
123 ALOGV("setting mBufferSlot %d", item.mSlot); in getBufferItem()
124 mBufferSlot[item.mSlot] = item.mGraphicBuffer; in getBufferItem()
132 if (item.mSlot < 0 || item.mSlot >= BufferQueue::NUM_BUFFER_SLOTS) { in getBuffer()
133 ALOGE("getBuffer() received invalid BufferItem: mSlot==%d", item.mSlot); in getBuffer()
137 buf = mBufferSlot[item.mSlot]; in getBuffer()
144 if (item.mSlot < 0 || item.mSlot >= BufferQueue::NUM_BUFFER_SLOTS) { in releaseBuffer()
145 ALOGE("getBuffer() received invalid BufferItem: mSlot==%d", item.mSlot); in releaseBuffer()
149 mConsumer->releaseBuffer(item.mSlot, item.mFrameNumber, in releaseBuffer()
/frameworks/native/libs/gui/include/gui/
DCpuConsumer.h125 int mSlot; member
130 mSlot(BufferQueue::INVALID_BUFFER_SLOT), in AcquiredBuffer()
135 mSlot = BufferQueue::INVALID_BUFFER_SLOT; in reset()
DBufferItem.h98 int mSlot; variable
/frameworks/native/services/surfaceflinger/
DBufferLayerConsumer.cpp145 int slot = item.mSlot; in updateTexImage()
209 if (mImages[item->mSlot] == nullptr || mImages[item->mSlot]->getBuffer() == nullptr || in acquireBufferLocked()
210 mImages[item->mSlot]->getBuffer()->getId() != item->mGraphicBuffer->getId()) { in acquireBufferLocked()
211 mImages[item->mSlot] = std::make_shared< in acquireBufferLocked()
225 int slot = item.mSlot; in updateAndReleaseLocked()
461 if (item.mGraphicBuffer != nullptr && item.mSlot != BufferQueue::INVALID_BUFFER_SLOT) { in onBufferAvailable()
463 const std::shared_ptr<renderengine::ExternalTexture>& oldImage = mImages[item.mSlot]; in onBufferAvailable()
466 mImages[item.mSlot] = std::make_shared< in onBufferAvailable()
/frameworks/native/libs/gui/
DBufferItemConsumer.cpp83 item->mGraphicBuffer = mSlots[item->mSlot].mGraphicBuffer; in acquireBuffer()
94 err = addReleaseFenceLocked(item.mSlot, item.mGraphicBuffer, releaseFence); in releaseBuffer()
99 err = releaseBufferLocked(item.mSlot, item.mGraphicBuffer, EGL_NO_DISPLAY, in releaseBuffer()
DCpuConsumer.cpp177 b.mGraphicBuffer = mSlots[b.mSlot].mGraphicBuffer; in lockNextBuffer()
190 ab.mSlot = b.mSlot; in lockNextBuffer()
221 addReleaseFenceLocked(ab.mSlot, ab.mGraphicBuffer, fence); in unlockBuffer()
222 releaseBufferLocked(ab.mSlot, ab.mGraphicBuffer); in unlockBuffer()
DConsumerBase.cpp398 if (mSlots[item->mSlot].mGraphicBuffer != nullptr) { in acquireBufferLocked()
399 freeBufferLocked(item->mSlot); 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()
408 item->mSlot, item->mFrameNumber); in acquireBufferLocked()
DBufferQueueConsumer.cpp180 mSlots[front->mSlot].mBufferState.freeQueued(); in acquireBuffer()
186 mSlots[front->mSlot].mBufferState.isFree()) { in acquireBuffer()
187 mSlots[front->mSlot].mBufferState.mShared = false; in acquireBuffer()
191 if (!mSlots[front->mSlot].mBufferState.isShared()) { in acquireBuffer()
192 mCore->mActiveBuffers.erase(front->mSlot); in acquireBuffer()
193 mCore->mFreeBuffers.push_back(front->mSlot); in acquireBuffer()
250 outBuffer->mSlot = slot; in acquireBuffer()
264 slot = front->mSlot; in acquireBuffer()
584 mask &= ~(1ULL << current->mSlot); in getReleasedBuffers()
DBufferItem.cpp51 mSlot(INVALID_BUFFER_SLOT), in BufferItem()
81 addAligned(size, mSlot); in getPodSize()
175 writeAligned(buffer, size, mSlot); in flatten()
246 readAligned(buffer, size, mSlot); in unflatten()
/frameworks/native/libs/gui/tests/
DBufferQueue_test.cpp412 ASSERT_EQ(OK, mConsumer->detachBuffer(item.mSlot)); in TEST_F()
413 ASSERT_EQ(BAD_VALUE, mConsumer->detachBuffer(item.mSlot)); // Not acquired in TEST_F()
472 ASSERT_EQ(OK, mConsumer->detachBuffer(item.mSlot)); in TEST_F()
603 ASSERT_EQ(sharedSlot, item.mSlot); in TEST_F()
608 ASSERT_EQ(OK, mConsumer->releaseBuffer(item.mSlot, item.mFrameNumber, in TEST_F()
646 ASSERT_EQ(sharedSlot, item.mSlot); in TEST_F()
651 ASSERT_EQ(OK, mConsumer->releaseBuffer(item.mSlot, item.mFrameNumber, in TEST_F()
669 ASSERT_EQ(sharedSlot, item.mSlot); in TEST_F()
680 ASSERT_EQ(OK, mConsumer->releaseBuffer(item.mSlot, item.mFrameNumber, in TEST_F()
723 ASSERT_EQ(sharedSlot, item.mSlot); in TEST_F()
[all …]
DBufferItemConsumer_test.cpp107 ALOGV("acquireBuffer: slot=%d", buffer.mSlot); in AcquireBuffer()
108 *outSlot = buffer.mSlot; in AcquireBuffer()
114 buffer.mSlot = slot; in ReleaseBuffer()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarWifiView.java57 private String mSlot; field in StatusBarWifiView
83 mSlot = slot; in setSlot()
102 return mSlot; in getSlot()
164 mDotView = new StatusBarIconView(mContext, mSlot, null); in initDotView()
247 return "StatusBarWifiView(slot=" + mSlot + " state=" + mState + ")"; in toString()
DStatusBarMobileView.java56 private String mSlot; field in StatusBarMobileView
135 mDotView = new StatusBarIconView(mContext, mSlot, null); in initDotView()
243 return mSlot; in getSlot()
247 mSlot = slot; in setSlot()
325 return "StatusBarMobileView(slot=" + mSlot + " state=" + mState + ")"; in toString()
DStatusBarIconView.java139 @ViewDebug.ExportedProperty private String mSlot; field in StatusBarIconView
194 mSlot = slot; in StatusBarIconView()
395 Log.w(TAG, "OOM while inflating " + mIcon.icon + " for slot " + mSlot); in updateDrawable()
402 Log.w(TAG, "No icon for slot " + mSlot + "; " + mIcon.icon); in updateDrawable()
525 Log.d("View", debugIndent(depth) + "slot=" + mSlot); in debug()
574 + "slot='" + mSlot + "' alpha=" + getAlpha() + " icon=" + mIcon in toString()
585 return mSlot; in getSlot()
/frameworks/base/rs/java/android/renderscript/
DScript.java43 int mSlot; field in Script.KernelID
48 mSlot = slot; in KernelID()
84 int mSlot; field in Script.InvokeID
88 mSlot = slot; in InvokeID()
122 int mSlot; field in Script.FieldID
126 mSlot = slot; in FieldID()
/frameworks/rs/cpu_ref/
DrsCpuScriptGroup.cpp146 s->setVarObj(n->mInputs[ct2]->mDstField->mSlot, n->mInputs[ct2]->mAlloc.get()); in execute()
210 uint32_t slot = kernels[ct]->mSlot; in execute()
262 si->forEachKernelSetup(kernels[ct]->mSlot, &mtls); in execute()
266 si->preLaunch(kernels[ct]->mSlot, ains, inLen, outs[ct], in execute()
290 si->postLaunch(kernels[ct]->mSlot, ains, inLen, outs[ct], nullptr, 0, in execute()
DrsCpuScriptGroup2.cpp173 si->forEachKernelSetup(funcID->mSlot, &mtls); in CpuScriptGroup2Impl()
326 ss << index << "," << funcID->mSlot << "."; in generateSourceSlot()
601 int slot = p.first->mSlot; in setGlobalsForBatch()
639 cc->mSi->invokeFunction(invokeID->mSlot, c->mParams, c->mParamLength); in run()
673 cpuClosure->mSi->preLaunch(kernelID->mSlot, in run()
699 cpuClosure->mSi->postLaunch(kernelID->mSlot, in run()
/frameworks/rs/support/java/src/androidx/renderscript/
DScript.java73 int mSlot; field in Script.KernelID
78 mSlot = slot; in KernelID()
122 int mSlot; field in Script.InvokeID
126 mSlot = slot; in InvokeID()
161 int mSlot; field in Script.FieldID
165 mSlot = slot; in FieldID()
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.cpp232 err = addReleaseFenceLocked(item.mSlot, in releaseOldestBufferLocked()
247 err = releaseBufferLocked(item.mSlot, item.mGraphicBuffer, in releaseOldestBufferLocked()
319 item.mGraphicBuffer = mSlots[item.mSlot].mGraphicBuffer; in onFrameAvailable()
336 status_t res = addReleaseFenceLocked(item.mSlot, in unpinBuffer()
/frameworks/av/media/libstagefright/
DFrameCaptureLayer.cpp238 mSlotToBufferMap[bi->mSlot] = bi->mGraphicBuffer; in acquireBuffer()
240 bi->mGraphicBuffer = mSlotToBufferMap[bi->mSlot]; in acquireBuffer()
254 return mConsumer->releaseBuffer(bi.mSlot, bi.mFrameNumber, in releaseBuffer()
/frameworks/base/libs/hostgraphics/gui/
DBufferItem.h58 int mSlot; variable
/frameworks/rs/
DrsScript.h39 ObjectBase(rsc), mScript(s), mSlot(slot) {} in IDBase()
46 int mSlot; variable
/frameworks/base/libs/hostgraphics/
DHostBufferQueue.cpp47 buffer->mSlot = 0; in acquireBuffer()
/frameworks/av/media/libstagefright/bqhelper/
DGraphicBufferSource.cpp99 mSlot(slot), in CachedBuffer()
111 return mIsCached ? mSlot : -1; in getSlot()
155 slot_id mSlot; member
967 ssize_t bsi = mBufferSlots.indexOfKey(bi.mSlot); in acquireBuffer_l()
970 ALOGV("acquireBuffer_l: %s buffer slot %d", bsi < 0 ? "setting" : "UPDATING", bi.mSlot); in acquireBuffer_l()
974 bsi = mBufferSlots.add(bi.mSlot, nullptr); in acquireBuffer_l()
976 buffer = std::make_shared<CachedBuffer>(bi.mSlot, bi.mGraphicBuffer); in acquireBuffer_l()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DFramebufferSurface.cpp128 item.mSlot != mCurrentBufferSlot) { in nextBuffer()
133 mCurrentBufferSlot = item.mSlot; in nextBuffer()

12