Lines Matching refs:info

144         const Info& info = mActivationCount.valueFor(handle);  in dump()  local
145 if (info.batchParams.isEmpty()) continue; in dump()
147 result.appendFormat("0x%08x) active-count = %zu; ", handle, info.batchParams.size()); in dump()
150 for (size_t j = 0; j < info.batchParams.size(); j++) { in dump()
151 const BatchParams& params = info.batchParams[j]; in dump()
153 j < info.batchParams.size() - 1 ? ", " : ""); in dump()
155 result.appendFormat("}, selected = %.2f ms; ", info.bestBatchParams.mTSample / 1e6f); in dump()
158 for (size_t j = 0; j < info.batchParams.size(); j++) { in dump()
159 const BatchParams& params = info.batchParams[j]; in dump()
161 j < info.batchParams.size() - 1 ? ", " : ""); in dump()
163 result.appendFormat("}, selected = %.2f ms\n", info.bestBatchParams.mTBatch / 1e6f); in dump()
226 Info& info( mActivationCount.editValueFor(handle) ); in autoDisable() local
228 info.removeBatchParamsForIdent(ident); in autoDisable()
238 Info& info( mActivationCount.editValueFor(handle) ); in activate() local
242 ident, handle, enabled, info.batchParams.size()); in activate()
245 ALOGD_IF(DEBUG_CONNECTIONS, "enable index=%zd", info.batchParams.indexOfKey(ident)); in activate()
253 if (info.batchParams.indexOfKey(ident) >= 0) { in activate()
254 if (info.numActiveClients() == 1) { in activate()
263 ALOGD_IF(DEBUG_CONNECTIONS, "disable index=%zd", info.batchParams.indexOfKey(ident)); in activate()
273 if (info.removeBatchParamsForIdent(ident) >= 0) { in activate()
274 if (info.numActiveClients() == 0) { in activate()
283 info.bestBatchParams.mTSample, info.bestBatchParams.mTBatch); in activate()
285 handle, info.bestBatchParams.mTSample, info.bestBatchParams.mTBatch)); in activate()
305 info.removeBatchParamsForIdent(ident); in activate()
332 Info& info(mActivationCount.editValueFor(handle)); in batch() local
334 if (info.batchParams.indexOfKey(ident) < 0) { in batch()
336 info.batchParams.add(ident, params); in batch()
339 info.setBatchParamsForIdent(ident, flags, samplingPeriodNs, maxBatchReportLatencyNs); in batch()
342 BatchParams prevBestBatchParams = info.bestBatchParams; in batch()
344 info.selectBatchParams(); in batch()
349 prevBestBatchParams.mTSample, info.bestBatchParams.mTSample, in batch()
350 prevBestBatchParams.mTBatch, info.bestBatchParams.mTBatch); in batch()
354 if (prevBestBatchParams != info.bestBatchParams) { in batch()
356 info.bestBatchParams.mTSample, info.bestBatchParams.mTBatch); in batch()
359 handle, info.bestBatchParams.mTSample, info.bestBatchParams.mTBatch))); in batch()
362 mSensors.get(), handle, info.bestBatchParams.mTSample, in batch()
363 info.bestBatchParams.mTBatch, strerror(-err)); in batch()
364 info.removeBatchParamsForIdent(ident); in batch()
401 Info& info = mActivationCount.editValueAt(i); in enableAllSensors() local
402 if (info.batchParams.isEmpty()) continue; in enableAllSensors()
403 info.selectBatchParams(); in enableAllSensors()
410 info.bestBatchParams.mTSample, in enableAllSensors()
411 info.bestBatchParams.mTBatch))); in enableAllSensors()
426 const Info& info = mActivationCount.valueAt(i); in disableAllSensors() local
428 if (info.batchParams.size() > 0) { in disableAllSensors()
436 for (size_t j = 0; j < info.batchParams.size(); ++j) { in disableAllSensors()
437 mDisabledClients.add(info.batchParams.keyAt(j)); in disableAllSensors()
438 ALOGI("added %p to mDisabledClients", info.batchParams.keyAt(j)); in disableAllSensors()
648 const SensorInfo &info = dynamicSensorsAdded[i]; in convertToSensorEvents() local
650 auto it = mConnectedDynamicSensors.find(info.sensorHandle); in convertToSensorEvents()
654 convertToSensor(info, sensor); in convertToSensorEvents()