/frameworks/native/libs/gui/ |
D | BufferHubProducer.cpp | 47 status_t BufferHubProducer::requestBuffer(int slot, sp<GraphicBuffer>* buf) { in requestBuffer() argument 48 ALOGV("requestBuffer: slot=%d", slot); in requestBuffer() 57 if (slot < 0 || slot >= max_buffer_count_) { in requestBuffer() 58 ALOGE("requestBuffer: slot index %d out of range [0, %d)", slot, max_buffer_count_); in requestBuffer() 60 } else if (!buffers_[slot].mBufferState.isDequeued()) { in requestBuffer() 61 ALOGE("requestBuffer: slot %d is not owned by the producer (state = %s)", slot, in requestBuffer() 62 buffers_[slot].mBufferState.string()); in requestBuffer() 64 } else if (buffers_[slot].mGraphicBuffer != nullptr) { in requestBuffer() 65 ALOGE("requestBuffer: slot %d is not empty.", slot); in requestBuffer() 67 } else if (buffers_[slot].mProducerBuffer == nullptr) { in requestBuffer() [all …]
|
D | BufferQueueCore.cpp | 209 void BufferQueueCore::clearBufferSlotLocked(int slot) { in clearBufferSlotLocked() argument 210 BQ_LOGV("clearBufferSlotLocked: slot %d", slot); in clearBufferSlotLocked() 212 mSlots[slot].mGraphicBuffer.clear(); in clearBufferSlotLocked() 213 mSlots[slot].mBufferState.reset(); in clearBufferSlotLocked() 214 mSlots[slot].mRequestBufferCalled = false; in clearBufferSlotLocked() 215 mSlots[slot].mFrameNumber = 0; in clearBufferSlotLocked() 216 mSlots[slot].mAcquireCalled = false; in clearBufferSlotLocked() 217 mSlots[slot].mNeedsReallocation = true; in clearBufferSlotLocked() 220 if (mSlots[slot].mEglFence != EGL_NO_SYNC_KHR) { in clearBufferSlotLocked() 221 eglDestroySyncKHR(mSlots[slot].mEglDisplay, mSlots[slot].mEglFence); in clearBufferSlotLocked() [all …]
|
D | BufferQueueConsumer.cpp | 203 int slot = BufferQueueCore::INVALID_BUFFER_SLOT; in acquireBuffer() local 209 slot = mCore->mSharedBufferSlot; in acquireBuffer() 213 outBuffer->mGraphicBuffer = mSlots[slot].mGraphicBuffer; in acquireBuffer() 223 outBuffer->mSlot = slot; in acquireBuffer() 224 outBuffer->mAcquireCalled = mSlots[slot].mAcquireCalled; in acquireBuffer() 234 slot = front->mSlot; in acquireBuffer() 238 ATRACE_BUFFER_INDEX(slot); in acquireBuffer() 241 slot, outBuffer->mFrameNumber, outBuffer->mGraphicBuffer->handle); in acquireBuffer() 244 mSlots[slot].mAcquireCalled = true; in acquireBuffer() 249 mSlots[slot].mBufferState.acquireNotInQueue(); in acquireBuffer() [all …]
|
D | ConsumerBase.cpp | 202 status_t ConsumerBase::detachBuffer(int slot) { in detachBuffer() argument 211 status_t result = mConsumer->detachBuffer(slot); in detachBuffer() 217 freeBufferLocked(slot); in detachBuffer() 371 status_t ConsumerBase::addReleaseFence(int slot, in addReleaseFence() argument 374 return addReleaseFenceLocked(slot, graphicBuffer, fence); in addReleaseFence() 377 status_t ConsumerBase::addReleaseFenceLocked(int slot, in addReleaseFenceLocked() argument 379 CB_LOGV("addReleaseFenceLocked: slot=%d", slot); in addReleaseFenceLocked() 383 if (!stillTracking(slot, graphicBuffer)) { in addReleaseFenceLocked() 387 if (!mSlots[slot].mFence.get()) { in addReleaseFenceLocked() 388 mSlots[slot].mFence = fence; in addReleaseFenceLocked() [all …]
|
/frameworks/native/libs/gui/tests/ |
D | BufferItemConsumer_test.cpp | 77 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 …]
|
D | BufferQueue_test.cpp | 143 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() 181 int slot; in TEST_F() local 191 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, in TEST_F() 193 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); in TEST_F() 194 ASSERT_EQ(OK, mProducer->queueBuffer(slot, qbi, &qbo)); in TEST_F() 199 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, in TEST_F() 201 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); in TEST_F() [all …]
|
/frameworks/rs/ |
D | rsScript.cpp | 45 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 …]
|
D | rsProgram.cpp | 152 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/ |
D | pvmp3_imdct_synth.cpp | 319 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/ |
D | dvr_buffer_queue.cpp | 64 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/ |
D | buffer_hub_queue_client.cpp | 210 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/ |
D | MultiTouchInputMapper.cpp | 108 Slot* slot = &mSlots[mCurrentSlot]; in process() local 112 slot->mInUse = true; in process() 113 slot->mAbsMTPositionX = rawEvent->value; in process() 116 slot->mInUse = true; in process() 117 slot->mAbsMTPositionY = rawEvent->value; in process() 120 slot->mInUse = true; in process() 121 slot->mAbsMTTouchMajor = rawEvent->value; in process() 124 slot->mInUse = true; in process() 125 slot->mAbsMTTouchMinor = rawEvent->value; in process() 126 slot->mHaveAbsMTTouchMinor = true; in process() [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | CachingTest.cpp | 39 uint32_t slot = mHwcSlotGenerator.getHwcCacheSlot(id); in TEST_F() local 40 EXPECT_EQ(BufferQueue::INVALID_BUFFER_SLOT, slot); in TEST_F() 48 uint32_t slot = mHwcSlotGenerator.getHwcCacheSlot(id); in TEST_F() local 49 EXPECT_EQ(BufferQueue::NUM_BUFFER_SLOTS - 1, slot); in TEST_F() 54 slot = mHwcSlotGenerator.getHwcCacheSlot(idB); in TEST_F() 55 EXPECT_EQ(BufferQueue::NUM_BUFFER_SLOTS - 2, slot); in TEST_F() 57 slot = mHwcSlotGenerator.getHwcCacheSlot(idB); in TEST_F() 58 EXPECT_EQ(BufferQueue::NUM_BUFFER_SLOTS - 2, slot); in TEST_F() 60 slot = mHwcSlotGenerator.getHwcCacheSlot(id); in TEST_F() 61 EXPECT_EQ(BufferQueue::NUM_BUFFER_SLOTS - 1, slot); in TEST_F() [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | Program.java | 100 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 …]
|
D | Script.java | 40 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/libs/vr/libbufferhubqueue/tests/ |
D | buffer_hub_queue_producer-test.cpp | 237 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/ |
D | buffer_hub_queue_client.h | 92 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/ |
D | Script.java | 70 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/ |
D | rsCpuIntrinsic.cpp | 34 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/ |
D | StatusBarIconController.java | 63 public void setExternalIcon(String slot); in setExternalIcon() argument 64 public void setIcon(String slot, int resourceId, CharSequence contentDescription); in setIcon() argument 65 public void setIcon(String slot, StatusBarIcon icon); in setIcon() argument 66 public void setSignalIcon(String slot, WifiIconState state); in setSignalIcon() argument 67 public void setMobileIcons(String slot, List<MobileIconState> states); in setMobileIcons() argument 68 public void setIconVisibility(String slot, boolean b); in setIconVisibility() argument 73 public void removeIcon(String slot, int tag); in removeIcon() argument 74 public void removeAllIconsForSlot(String slot); in removeAllIconsForSlot() argument 84 for (String slot : blacklist) { in getIconBlacklist() 85 if (!TextUtils.isEmpty(slot)) { in getIconBlacklist() [all …]
|
D | StatusBarIconControllerImpl.java | 92 Slot slot = allSlots.get(i); in addIconGroup() local 93 List<StatusBarIconHolder> holders = slot.getHolderListInViewOrder(); in addIconGroup() 94 boolean blocked = mIconBlacklist.contains(slot.getName()); in addIconGroup() 98 int viewIndex = getViewIndex(getSlotIndex(slot.getName()), holder.getTag()); in addIconGroup() 99 group.onIconAdded(viewIndex, slot.getName(), blocked, holder); in addIconGroup() 145 String slot = getSlotName(index); in addSystemIcon() local 147 boolean blocked = mIconBlacklist.contains(slot); in addSystemIcon() 149 mIconGroups.forEach(l -> l.onIconAdded(viewIndex, slot, blocked, holder)); in addSystemIcon() 153 public void setIcon(String slot, int resourceId, CharSequence contentDescription) { in setIcon() argument 154 int index = getSlotIndex(slot); in setIcon() [all …]
|
/frameworks/native/services/vr/bufferhubd/ |
D | producer_queue_channel.cpp | 124 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/ |
D | PasswordSlotManager.java | 92 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 RuntimeException("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/ |
D | KeepaliveTracker.java | 324 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 …]
|
/frameworks/rs/driver/ |
D | rsdBcc.cpp | 70 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 …]
|