Searched refs:sensor_id (Results 1 – 3 of 3) sorted by relevance
/external/qemu/android/ |
D | hw-sensors.c | 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() [all …]
|
D | hw-sensors.h | 67 extern int android_sensors_get( int sensor_id, float* a, float* b, float* c ); 70 extern int android_sensors_set( int sensor_id, float a, float b, float c ); 76 extern const char* android_sensors_get_name_from_id( int sensor_id ); 79 extern uint8_t android_sensors_get_sensor_status( int sensor_id );
|
D | console.c | 2436 int sensor_id = android_sensors_get_id_from_name( sensor ); in do_sensors_get() local 2440 if (sensor_id < 0) { in do_sensors_get() 2441 status = sensor_id; in do_sensors_get() 2444 status = android_sensors_get( sensor_id, &a, &b, &c ); in do_sensors_get() 2507 int sensor_id = android_sensors_get_id_from_name( sensor ); in do_sensors_set() local 2510 if (sensor_id < 0) { in do_sensors_set() 2511 status = sensor_id; in do_sensors_set() 2515 status = android_sensors_get( sensor_id, &fvalues[0], &fvalues[1], &fvalues[2] ); in do_sensors_set() 2537 status = android_sensors_set( sensor_id, fvalues[0], fvalues[1], fvalues[2] ); in do_sensors_set()
|