Lines Matching refs:sensor
74 sensor_t sensor = kSensorList[i]; in setDelay() local
75 if (sensor.handle != handle) { in setDelay()
79 if ((sensor.flags & REPORTING_MODE_MASK) == SENSOR_FLAG_CONTINUOUS_MODE) { in setDelay()
80 if ((delayNs/1000) < sensor.minDelay) { in setDelay()
81 delayNsClamped = sensor.minDelay * 1000; in setDelay()
82 } else if ((delayNs/1000) > sensor.maxDelay) { in setDelay()
83 delayNsClamped = sensor.maxDelay * 1000; in setDelay()
117 sensor_t sensor = kSensorList[i]; in batch() local
118 if (sensor.handle != handle) { in batch()
122 if ((sensor.flags & REPORTING_MODE_MASK) == SENSOR_FLAG_CONTINUOUS_MODE) { in batch()
123 if ((sampling_period_ns/1000) < sensor.minDelay) { in batch()
124 sampling_period_ns_clamped = sensor.minDelay * 1000; in batch()
125 } else if ((sampling_period_ns/1000) > sensor.maxDelay) { in batch()
126 sampling_period_ns_clamped = sensor.maxDelay * 1000; in batch()