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

1234

/frameworks/rs/
H A DrsScript.cpp44 void Script::setSlot(uint32_t slot, Allocation *a) { argument
45 //ALOGE("setSlot %i %p", slot, a);
46 if (slot >= mHal.info.exportedVariableCount) {
47 ALOGE("Script::setSlot unable to set allocation, invalid slot index");
51 mSlots[slot].set(a);
53 mRSC->mHal.funcs.script.setGlobalBind(mRSC, this, slot, a);
56 void Script::setVar(uint32_t slot, const void *val, size_t len) { argument
57 //ALOGE("setVar %i %p %i", slot, val, len);
58 if (slot >= mHal.info.exportedVariableCount) {
59 ALOGE("Script::setVar unable to set allocation, invalid slot inde
65 getVar(uint32_t slot, const void *val, size_t len) argument
74 setVar(uint32_t slot, const void *val, size_t len, Element *e, const size_t *dims, size_t dimLen) argument
84 setVarObj(uint32_t slot, ObjectBase *val) argument
101 ScriptKernelID(Context *rsc, Script *s, int slot, int sig) argument
122 ScriptFieldID(Context *rsc, Script *s, int slot) argument
143 rsi_ScriptKernelIDCreate(Context *rsc, RsScript vs, int slot, int sig) argument
149 rsi_ScriptFieldIDCreate(Context *rsc, RsScript vs, int slot) argument
155 rsi_ScriptBindAllocation(Context * rsc, RsScript vs, RsAllocation va, uint32_t slot) argument
180 rsi_ScriptForEach(Context *rsc, RsScript vs, uint32_t slot, RsAllocation vain, RsAllocation vaout, const void *params, size_t paramLen, const RsScriptCall *sc, size_t scLen) argument
198 rsi_ScriptInvoke(Context *rsc, RsScript vs, uint32_t slot) argument
204 rsi_ScriptInvokeData(Context *rsc, RsScript vs, uint32_t slot, void *data) argument
209 rsi_ScriptInvokeV(Context *rsc, RsScript vs, uint32_t slot, const void *data, size_t len) argument
214 rsi_ScriptSetVarI(Context *rsc, RsScript vs, uint32_t slot, int value) argument
219 rsi_ScriptSetVarObj(Context *rsc, RsScript vs, uint32_t slot, RsObjectBase value) argument
225 rsi_ScriptSetVarJ(Context *rsc, RsScript vs, uint32_t slot, int64_t value) argument
230 rsi_ScriptSetVarF(Context *rsc, RsScript vs, uint32_t slot, float value) argument
235 rsi_ScriptSetVarD(Context *rsc, RsScript vs, uint32_t slot, double value) argument
240 rsi_ScriptSetVarV(Context *rsc, RsScript vs, uint32_t slot, const void *data, size_t len) argument
245 rsi_ScriptGetVarV(Context *rsc, RsScript vs, uint32_t slot, void *data, size_t len) argument
250 rsi_ScriptSetVarVE(Context *rsc, RsScript vs, uint32_t slot, const void *data, size_t len, RsElement ve, const size_t *dims, size_t dimLen) argument
[all...]
H A DrsProgram.cpp150 void Program::bindAllocation(Context *rsc, Allocation *alloc, uint32_t slot) { argument
152 if (slot >= mHal.state.constantsCount) {
153 ALOGE("Attempt to bind alloc at slot %u, on shader id %u, but const count is %u",
154 slot, (uint32_t)this, mHal.state.constantsCount);
158 if (alloc->getType() != mConstantTypes[slot].get()) {
159 ALOGE("Attempt to bind alloc at slot %u, on shader id %u, but types mismatch",
160 slot, (uint32_t)this);
165 if (mConstants[slot].get() == alloc) {
168 if (mConstants[slot].get()) {
169 mConstants[slot]
179 bindTexture(Context *rsc, uint32_t slot, Allocation *a) argument
198 bindSampler(Context *rsc, uint32_t slot, Sampler *s) argument
213 rsi_ProgramBindConstants(Context *rsc, RsProgram vp, uint32_t slot, RsAllocation constants) argument
218 rsi_ProgramBindTexture(Context *rsc, RsProgram vpf, uint32_t slot, RsAllocation a) argument
223 rsi_ProgramBindSampler(Context *rsc, RsProgram vpf, uint32_t slot, RsSampler s) argument
[all...]
H A DrsScript.h37 ScriptKernelID(Context *rsc, Script *s, int slot, int sig);
51 ScriptFieldID(Context *rsc, Script *s, int slot);
102 void setSlot(uint32_t slot, Allocation *a);
103 void setVar(uint32_t slot, const void *val, size_t len);
104 void getVar(uint32_t slot, const void *val, size_t len);
105 void setVar(uint32_t slot, const void *val, size_t len, Element *e,
107 void setVarObj(uint32_t slot, ObjectBase *val);
112 uint32_t slot,
119 virtual void Invoke(Context *rsc, uint32_t slot, const void *data, size_t len) = 0;
H A DrsScriptIntrinsic.h44 uint32_t slot,
51 virtual void Invoke(Context *rsc, uint32_t slot, const void *data, size_t len);
H A DrsFBOCache.cpp47 void FBOCache::bindColorTarget(Context *rsc, Allocation *a, uint32_t slot) { argument
48 if (slot >= mHal.state.colorTargetsCount) {
58 mColorTargets[slot].set(a);
59 mHal.state.colorTargets[slot] = a;
H A DrsProgram.h66 void bindAllocation(Context *, Allocation *, uint32_t slot);
70 void bindTexture(Context *, uint32_t slot, Allocation *);
71 void bindSampler(Context *, uint32_t slot, Sampler *);
/frameworks/rs/cpu_ref/
H A 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 preLaunch(uint32_t slot, const Allocation * ain,
46 virtual void postLaunch(uint32_t slot, const Allocation * ain,
50 virtual void setGlobalVar(uint32_t slot, const void *data, size_t dataLength);
51 virtual void setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength,
53 virtual void setGlobalBind(uint32_t slot, Allocation *data);
54 virtual void setGlobalObj(uint32_t slot, ObjectBase *data);
H A DrsCpuIntrinsic.cpp34 void RsdCpuScriptIntrinsic::invokeFunction(uint32_t slot, const void *params, size_t paramLength) { argument
50 void RsdCpuScriptIntrinsic::setGlobalVar(uint32_t slot, const void *data, size_t dataLength) { argument
55 void RsdCpuScriptIntrinsic::setGlobalVarWithElemDims(uint32_t slot, const void *data, argument
62 void RsdCpuScriptIntrinsic::setGlobalBind(uint32_t slot, Allocation *data) { argument
67 void RsdCpuScriptIntrinsic::setGlobalObj(uint32_t slot, ObjectBase *data) { argument
76 void RsdCpuScriptIntrinsic::preLaunch(uint32_t slot, const Allocation * ain, argument
81 void RsdCpuScriptIntrinsic::postLaunch(uint32_t slot, const Allocation * ain, argument
86 void RsdCpuScriptIntrinsic::invokeForEach(uint32_t slot, argument
94 preLaunch(slot, ain, aout, usr, usrLen, sc);
98 mtls.fep.slot
110 forEachKernelSetup(uint32_t slot, MTLaunchStruct *mtls) argument
[all...]
H A Drsd_cpu.h70 virtual void invokeFunction(uint32_t slot, const void *params, size_t paramLength) = 0;
72 virtual void invokeForEach(uint32_t slot,
81 virtual void setGlobalVar(uint32_t slot, const void *data, size_t dataLength) = 0;
82 virtual void getGlobalVar(uint32_t slot, void *data, size_t dataLength) = 0;
83 virtual void setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength,
85 virtual void setGlobalBind(uint32_t slot, Allocation *data) = 0;
86 virtual void setGlobalObj(uint32_t slot, ObjectBase *obj) = 0;
H A DrsCpuScript.h53 virtual void invokeFunction(uint32_t slot, const void *params, size_t paramLength);
55 virtual void preLaunch(uint32_t slot, const Allocation * ain,
58 virtual void postLaunch(uint32_t slot, const Allocation * ain,
61 virtual void invokeForEach(uint32_t slot,
70 virtual void setGlobalVar(uint32_t slot, const void *data, size_t dataLength);
71 virtual void getGlobalVar(uint32_t slot, void *data, size_t dataLength);
72 virtual void setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength,
74 virtual void setGlobalBind(uint32_t slot, Allocation *data);
75 virtual void setGlobalObj(uint32_t slot, ObjectBase *data);
86 virtual void forEachKernelSetup(uint32_t slot, MTLaunchStruc
[all...]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DScript.java46 KernelID(int id, RenderScript rs, Script s, int slot, int sig) { argument
49 mSlot = slot;
59 * @param slot
66 protected KernelID createKernelID(int slot, int sig, Element ein, Element eout) { argument
67 KernelID k = mKIDs.get(slot);
75 k = new KernelID(0, mRS, this, slot, sig);
77 k.mN = mT.thunkCreateKernelID(slot, sig, ein, eout);
79 mKIDs.put(slot, k);
84 int id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig);
89 k = new KernelID(id, mRS, this, slot, si
107 FieldID(int id, RenderScript rs, Script s, int slot) argument
123 createFieldID(int slot, Element e) argument
156 invoke(int slot) argument
171 invoke(int slot, FieldPacker v) argument
190 bindAllocation(Allocation va, int slot) argument
227 forEach(int slot, Allocation ain, Allocation aout, FieldPacker v) argument
261 forEach(int slot, Allocation ain, Allocation aout, FieldPacker v, LaunchOptions sc) argument
[all...]
H A DScriptCThunker.java43 int slot, int sig, Element ein, Element eout) {
54 android.renderscript.Script.KernelID kid = createKernelID(slot, sig, nein, neout);
62 void thunkInvoke(int slot) { argument
64 invoke(slot);
70 void thunkBindAllocation(Allocation va, int slot) { argument
76 bindAllocation(nva, slot);
90 void thunkInvoke(int slot, FieldPacker v) { argument
94 invoke(slot, nfp);
100 void thunkForEach(int slot, Allocation ain, Allocation aout, FieldPacker v) { argument
114 forEach(slot, ni
42 thunkCreateKernelID( int slot, int sig, Element ein, Element eout) argument
120 thunkForEach(int slot, Allocation ain, Allocation aout, FieldPacker v, android.support.v8.renderscript.Script.LaunchOptions sc) argument
221 thunkCreateFieldID(int slot, Element e) argument
[all...]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_imdct_synth.cpp319 for (int32 slot = 1; slot < FILTERBANK_BANDS; slot += 6)
321 int32 temp1 = out[slot ];
322 int32 temp2 = out[slot+2];
323 int32 temp3 = out[slot+4];
324 out[slot ] = -temp1;
325 out[slot+2] = -temp2;
326 out[slot+4] = -temp3;
336 int32 slot; local
[all...]
/frameworks/base/graphics/java/android/renderscript/
H A DProgram.java94 * @param slot index of the constant input type to return
97 public Type getConstant(int slot) { argument
98 if (slot < 0 || slot >= mConstants.length) {
101 return mConstants[slot];
113 * Returns the type of texture at a given slot. e.g. 2D or Cube
114 * @param slot index of the texture input
117 public TextureType getTextureType(int slot) { argument
118 if ((slot < 0) || (slot >
130 getTextureName(int slot) argument
145 bindConstants(Allocation a, int slot) argument
164 bindTexture(Allocation va, int slot) argument
188 bindSampler(Sampler vs, int slot) argument
[all...]
H A DScript.java39 KernelID(int id, RenderScript rs, Script s, int slot, int sig) { argument
42 mSlot = slot;
51 protected KernelID createKernelID(int slot, int sig, Element ein, Element eout) { argument
52 KernelID k = mKIDs.get(slot);
57 int id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig);
62 k = new KernelID(id, mRS, this, slot, sig);
63 mKIDs.put(slot, k);
78 FieldID(int id, RenderScript rs, Script s, int slot) { argument
81 mSlot = slot;
89 protected FieldID createFieldID(int slot, Elemen argument
110 invoke(int slot) argument
118 invoke(int slot, FieldPacker v) argument
130 forEach(int slot, Allocation ain, Allocation aout, FieldPacker v) argument
154 forEach(int slot, Allocation ain, Allocation aout, FieldPacker v, LaunchOptions sc) argument
188 bindAllocation(Allocation va, int slot) argument
[all...]
H A DRenderScript.java220 native void rsnContextBindSampler(int con, int sampler, int slot); argument
221 synchronized void nContextBindSampler(int sampler, int slot) { argument
223 rsnContextBindSampler(mContext, sampler, slot);
582 native void rsnScriptBindAllocation(int con, int script, int alloc, int slot); argument
583 synchronized void nScriptBindAllocation(int script, int alloc, int slot) { argument
585 rsnScriptBindAllocation(mContext, script, alloc, slot);
592 native void rsnScriptInvoke(int con, int id, int slot); argument
593 synchronized void nScriptInvoke(int id, int slot) { argument
595 rsnScriptInvoke(mContext, id, slot);
597 native void rsnScriptForEach(int con, int id, int slot, in argument
598 rsnScriptForEach(int con, int id, int slot, int ain, int aout) argument
599 rsnScriptForEachClipped(int con, int id, int slot, int ain, int aout, byte[] params, int xstart, int xend, int ystart, int yend, int zstart, int zend) argument
601 rsnScriptForEachClipped(int con, int id, int slot, int ain, int aout, int xstart, int xend, int ystart, int yend, int zstart, int zend) argument
603 nScriptForEach(int id, int slot, int ain, int aout, byte[] params) argument
612 nScriptForEachClipped(int id, int slot, int ain, int aout, byte[] params, int xstart, int xend, int ystart, int yend, int zstart, int zend) argument
622 rsnScriptInvokeV(int con, int id, int slot, byte[] params) argument
623 nScriptInvokeV(int id, int slot, byte[] params) argument
628 rsnScriptSetVarI(int con, int id, int slot, int val) argument
629 nScriptSetVarI(int id, int slot, int val) argument
633 rsnScriptGetVarI(int con, int id, int slot) argument
634 nScriptGetVarI(int id, int slot) argument
639 rsnScriptSetVarJ(int con, int id, int slot, long val) argument
640 nScriptSetVarJ(int id, int slot, long val) argument
644 rsnScriptGetVarJ(int con, int id, int slot) argument
645 nScriptGetVarJ(int id, int slot) argument
650 rsnScriptSetVarF(int con, int id, int slot, float val) argument
651 nScriptSetVarF(int id, int slot, float val) argument
655 rsnScriptGetVarF(int con, int id, int slot) argument
656 nScriptGetVarF(int id, int slot) argument
660 rsnScriptSetVarD(int con, int id, int slot, double val) argument
661 nScriptSetVarD(int id, int slot, double val) argument
665 rsnScriptGetVarD(int con, int id, int slot) argument
666 nScriptGetVarD(int id, int slot) argument
670 rsnScriptSetVarV(int con, int id, int slot, byte[] val) argument
671 nScriptSetVarV(int id, int slot, byte[] val) argument
675 rsnScriptGetVarV(int con, int id, int slot, byte[] val) argument
676 nScriptGetVarV(int id, int slot, byte[] val) argument
680 rsnScriptSetVarVE(int con, int id, int slot, byte[] val, int e, int[] dims) argument
682 nScriptSetVarVE(int id, int slot, byte[] val, int e, int[] dims) argument
687 rsnScriptSetVarObj(int con, int id, int slot, int val) argument
688 nScriptSetVarObj(int id, int slot, int val) argument
706 rsnScriptKernelIDCreate(int con, int sid, int slot, int sig) argument
707 nScriptKernelIDCreate(int sid, int slot, int sig) argument
712 rsnScriptFieldIDCreate(int con, int sid, int slot) argument
713 nScriptFieldIDCreate(int sid, int slot) argument
767 rsnProgramBindConstants(int con, int pv, int slot, int mID) argument
768 nProgramBindConstants(int pv, int slot, int mID) argument
772 rsnProgramBindTexture(int con, int vpf, int slot, int a) argument
773 nProgramBindTexture(int vpf, int slot, int a) argument
777 rsnProgramBindSampler(int con, int vpf, int slot, int s) argument
778 nProgramBindSampler(int vpf, int slot, int s) argument
[all...]
H A DProgramVertex.java70 * @param slot location of the input to return
73 public Element getInput(int slot) { argument
74 if (slot < 0 || slot >= mInputs.length) {
77 return mInputs[slot];
/frameworks/native/libs/gui/
H A DConsumerBase.cpp191 CB_LOGV("acquireBufferLocked: -> slot=%d/%llu",
197 status_t ConsumerBase::addReleaseFence(int slot, argument
200 return addReleaseFenceLocked(slot, graphicBuffer, fence);
203 status_t ConsumerBase::addReleaseFenceLocked(int slot, argument
205 CB_LOGV("addReleaseFenceLocked: slot=%d", slot);
209 if (!stillTracking(slot, graphicBuffer)) {
213 if (!mSlots[slot].mFence.get()) {
214 mSlots[slot].mFence = fence;
217 String8::format("%.28s:%d", mName.string(), slot),
232 releaseBufferLocked( int slot, const sp<GraphicBuffer> graphicBuffer, EGLDisplay display, EGLSyncKHR eglFence) argument
255 stillTracking(int slot, const sp<GraphicBuffer> graphicBuffer) argument
[all...]
/frameworks/rs/driver/
H A 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,
H A DrsdVertexArray.cpp66 void RsdVertexArray::logAttrib(uint32_t idx, uint32_t slot) const {
70 ALOGV("va %i: slot=%i name=%s buf=%i ptr=%p size=%i type=0x%x stride=0x%x norm=%i offset=0x%x",
71 idx, slot,
100 int32_t slot = sc->vtxAttribSlot(mAttribs[ct].name); local
102 logAttrib(ct, slot);
104 if (slot < 0 || slot >= (int32_t)maxAttrs) {
107 glEnableVertexAttribArray(slot);
108 state->mAttrsEnabled[slot] = true;
110 glVertexAttribPointer(slot,
[all...]
H A DrsdBcc.cpp69 uint32_t slot,
77 cs->invokeForEach(slot, ain, aout, usr, usrLen, sc);
97 uint32_t slot,
101 cs->invokeFunction(slot, params, paramLength);
105 uint32_t slot, void *data, size_t dataLength) {
107 cs->setGlobalVar(slot, data, dataLength);
111 uint32_t slot, void *data, size_t dataLength) {
113 cs->getGlobalVar(slot, data, dataLength);
118 uint32_t slot, void *data, size_t dataLength,
122 cs->setGlobalVarWithElemDims(slot, dat
67 rsdScriptInvokeForEach(const Context *rsc, Script *s, uint32_t slot, const Allocation * ain, Allocation * aout, const void * usr, size_t usrLen, const RsScriptCall *sc) argument
96 rsdScriptInvokeFunction(const Context *dc, Script *s, uint32_t slot, const void *params, size_t paramLength) argument
104 rsdScriptSetGlobalVar(const Context *dc, const Script *s, uint32_t slot, void *data, size_t dataLength) argument
110 rsdScriptGetGlobalVar(const Context *dc, const Script *s, uint32_t slot, void *data, size_t dataLength) argument
117 rsdScriptSetGlobalVarWithElemDims(const Context *dc, const Script *s, uint32_t slot, void *data, size_t dataLength, const android::renderscript::Element *elem, const size_t *dims, size_t dimLength) argument
125 rsdScriptSetGlobalBind(const Context *dc, const Script *s, uint32_t slot, Allocation *data) argument
130 rsdScriptSetGlobalObj(const Context *dc, const Script *s, uint32_t slot, ObjectBase *data) argument
[all...]
/frameworks/rs/cpp/
H A DScript.cpp25 void Script::invoke(uint32_t slot, const void *v, size_t len) const { argument
26 tryDispatch(mRS, RS::dispatch->ScriptInvokeV(mRS->getContext(), getID(), slot, v, len));
29 void Script::forEach(uint32_t slot, sp<const Allocation> ain, sp<const Allocation> aout, argument
36 tryDispatch(mRS, RS::dispatch->ScriptForEach(mRS->getContext(), getID(), slot, in_id, out_id, usr, usrLen, NULL, 0));
44 void Script::bindAllocation(sp<Allocation> va, uint32_t slot) const {
45 tryDispatch(mRS, RS::dispatch->ScriptBindAllocation(mRS->getContext(), getID(), BaseObj::getObjID(va), slot));
/frameworks/native/libs/gui/tests/
H A DBufferQueue_test.cpp70 int slot; local
79 mBQ->dequeueBuffer(&slot, &fence, false, 1, 1, 0,
81 ASSERT_EQ(OK, mBQ->requestBuffer(slot, &buf));
82 ASSERT_EQ(OK, mBQ->queueBuffer(slot, qbi, &qbo));
87 mBQ->dequeueBuffer(&slot, &fence, false, 1, 1, 0,
89 ASSERT_EQ(OK, mBQ->requestBuffer(slot, &buf));
90 ASSERT_EQ(OK, mBQ->queueBuffer(slot, qbi, &qbo));
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListButtonsDiagonalAcrossItems.java52 final Slot slot = position == 0 ? Slot.Left :
55 parent.getContext(), desiredHeight, slot);
/frameworks/native/include/gui/
H A DConsumerBase.h110 // freeBufferLocked frees up the given buffer slot. If the slot has been
112 // slot. Otherwise it has no effect.
115 // keep per slot. If it is overridden, the derived class's implementation
127 // state they keep (as opposed to per-slot state). If it is overridden,
147 // updates the buffer slot for the buffer returned.
151 // to a slot. If it is overridden the derived class's implementation must
163 virtual status_t releaseBufferLocked(int slot,
167 // returns true iff the slot still has the graphicBuffer in it.
168 bool stillTracking(int slot, cons
[all...]

Completed in 1139 milliseconds

1234