Lines Matching refs:BatchParams
82 info.batchParams.size());
83 for (size_t j = 0; j < info.batchParams.size(); j++) {
84 BatchParams params = info.batchParams.valueAt(j);
86 j < info.batchParams.size() - 1 ? ", " : "");
91 info.batchParams.size());
92 for (size_t j = 0; j < info.batchParams.size(); j++) {
93 BatchParams params = info.batchParams.valueAt(j);
95 j < info.batchParams.size() - 1 ? ", " : "");
138 ident, handle, enabled, info.batchParams.size());
141 ALOGD_IF(DEBUG_CONNECTIONS, "enable index=%d", info.batchParams.indexOfKey(ident));
143 if (info.batchParams.indexOfKey(ident) >= 0) {
144 if (info.batchParams.size() == 1) {
153 ALOGD_IF(DEBUG_CONNECTIONS, "disable index=%d", info.batchParams.indexOfKey(ident));
156 if (info.batchParams.size() == 0) {
193 if (getHalDeviceVersion() < SENSORS_DEVICE_API_VERSION_1_1 && info.batchParams.size() > 0) {
240 if (info.batchParams.indexOfKey(ident) < 0) {
241 BatchParams params(flags, samplingPeriodNs, maxBatchReportLatencyNs);
242 info.batchParams.add(ident, params);
248 BatchParams prevBestBatchParams = info.bestBatchParams;
295 ssize_t index = info.batchParams.indexOfKey(ident);
299 BatchParams& params = info.batchParams.editValueAt(index);
325 ssize_t index = batchParams.indexOfKey(ident);
331 BatchParams& params = batchParams.editValueAt(index);
339 BatchParams bestParams(-1, -1, -1);
341 if (batchParams.size() > 0) {
342 BatchParams params = batchParams.valueAt(0);
346 for (size_t i = 1; i < batchParams.size(); ++i) {
347 BatchParams params = batchParams.valueAt(i);
359 ssize_t idx = batchParams.removeItem(ident);