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

12345

/frameworks/native/libs/gui/
H A DBufferQueueCore.cpp84 for (int slot = 0; slot < BufferQueueDefs::NUM_BUFFER_SLOTS; ++slot) {
85 mFreeSlots.insert(slot);
116 const BufferSlot& slot(mSlots[s]);
117 if (slot.mBufferState != BufferSlot::FREE ||
118 slot.mGraphicBuffer != NULL) {
125 const BufferSlot& slot(mSlots[s]);
126 const sp<GraphicBuffer>& buffer(slot.mGraphicBuffer);
128 (slot
199 freeBufferLocked(int slot) argument
235 const BufferSlot& slot = mSlots[item->mSlot]; local
[all...]
H A DBufferQueueConsumer.cpp132 // Front buffer is still in mSlots, so mark the slot as free
165 int slot = front->mSlot; local
167 ATRACE_BUFFER_INDEX(slot);
169 BQ_LOGV("acquireBuffer: acquiring { slot=%d/%" PRIu64 " buffer=%p }",
170 slot, front->mFrameNumber, front->mGraphicBuffer->handle);
171 // If the front buffer is still being tracked, update its slot state
173 mSlots[slot].mAcquireCalled = true;
174 mSlots[slot].mNeedsCleanupOnRelease = false;
175 mSlots[slot].mBufferState = BufferSlot::ACQUIRED;
176 mSlots[slot]
207 detachBuffer(int slot) argument
274 auto slot = mCore->mFreeSlots.begin(); local
319 releaseBuffer(int slot, uint64_t frameNumber, const sp<Fence>& releaseFence, EGLDisplay eglDisplay, EGLSyncKHR eglFence) argument
[all...]
H A DConsumerBase.cpp186 status_t ConsumerBase::detachBuffer(int slot) { argument
190 status_t result = mConsumer->detachBuffer(slot);
196 freeBufferLocked(slot);
248 CB_LOGV("acquireBufferLocked: -> slot=%d/%" PRIu64,
254 status_t ConsumerBase::addReleaseFence(int slot, argument
257 return addReleaseFenceLocked(slot, graphicBuffer, fence);
260 status_t ConsumerBase::addReleaseFenceLocked(int slot, argument
262 CB_LOGV("addReleaseFenceLocked: slot=%d", slot);
266 if (!stillTracking(slot, graphicBuffe
289 releaseBufferLocked( int slot, const sp<GraphicBuffer> graphicBuffer, EGLDisplay display, EGLSyncKHR eglFence) argument
312 stillTracking(int slot, const sp<GraphicBuffer> graphicBuffer) argument
[all...]
H A DBufferQueueProducer.cpp50 status_t BufferQueueProducer::requestBuffer(int slot, sp<GraphicBuffer>* buf) { argument
52 BQ_LOGV("requestBuffer: slot %d", slot);
60 if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) {
61 BQ_LOGE("requestBuffer: slot index %d out of range [0, %d)",
62 slot, BufferQueueDefs::NUM_BUFFER_SLOTS);
64 } else if (mSlots[slot].mBufferState != BufferSlot::DEQUEUED) {
65 BQ_LOGE("requestBuffer: slot %d is not owned by the producer "
66 "(state = %d)", slot, mSlot
219 auto slot = mCore->mFreeBuffers.begin(); local
223 auto slot = mCore->mFreeSlots.begin(); local
418 detachBuffer(int slot) argument
542 queueBuffer(int slot, const QueueBufferInput &input, QueueBufferOutput *output) argument
734 cancelBuffer(int slot, const sp<Fence>& fence) argument
1047 int slot = freeSlots[i]; local
[all...]
/frameworks/rs/
H A DrsScript.cpp45 void Script::setSlot(uint32_t slot, Allocation *a) { argument
46 //ALOGE("setSlot %i %p", slot, a);
47 if (slot >= mHal.info.exportedVariableCount) {
48 ALOGE("Script::setSlot unable to set allocation, invalid slot index");
54 mSlots[slot].set(a);
56 mRSC->mHal.funcs.script.setGlobalBind(mRSC, this, slot, a);
59 void Script::setVar(uint32_t slot, const void *val, size_t len) { argument
60 //ALOGE("setVar %i %p %i", slot, val, len);
61 if (slot >= mHal.info.exportedVariableCount) {
62 ALOGE("Script::setVar unable to set allocation, invalid slot inde
70 getVar(uint32_t slot, const void *val, size_t len) argument
82 setVar(uint32_t slot, const void *val, size_t len, Element *e, const uint32_t *dims, size_t dimLen) argument
95 setVarObj(uint32_t slot, ObjectBase *val) argument
122 ScriptKernelID(Context *rsc, Script *s, int slot, int sig) argument
132 ScriptInvokeID(Context *rsc, Script *s, int slot) argument
140 ScriptFieldID(Context *rsc, Script *s, int slot) argument
152 rsi_ScriptKernelIDCreate(Context *rsc, RsScript vs, int slot, int sig) argument
158 rsi_ScriptInvokeIDCreate(Context *rsc, RsScript vs, uint32_t slot) argument
164 rsi_ScriptFieldIDCreate(Context *rsc, RsScript vs, int slot) argument
170 rsi_ScriptBindAllocation(Context * rsc, RsScript vs, RsAllocation va, uint32_t slot) argument
195 rsi_ScriptForEachMulti(Context *rsc, RsScript vs, uint32_t slot, RsAllocation *vains, size_t inLen, RsAllocation vaout, const void *params, size_t paramLen, const RsScriptCall *sc, size_t scLen) argument
210 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
227 rsi_ScriptInvoke(Context *rsc, RsScript vs, uint32_t slot) argument
233 rsi_ScriptInvokeData(Context *rsc, RsScript vs, uint32_t slot, void *data) argument
238 rsi_ScriptInvokeV(Context *rsc, RsScript vs, uint32_t slot, const void *data, size_t len) argument
243 rsi_ScriptSetVarI(Context *rsc, RsScript vs, uint32_t slot, int value) argument
248 rsi_ScriptSetVarObj(Context *rsc, RsScript vs, uint32_t slot, RsObjectBase value) argument
254 rsi_ScriptSetVarJ(Context *rsc, RsScript vs, uint32_t slot, int64_t value) argument
259 rsi_ScriptSetVarF(Context *rsc, RsScript vs, uint32_t slot, float value) argument
264 rsi_ScriptSetVarD(Context *rsc, RsScript vs, uint32_t slot, double value) argument
269 rsi_ScriptSetVarV(Context *rsc, RsScript vs, uint32_t slot, const void *data, size_t len) argument
274 rsi_ScriptGetVarV(Context *rsc, RsScript vs, uint32_t slot, void *data, size_t len) argument
279 rsi_ScriptSetVarVE(Context *rsc, RsScript vs, uint32_t slot, const void *data, size_t len, RsElement ve, const uint32_t *dims, size_t dimLen) argument
[all...]
H A DrsProgram.cpp152 void Program::bindAllocation(Context *rsc, Allocation *alloc, uint32_t slot) { argument
154 if (slot >= mHal.state.constantsCount) {
155 ALOGE("Attempt to bind alloc at slot %u, on shader id %" PRIuPTR ", but const count is %u",
156 slot, (uintptr_t)this, mHal.state.constantsCount);
160 if (alloc->getType() != mConstantTypes[slot].get()) {
161 ALOGE("Attempt to bind alloc at slot %u, on shader id %" PRIuPTR ", but types mismatch",
162 slot, (uintptr_t)this);
167 if (mConstants[slot].get() == alloc) {
170 if (mConstants[slot].get()) {
171 mConstants[slot]
181 bindTexture(Context *rsc, uint32_t slot, Allocation *a) argument
200 bindSampler(Context *rsc, uint32_t slot, Sampler *s) argument
215 rsi_ProgramBindConstants(Context *rsc, RsProgram vp, uint32_t slot, RsAllocation constants) argument
220 rsi_ProgramBindTexture(Context *rsc, RsProgram vpf, uint32_t slot, RsAllocation a) argument
225 rsi_ProgramBindSampler(Context *rsc, RsProgram vpf, uint32_t slot, RsSampler s) argument
[all...]
H A DrsScript.h38 IDBase(Context *rsc, Script *s, int slot) : argument
39 ObjectBase(rsc), mScript(s), mSlot(slot) {}
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);
115 void setSlot(uint32_t slot, Allocation *a);
116 void setVar(uint32_t slot, const void *val, size_t len);
117 void getVar(uint32_t slot, const void *val, size_t len);
118 void setVar(uint32_t slot, const void *val, size_t len, Element *e,
120 void setVarObj(uint32_t slot, ObjectBas
[all...]
H A DrsScriptIntrinsic.h44 uint32_t slot,
52 virtual void Invoke(Context *rsc, uint32_t slot, const void *data, size_t len);
/frameworks/rs/cpu_ref/
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 ** ains, argument
82 void RsdCpuScriptIntrinsic::postLaunch(uint32_t slot, const Allocation ** ains, argument
88 void RsdCpuScriptIntrinsic::invokeForEach(uint32_t slot, argument
98 preLaunch(slot, ains, inLen, aout, usr, usrLen, sc);
102 mtls.fep.slot
115 forEachKernelSetup(uint32_t slot, MTLaunchStruct *mtls) argument
[all...]
H A DrsCpuIntrinsic.h31 void invokeFunction(uint32_t slot, const void * params, size_t paramLength) override;
34 void invokeForEach(uint32_t slot,
42 void forEachKernelSetup(uint32_t slot, MTLaunchStruct * mtls) override;
46 void preLaunch(uint32_t slot, const Allocation ** ains,
49 void postLaunch(uint32_t slot, const Allocation ** ains,
54 void setGlobalVar(uint32_t slot, const void * data, size_t dataLength) override;
55 void setGlobalVarWithElemDims(uint32_t slot, const void * data,
59 void setGlobalBind(uint32_t slot, Allocation *data) override;
60 void setGlobalObj(uint32_t slot, ObjectBase *data) override;
H A DrsCpuExecutable.h134 void* getFieldAddress(int slot) const { return mFieldAddress[slot]; }
136 bool getFieldIsObject(int slot) const { return mFieldIsObject[slot]; }
137 const char* getFieldName(int slot) const { return mFieldName[slot]; }
139 InvokeFunc_t getInvokeFunction(int slot) const { return mInvokeFunctions[slot]; }
141 ForEachFunc_t getForEachFunction(int slot) const { return mForEachFunctions[slot]; }
[all...]
H A DrsCpuScript.h62 void invokeFunction(uint32_t slot, const void *params, size_t paramLength) override;
64 virtual void preLaunch(uint32_t slot, const Allocation ** ains,
67 virtual void postLaunch(uint32_t slot, const Allocation ** ains,
72 void invokeForEach(uint32_t slot,
83 void setGlobalVar(uint32_t slot, const void *data, size_t dataLength) override;
84 void getGlobalVar(uint32_t slot, void *data, size_t dataLength) override;
85 void setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength,
88 void setGlobalBind(uint32_t slot, Allocation *data) override;
89 void setGlobalObj(uint32_t slot, ObjectBase *data) override;
91 const char* getFieldName(uint32_t slot) cons
[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/rs/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(long id, RenderScript rs, Script s, int slot, int sig) { argument
42 mSlot = slot;
51 protected KernelID createKernelID(int slot, int sig, Element ein, argument
53 KernelID k = mKIDs.get(slot);
58 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig);
63 k = new KernelID(id, mRS, this, slot, sig);
64 mKIDs.put(slot, k);
79 InvokeID(long id, RenderScript rs, Script s, int slot) { argument
82 mSlot = slot;
90 protected InvokeID createInvokeID(int slot) { argument
117 FieldID(long id, RenderScript rs, Script s, int slot) argument
128 createFieldID(int slot, Element e) argument
149 invoke(int slot) argument
157 invoke(int slot, FieldPacker v) argument
169 forEach(int slot, Allocation ain, Allocation aout, FieldPacker v) argument
178 forEach(int slot, Allocation ain, Allocation aout, FieldPacker v, LaunchOptions sc) argument
224 forEach(int slot, Allocation[] ains, Allocation aout, FieldPacker v) argument
234 forEach(int slot, Allocation[] ains, Allocation aout, FieldPacker v, LaunchOptions sc) argument
299 bindAllocation(Allocation va, int slot) argument
[all...]
H A DProgramVertex.java66 * @param slot location of the input to return
69 public Element getInput(int slot) { argument
70 if (slot < 0 || slot >= mInputs.length) {
73 return mInputs[slot];
/frameworks/rs/driver/
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%p",
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.cpp71 uint32_t slot,
79 rsdScriptInvokeForEachMulti(rsc, s, slot, nullptr, 0, aout, usr, usrLen,
84 rsdScriptInvokeForEachMulti(rsc, s, slot, ains, 1, aout, usr, usrLen,
91 uint32_t slot,
100 cs->invokeForEach(slot, ains, inLen, aout, usr, usrLen, sc);
120 uint32_t slot,
124 cs->invokeFunction(slot, params, paramLength);
128 uint32_t slot, void *data, size_t dataLength) {
130 cs->setGlobalVar(slot, data, dataLength);
134 uint32_t slot, voi
69 rsdScriptInvokeForEach(const Context *rsc, Script *s, uint32_t slot, const Allocation * ain, Allocation * aout, const void * usr, size_t usrLen, const RsScriptCall *sc) argument
89 rsdScriptInvokeForEachMulti(const Context *rsc, Script *s, uint32_t slot, const Allocation ** ains, size_t inLen, Allocation * aout, const void * usr, size_t usrLen, const RsScriptCall *sc) argument
119 rsdScriptInvokeFunction(const Context *dc, Script *s, uint32_t slot, const void *params, size_t paramLength) argument
127 rsdScriptSetGlobalVar(const Context *dc, const Script *s, uint32_t slot, void *data, size_t dataLength) argument
133 rsdScriptGetGlobalVar(const Context *dc, const Script *s, uint32_t slot, void *data, size_t dataLength) argument
140 rsdScriptSetGlobalVarWithElemDims(const Context *dc, const Script *s, uint32_t slot, void *data, size_t dataLength, const android::renderscript::Element *elem, const uint32_t *dims, size_t dimLength) argument
148 rsdScriptSetGlobalBind(const Context *dc, const Script *s, uint32_t slot, Allocation *data) argument
153 rsdScriptSetGlobalObj(const Context *dc, const Script *s, uint32_t slot, ObjectBase *data) argument
[all...]
H A DrsdBcc.h33 uint32_t slot,
39 uint32_t slot,
48 uint32_t slot,
65 uint32_t slot, void *data, size_t dataLen);
68 uint32_t slot, void *data, size_t dataLen);
71 uint32_t slot, void *data,
78 uint32_t slot, android::renderscript::Allocation *data);
81 uint32_t slot, android::renderscript::ObjectBase *data);
85 uint32_t slot,
90 uint32_t slot,
[all...]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DScript.java68 KernelID(long id, RenderScript rs, Script s, int slot, int sig) { argument
71 mSlot = slot;
81 * @param slot
88 protected KernelID createKernelID(int slot, int sig, Element ein, Element eout) { argument
89 KernelID k = mKIDs.get(slot);
94 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig, mUseIncSupp);
99 k = new KernelID(id, mRS, this, slot, sig);
101 mKIDs.put(slot, k);
116 InvokeID(long id, RenderScript rs, Script s, int slot) { argument
119 mSlot = slot;
127 createInvokeID(int slot) argument
155 FieldID(long id, RenderScript rs, Script s, int slot) argument
171 createFieldID(int slot, Element e) argument
192 invoke(int slot) argument
202 invoke(int slot, FieldPacker v) argument
216 bindAllocation(Allocation va, int slot) argument
243 forEach(int slot, Allocation ain, Allocation aout, FieldPacker v) argument
280 forEach(int slot, Allocation ain, Allocation aout, FieldPacker v, LaunchOptions sc) 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, nullptr, 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/services/surfaceflinger/
H A DMonitoredProducer.cpp55 status_t MonitoredProducer::requestBuffer(int slot, sp<GraphicBuffer>* buf) { argument
56 return mProducer->requestBuffer(slot, buf);
63 status_t MonitoredProducer::dequeueBuffer(int* slot, sp<Fence>* fence, argument
65 return mProducer->dequeueBuffer(slot, fence, async, w, h, format, usage);
68 status_t MonitoredProducer::detachBuffer(int slot) { argument
69 return mProducer->detachBuffer(slot);
82 status_t MonitoredProducer::queueBuffer(int slot, const QueueBufferInput& input, argument
84 return mProducer->queueBuffer(slot, input, output);
87 void MonitoredProducer::cancelBuffer(int slot, const sp<Fence>& fence) { argument
88 mProducer->cancelBuffer(slot, fenc
[all...]
H A DMonitoredProducer.h37 virtual status_t requestBuffer(int slot, sp<GraphicBuffer>* buf);
39 virtual status_t dequeueBuffer(int* slot, sp<Fence>* fence, bool async,
41 virtual status_t detachBuffer(int slot);
46 virtual status_t queueBuffer(int slot, const QueueBufferInput& input,
48 virtual void cancelBuffer(int slot, const sp<Fence>& fence);
/frameworks/native/libs/gui/tests/
H A DBufferQueue_test.cpp112 int slot; local
116 mProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0,
118 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer));
129 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output));
150 int slot; local
160 mProducer->dequeueBuffer(&slot, &fence, false, 1, 1, 0,
162 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf));
163 ASSERT_EQ(OK, mProducer->queueBuffer(slot, qbi, &qbo));
168 mProducer->dequeueBuffer(&slot, &fence, false, 1, 1, 0,
170 ASSERT_EQ(OK, mProducer->requestBuffer(slot,
222 int slot; local
271 int slot; local
330 int slot; local
378 int slot; local
412 int slot; local
[all...]
/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);

Completed in 375 milliseconds

12345