Lines Matching defs:sensor
69 sensor_t sensor;
70 convertToSensor(list[i], &sensor);
72 if (sensor.power < minPowerMa) {
74 sensor.power, minPowerMa);
75 sensor.power = minPowerMa;
77 mSensorList.push_back(sensor);
96 // no sensor hidl service found
259 // This is the first connection, we need to activate the underlying h/w sensor.
269 // If a connected dynamic sensor is deactivated, remove it from the
279 // This is the last connection, we need to de-activate the underlying h/w sensor.
282 // Call batch for this sensor with the previously calculated best effort
283 // batch_rate and timeout. One of the apps has unregistered for sensor
292 // sensor wasn't enabled for this ident
304 ALOGE_IF(err, "Error %s sensor %d (%s)", enabled ? "activating" : "disabling", handle,
308 // Failure when enabling the sensor. Clean up on failure.
352 // Find the minimum of all timeouts and batch_rates for this sensor.
370 ALOGE("sensor batch failed %p 0x%08x %" PRId64 " %" PRId64 " err=%s",
414 ALOGD_IF(DEBUG_CONNECTIONS, "\t>> reenable actuating h/w sensor enable handle=%d ",
421 ALOGE_IF(err, "Error calling batch on sensor %d (%s)", sensor_handle, strerror(-err));
426 ALOGE_IF(err, "Error activating sensor %d (%s)", sensor_handle, strerror(-err));
436 // Check if this sensor has been activated previously and disable it.
439 sensor disable handle=%d ",
443 // Add all the connections that were registered for this sensor to the disabled
458 injected_sensor_event->sensor,
641 dst->dynamic_sensor_meta.sensor = it->second;
654 // Allocate a sensor_t structure for each dynamic sensor added and insert
662 sensor_t *sensor = new sensor_t;
663 convertToSensor(info, sensor);
666 std::make_pair(sensor->handle, sensor));