/frameworks/base/libs/rs/driver/ |
D | rsdShaderCache.cpp | 45 for (uint32_t ct=0; ct < prog->getUniformCount(); ct++) { in updateUniformArrayData() local 46 if (data[ct].slot >= 0 && data[ct].arraySize > 1) { in updateUniformArrayData() 49 if (prog->getUniformName(ct) == uniformList[ui]->name) { in updateUniformArrayData() 50 data[ct].arraySize = (uint32_t)uniformList[ui]->arraySize; in updateUniformArrayData() 58 prog->getUniformName(ct).string(), data[ct].slot, data[ct].arraySize); in updateUniformArrayData() 64 for (uint32_t ct=0; ct < prog->getUniformCount(); ct++) { in populateUniformData() local 65 data[ct].slot = glGetUniformLocation(linkedID, prog->getUniformName(ct)); in populateUniformData() 66 data[ct].arraySize = prog->getUniformArraySize(ct); in populateUniformData() 72 for (uint32_t ct=0; ct < vtx->getUniformCount(); ct++) { in hasArrayUniforms() local 73 if (data[ct].slot >= 0 && data[ct].arraySize > 1) { in hasArrayUniforms() [all …]
|
D | rsdVertexArray.cpp | 91 for (uint32_t ct=1; ct < maxAttrs; ct++) { in setup() local 92 if(state->mAttrsEnabled[ct]) { in setup() 93 glDisableVertexAttribArray(ct); in setup() 94 state->mAttrsEnabled[ct] = false; in setup() 99 for (uint32_t ct=0; ct < mCount; ct++) { in setup() local 100 int32_t slot = sc->vtxAttribSlot(mAttribs[ct].name); in setup() 102 logAttrib(ct, slot); in setup() 109 glBindBuffer(GL_ARRAY_BUFFER, mAttribs[ct].buffer); in setup() 111 mAttribs[ct].size, in setup() 112 mAttribs[ct].type, in setup() [all …]
|
D | rsdShader.cpp | 71 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) { in init() local 72 …initAddUserElement(mRSProgram->mHal.state.inputElements[ct].get(), mAttribNames, NULL, &attribCoun… in init() 74 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) { in init() local 75 …initAddUserElement(mRSProgram->mHal.state.constantTypes[ct]->getElement(), mUniformNames, mUniform… in init() 80 for (uint32_t ct=0; ct < mRSProgram->mHal.state.texturesCount; ct++) { in init() local 81 snprintf(buf, sizeof(buf), "UNI_Tex%i", ct); in init() 91 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) { in getGLSLInputString() local 92 const Element *e = mRSProgram->mHal.state.inputElements[ct].get(); in getGLSLInputString() 115 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) { in appendAttributes() local 116 const Element *e = mRSProgram->mHal.state.inputElements[ct].get(); in appendAttributes() [all …]
|
D | rsdMeshObj.cpp | 82 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) { in init() local 83 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); in init() 84 for (uint32_t ct=0; ct < elem->getFieldCount(); ct++) { in init() local 85 if (isValidGLComponent(elem, ct)) { in init() 105 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) { in init() local 106 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); in init() 125 mAttribAllocationIndex[userNum] = ct; in init() 140 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) { in renderPrimitiveRange() local 141 const Allocation *alloc = mRSMesh->mHal.state.vertexBuffers[ct].get(); in renderPrimitiveRange() 149 for (uint32_t ct=0; ct < mAttribCount; ct++) { in renderPrimitiveRange() local [all …]
|
D | rsdCore.cpp | 181 for (uint32_t ct = 0; ct < dc->mWorkers.mCount; ct++) { in rsdLaunchThreads() local 182 dc->mWorkers.mLaunchSignals[ct].set(); in rsdLaunchThreads() 243 for (uint32_t ct=0; ct < dc->mWorkers.mCount; ct++) { in rsdHalInit() local 244 status = pthread_create(&dc->mWorkers.mThreadId[ct], &threadAttr, HelperThreadProc, rsc); in rsdHalInit() 246 dc->mWorkers.mCount = ct; in rsdHalInit() 262 for (uint32_t ct=0; ct < dc->mWorkers.mCount; ct++) { in SetPriority() local 263 setpriority(PRIO_PROCESS, dc->mWorkers.mNativeThreadId[ct], priority); in SetPriority() 274 for (uint32_t ct = 0; ct < dc->mWorkers.mCount; ct++) { in Shutdown() local 275 dc->mWorkers.mLaunchSignals[ct].set(); in Shutdown() 279 for (uint32_t ct = 0; ct < dc->mWorkers.mCount; ct++) { in Shutdown() local [all …]
|
D | rsdProgram.cpp | 45 for (uint32_t ct=0; ct < p->mHal.state.texturesCount; ct++) { in SyncProgramConstants() local 46 const Allocation *a = p->mHal.state.textures[ct].get(); in SyncProgramConstants()
|
/frameworks/base/libs/rs/ |
D | rsElement.cpp | 36 for (uint32_t ct = 0; ct < mRSC->mStateElement.mElements.size(); ct++) { in preDestroy() local 37 if (mRSC->mStateElement.mElements[ct] == this) { in preDestroy() 38 mRSC->mStateElement.mElements.removeAt(ct); in preDestroy() 57 for (size_t ct=0; ct < mFieldCount; ct++) { in getSizeBits() local 58 total += mFields[ct].e->mBits * mFields[ct].arraySize; in getSizeBits() 67 for (uint32_t ct = 0; ct < mFieldCount; ct++) { in dumpLOGV() local 68 LOGV("%s Element field index: %u ------------------", prefix, ct); in dumpLOGV() 70 prefix, mFields[ct].name.string(), mFields[ct].offsetBits, mFields[ct].arraySize); in dumpLOGV() 71 mFields[ct].e->dumpLOGV(prefix); in dumpLOGV() 86 for (uint32_t ct = 0; ct < mFieldCount; ct++) { in serialize() local [all …]
|
D | rsg_generator.c | 24 int ct; in printVarType() local 52 for (ct=0; ct < vt->ptrLevel; ct++) { in printVarType() 67 int ct; in printArgList() local 68 for (ct=0; ct < api->paramCount; ct++) { in printArgList() 69 if (ct || assumePrevious) { in printArgList() 72 printVarTypeAndName(f, &api->params[ct]); in printArgList() 77 int ct; in printStructures() local 80 for (ct=0; ct < apiCount; ct++) { in printStructures() 81 fprintf(f, "typedef struct RS_CMD_%s_rec RS_CMD_%s;\n", apis[ct].name, apis[ct].name); in printStructures() 85 for (ct=0; ct < apiCount; ct++) { in printStructures() [all …]
|
D | rsMesh.cpp | 165 for (uint32_t ct = 0; ct < mHal.state.primitivesCount; ct ++) { in render() local 166 renderPrimitive(rsc, ct); in render() 196 for (uint32_t ct = 0; ct < mHal.state.vertexBuffersCount; ct ++) { in uploadAll() local 197 if (mHal.state.vertexBuffers[ct].get()) { in uploadAll() 198 rsc->mHal.funcs.allocation.markDirty(rsc, mHal.state.vertexBuffers[ct].get()); in uploadAll() 202 for (uint32_t ct = 0; ct < mHal.state.primitivesCount; ct ++) { in uploadAll() local 203 if (mHal.state.primitives[ct]->mIndexBuffer.get()) { in uploadAll() 204 … rsc->mHal.funcs.allocation.markDirty(rsc, mHal.state.primitives[ct]->mIndexBuffer.get()); in uploadAll() 215 for (uint32_t ct=0; ct < mHal.state.vertexBuffersCount; ct++) { in computeBBox() local 216 const Type *bufferType = mHal.state.vertexBuffers[ct]->getType(); in computeBBox() [all …]
|
D | rsProgram.cpp | 28 for (uint32_t ct=0; ct < paramLength; ct+=2) { in Program() local 29 if (params[ct] == RS_PROGRAM_PARAM_INPUT) { in Program() 32 if (params[ct] == RS_PROGRAM_PARAM_CONSTANT) { in Program() 35 if (params[ct] == RS_PROGRAM_PARAM_TEXTURE_TYPE) { in Program() 50 for (uint32_t ct=0; ct < paramLength; ct+=2) { in Program() local 51 if (params[ct] == RS_PROGRAM_PARAM_INPUT) { in Program() 52 mHal.state.inputElements[input++].set(reinterpret_cast<Element *>(params[ct+1])); in Program() 54 if (params[ct] == RS_PROGRAM_PARAM_CONSTANT) { in Program() 55 mHal.state.constantTypes[constant++].set(reinterpret_cast<Type *>(params[ct+1])); in Program() 57 if (params[ct] == RS_PROGRAM_PARAM_TEXTURE_TYPE) { in Program() [all …]
|
D | rsScriptC.cpp | 55 for (uint32_t ct=0; ct < mHal.info.exportedVariableCount; ct++) { in setupScript() local 56 if (mSlots[ct].get() && !mTypes[ct].get()) { in setupScript() 57 mTypes[ct].set(mSlots[ct]->getType()); in setupScript() 60 if (!mTypes[ct].get()) in setupScript() 63 if (mSlots[ct].get()) { in setupScript() 64 ptr = mSlots[ct]->getPtr(); in setupScript() 67 rsc->mHal.funcs.script.setGlobalBind(rsc, this, ct, ptr); in setupScript() 76 for (uint32_t ct=0; ct < mHal.info.exportedVariableCount; ct++) { in ptrToAllocation() local 77 if (!mSlots[ct].get()) in ptrToAllocation() 79 if (mSlots[ct]->getPtr() == ptr) { in ptrToAllocation() [all …]
|
D | rsProgramRaster.cpp | 34 for (uint32_t ct = 0; ct < mRSC->mStateRaster.mRasterPrograms.size(); ct++) { in preDestroy() local 35 if (mRSC->mStateRaster.mRasterPrograms[ct] == this) { in preDestroy() 36 mRSC->mStateRaster.mRasterPrograms.removeAt(ct); in preDestroy() 83 for (uint32_t ct = 0; ct < rsc->mStateRaster.mRasterPrograms.size(); ct++) { in getProgramRaster() local 84 ProgramRaster *existing = rsc->mStateRaster.mRasterPrograms[ct]; in getProgramRaster()
|
D | rsSampler.cpp | 52 for (uint32_t ct = 0; ct < mRSC->mStateSampler.mAllSamplers.size(); ct++) { in preDestroy() local 53 if (mRSC->mStateSampler.mAllSamplers[ct] == this) { in preDestroy() 54 mRSC->mStateSampler.mAllSamplers.removeAt(ct); in preDestroy() 87 for (uint32_t ct = 0; ct < rsc->mStateSampler.mAllSamplers.size(); ct++) { in getSampler() local 88 Sampler *existing = rsc->mStateSampler.mAllSamplers[ct]; in getSampler()
|
D | rsProgramStore.cpp | 45 for (uint32_t ct = 0; ct < mRSC->mStateFragmentStore.mStorePrograms.size(); ct++) { in preDestroy() local 46 if (mRSC->mStateFragmentStore.mStorePrograms[ct] == this) { in preDestroy() 47 mRSC->mStateFragmentStore.mStorePrograms.removeAt(ct); in preDestroy() 94 for (uint32_t ct = 0; ct < rsc->mStateFragmentStore.mStorePrograms.size(); ct++) { in getProgramStore() local 95 ProgramStore *existing = rsc->mStateFragmentStore.mStorePrograms[ct]; in getProgramStore()
|
D | rsType.cpp | 29 for (uint32_t ct = 0; ct < mRSC->mStateType.mTypes.size(); ct++) { in preDestroy() local 30 if (mRSC->mStateType.mTypes[ct] == this) { in preDestroy() 31 mRSC->mStateType.mTypes.removeAt(ct); in preDestroy() 217 for (uint32_t ct=0; ct < stc->mTypes.size(); ct++) { in getTypeRef() local 218 Type *t = stc->mTypes[ct]; in getTypeRef()
|
D | rsProgramFragment.cpp | 64 for (uint32_t ct=0; ct < mHal.state.texturesCount; ct++) { in setup() local 65 if (!mHal.state.textures[ct].get()) { in setup() 66 LOGE("No texture bound for shader id %u, texture unit %u", (uint)this, ct); in setup()
|
D | rsContext.cpp | 105 for (int ct=0; ct < _RS_TIMER_TOTAL; ct++) { in timerReset() local 106 mTimers[ct] = 0; in timerReset() 145 for (int ct = 0; ct < _RS_TIMER_TOTAL; ct++) { in timerPrint() local 146 total += mTimers[ct]; in timerPrint() 541 for (size_t ct=0; ct < mNames.size(); ct++) { in removeName() local 542 if (obj == mNames[ct]) { in removeName() 543 mNames.removeAt(ct); in removeName()
|
D | rsAllocation.cpp | 176 for (size_t ct=0; ct < mToDirtyList.size(); ct++) { in removeProgramToDirty() local 177 if (mToDirtyList[ct] == p) { in removeProgramToDirty() 178 mToDirtyList.removeAt(ct); in removeProgramToDirty() 255 for (size_t ct=0; ct < mToDirtyList.size(); ct++) { in sendDirty() local 256 mToDirtyList[ct]->forceDirty(); in sendDirty() 261 void Allocation::incRefs(const void *ptr, size_t ct, size_t startOff) const { in incRefs() argument 267 while (ct > 0) { in incRefs() 269 ct --; in incRefs() 274 void Allocation::decRefs(const void *ptr, size_t ct, size_t startOff) const { in decRefs() argument 283 while (ct > 0) { in decRefs() [all …]
|
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/ |
D | fp_mad.rs | 13 for (int ct=0; ct < 1000 * (1000 / 80); ct++) { 37 for (int ct=0; ct < 1000 * (1000 / 20); ct++) { 61 for (int ct=0; ct < 1000 * 10; ct++) { 76 for (int ct=0; ct < 1000 * 10 / 4; ct++) { 91 for (int ct=0; ct < 1000 * 10; ct++) { 105 for (int ct=0; ct < 1000 * 100; ct++) { 116 for (int ct=0; ct < 1000 * 100; ct++) { 132 for (int ct=0; ct < 1000 * 100 /4; ct++) {
|
/frameworks/base/graphics/java/android/renderscript/ |
D | Mesh.java | 337 for(int ct = 0; ct < mVertexTypeCount; ct ++) { in create() 339 Entry entry = mVertexTypes[ct]; in create() 345 vertexBuffers[ct] = alloc; in create() 346 vtx[ct] = alloc.getID(); in create() 349 for(int ct = 0; ct < mIndexTypes.size(); ct ++) { in create() 351 Entry entry = (Entry)mIndexTypes.elementAt(ct); in create() 358 indexBuffers[ct] = alloc; in create() 359 primitives[ct] = entry.prim; in create() 361 idx[ct] = allocID; in create() 362 prim[ct] = entry.prim.mID; in create() [all …]
|
D | Element.java | 146 for (int ct=0; ct < mElements.length; ct++) { in isComplex() 147 if (mElements[ct].mElements != null) { in isComplex() 605 for (int ct = 0; ct < mElements.length; ct++ ) { in Element() 606 mSize += mElements[ct].mSize * mArraySizes[ct]; in Element() 876 for (int ct = 0; ct < ein.length; ct++ ) { in create() 877 ids[ct] = ein[ct].getID(); in create()
|
/frameworks/base/media/libmedia/ |
D | MemoryLeakTrackUtil.cpp | 147 for (size_t ct = 0; (ct < backtraceSize) && e->backtrace[ct]; ct++) { in dumpMemoryAddresses() local 148 if (ct) { in dumpMemoryAddresses() 151 snprintf(buffer, SIZE, "0x%08x", e->backtrace[ct]); in dumpMemoryAddresses()
|
/frameworks/base/media/libstagefright/codecs/mp3dec/src/ |
D | pvmp3_reorder.cpp | 145 int16 ct = src_line; in pvmp3_reorder() local 165 pv_memcpy(&xr[ct], Scratch_mem, sfb_lines*3*sizeof(int32)); in pvmp3_reorder() 166 ct += sfb_lines + (sfb_lines << 1); in pvmp3_reorder() 185 pv_memcpy(&xr[ct], Scratch_mem, sfb_lines*3*sizeof(int32)); in pvmp3_reorder()
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | SmsUsageMonitor.java | 111 Long ct = System.currentTimeMillis(); in isUnderLimit() local 112 long beginCheckPeriod = ct - mCheckPeriod; in isUnderLimit() 114 Log.d(TAG, "SMS send size=" + sent.size() + " time=" + ct); in isUnderLimit() 122 sent.add(ct); in isUnderLimit()
|
/frameworks/base/media/tests/omxjpegdecoder/ |
D | SkOmxPixelRef.cpp | 39 void* SkOmxPixelRef::onLockPixels(SkColorTable** ct) { in onLockPixels() argument 40 *ct = mCTable; in onLockPixels()
|