Home
last modified time | relevance | path

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

12345678910

/frameworks/native/libs/gui/
DBufferHubProducer.cpp46 status_t BufferHubProducer::requestBuffer(int slot, sp<GraphicBuffer>* buf) { in requestBuffer() argument
47 ALOGV("requestBuffer: slot=%d", slot); in requestBuffer()
56 if (slot < 0 || slot >= max_buffer_count_) { in requestBuffer()
57 ALOGE("requestBuffer: slot index %d out of range [0, %d)", slot, max_buffer_count_); in requestBuffer()
59 } else if (!buffers_[slot].mBufferState.isDequeued()) { in requestBuffer()
60 ALOGE("requestBuffer: slot %d is not owned by the producer (state = %s)", slot, in requestBuffer()
61 buffers_[slot].mBufferState.string()); in requestBuffer()
63 } else if (buffers_[slot].mGraphicBuffer != nullptr) { in requestBuffer()
64 ALOGE("requestBuffer: slot %d is not empty.", slot); in requestBuffer()
66 } else if (buffers_[slot].mProducerBuffer == nullptr) { in requestBuffer()
[all …]
DBufferQueueCore.cpp257 void BufferQueueCore::clearBufferSlotLocked(int slot) { in clearBufferSlotLocked() argument
258 BQ_LOGV("clearBufferSlotLocked: slot %d", slot); in clearBufferSlotLocked()
260 mSlots[slot].mGraphicBuffer.clear(); in clearBufferSlotLocked()
261 mSlots[slot].mBufferState.reset(); in clearBufferSlotLocked()
262 mSlots[slot].mRequestBufferCalled = false; in clearBufferSlotLocked()
263 mSlots[slot].mFrameNumber = 0; in clearBufferSlotLocked()
264 mSlots[slot].mAcquireCalled = false; in clearBufferSlotLocked()
265 mSlots[slot].mNeedsReallocation = true; in clearBufferSlotLocked()
268 if (mSlots[slot].mEglFence != EGL_NO_SYNC_KHR) { in clearBufferSlotLocked()
269 eglDestroySyncKHR(mSlots[slot].mEglDisplay, mSlots[slot].mEglFence); in clearBufferSlotLocked()
[all …]
DBufferQueueConsumer.cpp227 int slot = BufferQueueCore::INVALID_BUFFER_SLOT; in acquireBuffer() local
233 slot = mCore->mSharedBufferSlot; in acquireBuffer()
237 outBuffer->mGraphicBuffer = mSlots[slot].mGraphicBuffer; in acquireBuffer()
247 outBuffer->mSlot = slot; in acquireBuffer()
248 outBuffer->mAcquireCalled = mSlots[slot].mAcquireCalled; in acquireBuffer()
258 slot = front->mSlot; in acquireBuffer()
262 ATRACE_BUFFER_INDEX(slot); in acquireBuffer()
265 slot, outBuffer->mFrameNumber, outBuffer->mGraphicBuffer->handle); in acquireBuffer()
268 mSlots[slot].mAcquireCalled = true; in acquireBuffer()
273 mSlots[slot].mBufferState.acquireNotInQueue(); in acquireBuffer()
[all …]
DConsumerBase.cpp244 status_t ConsumerBase::detachBuffer(int slot) { in detachBuffer() argument
253 status_t result = mConsumer->detachBuffer(slot); in detachBuffer()
259 freeBufferLocked(slot); in detachBuffer()
413 status_t ConsumerBase::addReleaseFence(int slot, in addReleaseFence() argument
416 return addReleaseFenceLocked(slot, graphicBuffer, fence); in addReleaseFence()
419 status_t ConsumerBase::addReleaseFenceLocked(int slot, in addReleaseFenceLocked() argument
421 CB_LOGV("addReleaseFenceLocked: slot=%d", slot); in addReleaseFenceLocked()
425 if (!stillTracking(slot, graphicBuffer)) { in addReleaseFenceLocked()
429 if (!mSlots[slot].mFence.get()) { in addReleaseFenceLocked()
430 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
[all …]
/frameworks/native/libs/gui/tests/
DBufferItemConsumer_test.cpp77 int slot; in DequeueBuffer() local
79 status_t ret = mProducer->dequeueBuffer(&slot, &outFence, kWidth, kHeight, 0, 0, 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.cpp143 int slot; in TEST_F() local
147 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F()
149 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
160 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
193 int slot; in TEST_F() local
203 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, in TEST_F()
205 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); in TEST_F()
206 ASSERT_EQ(OK, mProducer->queueBuffer(slot, qbi, &qbo)); in TEST_F()
211 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, in TEST_F()
213 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 …]
/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/native/libs/vr/libdvr/
Ddvr_buffer_queue.cpp64 write_buffers_[buffer->slot].reset(buffer); in Dequeue()
74 size_t slot; in GainBuffer() local
85 producer_queue_->Dequeue(timeout, &slot, out_meta, &release_fence); in GainBuffer()
93 if (write_buffers_[slot] == nullptr) { in GainBuffer()
97 write_buffers_[slot] = std::make_unique<DvrWriteBuffer>(); in GainBuffer()
98 write_buffers_[slot]->slot = slot; in GainBuffer()
102 write_buffers_[slot]->write_buffer, in GainBuffer()
103 "DvrWriteBufferQueue::GainBuffer: Buffer slot is not empty: %zu", slot); in GainBuffer()
104 write_buffers_[slot]->write_buffer = std::move(buffer_status.take()); in GainBuffer()
106 const auto& producer_buffer = write_buffers_[slot]->write_buffer; in GainBuffer()
[all …]
/frameworks/native/libs/vr/libbufferhubqueue/
Dbuffer_hub_queue_client.cpp210 Status<void> BufferHubQueue::HandleBufferEvent(size_t slot, int event_fd, in HandleBufferEvent() argument
213 if (!buffers_[slot]) { in HandleBufferEvent()
214 ALOGW("BufferHubQueue::HandleBufferEvent: Invalid buffer slot: %zu", slot); in HandleBufferEvent()
218 auto status = buffers_[slot]->GetEventMask(poll_events); in HandleBufferEvent()
229 id(), buffers_[slot]->id(), slot, event_fd, poll_events, events); in HandleBufferEvent()
232 return Enqueue({buffers_[slot], slot, buffers_[slot]->GetQueueIndex()}); in HandleBufferEvent()
237 slot, buffers_[slot]->event_fd(), buffers_[slot]->id()); in HandleBufferEvent()
238 return RemoveBuffer(slot); in HandleBufferEvent()
243 slot, events); in HandleBufferEvent()
278 const std::shared_ptr<BufferHubBase>& buffer, size_t slot) { in AddBuffer() argument
[all …]
/frameworks/native/services/inputflinger/reader/mapper/
DMultiTouchInputMapper.cpp106 Slot* slot = &mSlots[mCurrentSlot]; in process() local
110 slot->mInUse = true; in process()
111 slot->mAbsMTPositionX = rawEvent->value; in process()
114 slot->mInUse = true; in process()
115 slot->mAbsMTPositionY = rawEvent->value; in process()
118 slot->mInUse = true; in process()
119 slot->mAbsMTTouchMajor = rawEvent->value; in process()
122 slot->mInUse = true; in process()
123 slot->mAbsMTTouchMinor = rawEvent->value; in process()
124 slot->mHaveAbsMTTouchMinor = true; in process()
[all …]
/frameworks/base/rs/java/android/renderscript/
DProgram.java100 public Type getConstant(int slot) { in getConstant() argument
101 if (slot < 0 || slot >= mConstants.length) { in getConstant()
104 return mConstants[slot]; in getConstant()
120 public TextureType getTextureType(int slot) { in getTextureType() argument
121 if ((slot < 0) || (slot >= mTextureCount)) { in getTextureType()
124 return mTextures[slot]; in getTextureType()
133 public String getTextureName(int slot) { in getTextureName() argument
134 if ((slot < 0) || (slot >= mTextureCount)) { in getTextureName()
137 return mTextureNames[slot]; in getTextureName()
148 public void bindConstants(Allocation a, int slot) { in bindConstants() argument
[all …]
DScript.java40 KernelID(long id, RenderScript rs, Script s, int slot, int sig) { in KernelID() argument
43 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/services/surfaceflinger/tests/unittests/
DCachingTest.cpp43 uint32_t slot = mHwcSlotGenerator.getHwcCacheSlot(id); in TEST_F() local
44 EXPECT_EQ(BufferQueue::INVALID_BUFFER_SLOT, slot); in TEST_F()
52 uint32_t slot = mHwcSlotGenerator.getHwcCacheSlot(id); in TEST_F() local
53 EXPECT_EQ(BufferQueue::NUM_BUFFER_SLOTS - 1, slot); in TEST_F()
58 slot = mHwcSlotGenerator.getHwcCacheSlot(idB); in TEST_F()
59 EXPECT_EQ(BufferQueue::NUM_BUFFER_SLOTS - 2, slot); in TEST_F()
61 slot = mHwcSlotGenerator.getHwcCacheSlot(idB); in TEST_F()
62 EXPECT_EQ(BufferQueue::NUM_BUFFER_SLOTS - 2, slot); in TEST_F()
64 slot = mHwcSlotGenerator.getHwcCacheSlot(id); in TEST_F()
65 EXPECT_EQ(BufferQueue::NUM_BUFFER_SLOTS - 1, slot); in TEST_F()
[all …]
/frameworks/native/libs/vr/libbufferhubqueue/tests/
Dbuffer_hub_queue_producer-test.cpp237 int slot = -1; in TEST_F() local
240 ASSERT_NO_FATAL_FAILURE(DequeueBuffer(&slot)); in TEST_F()
244 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
251 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
265 EXPECT_EQ(BAD_VALUE, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
295 int slot = -1; in TEST_F() local
298 ASSERT_NO_FATAL_FAILURE(DequeueBuffer(&slot)); in TEST_F()
303 EXPECT_EQ(BAD_VALUE, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
308 int slot = -1; in TEST_F() local
311 ASSERT_NO_FATAL_FAILURE(DequeueBuffer(&slot)); in TEST_F()
[all …]
/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/
Dbuffer_hub_queue_client.h92 int GetBufferId(size_t slot) const { in GetBufferId() argument
93 return (slot < buffers_.size() && buffers_[slot]) ? buffers_[slot]->id() in GetBufferId()
97 std::shared_ptr<BufferHubBase> GetBuffer(size_t slot) const { in GetBuffer() argument
98 return buffers_[slot]; in GetBuffer()
147 size_t slot);
151 virtual pdx::Status<void> RemoveBuffer(size_t slot);
163 size_t* slot);
168 pdx::Status<void> HandleBufferEvent(size_t slot, int event_fd,
175 Entry() : slot(0) {} in Entry()
178 : buffer(in_buffer), slot(in_slot), index(in_index) {} in Entry()
[all …]
/frameworks/rs/support/java/src/androidx/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/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 …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarIconControllerImpl.java90 Slot slot = allSlots.get(i); in addIconGroup() local
91 List<StatusBarIconHolder> holders = slot.getHolderListInViewOrder(); in addIconGroup()
92 boolean blocked = mIconBlacklist.contains(slot.getName()); in addIconGroup()
96 int viewIndex = getViewIndex(getSlotIndex(slot.getName()), holder.getTag()); in addIconGroup()
97 group.onIconAdded(viewIndex, slot.getName(), blocked, holder); in addIconGroup()
143 String slot = getSlotName(index); in addSystemIcon() local
145 boolean blocked = mIconBlacklist.contains(slot); in addSystemIcon()
147 mIconGroups.forEach(l -> l.onIconAdded(viewIndex, slot, blocked, holder)); in addSystemIcon()
151 public void setIcon(String slot, int resourceId, CharSequence contentDescription) { in setIcon() argument
152 int index = getSlotIndex(slot); in setIcon()
[all …]
DStatusBarIconController.java64 public void setExternalIcon(String slot); in setExternalIcon() argument
65 public void setIcon(String slot, int resourceId, CharSequence contentDescription); in setIcon() argument
66 public void setIcon(String slot, StatusBarIcon icon); in setIcon() argument
67 public void setSignalIcon(String slot, WifiIconState state); in setSignalIcon() argument
68 public void setMobileIcons(String slot, List<MobileIconState> states); in setMobileIcons() argument
69 public void setIconVisibility(String slot, boolean b); in setIconVisibility() argument
77 void setIconAccessibilityLiveRegion(String slot, int accessibilityLiveRegion); in setIconAccessibilityLiveRegion() argument
83 public void removeIcon(String slot, int tag); in removeIcon() argument
84 public void removeAllIconsForSlot(String slot); in removeAllIconsForSlot() argument
94 for (String slot : blacklist) { in getIconBlacklist()
[all …]
/frameworks/native/libs/nativedisplay/surfacetexture/
DImageConsumer.cpp42 int slot = st.mCurrentTexture; in dequeueBuffer() local
43 if (slot != BufferItem::INVALID_BUFFER_SLOT) { in dequeueBuffer()
46 *outSlotid = slot; in dequeueBuffer()
47 return st.mSlots[slot].mGraphicBuffer; in dequeueBuffer()
53 int slot = item.mSlot; in dequeueBuffer() local
58 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueBuffer()
70 err = createFence(st.mUseFenceSync, &mImageSlots[slot].eglFence(), &display, in dequeueBuffer()
73 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueBuffer()
85 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueBuffer()
104 st.mCurrentTexture = slot; in dequeueBuffer()
[all …]
/frameworks/native/services/vr/bufferhubd/
Dproducer_queue_channel.cpp124 for (size_t slot = 0; slot < BufferHubRPC::kMaxQueueCapacity; slot++) { in OnCreateConsumerQueue() local
125 if (auto buffer = buffers_[slot].lock()) in OnCreateConsumerQueue()
126 consumer_queue_channel->RegisterNewBuffer(buffer, slot); in OnCreateConsumerQueue()
258 size_t slot = 0; in AllocateBuffer() local
259 for (; slot < BufferHubRPC::kMaxQueueCapacity; slot++) { in AllocateBuffer()
260 if (buffers_[slot].expired()) in AllocateBuffer()
263 if (slot == BufferHubRPC::kMaxQueueCapacity) { in AllocateBuffer()
270 buffers_[slot] = producer_channel; in AllocateBuffer()
279 consumer_channel->RegisterNewBuffer(producer_channel, slot); in AllocateBuffer()
282 return {{std::move(buffer_handle), slot}}; in AllocateBuffer()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/
DPasswordSlotManager.java92 for (Integer slot : slotsToDelete) { in refreshActiveSlots()
93 mSlotMap.remove(slot); in refreshActiveSlots()
97 for (Integer slot : activeSlots) { in refreshActiveSlots()
98 mSlotMap.put(slot, getMode()); in refreshActiveSlots()
109 public void markSlotInUse(int slot) throws RuntimeException { in markSlotInUse() argument
111 if (mSlotMap.containsKey(slot) && !mSlotMap.get(slot).equals(getMode())) { in markSlotInUse()
112 throw new IllegalStateException("password slot " + slot + " is not available"); in markSlotInUse()
114 mSlotMap.put(slot, getMode()); in markSlotInUse()
123 public void markSlotDeleted(int slot) throws RuntimeException { in markSlotDeleted() argument
125 if (mSlotMap.containsKey(slot) && !mSlotMap.get(slot).equals(getMode())) { in markSlotDeleted()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DKeepaliveTracker.java324 void start(int slot) { in start() argument
325 mSlot = slot; in start()
332 CMD_ADD_KEEPALIVE_PACKET_FILTER, slot, 0 /* Unused */, mPacket); in start()
334 .sendMessage(CMD_START_SOCKET_KEEPALIVE, slot, mInterval, mPacket); in start()
344 CMD_ADD_KEEPALIVE_PACKET_FILTER, slot, 0 /* Unused */, mPacket); in start()
347 .sendMessage(CMD_START_SOCKET_KEEPALIVE, slot, mInterval, mPacket); in start()
449 int slot; in findFirstFreeSlot() local
450 for (slot = 1; slot <= networkKeepalives.size(); slot++) { in findFirstFreeSlot()
451 if (networkKeepalives.get(slot) == null) { in findFirstFreeSlot()
452 return slot; in findFirstFreeSlot()
[all …]

12345678910