Lines Matching refs:i
21 for (int i = 0; i < mConfigInfos.size(); ++i) local
22 mConfigInfos[i] = std::make_shared<ConfigInfo>(mPreemptConfigs[i].config);
123 for (int i = 0; i < kOPRConfigsCount; ++i) in getOPRVals() local
124 searchOrCreateBlobIdData(blobIds[i], true, blobIdDatas[i]); in getOPRVals()
127 for (int i = 0; i < kOPRConfigsCount; ++i) { in getOPRVals() local
128 std::shared_ptr<BlobIdData>& blobIdData = blobIdDatas[i]; in getOPRVals()
129 uint32_t blobId = blobIds[i]; in getOPRVals()
130 int channelId = channelIds[i]; in getOPRVals()
136 errorCodes[i] = HistogramErrorCode::NONE; in getOPRVals()
137 requestBlobIdData(moduleDisplayInterface, &errorCodes[i], channelId, blobId, blobIdData); in getOPRVals()
141 for (int i = 0; i < kOPRConfigsCount; ++i) { in getOPRVals() local
143 if (errorCodes[i] != HistogramErrorCode::NONE) continue; in getOPRVals()
145 std::shared_ptr<BlobIdData>& blobIdData = blobIdDatas[i]; in getOPRVals()
149 ATRACE_NAME(String8::format("mDataCollectingMutex(blob#%u)", blobIds[i])); in getOPRVals()
151 cv_status[i] = in getOPRVals()
152 receiveBlobIdData(moduleDisplayInterface, &histogramBuffer[i], &errorCodes[i], in getOPRVals()
153 channelIds[i], blobIds[i], blobIdData, lock); in getOPRVals()
157 for (int i = 0; i < blobIdDatas.size(); ++i) { in getOPRVals() local
158 checkQueryResult(&histogramBuffer[i], &errorCodes[i], channelIds[i], blobIds[i], in getOPRVals()
159 cv_status[i]); in getOPRVals()
166 for (int i = 0; i < kOPRConfigsCount; ++i) { in getOPRVals() local
167 errorCodes[i] = calculateOPRVal(mPreemptConfigs[i].name, histogramBuffer[i], blobIds[i], in getOPRVals()
168 channelIds[i], oprVals[i]); in getOPRVals()
169 if (errorCodes[i] != HistogramErrorCode::NONE) return errorCodes[i]; in getOPRVals()
187 for (int i = 0; i < HISTOGRAM_BINS_SIZE; ++i) { in calculateOPRVal() local
189 totalPixels += histogramBuffer[i]; in calculateOPRVal()
190 totalLuma += std::pow((i / (double)(HISTOGRAM_BINS_SIZE - 1)), 2.2) * histogramBuffer[i]; in calculateOPRVal()
211 for (int i = 0; i < kOPRConfigsCount; ++i) { in getOPRBlobs() local
212 auto& configInfo = mConfigInfos[i]; in getOPRBlobs()
234 blobIds[i] = blobId; in getOPRBlobs()
242 for (int i = 0; i < kOPRConfigsCount; ++i) channelIds[i] = mConfigInfos[i]->mChannelId; in getOPRChannels() local
256 for (int i = 0; i < preemptCount; ++i) swapOutConfigInfo(*mUsedChannels.begin()); in preemptOPRChannels() local
272 for (int i = 0; i < kOPRConfigsCount; ++i) { in postAtomicCommitCleanup() local
273 auto& configInfo = mConfigInfos[i]; in postAtomicCommitCleanup()
291 for (int i = 0; i < kOPRConfigsCount; ++i) { in dumpInternalConfigs() local
292 result.appendFormat("Histogram internal config \"%s\":\n", mPreemptConfigs[i].name); in dumpInternalConfigs()
293 if (mConfigInfos[i]) { in dumpInternalConfigs()
294 mConfigInfos[i]->dump(result, "\t"); in dumpInternalConfigs()
296 result.appendFormat("\tconfigInfo: %p\n", mConfigInfos[i].get()); in dumpInternalConfigs()