Lines Matching refs:sensor_id
501 _hwSensors_setSensorValue( HwSensors* h, int sensor_id, float a, float b, float c ) in _hwSensors_setSensorValue() argument
503 Sensor* s = &h->sensors[sensor_id]; in _hwSensors_setSensorValue()
730 android_sensors_get_name_from_id( int sensor_id ) in android_sensors_get_name_from_id() argument
732 if (sensor_id < 0 || sensor_id >= MAX_SENSORS) in android_sensors_get_name_from_id()
735 return _sensorNameFromId(sensor_id); in android_sensors_get_name_from_id()
763 android_sensors_get( int sensor_id, float* a, float* b, float* c ) in android_sensors_get() argument
771 if (sensor_id < 0 || sensor_id >= MAX_SENSORS) in android_sensors_get()
774 Sensor* sensor = &hw->sensors[sensor_id]; in android_sensors_get()
790 android_sensors_set( int sensor_id, float a, float b, float c ) in android_sensors_set() argument
794 if (sensor_id < 0 || sensor_id >= MAX_SENSORS) in android_sensors_set()
798 if (! hw->sensors[sensor_id].enabled) in android_sensors_set()
803 _hwSensors_setSensorValue(hw, sensor_id, a, b, c); in android_sensors_set()
810 android_sensors_get_sensor_status( int sensor_id ) in android_sensors_get_sensor_status() argument
814 if (sensor_id < 0 || sensor_id >= MAX_SENSORS) in android_sensors_get_sensor_status()
817 return hw->sensors[sensor_id].enabled; in android_sensors_get_sensor_status()