• Home
  • Raw
  • Download

Lines Matching refs:ct

45     for (uint32_t ct = 0; ct < elements.size(); ct++) {  in preDestroy()  local
46 if (elements[ct] == this) { in preDestroy()
47 elements.erase(elements.begin() + ct); in preDestroy()
77 for (size_t ct=0; ct < mFieldCount; ct++) { in getSizeBits() local
78 total += mFields[ct].e->mBits * mFields[ct].arraySize; in getSizeBits()
89 for (size_t ct=0; ct < mFieldCount; ct++) { in getSizeBitsUnpadded() local
90 total += mFields[ct].e->mBitsUnpadded * mFields[ct].arraySize; in getSizeBitsUnpadded()
99 for (uint32_t ct = 0; ct < mFieldCount; ct++) { in dumpLOGV() local
100 ALOGV("%s Element field index: %u ------------------", prefix, ct); in dumpLOGV()
102 prefix, mFields[ct].name, mFields[ct].offsetBits, mFields[ct].arraySize); in dumpLOGV()
103 mFields[ct].e->dumpLOGV(prefix); in dumpLOGV()
116 for (uint32_t ct = 0; ct < mFieldCount; ct++) { in serialize() local
117 stream->addString(mFields[ct].name); in serialize()
118 stream->addU32(mFields[ct].arraySize); in serialize()
119 mFields[ct].e->serialize(rsc, stream); in serialize()
150 for (uint32_t ct = 0; ct < fieldCount; ct ++) { in createFromStream() local
151 subElemNames[ct] = stream->loadString(); in createFromStream()
152 subElemNamesLengths[ct] = strlen(subElemNames[ct]); in createFromStream()
153 arraySizes[ct] = stream->loadU32(); in createFromStream()
154 subElems[ct] = Element::createFromStream(rsc, stream); in createFromStream()
159 for (uint32_t ct = 0; ct < fieldCount; ct ++) { in createFromStream() local
160 delete [] subElemNames[ct]; in createFromStream()
161 subElems[ct]->decUserRef(); in createFromStream()
187 for (uint32_t ct = 0; ct < mFieldCount; ct ++) { in compute() local
188 if (mFields[ct].name[0] != '#') { in compute()
202 for (size_t ct = 0, ctNoPadding = 0; ct < mFieldCount; ct++) { in compute() local
203 mFields[ct].offsetBits = bits; in compute()
204 mFields[ct].offsetBitsUnpadded = bitsUnpadded; in compute()
205 bits += mFields[ct].e->getSizeBits() * mFields[ct].arraySize; in compute()
206 bitsUnpadded += mFields[ct].e->getSizeBitsUnpadded() * mFields[ct].arraySize; in compute()
208 if (mFields[ct].e->mHasReference) { in compute()
212 if (mFields[ct].name[0] == '#') { in compute()
216 mHal.state.fields[ctNoPadding] = mFields[ct].e.get(); in compute()
217 mHal.state.fieldArraySizes[ctNoPadding] = mFields[ct].arraySize; in compute()
218 mHal.state.fieldNames[ctNoPadding] = mFields[ct].name; in compute()
219 mHal.state.fieldNameLengths[ctNoPadding] = strlen(mFields[ct].name) + 1; // to include 0 in compute()
220 mHal.state.fieldOffsetBytes[ctNoPadding] = mFields[ct].offsetBits >> 3; in compute()
235 for (uint32_t ct=0; ct < rsc->mStateElement.mElements.size(); ct++) { in createRef() local
236 const Element *ee = rsc->mStateElement.mElements[ct]; in createRef()
281 for (uint32_t ct=0; ct < rsc->mStateElement.mElements.size(); ct++) { in createRef() local
282 const Element *ee = rsc->mStateElement.mElements[ct]; in createRef()
325 for (size_t ct=0; ct < count; ct++) { in createRef() local
329 len = lengths[ct]; in createRef()
331 len = strlen(nin[ct]); in createRef()
334 asize = asin[ct]; in createRef()
337 e->mFields[ct].e.set(ein[ct]); in createRef()
338 e->mFields[ct].name = rsuCopyString(nin[ct], len); in createRef()
339 e->mFields[ct].arraySize = asize; in createRef()
364 for (uint32_t ct=0; ct < mFields[i].arraySize; ct++) { in incRefs() local
386 for (uint32_t ct=0; ct < mFields[i].arraySize; ct++) { in decRefs() local