Home
last modified time | relevance | path

Searched refs:slot (Results 1 – 25 of 193) sorted by relevance

12345678

/frameworks/native/libs/gui/
DBufferQueueCore.cpp196 void BufferQueueCore::clearBufferSlotLocked(int slot) { in clearBufferSlotLocked() argument
197 BQ_LOGV("clearBufferSlotLocked: slot %d", slot); in clearBufferSlotLocked()
199 mSlots[slot].mGraphicBuffer.clear(); in clearBufferSlotLocked()
200 mSlots[slot].mBufferState.reset(); in clearBufferSlotLocked()
201 mSlots[slot].mRequestBufferCalled = false; in clearBufferSlotLocked()
202 mSlots[slot].mFrameNumber = 0; in clearBufferSlotLocked()
203 mSlots[slot].mAcquireCalled = false; in clearBufferSlotLocked()
204 mSlots[slot].mNeedsReallocation = true; in clearBufferSlotLocked()
207 if (mSlots[slot].mEglFence != EGL_NO_SYNC_KHR) { in clearBufferSlotLocked()
208 eglDestroySyncKHR(mSlots[slot].mEglDisplay, mSlots[slot].mEglFence); in clearBufferSlotLocked()
[all …]
DConsumerBase.cpp192 status_t ConsumerBase::detachBuffer(int slot) { in detachBuffer() argument
201 status_t result = mConsumer->detachBuffer(slot); in detachBuffer()
207 freeBufferLocked(slot); in detachBuffer()
317 status_t ConsumerBase::addReleaseFence(int slot, in addReleaseFence() argument
320 return addReleaseFenceLocked(slot, graphicBuffer, fence); in addReleaseFence()
323 status_t ConsumerBase::addReleaseFenceLocked(int slot, in addReleaseFenceLocked() argument
325 CB_LOGV("addReleaseFenceLocked: slot=%d", slot); in addReleaseFenceLocked()
329 if (!stillTracking(slot, graphicBuffer)) { in addReleaseFenceLocked()
333 if (!mSlots[slot].mFence.get()) { in addReleaseFenceLocked()
334 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
[all …]
DBufferQueueConsumer.cpp196 int slot = BufferQueueCore::INVALID_BUFFER_SLOT; in acquireBuffer() local
202 slot = mCore->mSharedBufferSlot; in acquireBuffer()
206 outBuffer->mGraphicBuffer = mSlots[slot].mGraphicBuffer; in acquireBuffer()
216 outBuffer->mSlot = slot; in acquireBuffer()
217 outBuffer->mAcquireCalled = mSlots[slot].mAcquireCalled; in acquireBuffer()
227 slot = front->mSlot; in acquireBuffer()
231 ATRACE_BUFFER_INDEX(slot); in acquireBuffer()
234 slot, outBuffer->mFrameNumber, outBuffer->mGraphicBuffer->handle); in acquireBuffer()
237 mSlots[slot].mAcquireCalled = true; in acquireBuffer()
242 mSlots[slot].mBufferState.acquireNotInQueue(); in acquireBuffer()
[all …]
DBufferQueueProducer.cpp63 status_t BufferQueueProducer::requestBuffer(int slot, sp<GraphicBuffer>* buf) { in requestBuffer() argument
65 BQ_LOGV("requestBuffer: slot %d", slot); in requestBuffer()
78 if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) { in requestBuffer()
80 slot, BufferQueueDefs::NUM_BUFFER_SLOTS); in requestBuffer()
82 } else if (!mSlots[slot].mBufferState.isDequeued()) { in requestBuffer()
84 "(state = %s)", slot, mSlots[slot].mBufferState.string()); in requestBuffer()
88 mSlots[slot].mRequestBufferCalled = true; in requestBuffer()
89 *buf = mSlots[slot].mGraphicBuffer; in requestBuffer()
232 int slot = mCore->mFreeBuffers.front(); in getFreeBufferLocked() local
234 return slot; in getFreeBufferLocked()
[all …]
/frameworks/native/libs/gui/tests/
DBufferItemConsumer_test.cpp77 int slot; in DequeueBuffer() local
79 status_t ret = mProducer->dequeueBuffer(&slot, &outFence, kWidth, in DequeueBuffer()
83 ALOGV("dequeueBuffer: slot=%d", slot); in DequeueBuffer()
85 ret = mProducer->requestBuffer(slot, &mBuffers[slot]); in DequeueBuffer()
88 *outSlot = slot; in DequeueBuffer()
91 void QueueBuffer(int slot) { in QueueBuffer() argument
92 ALOGV("enqueueBuffer: slot=%d", slot); in QueueBuffer()
97 status_t ret = mProducer->queueBuffer(slot, bufferInput, &bufferOutput); in QueueBuffer()
111 void ReleaseBuffer(int slot) { in ReleaseBuffer() argument
112 ALOGV("releaseBuffer: slot=%d", slot); in ReleaseBuffer()
[all …]
DBufferQueue_test.cpp141 int slot; in TEST_F() local
145 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, in TEST_F()
147 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
158 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
179 int slot; in TEST_F() local
189 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, in TEST_F()
191 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); in TEST_F()
192 ASSERT_EQ(OK, mProducer->queueBuffer(slot, qbi, &qbo)); in TEST_F()
197 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, in TEST_F()
199 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); in TEST_F()
[all …]
/frameworks/rs/
DrsScript.cpp45 void Script::setSlot(uint32_t slot, Allocation *a) { in setSlot() argument
47 if (slot >= mHal.info.exportedVariableCount) { in setSlot()
54 mSlots[slot].set(a); in setSlot()
56 mRSC->mHal.funcs.script.setGlobalBind(mRSC, this, slot, a); in setSlot()
59 void Script::setVar(uint32_t slot, const void *val, size_t len) { in setVar() argument
61 if (slot >= mHal.info.exportedVariableCount) { in setVar()
67 mRSC->mHal.funcs.script.setGlobalVar(mRSC, this, slot, (void *)val, len); in setVar()
70 void Script::getVar(uint32_t slot, const void *val, size_t len) { in getVar() argument
72 if (slot >= mHal.info.exportedVariableCount) { in getVar()
74 "%u >= %zu", slot, mHal.info.exportedVariableCount); in getVar()
[all …]
DrsProgram.cpp152 void Program::bindAllocation(Context *rsc, Allocation *alloc, uint32_t slot) { in bindAllocation() argument
154 if (slot >= mHal.state.constantsCount) { in bindAllocation()
156 slot, (uintptr_t)this, mHal.state.constantsCount); in bindAllocation()
160 if (alloc->getType() != mConstantTypes[slot].get()) { in bindAllocation()
162 slot, (uintptr_t)this); in bindAllocation()
167 if (mConstants[slot].get() == alloc) { in bindAllocation()
170 if (mConstants[slot].get()) { in bindAllocation()
171 mConstants[slot]->removeProgramToDirty(this); in bindAllocation()
173 mConstants[slot].set(alloc); in bindAllocation()
174 mHal.state.constants[slot] = alloc; in bindAllocation()
[all …]
DrsScript.h38 IDBase(Context *rsc, Script *s, int slot) : in IDBase() argument
39 ObjectBase(rsc), mScript(s), mSlot(slot) {} in IDBase()
51 ScriptKernelID(Context *rsc, Script *s, int slot, int sig);
62 ScriptInvokeID(Context *rsc, Script *s, int slot);
70 ScriptFieldID(Context *rsc, Script *s, int slot);
117 void setSlot(uint32_t slot, Allocation *a);
118 void setVar(uint32_t slot, const void *val, size_t len);
119 void getVar(uint32_t slot, const void *val, size_t len);
120 void setVar(uint32_t slot, const void *val, size_t len, Element *e,
122 void setVarObj(uint32_t slot, ObjectBase *val);
[all …]
/frameworks/native/libs/vr/libbufferhubqueue/
Dbuffer_hub_queue_producer.cpp32 status_t BufferHubQueueProducer::requestBuffer(int slot, in requestBuffer() argument
34 ALOGD_IF(TRACE, "requestBuffer: slot=%d", slot); in requestBuffer()
43 if (slot < 0 || slot >= max_buffer_count_) { in requestBuffer()
44 ALOGE("requestBuffer: slot index %d out of range [0, %d)", slot, in requestBuffer()
47 } else if (!buffers_[slot].mBufferState.isDequeued()) { in requestBuffer()
49 slot, buffers_[slot].mBufferState.string()); in requestBuffer()
51 } else if (buffers_[slot].mGraphicBuffer != nullptr) { in requestBuffer()
52 ALOGE("requestBuffer: slot %d is not empty.", slot); in requestBuffer()
54 } else if (buffers_[slot].mBufferProducer == nullptr) { in requestBuffer()
55 ALOGE("requestBuffer: slot %d is not dequeued.", slot); in requestBuffer()
[all …]
Dbuffer_hub_queue_client.cpp175 void BufferHubQueue::HandleBufferEvent(size_t slot, int poll_events) { in HandleBufferEvent() argument
176 auto buffer = buffers_[slot]; in HandleBufferEvent()
178 ALOGW("BufferHubQueue::HandleBufferEvent: Invalid buffer slot: %zu", slot); in HandleBufferEvent()
191 const int ret = OnBufferReady(buffer, &fences_[slot]); in HandleBufferEvent()
201 Enqueue(buffer, slot); in HandleBufferEvent()
216 slot, buffer->event_fd(), int{epollhup_pending_[slot]}); in HandleBufferEvent()
217 if (epollhup_pending_[slot]) { in HandleBufferEvent()
218 epollhup_pending_[slot] = false; in HandleBufferEvent()
220 DetachBuffer(slot); in HandleBufferEvent()
226 slot, events); in HandleBufferEvent()
[all …]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_imdct_synth.cpp319 for (int32 slot = 1; slot < FILTERBANK_BANDS; slot += 6) in pvmp3_imdct_synth() local
321 int32 temp1 = out[slot ]; in pvmp3_imdct_synth()
322 int32 temp2 = out[slot+2]; in pvmp3_imdct_synth()
323 int32 temp3 = out[slot+4]; in pvmp3_imdct_synth()
324 out[slot ] = -temp1; in pvmp3_imdct_synth()
325 out[slot+2] = -temp2; in pvmp3_imdct_synth()
326 out[slot+4] = -temp3; in pvmp3_imdct_synth()
336 int32 slot; in pvmp3_imdct_synth() local
340 for (slot = 0; slot < FILTERBANK_BANDS; slot += 6) in pvmp3_imdct_synth()
342 int32 temp1 = history[slot ]; in pvmp3_imdct_synth()
[all …]
/frameworks/base/rs/java/android/renderscript/
DProgram.java98 public Type getConstant(int slot) { in getConstant() argument
99 if (slot < 0 || slot >= mConstants.length) { in getConstant()
102 return mConstants[slot]; in getConstant()
118 public TextureType getTextureType(int slot) { in getTextureType() argument
119 if ((slot < 0) || (slot >= mTextureCount)) { in getTextureType()
122 return mTextures[slot]; in getTextureType()
131 public String getTextureName(int slot) { in getTextureName() argument
132 if ((slot < 0) || (slot >= mTextureCount)) { in getTextureName()
135 return mTextureNames[slot]; in getTextureName()
146 public void bindConstants(Allocation a, int slot) { in bindConstants() argument
[all …]
DScript.java39 KernelID(long id, RenderScript rs, Script s, int slot, int sig) { in KernelID() argument
42 mSlot = slot; in KernelID()
52 protected KernelID createKernelID(int slot, int sig, Element ein, in createKernelID() argument
54 KernelID k = mKIDs.get(slot); in createKernelID()
59 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig); in createKernelID()
64 k = new KernelID(id, mRS, this, slot, sig); in createKernelID()
65 mKIDs.put(slot, k); in createKernelID()
80 InvokeID(long id, RenderScript rs, Script s, int slot) { in InvokeID() argument
83 mSlot = slot; in InvokeID()
91 protected InvokeID createInvokeID(int slot) { in createInvokeID() argument
[all …]
/frameworks/native/libs/vr/libbufferhubqueue/tests/
Dbuffer_hub_queue_producer-test.cpp233 int slot = -1; in TEST_F() local
236 ASSERT_NO_FATAL_FAILURE(DequeueBuffer(&slot)); in TEST_F()
240 ASSERT_EQ(NO_ERROR, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
247 ASSERT_EQ(NO_ERROR, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
261 EXPECT_EQ(BAD_VALUE, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
291 int slot = -1; in TEST_F() local
294 ASSERT_NO_FATAL_FAILURE(DequeueBuffer(&slot)); in TEST_F()
299 EXPECT_EQ(BAD_VALUE, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
304 int slot = -1; in TEST_F() local
307 ASSERT_NO_FATAL_FAILURE(DequeueBuffer(&slot)); in TEST_F()
[all …]
Dbuffer_hub_queue-test.cpp56 size_t slot; in AllocateBuffer() local
59 kBufferUsage, &slot); in AllocateBuffer()
78 size_t slot; in TEST_F() local
80 auto p1_status = producer_queue_->Dequeue(0, &slot, &fence); in TEST_F()
87 auto c1_status = consumer_queue_->Dequeue(100, &slot, &mo, &fence); in TEST_F()
98 size_t slot; in TEST_F() local
117 auto status = consumer_queue_->Dequeue(0, &slot, &seq, &fence); in TEST_F()
126 auto consumer_status = consumer_queue_->Dequeue(0, &slot, &seq, &fence); in TEST_F()
132 auto producer_status = producer_queue_->Dequeue(0, &slot, &fence); in TEST_F()
142 consumer_status = consumer_queue_->Dequeue(0, &slot, &seq_out, &fence); in TEST_F()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DKeepaliveTracker.java139 void notifyMessenger(int slot, int err) { in notifyMessenger() argument
140 KeepaliveTracker.this.notifyMessenger(mMessenger, slot, err); in notifyMessenger()
187 void start(int slot) { in start() argument
190 mSlot = slot; in start()
192 mNai.asyncChannel.sendMessage(CMD_START_PACKET_KEEPALIVE, slot, mInterval, mPacket); in start()
217 void notifyMessenger(Messenger messenger, int slot, int err) { in notifyMessenger() argument
220 message.arg1 = slot; in notifyMessenger()
239 int slot; in findFirstFreeSlot() local
240 for (slot = 1; slot <= networkKeepalives.size(); slot++) { in findFirstFreeSlot()
241 if (networkKeepalives.get(slot) == null) { in findFirstFreeSlot()
[all …]
/frameworks/rs/support/java/src/android/support/v8/renderscript/
DScript.java70 KernelID(long id, RenderScript rs, Script s, int slot, int sig) { in KernelID() argument
73 mSlot = slot; in KernelID()
90 protected KernelID createKernelID(int slot, int sig, Element ein, Element eout) { in createKernelID() argument
91 KernelID k = mKIDs.get(slot); in createKernelID()
96 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig, mUseIncSupp); in createKernelID()
101 k = new KernelID(id, mRS, this, slot, sig); in createKernelID()
103 mKIDs.put(slot, k); in createKernelID()
118 InvokeID(long id, RenderScript rs, Script s, int slot) { in InvokeID() argument
121 mSlot = slot; in InvokeID()
129 protected InvokeID createInvokeID(int slot) { in createInvokeID() argument
[all …]
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposerBufferCache.cpp28 void HWComposerBufferCache::getHwcBuffer(int slot, in getHwcBuffer() argument
32 if (slot == BufferQueue::INVALID_BUFFER_SLOT || slot < 0) { in getHwcBuffer()
34 slot = 0; in getHwcBuffer()
37 if (static_cast<size_t>(slot) >= mBuffers.size()) { in getHwcBuffer()
38 mBuffers.resize(slot + 1); in getHwcBuffer()
41 *outSlot = slot; in getHwcBuffer()
43 if (mBuffers[slot] == buffer) { in getHwcBuffer()
50 mBuffers[slot] = buffer; in getHwcBuffer()
/frameworks/rs/rsov/compiler/
DContext.cpp49 for (size_t slot = 0; slot < varCount; slot++) { in Initialize() local
50 std::string varName(varNames[slot]); in Initialize()
51 mVarNameToSlot.insert(std::make_pair(varName, (uint32_t)slot)); in Initialize()
56 for (size_t slot = 0; slot < kernelCount; slot++) { in Initialize() local
57 mForEachNameToSlot.insert(std::make_pair(kernelNames[slot], slot)); in Initialize()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsic.cpp34 void RsdCpuScriptIntrinsic::invokeFunction(uint32_t slot, const void *params, size_t paramLength) { in invokeFunction() argument
50 void RsdCpuScriptIntrinsic::setGlobalVar(uint32_t slot, const void *data, size_t dataLength) { in setGlobalVar() argument
55 void RsdCpuScriptIntrinsic::setGlobalVarWithElemDims(uint32_t slot, const void *data, in setGlobalVarWithElemDims() argument
62 void RsdCpuScriptIntrinsic::setGlobalBind(uint32_t slot, Allocation *data) { in setGlobalBind() argument
67 void RsdCpuScriptIntrinsic::setGlobalObj(uint32_t slot, ObjectBase *data) { in setGlobalObj() argument
76 void RsdCpuScriptIntrinsic::preLaunch(uint32_t slot, const Allocation ** ains, in preLaunch() argument
82 void RsdCpuScriptIntrinsic::postLaunch(uint32_t slot, const Allocation ** ains, in postLaunch() argument
88 void RsdCpuScriptIntrinsic::invokeForEach(uint32_t slot, in invokeForEach() argument
98 preLaunch(slot, ains, inLen, aout, usr, usrLen, sc); in invokeForEach()
102 mtls.fep.slot = slot; in invokeForEach()
[all …]
DrsCpuExecutable.h151 void* getFieldAddress(int slot) const { return mFieldAddress[slot]; } in getFieldAddress() argument
153 bool getFieldIsObject(int slot) const { return mFieldIsObject[slot]; } in getFieldIsObject() argument
154 const char* getFieldName(int slot) const { return mFieldName[slot]; } in getFieldName() argument
156 InvokeFunc_t getInvokeFunction(int slot) const { return mInvokeFunctions[slot]; } in getInvokeFunction() argument
158 ForEachFunc_t getForEachFunction(int slot) const { return mForEachFunctions[slot]; } in getForEachFunction() argument
159 uint32_t getForEachSignature(int slot) const { return mForEachSignatures[slot]; } in getForEachSignature() argument
161 const ReduceDescription* getReduceDescription(int slot) const { in getReduceDescription() argument
162 return &mReduceDescriptions[slot]; in getReduceDescription()
/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/
Dbuffer_hub_queue_client.h67 std::shared_ptr<BufferHubBuffer> GetBuffer(size_t slot) const { in GetBuffer() argument
68 return buffers_[slot]; in GetBuffer()
91 void Enqueue(const std::shared_ptr<BufferHubBuffer>& buf, size_t slot);
121 int AddBuffer(const std::shared_ptr<BufferHubBuffer>& buf, size_t slot);
125 virtual int DetachBuffer(size_t slot);
133 size_t* slot,
139 void HandleBufferEvent(size_t slot, int poll_events);
180 size_t slot; member
190 BufferInfo(size_t slot, size_t metadata_size) in BufferInfo()
191 : slot(slot), in BufferInfo()
[all …]
/frameworks/rs/driver/
DrsdBcc.cpp70 uint32_t slot, in rsdScriptInvokeForEach() argument
78 rsdScriptInvokeForEachMulti(rsc, s, slot, nullptr, 0, aout, usr, usrLen, in rsdScriptInvokeForEach()
83 rsdScriptInvokeForEachMulti(rsc, s, slot, ains, 1, aout, usr, usrLen, in rsdScriptInvokeForEach()
90 uint32_t slot, in rsdScriptInvokeForEachMulti() argument
99 cs->invokeForEach(slot, ains, inLen, aout, usr, usrLen, sc); in rsdScriptInvokeForEachMulti()
119 uint32_t slot, in rsdScriptInvokeFunction() argument
123 cs->invokeFunction(slot, params, paramLength); in rsdScriptInvokeFunction()
127 uint32_t slot, in rsdScriptInvokeReduce() argument
132 cs->invokeReduce(slot, ains, inLen, aout, sc); in rsdScriptInvokeReduce()
136 uint32_t slot, void *data, size_t dataLength) { in rsdScriptSetGlobalVar() argument
[all …]
/frameworks/rs/rsov/driver/
DrsovScript.h62 void invokeFunction(uint32_t slot, const void *params,
66 void invokeForEach(uint32_t slot, const Allocation **ains, uint32_t inLen,
70 void invokeReduce(uint32_t slot, const Allocation **ains, uint32_t inLen,
76 void setGlobalVar(uint32_t slot, const void *data,
78 void getGlobalVar(uint32_t slot, void *data, size_t dataLength) override;
79 void setGlobalVarWithElemDims(uint32_t slot, const void *data,
84 void setGlobalBind(uint32_t slot, Allocation *data) override;
85 void setGlobalObj(uint32_t slot, ObjectBase *obj) override;
107 void InitShader(uint32_t slot);
114 void runForEach(uint32_t slot, uint32_t inLen,
[all …]

12345678