Lines Matching refs:batch
149 // Log error. Every activate call should be preceded by a batch() call.
150 ALOGE("\t >>>ERROR: activate called without batch");
162 // Call batch for this sensor with the previously calculated best effort
164 // events, and the best effort batch parameters might have changed.
166 "\t>>> actuating h/w batch %d %d %lld %lld ", handle,
169 mSensorDevice->batch(mSensorDevice, handle,info.bestBatchParams.flags,
192 // On older devices which do not support batch, call setDelay().
203 status_t SensorDevice::batch(void* ident, int handle, int flags, int64_t samplingPeriodNs,
214 return mSensorDevice->batch(mSensorDevice, handle, flags, samplingPeriodNs,
220 errDryRun = mSensorDevice->batch(mSensorDevice, handle, flags | SENSORS_BATCH_DRY_RUN,
223 ALOGD_IF(DEBUG_CONNECTIONS, "SensorDevice::batch dry run error %s",
229 // Batch is not supported on older devices.
234 "SensorDevice::batch: ident=%p, handle=0x%08x, flags=%d, period_ns=%lld timeout=%lld",
244 // A batch has already been called with this ident. Update the batch parameters.
258 // If the min period or min timeout has changed since the last batch call, call batch.
261 ALOGD_IF(DEBUG_CONNECTIONS, "\t>>> actuating h/w BATCH %d %d %lld %lld ", handle,
264 err = mSensorDevice->batch(mSensorDevice, handle, info.bestBatchParams.flags,
268 // For older devices which do not support batch, call setDelay() after activate() is
273 ALOGE("sensor batch failed %p %d %d %lld %lld err=%s", mSensorDevice, handle,
291 // Calling setDelay() in batch mode is an invalid operation.