/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 ALOGD("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 ALOGD("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 ALOGD("releaseBuffer: slot=%d", slot); in ReleaseBuffer() [all …]
|
D | BufferQueue_test.cpp | 142 int slot; in TEST_F() local 146 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F() 148 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F() 159 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F() 191 int slot; in TEST_F() local 201 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, in TEST_F() 203 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); in TEST_F() 204 ASSERT_EQ(OK, mProducer->queueBuffer(slot, qbi, &qbo)); in TEST_F() 209 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, in TEST_F() 211 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 …]
|
D | rsScript.h | 38 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/gui/ |
D | BufferQueueCore.cpp | 255 void BufferQueueCore::clearBufferSlotLocked(int slot) { in clearBufferSlotLocked() argument 256 BQ_LOGV("clearBufferSlotLocked: slot %d", slot); in clearBufferSlotLocked() 258 mSlots[slot].mGraphicBuffer.clear(); in clearBufferSlotLocked() 259 mSlots[slot].mBufferState.reset(); in clearBufferSlotLocked() 260 mSlots[slot].mRequestBufferCalled = false; in clearBufferSlotLocked() 261 mSlots[slot].mFrameNumber = 0; in clearBufferSlotLocked() 262 mSlots[slot].mAcquireCalled = false; in clearBufferSlotLocked() 263 mSlots[slot].mNeedsReallocation = true; in clearBufferSlotLocked() 266 if (mSlots[slot].mEglFence != EGL_NO_SYNC_KHR) { in clearBufferSlotLocked() 267 eglDestroySyncKHR(mSlots[slot].mEglDisplay, mSlots[slot].mEglFence); in clearBufferSlotLocked() [all …]
|
D | ConsumerBase.cpp | 246 status_t ConsumerBase::detachBuffer(int slot) { in detachBuffer() argument 255 status_t result = mConsumer->detachBuffer(slot); in detachBuffer() 261 freeBufferLocked(slot); in detachBuffer() 415 status_t ConsumerBase::addReleaseFence(int slot, in addReleaseFence() argument 418 return addReleaseFenceLocked(slot, graphicBuffer, fence); in addReleaseFence() 421 status_t ConsumerBase::addReleaseFenceLocked(int slot, in addReleaseFenceLocked() argument 423 CB_LOGV("addReleaseFenceLocked: slot=%d", slot); in addReleaseFenceLocked() 427 if (!stillTracking(slot, graphicBuffer)) { in addReleaseFenceLocked() 431 if (!mSlots[slot].mFence.get()) { in addReleaseFenceLocked() 432 mSlots[slot].mFence = fence; in addReleaseFenceLocked() [all …]
|
D | BufferQueueConsumer.cpp | 230 int slot = BufferQueueCore::INVALID_BUFFER_SLOT; in acquireBuffer() local 236 slot = mCore->mSharedBufferSlot; in acquireBuffer() 240 outBuffer->mGraphicBuffer = mSlots[slot].mGraphicBuffer; in acquireBuffer() 250 outBuffer->mSlot = slot; in acquireBuffer() 251 outBuffer->mAcquireCalled = mSlots[slot].mAcquireCalled; in acquireBuffer() 264 slot = front->mSlot; in acquireBuffer() 268 ATRACE_BUFFER_INDEX(slot); in acquireBuffer() 271 slot, outBuffer->mFrameNumber, outBuffer->mGraphicBuffer->handle); in acquireBuffer() 274 mSlots[slot].mAcquireCalled = true; in acquireBuffer() 279 mSlots[slot].mBufferState.acquireNotInQueue(); in acquireBuffer() [all …]
|
/frameworks/av/media/module/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/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ui/ |
D | StatusBarIconControllerImpl.java | 141 Slot slot = allSlots.get(i); in addIconGroup() local 142 List<StatusBarIconHolder> holders = slot.getHolderListInViewOrder(); in addIconGroup() 143 boolean hidden = mIconHideList.contains(slot.getName()); in addIconGroup() 146 int viewIndex = mStatusBarIconList.getViewIndex(slot.getName(), holder.getTag()); in addIconGroup() 147 group.onIconAdded(viewIndex, slot.getName(), hidden, holder); in addIconGroup() 205 private void addSystemIcon(String slot, StatusBarIconHolder holder) { in addSystemIcon() argument 206 int viewIndex = mStatusBarIconList.getViewIndex(slot, holder.getTag()); in addSystemIcon() 207 boolean hidden = mIconHideList.contains(slot); in addSystemIcon() 209 mIconGroups.forEach(l -> l.onIconAdded(viewIndex, slot, hidden, holder)); in addSystemIcon() 226 public void setIcon(String slot, int resourceId, CharSequence contentDescription) { in setIcon() argument [all …]
|
D | StatusBarIconController.java | 52 void setIconFromTile(String slot, @Nullable StatusBarIcon icon); in setIconFromTile() argument 55 void removeIconForTile(String slot); in removeIconForTile() argument 58 void setIcon(String slot, int resourceId, CharSequence contentDescription); in setIcon() argument 75 void setCallStrengthIcons(String slot, List<CallIndicatorIconState> states); in setCallStrengthIcons() argument 80 void setNoCallingIcons(String slot, List<CallIndicatorIconState> states); in setNoCallingIcons() argument 83 void setIconVisibility(String slot, boolean b); in setIconVisibility() argument 92 void setIconAccessibilityLiveRegion(String slot, int accessibilityLiveRegion); in setIconAccessibilityLiveRegion() argument 98 void removeIcon(String slot, int tag); in removeIcon() argument 109 for (String slot : hideList) { in getIconHideList() 110 if (!TextUtils.isEmpty(slot)) { in getIconHideList() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | HwcBufferCacheTest.cpp | 43 EXPECT_NE(slotAndBufferFor1.slot, UINT32_MAX); in TEST_F() 47 EXPECT_NE(slotAndBufferFor2.slot, slotAndBufferFor1.slot); in TEST_F() 48 EXPECT_NE(slotAndBufferFor2.slot, UINT32_MAX); in TEST_F() 57 EXPECT_NE(originalSlotAndBuffer.slot, UINT32_MAX); in TEST_F() 61 EXPECT_EQ(finalSlotAndBuffer.slot, originalSlotAndBuffer.slot); in TEST_F() 76 if (i > 0 && slotsAndBuffers[i].slot == slotsAndBuffers[0].slot) { in TEST_F() 83 EXPECT_EQ(slotsAndBuffers[finalCachedBufferIndex].slot, slotsAndBuffers[0].slot); in TEST_F() 93 ASSERT_NE(slotAndBufferFor1.slot, UINT32_MAX); in TEST_F() 96 ASSERT_NE(slotAndBufferFor2.slot, UINT32_MAX); in TEST_F() 99 EXPECT_EQ(cache.uncache(mBuffer1->getId()), slotAndBufferFor1.slot); in TEST_F() [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | Program.java | 104 public Type getConstant(int slot) { in getConstant() argument 105 if (slot < 0 || slot >= mConstants.length) { in getConstant() 108 return mConstants[slot]; in getConstant() 124 public TextureType getTextureType(int slot) { in getTextureType() argument 125 if ((slot < 0) || (slot >= mTextureCount)) { in getTextureType() 128 return mTextures[slot]; in getTextureType() 137 public String getTextureName(int slot) { in getTextureName() argument 138 if ((slot < 0) || (slot >= mTextureCount)) { in getTextureName() 141 return mTextureNames[slot]; in getTextureName() 152 public void bindConstants(Allocation a, int slot) { in bindConstants() argument [all …]
|
D | Script.java | 45 KernelID(long id, RenderScript rs, Script s, int slot, int sig) { in KernelID() argument 48 mSlot = slot; in KernelID() 57 protected KernelID createKernelID(int slot, int sig, Element ein, in createKernelID() argument 59 KernelID k = mKIDs.get(slot); in createKernelID() 64 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig); in createKernelID() 69 k = new KernelID(id, mRS, this, slot, sig); in createKernelID() 70 mKIDs.put(slot, k); in createKernelID() 85 InvokeID(long id, RenderScript rs, Script s, int slot) { in InvokeID() argument 88 mSlot = slot; in InvokeID() 96 protected InvokeID createInvokeID(int slot) { in createInvokeID() argument [all …]
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | Script.java | 75 KernelID(long id, RenderScript rs, Script s, int slot, int sig) { in KernelID() argument 78 mSlot = slot; in KernelID() 95 protected KernelID createKernelID(int slot, int sig, Element ein, Element eout) { in createKernelID() argument 96 KernelID k = mKIDs.get(slot); in createKernelID() 101 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig, mUseIncSupp); in createKernelID() 106 k = new KernelID(id, mRS, this, slot, sig); in createKernelID() 108 mKIDs.put(slot, k); in createKernelID() 123 InvokeID(long id, RenderScript rs, Script s, int slot) { in InvokeID() argument 126 mSlot = slot; in InvokeID() 134 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 …]
|
D | rsCpuExecutable.h | 151 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/nativedisplay/surfacetexture/ |
D | ImageConsumer.cpp | 43 int slot = st.mCurrentTexture; in dequeueBuffer() local 44 if (slot != BufferItem::INVALID_BUFFER_SLOT) { in dequeueBuffer() 47 *outSlotid = slot; in dequeueBuffer() 48 return st.mSlots[slot].mGraphicBuffer; in dequeueBuffer() 54 int slot = item.mSlot; in dequeueBuffer() local 67 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueBuffer() 79 err = createFence(st.mUseFenceSync, &mImageSlots[slot].eglFence(), &display, in dequeueBuffer() 82 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueBuffer() 94 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueBuffer() 113 st.mCurrentTexture = slot; in dequeueBuffer() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | HwcBufferCache.cpp | 35 return {cache.slot, nullptr}; in getHwcSlotAndBuffer() 50 uint32_t slot = i->second.slot; in uncache() local 52 mFreeSlots.push(slot); in uncache() 53 return slot; in uncache() 64 cache.slot = getLeastRecentlyUsedSlot(); in cache() 68 return cache.slot; in cache() 81 uint32_t slot = cacheToErase->second.slot; in getLeastRecentlyUsedSlot() local 83 mFreeSlots.push(slot); in getLeastRecentlyUsedSlot() 85 uint32_t slot = mFreeSlots.top(); in getLeastRecentlyUsedSlot() local 87 return slot; in getLeastRecentlyUsedSlot()
|
/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 | 90 for (Integer slot : slotsToDelete) { in refreshActiveSlots() 91 mSlotMap.remove(slot); in refreshActiveSlots() 95 for (Integer slot : activeSlots) { in refreshActiveSlots() 96 mSlotMap.put(slot, getMode()); in refreshActiveSlots() 105 public void markSlotInUse(int slot) throws RuntimeException { in markSlotInUse() argument 107 if (mSlotMap.containsKey(slot) && !mSlotMap.get(slot).equals(getMode())) { in markSlotInUse() 108 throw new IllegalStateException("password slot " + slot + " is not available"); in markSlotInUse() 110 mSlotMap.put(slot, getMode()); in markSlotInUse() 117 public void markSlotDeleted(int slot) throws RuntimeException { in markSlotDeleted() argument 119 if (mSlotMap.containsKey(slot) && !mSlotMap.get(slot).equals(getMode())) { in markSlotDeleted() [all …]
|
/frameworks/native/services/inputflinger/reader/mapper/gestures/ |
D | HardwareStateConverter.cpp | 86 MultiTouchMotionAccumulator::Slot slot = mMotionAccumulator.getSlot(i); in produceHardwareState() local 87 if (!slot.isInUse()) { in produceHardwareState() 92 if (!REPORT_PALMS_TO_GESTURES_LIBRARY && slot.getToolType() == ToolType::PALM) { in produceHardwareState() 99 fingerState.touch_major = slot.getTouchMajor(); in produceHardwareState() 100 fingerState.touch_minor = slot.getTouchMinor(); in produceHardwareState() 101 fingerState.width_major = slot.getToolMajor(); in produceHardwareState() 102 fingerState.width_minor = slot.getToolMinor(); in produceHardwareState() 103 fingerState.pressure = slot.getPressure(); in produceHardwareState() 104 fingerState.orientation = slot.getOrientation(); in produceHardwareState() 105 fingerState.position_x = slot.getX(); in produceHardwareState() [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 …]
|
/frameworks/base/services/core/java/com/android/server/recoverysystem/hal/ |
D | BootControlHIDL.java | 112 public String getSuffix(int slot) throws RemoteException { in getSuffix() argument 113 return v1_hal.getSuffix(slot); in getSuffix() 117 public boolean isSlotBootable(int slot) throws RemoteException { in isSlotBootable() argument 118 int ret = v1_hal.isSlotBootable(slot); in isSlotBootable() 121 "isSlotBootable() failed, Slot %d might be invalid.".formatted(slot)); in isSlotBootable() 127 public boolean isSlotMarkedSuccessful(int slot) throws RemoteException { in isSlotMarkedSuccessful() argument 128 int ret = v1_hal.isSlotMarkedSuccessful(slot); in isSlotMarkedSuccessful() 131 "isSlotMarkedSuccessful() failed, Slot %d might be invalid.".formatted(slot)); in isSlotMarkedSuccessful() 145 public void setActiveBootSlot(int slot) throws RemoteException { in setActiveBootSlot() argument 146 CommandResult res = v1_hal.setActiveBootSlot(slot); in setActiveBootSlot() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | SimSlotState.java | 49 UiccSlot slot = uiccController.getUiccSlot(i); in getCurrentState() local 50 if (slot != null && slot.isActive()) { in getCurrentState() 52 if (slot.isEuicc()) { in getCurrentState() 56 if (slot.getCardState() == CardState.CARDSTATE_PRESENT) { in getCurrentState() 57 if (slot.isEuicc()) { in getCurrentState() 59 UiccCard card = slot.getUiccCard(); in getCurrentState() 103 UiccSlot slot = UiccController.getInstance().getUiccSlotForPhone(phoneId); in isEsim() local 104 if (slot != null) { in isEsim() 105 return slot.isEuicc(); in isEsim()
|