Home | History | Annotate | Download | only in rs

Lines Matching refs:ct

38     for (uint32_t ct = 0; ct < mRSC->mStateElement.mElements.size(); ct++) {
39 if (mRSC->mStateElement.mElements[ct] == this) {
40 mRSC->mStateElement.mElements.removeAt(ct);
70 for (size_t ct=0; ct < mFieldCount; ct++) {
71 total += mFields[ct].e->mBits * mFields[ct].arraySize;
82 for (size_t ct=0; ct < mFieldCount; ct++) {
83 total += mFields[ct].e->mBitsUnpadded * mFields[ct].arraySize;
92 for (uint32_t ct = 0; ct < mFieldCount; ct++) {
93 ALOGV("%s Element field index: %u ------------------", prefix, ct);
95 prefix, mFields[ct].name, mFields[ct].offsetBits, mFields[ct].arraySize);
96 mFields[ct].e->dumpLOGV(prefix);
109 for (uint32_t ct = 0; ct < mFieldCount; ct++) {
110 stream->addString(mFields[ct].name);
111 stream->addU32(mFields[ct].arraySize);
112 mFields[ct].e->serialize(rsc, stream);
143 for (uint32_t ct = 0; ct < fieldCount; ct ++) {
144 subElemNames[ct] = stream->loadString();
145 subElemNamesLengths[ct] = strlen(subElemNames[ct]);
146 arraySizes[ct] = stream->loadU32();
147 subElems[ct] = Element::createFromStream(rsc, stream);
152 for (uint32_t ct = 0; ct < fieldCount; ct ++) {
153 delete [] subElemNames[ct];
154 subElems[ct]->decUserRef();
180 for (uint32_t ct = 0; ct < mFieldCount; ct ++) {
181 if (mFields[ct].name[0] != '#') {
195 for (size_t ct = 0, ctNoPadding = 0; ct < mFieldCount; ct++) {
196 mFields[ct].offsetBits = bits;
197 mFields[ct].offsetBitsUnpadded = bitsUnpadded;
198 bits += mFields[ct].e->getSizeBits() * mFields[ct].arraySize;
199 bitsUnpadded += mFields[ct].e->getSizeBitsUnpadded() * mFields[ct].arraySize;
201 if (mFields[ct].e->mHasReference) {
205 if (mFields[ct].name[0] == '#') {
209 mHal.state.fields[ctNoPadding] = mFields[ct].e.get();
210 mHal.state.fieldArraySizes[ctNoPadding] = mFields[ct].arraySize;
211 mHal.state.fieldNames[ctNoPadding] = mFields[ct].name;
212 mHal.state.fieldNameLengths[ctNoPadding] = strlen(mFields[ct].name) + 1; // to include 0
213 mHal.state.fieldOffsetBytes[ctNoPadding] = mFields[ct].offsetBits >> 3;
226 for (uint32_t ct=0; ct < rsc->mStateElement.mElements.size(); ct++) {
227 const Element *ee = rsc->mStateElement.mElements[ct];
259 for (uint32_t ct=0; ct < rsc->mStateElement.mElements.size(); ct++) {
260 const Element *ee = rsc->mStateElement.mElements[ct];
296 for (size_t ct=0; ct < count; ct++) {
300 len = lengths[ct];
302 len = strlen(nin[ct]);
305 asize = asin[ct];
308 e->mFields[ct].e.set(ein[ct]);
309 e->mFields[ct].name = rsuCopyString(nin[ct], len);
310 e->mFields[ct].arraySize = asize;
335 for (uint32_t ct=0; ct < mFields[i].arraySize; ct++) {
357 for (uint32_t ct=0; ct < mFields[i].arraySize; ct++) {