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

12345678

/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DHWComposerBufferCache.cpp28 void HWComposerBufferCache::getHwcBuffer(int slot, argument
32 if (slot == BufferQueue::INVALID_BUFFER_SLOT || slot < 0) {
33 // default to slot 0
34 slot = 0;
37 if (static_cast<size_t>(slot) >= mBuffers.size()) {
38 mBuffers.resize(slot + 1);
41 *outSlot = slot;
43 if (mBuffers[slot] == buffer) {
50 mBuffers[slot]
[all...]
/frameworks/rs/rsov/compiler/
H A DContext.cpp48 // Builds the lookup table from a variable name to its slot number
49 for (size_t slot = 0; slot < varCount; slot++) {
50 std::string varName(varNames[slot]);
51 mVarNameToSlot.insert(std::make_pair(varName, (uint32_t)slot));
56 for (size_t slot = 0; slot < kernelCount; slot++) {
57 mForEachNameToSlot.insert(std::make_pair(kernelNames[slot], slo
[all...]
H A DContext.h61 // Initialize the internal data struture such as the slot number lookup table,
68 // Adds the mapping from the slot number of an exported variable to the index
70 void addExportVarIndex(uint32_t slot, uint32_t index) { argument
71 mExportVarIndices[slot] = index;
77 const uint32_t slot = getSlotForExportVar(varName); local
78 if (slot == std::numeric_limits<uint32_t>::max()) {
82 addExportVarIndex(slot, index);
85 // Given the slot number of an exported variable, returns the index of its
87 uint32_t getExportVarIndex(uint32_t slot) const {
88 return mExportVarIndices[slot];
[all...]
/frameworks/native/libs/gui/tests/
H A DBufferItemConsumer_test.cpp77 int slot; local
79 status_t ret = mProducer->dequeueBuffer(&slot, &outFence, kWidth,
83 ALOGV("dequeueBuffer: slot=%d", slot);
85 ret = mProducer->requestBuffer(slot, &mBuffers[slot]);
88 *outSlot = slot;
91 void QueueBuffer(int slot) { argument
92 ALOGV("enqueueBuffer: slot=%d", slot);
111 ReleaseBuffer(int slot) argument
133 int slot; local
151 int slot; local
174 int slot; local
191 int slot; local
[all...]
/frameworks/native/libs/vr/libbufferhubqueue/
H A Dbuffer_hub_queue_producer.cpp32 status_t BufferHubQueueProducer::requestBuffer(int slot, argument
34 ALOGD_IF(TRACE, "requestBuffer: slot=%d", slot);
43 if (slot < 0 || slot >= max_buffer_count_) {
44 ALOGE("requestBuffer: slot index %d out of range [0, %d)", slot,
47 } else if (!buffers_[slot].mBufferState.isDequeued()) {
48 ALOGE("requestBuffer: slot %d is not owned by the producer (state = %s)",
49 slot, buffers
155 size_t slot; local
247 queueBuffer(int slot, const QueueBufferInput& input, QueueBufferOutput* output) argument
356 cancelBuffer(int slot, const sp<Fence>& fence) argument
609 size_t slot; local
627 RemoveBuffer(size_t slot) argument
[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
149 rsi_ScriptKernelIDCreate(Context *rsc, RsScript vs, int slot, int sig) argument
155 rsi_ScriptInvokeIDCreate(Context *rsc, RsScript vs, uint32_t slot) argument
161 rsi_ScriptFieldIDCreate(Context *rsc, RsScript vs, int slot) argument
167 rsi_ScriptBindAllocation(Context * rsc, RsScript vs, RsAllocation va, uint32_t slot) argument
192 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
207 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
224 rsi_ScriptReduce(Context *rsc, RsScript vs, uint32_t slot, RsAllocation *vains, size_t inLen, RsAllocation vaout, const RsScriptCall *sc, size_t scLen) argument
236 rsi_ScriptInvoke(Context *rsc, RsScript vs, uint32_t slot) argument
242 rsi_ScriptInvokeData(Context *rsc, RsScript vs, uint32_t slot, void *data) argument
247 rsi_ScriptInvokeV(Context *rsc, RsScript vs, uint32_t slot, const void *data, size_t len) argument
252 rsi_ScriptSetVarI(Context *rsc, RsScript vs, uint32_t slot, int value) argument
257 rsi_ScriptSetVarObj(Context *rsc, RsScript vs, uint32_t slot, RsObjectBase value) argument
263 rsi_ScriptSetVarJ(Context *rsc, RsScript vs, uint32_t slot, int64_t value) argument
268 rsi_ScriptSetVarF(Context *rsc, RsScript vs, uint32_t slot, float value) argument
273 rsi_ScriptSetVarD(Context *rsc, RsScript vs, uint32_t slot, double value) argument
278 rsi_ScriptSetVarV(Context *rsc, RsScript vs, uint32_t slot, const void *data, size_t len) argument
283 rsi_ScriptGetVarV(Context *rsc, RsScript vs, uint32_t slot, void *data, size_t len) argument
288 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
212 rsi_ProgramBindConstants(Context *rsc, RsProgram vp, uint32_t slot, RsAllocation constants) argument
217 rsi_ProgramBindTexture(Context *rsc, RsProgram vpf, uint32_t slot, RsAllocation a) argument
222 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);
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, ObjectBas
[all...]
/frameworks/native/libs/gui/
H A DBufferQueueCore.cpp196 void BufferQueueCore::clearBufferSlotLocked(int slot) { argument
197 BQ_LOGV("clearBufferSlotLocked: slot %d", slot);
199 mSlots[slot].mGraphicBuffer.clear();
200 mSlots[slot].mBufferState.reset();
201 mSlots[slot].mRequestBufferCalled = false;
202 mSlots[slot].mFrameNumber = 0;
203 mSlots[slot].mAcquireCalled = false;
204 mSlots[slot].mNeedsReallocation = true;
207 if (mSlots[slot]
270 int slot = mUnusedSlots.back(); local
283 auto slot = mFreeSlots.begin(); local
288 int slot = mFreeBuffers.back(); local
[all...]
H A DConsumerBase.cpp192 status_t ConsumerBase::detachBuffer(int slot) { argument
201 status_t result = mConsumer->detachBuffer(slot);
207 freeBufferLocked(slot);
311 CB_LOGV("acquireBufferLocked: -> slot=%d/%" PRIu64,
317 status_t ConsumerBase::addReleaseFence(int slot, argument
320 return addReleaseFenceLocked(slot, graphicBuffer, fence);
323 status_t ConsumerBase::addReleaseFenceLocked(int slot, argument
325 CB_LOGV("addReleaseFenceLocked: slot=%d", slot);
329 if (!stillTracking(slot, graphicBuffe
365 releaseBufferLocked( int slot, const sp<GraphicBuffer> graphicBuffer, EGLDisplay display, EGLSyncKHR eglFence) argument
393 stillTracking(int slot, const sp<GraphicBuffer> graphicBuffer) argument
[all...]
H A DBufferQueueConsumer.cpp148 // Front buffer is still in mSlots, so mark the slot as free
196 int slot = BufferQueueCore::INVALID_BUFFER_SLOT; local
202 slot = mCore->mSharedBufferSlot;
206 outBuffer->mGraphicBuffer = mSlots[slot].mGraphicBuffer;
216 outBuffer->mSlot = slot;
217 outBuffer->mAcquireCalled = mSlots[slot].mAcquireCalled;
227 slot = front->mSlot;
231 ATRACE_BUFFER_INDEX(slot);
233 BQ_LOGV("acquireBuffer: acquiring { slot=%d/%" PRIu64 " buffer=%p }",
234 slot, outBuffe
279 detachBuffer(int slot) argument
359 auto slot = mCore->mFreeSlots.begin(); local
404 releaseBuffer(int slot, uint64_t frameNumber, const sp<Fence>& releaseFence, EGLDisplay eglDisplay, EGLSyncKHR eglFence) argument
[all...]
/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, MTLaunchStructForEach *mtls) argument
[all...]
H A DrsCpuIntrinsic.h46 void invokeFunction(uint32_t slot, const void * params, size_t paramLength) override;
49 void invokeForEach(uint32_t slot,
57 void forEachKernelSetup(uint32_t slot, MTLaunchStructForEach * mtls) override;
61 void preLaunch(uint32_t slot, const Allocation ** ains,
64 void postLaunch(uint32_t slot, const Allocation ** ains,
69 void setGlobalVar(uint32_t slot, const void * data, size_t dataLength) override;
70 void setGlobalVarWithElemDims(uint32_t slot, const void * data,
74 void setGlobalBind(uint32_t slot, Allocation *data) override;
75 void setGlobalObj(uint32_t slot, ObjectBase *data) override;
H A DrsCpuExecutable.h151 void* getFieldAddress(int slot) const { return mFieldAddress[slot]; }
153 bool getFieldIsObject(int slot) const { return mFieldIsObject[slot]; }
154 const char* getFieldName(int slot) const { return mFieldName[slot]; }
156 InvokeFunc_t getInvokeFunction(int slot) const { return mInvokeFunctions[slot]; }
158 ForEachFunc_t getForEachFunction(int slot) const { return mForEachFunctions[slot]; }
[all...]
H A DrsCpuScript.h47 void invokeFunction(uint32_t slot, const void *params, size_t paramLength) override;
49 virtual void preLaunch(uint32_t slot, const Allocation ** ains,
52 virtual void postLaunch(uint32_t slot, const Allocation ** ains,
57 void invokeForEach(uint32_t slot,
65 void invokeReduce(uint32_t slot,
73 void setGlobalVar(uint32_t slot, const void *data, size_t dataLength) override;
74 void getGlobalVar(uint32_t slot, void *data, size_t dataLength) override;
75 void setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength,
78 void setGlobalBind(uint32_t slot, Allocation *data) override;
79 void setGlobalObj(uint32_t slot, ObjectBas
[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.java95 * @param slot index of the constant input type to return
98 public Type getConstant(int slot) { argument
99 if (slot < 0 || slot >= mConstants.length) {
102 return mConstants[slot];
114 * Returns the type of texture at a given slot. e.g. 2D or Cube
115 * @param slot index of the texture input
118 public TextureType getTextureType(int slot) { argument
119 if ((slot < 0) || (slot >
131 getTextureName(int slot) argument
146 bindConstants(Allocation a, int slot) argument
165 bindTexture(Allocation va, int slot) argument
189 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;
52 protected KernelID createKernelID(int slot, int sig, Element ein, argument
54 KernelID k = mKIDs.get(slot);
59 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig);
64 k = new KernelID(id, mRS, this, slot, sig);
65 mKIDs.put(slot, k);
80 InvokeID(long id, RenderScript rs, Script s, int slot) { argument
83 mSlot = slot;
91 protected InvokeID createInvokeID(int slot) { argument
118 FieldID(long id, RenderScript rs, Script s, int slot) argument
130 createFieldID(int slot, Element e) argument
151 invoke(int slot) argument
159 invoke(int slot, FieldPacker v) argument
171 forEach(int slot, Allocation ain, Allocation aout, FieldPacker v) argument
180 forEach(int slot, Allocation ain, Allocation aout, FieldPacker v, LaunchOptions sc) argument
226 forEach(int slot, Allocation[] ains, Allocation aout, FieldPacker v) argument
236 forEach(int slot, Allocation[] ains, Allocation aout, FieldPacker v, LaunchOptions sc) argument
292 reduce(int slot, Allocation[] ains, Allocation aout, LaunchOptions sc) argument
352 bindAllocation(Allocation va, int slot) argument
[all...]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
H A DFakeStatusBarIconController.java41 public void setExternalIcon(String slot) { argument
46 public void setIcon(String slot, int resourceId, CharSequence contentDescription) { argument
51 public void setIcon(String slot, StatusBarIcon icon) { argument
61 public void removeIcon(String slot) { argument
/frameworks/rs/support/java/src/android/support/v8/renderscript/
H A DScript.java70 KernelID(long id, RenderScript rs, Script s, int slot, int sig) { argument
73 mSlot = slot;
83 * @param slot
90 protected KernelID createKernelID(int slot, int sig, Element ein, Element eout) { argument
91 KernelID k = mKIDs.get(slot);
96 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig, mUseIncSupp);
101 k = new KernelID(id, mRS, this, slot, sig);
103 mKIDs.put(slot, k);
118 InvokeID(long id, RenderScript rs, Script s, int slot) { argument
121 mSlot = slot;
129 createInvokeID(int slot) argument
157 FieldID(long id, RenderScript rs, Script s, int slot) argument
173 createFieldID(int slot, Element e) argument
194 invoke(int slot) argument
204 invoke(int slot, FieldPacker v) argument
218 bindAllocation(Allocation va, int slot) argument
245 forEach(int slot, Allocation ain, Allocation aout, FieldPacker v) argument
282 forEach(int slot, Allocation ain, Allocation aout, FieldPacker v, LaunchOptions sc) argument
324 forEach(int slot, Allocation[] ains, Allocation aout, FieldPacker v) argument
334 forEach(int slot, Allocation[] ains, Allocation aout, FieldPacker v, LaunchOptions sc) argument
390 reduce(int slot, Allocation[] ains, Allocation aout, LaunchOptions sc) argument
[all...]
/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/
H A Dbuffer_hub_queue_client.h67 std::shared_ptr<BufferHubBuffer> GetBuffer(size_t slot) const {
68 return buffers_[slot];
91 void Enqueue(const std::shared_ptr<BufferHubBuffer>& buf, size_t slot);
121 int AddBuffer(const std::shared_ptr<BufferHubBuffer>& buf, size_t slot);
125 virtual int DetachBuffer(size_t slot);
133 size_t* slot,
139 void HandleBufferEvent(size_t slot, int poll_events);
177 // A logical slot number that is assigned to a buffer at allocation time.
178 // The slot number remains unchanged during the entire life cycle of the
180 size_t slot; member in struct:android::dvr::BufferHubQueue::BufferInfo
190 BufferInfo(size_t slot, size_t metadata_size) argument
419 Dequeue( int timeout, size_t* slot, Meta* meta, LocalHandle* acquire_fence) argument
423 Dequeue( int timeout, size_t* slot, LocalHandle* acquire_fence) argument
[all...]
/frameworks/native/libs/vr/libbufferhubqueue/tests/
H A Dbuffer_hub_queue-test.cpp56 size_t slot; local
59 kBufferUsage, &slot);
78 size_t slot; local
80 auto p1_status = producer_queue_->Dequeue(0, &slot, &fence);
87 auto c1_status = consumer_queue_->Dequeue(100, &slot, &mo, &fence);
98 size_t slot; local
117 auto status = consumer_queue_->Dequeue(0, &slot, &seq, &fence);
126 auto consumer_status = consumer_queue_->Dequeue(0, &slot, &seq, &fence);
132 auto producer_status = producer_queue_->Dequeue(0, &slot, &fence);
142 consumer_status = consumer_queue_->Dequeue(0, &slot,
168 size_t slot; local
236 size_t slot; local
259 size_t slot; local
277 size_t slot; local
349 size_t slot; local
367 size_t slot; local
386 size_t slot; local
405 size_t slot; local
[all...]
/frameworks/rs/driver/
H A DrsdVertexArray.cpp65 void RsdVertexArray::logAttrib(uint32_t idx, uint32_t slot) const {
69 ALOGV("va %i: slot=%i name=%s buf=%i ptr=%p size=%i type=0x%x stride=0x%x norm=%i offset=0x%p",
70 idx, slot,
99 int32_t slot = sc->vtxAttribSlot(mAttribs[ct].name); local
101 logAttrib(ct, slot);
103 if (slot < 0 || slot >= (int32_t)maxAttrs) {
106 glEnableVertexAttribArray(slot);
107 state->mAttrsEnabled[slot] = true;
109 glVertexAttribPointer(slot,
[all...]
H A DrsdBcc.cpp70 uint32_t slot,
78 rsdScriptInvokeForEachMulti(rsc, s, slot, nullptr, 0, aout, usr, usrLen,
83 rsdScriptInvokeForEachMulti(rsc, s, slot, ains, 1, aout, usr, usrLen,
90 uint32_t slot,
99 cs->invokeForEach(slot, ains, inLen, aout, usr, usrLen, sc);
119 uint32_t slot,
123 cs->invokeFunction(slot, params, paramLength);
127 uint32_t slot,
132 cs->invokeReduce(slot, ains, inLen, aout, sc);
136 uint32_t slot, voi
68 rsdScriptInvokeForEach(const Context *rsc, Script *s, uint32_t slot, const Allocation * ain, Allocation * aout, const void * usr, size_t usrLen, const RsScriptCall *sc) argument
88 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
118 rsdScriptInvokeFunction(const Context *dc, Script *s, uint32_t slot, const void *params, size_t paramLength) argument
126 rsdScriptInvokeReduce(const Context *dc, Script *s, uint32_t slot, const Allocation ** ains, size_t inLen, Allocation *aout, const RsScriptCall *sc) argument
135 rsdScriptSetGlobalVar(const Context *dc, const Script *s, uint32_t slot, void *data, size_t dataLength) argument
141 rsdScriptGetGlobalVar(const Context *dc, const Script *s, uint32_t slot, void *data, size_t dataLength) argument
148 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
156 rsdScriptSetGlobalBind(const Context *dc, const Script *s, uint32_t slot, Allocation *data) argument
161 rsdScriptSetGlobalObj(const Context *dc, const Script *s, uint32_t slot, ObjectBase *data) argument
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DKeepaliveTracker.java79 * All information about this keepalive is known at construction time except the slot number,
90 /** Keepalive slot. A small integer that identifies this keepalive among the ones handled
139 void notifyMessenger(int slot, int err) { argument
140 KeepaliveTracker.this.notifyMessenger(mMessenger, slot, err);
187 void start(int slot) { argument
190 mSlot = slot;
192 mNai.asyncChannel.sendMessage(CMD_START_PACKET_KEEPALIVE, slot, mInterval, mPacket);
217 void notifyMessenger(Messenger messenger, int slot, int err) { argument
220 message.arg1 = slot;
237 // Find the lowest-numbered free slot
267 handleStopKeepalive(NetworkAgentInfo nai, int slot, int reason) argument
[all...]

Completed in 538 milliseconds

12345678