Lines Matching refs:sensor
216 if (event->sensor != SENSORS_HANDLE_BASE - 1) { in inject_sensor_data()
266 sensor_t sensor = kSensorList[i]; in setDelay() local
267 if (sensor.handle != handle) { in setDelay()
271 if ((sensor.flags & REPORTING_MODE_MASK) == SENSOR_FLAG_CONTINUOUS_MODE) { in setDelay()
272 if ((delayNs/1000) < sensor.minDelay) { in setDelay()
273 delayNsClamped = sensor.minDelay * 1000; in setDelay()
274 } else if ((delayNs/1000) > sensor.maxDelay) { in setDelay()
275 delayNsClamped = sensor.maxDelay * 1000; in setDelay()
292 sensor_t sensor = kSensorList[i]; in batch() local
293 if (sensor.handle != handle) { in batch()
297 if ((sensor.flags & REPORTING_MODE_MASK) == SENSOR_FLAG_CONTINUOUS_MODE) { in batch()
298 if ((sampling_period_ns/1000) < sensor.minDelay) { in batch()
299 sampling_period_ns_clamped = sensor.minDelay * 1000; in batch()
300 } else if ((sampling_period_ns/1000) > sensor.maxDelay) { in batch()
301 sampling_period_ns_clamped = sensor.maxDelay * 1000; in batch()