Home
last modified time | relevance | path

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

1234

/frameworks/rs/
DrsScript.cpp43 void Script::setSlot(uint32_t slot, Allocation *a) { in setSlot() argument
45 if (slot >= mHal.info.exportedVariableCount) { in setSlot()
50 mSlots[slot].set(a); in setSlot()
51 mRSC->mHal.funcs.script.setGlobalBind(mRSC, this, slot, a); in setSlot()
54 void Script::setVar(uint32_t slot, const void *val, size_t len) { in setVar() argument
56 if (slot >= mHal.info.exportedVariableCount) { in setVar()
60 mRSC->mHal.funcs.script.setGlobalVar(mRSC, this, slot, (void *)val, len); in setVar()
63 void Script::getVar(uint32_t slot, const void *val, size_t len) { in getVar() argument
65 if (slot >= mHal.info.exportedVariableCount) { in getVar()
69 mRSC->mHal.funcs.script.getGlobalVar(mRSC, this, slot, (void *)val, len); in getVar()
[all …]
DrsProgram.cpp139 void Program::bindAllocation(Context *rsc, Allocation *alloc, uint32_t slot) { in bindAllocation() argument
141 if (slot >= mHal.state.constantsCount) { in bindAllocation()
143 slot, (uint32_t)this, mHal.state.constantsCount); in bindAllocation()
147 if (alloc->getType() != mConstantTypes[slot].get()) { in bindAllocation()
149 slot, (uint32_t)this); in bindAllocation()
154 if (mConstants[slot].get() == alloc) { in bindAllocation()
157 if (mConstants[slot].get()) { in bindAllocation()
158 mConstants[slot]->removeProgramToDirty(this); in bindAllocation()
160 mConstants[slot].set(alloc); in bindAllocation()
161 mHal.state.constants[slot] = alloc; in bindAllocation()
[all …]
DrsScript.h36 ScriptKernelID(Context *rsc, Script *s, int slot, int sig);
50 ScriptFieldID(Context *rsc, Script *s, int slot);
100 void setSlot(uint32_t slot, Allocation *a);
101 void setVar(uint32_t slot, const void *val, size_t len);
102 void getVar(uint32_t slot, const void *val, size_t len);
103 void setVar(uint32_t slot, const void *val, size_t len, Element *e,
105 void setVarObj(uint32_t slot, ObjectBase *val);
110 uint32_t slot,
117 virtual void Invoke(Context *rsc, uint32_t slot, const void *data, size_t len) = 0;
Drs.spec270 param uint32_t slot
280 param uint32_t slot
285 param uint32_t slot
291 param uint32_t slot
300 param uint32_t slot
306 param uint32_t slot
312 param uint32_t slot
318 param uint32_t slot
324 param uint32_t slot
330 param uint32_t slot
[all …]
DrsScriptC_LibGL.cpp49 void rsrBindTexture(Context *rsc, ProgramFragment *pf, uint32_t slot, Allocation *a) { in rsrBindTexture() argument
52 pf->bindTexture(rsc, slot, a); in rsrBindTexture()
55 void rsrBindConstant(Context *rsc, ProgramFragment *pf, uint32_t slot, Allocation *a) { in rsrBindConstant() argument
58 pf->bindAllocation(rsc, a, slot); in rsrBindConstant()
61 void rsrBindConstant(Context *rsc, ProgramVertex *pv, uint32_t slot, Allocation *a) { in rsrBindConstant() argument
64 pv->bindAllocation(rsc, a, slot); in rsrBindConstant()
67 void rsrBindSampler(Context *rsc, ProgramFragment *pf, uint32_t slot, Sampler *s) { in rsrBindSampler() argument
70 pf->bindSampler(rsc, slot, s); in rsrBindSampler()
93 void rsrBindFrameBufferObjectColorTarget(Context *rsc, Allocation *a, uint32_t slot) { in rsrBindFrameBufferObjectColorTarget() argument
95 rsc->mFBOCache.bindColorTarget(rsc, a, slot); in rsrBindFrameBufferObjectColorTarget()
[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/support/v8/renderscript/java/src/android/support/v8/renderscript/
DScript.java45 KernelID(int id, RenderScript rs, Script s, int slot, int sig) { in KernelID() argument
48 mSlot = slot; in KernelID()
65 protected KernelID createKernelID(int slot, int sig, Element ein, Element eout) { in createKernelID() argument
66 KernelID k = mKIDs.get(slot); in createKernelID()
74 k = new KernelID(0, mRS, this, slot, sig); in createKernelID()
76 k.mN = mT.thunkCreateKernelID(slot, sig, ein, eout); in createKernelID()
78 mKIDs.put(slot, k); in createKernelID()
83 int id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig); in createKernelID()
88 k = new KernelID(id, mRS, this, slot, sig); in createKernelID()
90 mKIDs.put(slot, k); in createKernelID()
[all …]
DScriptCThunker.java43 int slot, int sig, Element ein, Element eout) { in thunkCreateKernelID() argument
53 return createKernelID(slot, sig, nein, neout); in thunkCreateKernelID()
57 void thunkInvoke(int slot) { in thunkInvoke() argument
58 invoke(slot); in thunkInvoke()
61 void thunkBindAllocation(Allocation va, int slot) { in thunkBindAllocation() argument
66 bindAllocation(nva, slot); in thunkBindAllocation()
73 void thunkInvoke(int slot, FieldPacker v) { in thunkInvoke() argument
76 invoke(slot, nfp); in thunkInvoke()
79 void thunkForEach(int slot, Allocation ain, Allocation aout, FieldPacker v) { in thunkForEach() argument
92 forEach(slot, nin, nout, nfp); in thunkForEach()
[all …]
DRenderScript.java401 native void rsnScriptBindAllocation(int con, int script, int alloc, int slot); in rsnScriptBindAllocation() argument
402 synchronized void nScriptBindAllocation(int script, int alloc, int slot) { in nScriptBindAllocation() argument
404 rsnScriptBindAllocation(mContext, script, alloc, slot); in nScriptBindAllocation()
411 native void rsnScriptInvoke(int con, int id, int slot); in rsnScriptInvoke() argument
412 synchronized void nScriptInvoke(int id, int slot) { in nScriptInvoke() argument
414 rsnScriptInvoke(mContext, id, slot); in nScriptInvoke()
416 native void rsnScriptForEach(int con, int id, int slot, int ain, int aout, byte[] params); in rsnScriptForEach() argument
417 native void rsnScriptForEach(int con, int id, int slot, int ain, int aout); in rsnScriptForEach() argument
418 native void rsnScriptForEachClipped(int con, int id, int slot, int ain, int aout, byte[] params, in rsnScriptForEachClipped() argument
420 native void rsnScriptForEachClipped(int con, int id, int slot, int ain, int aout, in rsnScriptForEachClipped() argument
[all …]
/frameworks/base/graphics/java/android/renderscript/
DProgram.java97 public Type getConstant(int slot) { in getConstant() argument
98 if (slot < 0 || slot >= mConstants.length) { in getConstant()
101 return mConstants[slot]; in getConstant()
117 public TextureType getTextureType(int slot) { in getTextureType() argument
118 if ((slot < 0) || (slot >= mTextureCount)) { in getTextureType()
121 return mTextures[slot]; in getTextureType()
130 public String getTextureName(int slot) { in getTextureName() argument
131 if ((slot < 0) || (slot >= mTextureCount)) { in getTextureName()
134 return mTextureNames[slot]; in getTextureName()
145 public void bindConstants(Allocation a, int slot) { in bindConstants() argument
[all …]
DScript.java38 KernelID(int id, RenderScript rs, Script s, int slot, int sig) { in KernelID() argument
41 mSlot = slot; in KernelID()
58 protected KernelID createKernelID(int slot, int sig, Element ein, Element eout) { in createKernelID() argument
59 KernelID k = mKIDs.get(slot); in createKernelID()
64 int 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 FieldID(int id, RenderScript rs, Script s, int slot) { in FieldID() argument
88 mSlot = slot; in FieldID()
101 protected FieldID createFieldID(int slot, Element e) { in createFieldID() argument
[all …]
DRenderScript.java198 native void rsnContextBindSampler(int con, int sampler, int slot); in rsnContextBindSampler() argument
199 synchronized void nContextBindSampler(int sampler, int slot) { in nContextBindSampler() argument
201 rsnContextBindSampler(mContext, sampler, slot); in nContextBindSampler()
560 native void rsnScriptBindAllocation(int con, int script, int alloc, int slot); in rsnScriptBindAllocation() argument
561 synchronized void nScriptBindAllocation(int script, int alloc, int slot) { in nScriptBindAllocation() argument
563 rsnScriptBindAllocation(mContext, script, alloc, slot); in nScriptBindAllocation()
570 native void rsnScriptInvoke(int con, int id, int slot); in rsnScriptInvoke() argument
571 synchronized void nScriptInvoke(int id, int slot) { in nScriptInvoke() argument
573 rsnScriptInvoke(mContext, id, slot); in nScriptInvoke()
575 native void rsnScriptForEach(int con, int id, int slot, int ain, int aout, byte[] params); in rsnScriptForEach() 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::invokeForEach(uint32_t slot, in invokeForEach() argument
86 mtls.fep.slot = slot; in invokeForEach()
96 void RsdCpuScriptIntrinsic::forEachKernelSetup(uint32_t slot, MTLaunchStruct *mtls) { in forEachKernelSetup() argument
99 mtls->fep.slot = slot; in forEachKernelSetup()
DrsCpuIntrinsic.h31 virtual void invokeFunction(uint32_t slot, const void *params, size_t paramLength);
33 virtual void invokeForEach(uint32_t slot,
39 virtual void forEachKernelSetup(uint32_t slot, MTLaunchStruct *mtls);
43 virtual void setGlobalVar(uint32_t slot, const void *data, size_t dataLength);
44 virtual void setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength,
46 virtual void setGlobalBind(uint32_t slot, Allocation *data);
47 virtual void setGlobalObj(uint32_t slot, ObjectBase *data);
DrsCpuScript.h53 virtual void invokeFunction(uint32_t slot, const void *params, size_t paramLength);
55 virtual void invokeForEach(uint32_t slot,
64 virtual void setGlobalVar(uint32_t slot, const void *data, size_t dataLength);
65 virtual void getGlobalVar(uint32_t slot, void *data, size_t dataLength);
66 virtual void setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength,
68 virtual void setGlobalBind(uint32_t slot, Allocation *data);
69 virtual void setGlobalObj(uint32_t slot, ObjectBase *data);
80 virtual void forEachKernelSetup(uint32_t slot, MTLaunchStruct *mtls);
DrsCpuScript.cpp577 void RsdCpuScriptImpl::invokeForEach(uint32_t slot, in invokeForEach() argument
586 forEachKernelSetup(slot, &mtls); in invokeForEach()
593 void RsdCpuScriptImpl::forEachKernelSetup(uint32_t slot, MTLaunchStruct *mtls) { in forEachKernelSetup() argument
595 mtls->fep.slot = slot; in forEachKernelSetup()
597 rsAssert(slot < mExecutable->getExportForeachFuncAddrs().size()); in forEachKernelSetup()
599 mExecutable->getExportForeachFuncAddrs()[slot]); in forEachKernelSetup()
601 mtls->sig = mExecutable->getInfo().getExportForeachFuncs()[slot].second; in forEachKernelSetup()
603 mtls->kernel = reinterpret_cast<ForEachFunc_t>(mForEachFunctions[slot]); in forEachKernelSetup()
605 mtls->sig = mForEachSignatures[slot]; in forEachKernelSetup()
628 void RsdCpuScriptImpl::invokeFunction(uint32_t slot, const void *params, in invokeFunction() argument
[all …]
Drsd_cpu.h66 virtual void invokeFunction(uint32_t slot, const void *params, size_t paramLength) = 0;
68 virtual void invokeForEach(uint32_t slot,
77 virtual void setGlobalVar(uint32_t slot, const void *data, size_t dataLength) = 0;
78 virtual void getGlobalVar(uint32_t slot, void *data, size_t dataLength) = 0;
79 virtual void setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength,
81 virtual void setGlobalBind(uint32_t slot, Allocation *data) = 0;
82 virtual void setGlobalObj(uint32_t slot, ObjectBase *obj) = 0;
/frameworks/native/libs/gui/
DConsumerBase.cpp205 status_t ConsumerBase::addReleaseFence(int slot, const sp<Fence>& fence) { in addReleaseFence() argument
207 return addReleaseFenceLocked(slot, fence); in addReleaseFence()
210 status_t ConsumerBase::addReleaseFenceLocked(int slot, const sp<Fence>& fence) { in addReleaseFenceLocked() argument
211 CB_LOGV("addReleaseFenceLocked: slot=%d", slot); in addReleaseFenceLocked()
213 if (!mSlots[slot].mFence.get()) { in addReleaseFenceLocked()
214 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
217 String8::format("%.28s:%d", mName.string(), slot), in addReleaseFenceLocked()
218 mSlots[slot].mFence, fence); in addReleaseFenceLocked()
223 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
226 mSlots[slot].mFence = mergedFence; in addReleaseFenceLocked()
[all …]
DBufferQueue.cpp232 status_t BufferQueue::requestBuffer(int slot, sp<GraphicBuffer>* buf) { in requestBuffer() argument
234 ST_LOGV("requestBuffer: slot=%d", slot); in requestBuffer()
241 if (slot < 0 || maxBufferCount <= slot) { in requestBuffer()
243 maxBufferCount, slot); in requestBuffer()
245 } else if (mSlots[slot].mBufferState != BufferSlot::DEQUEUED) { in requestBuffer()
250 slot, mSlots[slot].mBufferState); in requestBuffer()
253 mSlots[slot].mRequestBufferCalled = true; in requestBuffer()
254 *buf = mSlots[slot].mGraphicBuffer; in requestBuffer()
754 const BufferSlot& slot(mSlots[i]); in dump() local
759 prefix, (slot.mBufferState == BufferSlot::ACQUIRED)?">":" ", i, in dump()
[all …]
/frameworks/rs/driver/
DrsdBcc.cpp69 uint32_t slot, in rsdScriptInvokeForEach() argument
77 cs->invokeForEach(slot, ain, aout, usr, usrLen, sc); in rsdScriptInvokeForEach()
97 uint32_t slot, in rsdScriptInvokeFunction() argument
101 cs->invokeFunction(slot, params, paramLength); in rsdScriptInvokeFunction()
105 uint32_t slot, void *data, size_t dataLength) { in rsdScriptSetGlobalVar() argument
107 cs->setGlobalVar(slot, data, dataLength); in rsdScriptSetGlobalVar()
111 uint32_t slot, void *data, size_t dataLength) { in rsdScriptGetGlobalVar() argument
113 cs->getGlobalVar(slot, data, dataLength); in rsdScriptGetGlobalVar()
118 uint32_t slot, void *data, size_t dataLength, in rsdScriptSetGlobalVarWithElemDims() argument
122 cs->setGlobalVarWithElemDims(slot, data, dataLength, elem, dims, dimLength); in rsdScriptSetGlobalVarWithElemDims()
[all …]
DrsdBcc.h33 uint32_t slot,
39 uint32_t slot,
55 uint32_t slot, void *data, size_t dataLen);
58 uint32_t slot, void *data, size_t dataLen);
61 uint32_t slot, void *data,
68 uint32_t slot, android::renderscript::Allocation *data);
71 uint32_t slot, android::renderscript::ObjectBase *data);
75 uint32_t slot,
80 uint32_t slot,
DrsdVertexArray.cpp66 void RsdVertexArray::logAttrib(uint32_t idx, uint32_t slot) const { in logAttrib()
71 idx, slot, in logAttrib()
100 int32_t slot = sc->vtxAttribSlot(mAttribs[ct].name); in setup() local
102 logAttrib(ct, slot); in setup()
104 if (slot < 0 || slot >= (int32_t)maxAttrs) { in setup()
107 glEnableVertexAttribArray(slot); in setup()
108 state->mAttrsEnabled[slot] = true; in setup()
110 glVertexAttribPointer(slot, in setup()
/frameworks/rs/cpp/
DScript.cpp25 void Script::invoke(uint32_t slot, const void *v, size_t len) const { in invoke() argument
26 rsScriptInvokeV(mRS->getContext(), getID(), slot, v, len); in invoke()
29 void Script::forEach(uint32_t slot, sp<const Allocation> ain, sp<const Allocation> aout, in forEach() argument
36 rsScriptForEach(mRS->getContext(), getID(), slot, in_id, out_id, usr, usrLen, NULL, 0); in forEach()
44 void Script::bindAllocation(sp<Allocation> va, uint32_t slot) const { in bindAllocation()
45 rsScriptBindAllocation(mRS->getContext(), getID(), BaseObj::getObjID(va), slot); in bindAllocation()
/frameworks/native/libs/gui/tests/
DBufferQueue_test.cpp70 int slot; in TEST_F() local
79 mBQ->dequeueBuffer(&slot, &fence, 1, 1, 0, in TEST_F()
81 ASSERT_EQ(OK, mBQ->requestBuffer(slot, &buf)); in TEST_F()
82 ASSERT_EQ(OK, mBQ->queueBuffer(slot, qbi, &qbo)); in TEST_F()
87 mBQ->dequeueBuffer(&slot, &fence, 1, 1, 0, in TEST_F()
89 ASSERT_EQ(OK, mBQ->requestBuffer(slot, &buf)); in TEST_F()
90 ASSERT_EQ(OK, mBQ->queueBuffer(slot, qbi, &qbo)); in TEST_F()
/frameworks/base/core/java/android/app/
DStatusBarManager.java146 public void setIcon(String slot, int iconId, int iconLevel, String contentDescription) { in setIcon() argument
150 svc.setIcon(slot, mContext.getPackageName(), iconId, iconLevel, in setIcon()
159 public void removeIcon(String slot) { in removeIcon() argument
163 svc.removeIcon(slot); in removeIcon()
171 public void setIconVisibility(String slot, boolean visible) { in setIconVisibility() argument
175 svc.setIconVisibility(slot, visible); in setIconVisibility()

1234