Home | History | Annotate | Download | only in sensors

Lines Matching defs:sensors

17 /* this implements a sensors hardware library for the Android emulator.
19 * placed into /system/lib/hw/sensors.goldfish.so
26 /* we connect with the emulator through the "sensors" qemud service
28 #define SENSORS_SERVICE_NAME "sensors"
39 #include <hardware/sensors.h>
114 /** SENSORS POLL DEVICE
123 sensors_event_t sensors[MAX_NUM_SENSORS];
133 * the sensors data (it is passed to data__data_open() below
156 uint32_t mask, sensors, active, new_sensors, changed;
169 sensors = enabled ? mask : 0;
172 new_sensors = (active & ~mask) | (sensors & mask);
234 memset(&data->sensors, 0, sizeof(data->sensors));
269 *values = data->sensors[i];
295 // there are pending sensors, returns them now...
325 data->sensors[ID_ACCELERATION].acceleration.x = params[0];
326 data->sensors[ID_ACCELERATION].acceleration.y = params[1];
327 data->sensors[ID_ACCELERATION].acceleration.z = params[2];
334 data->sensors[ID_ORIENTATION].orientation.azimuth = params[0];
335 data->sensors[ID_ORIENTATION].orientation.pitch = params[1];
336 data->sensors[ID_ORIENTATION].orientation.roll = params[2];
337 data->sensors[ID_ORIENTATION].orientation.status = SENSOR_STATUS_ACCURACY_HIGH;
344 data->sensors[ID_MAGNETIC_FIELD].magnetic.x = params[0];
345 data->sensors[ID_MAGNETIC_FIELD].magnetic.y = params[1];
346 data->sensors[ID_MAGNETIC_FIELD].magnetic.z = params[2];
347 data->sensors[ID_MAGNETIC_FIELD].magnetic.status = SENSOR_STATUS_ACCURACY_HIGH;
354 data->sensors[ID_TEMPERATURE].temperature = params[0];
361 data->sensors[ID_PROXIMITY].distance = params[0];
385 data->sensors[i].timestamp = t;
412 /** SENSORS POLL DEVICE FUNCTIONS **/
479 * the following is the list of all supported sensors.
481 * according to which hardware sensors are reported as
558 ret = qemud_channel_send(fd, "list-sensors", -1);
575 /* the result is a integer used as a mask for available sensors */
584 D("%s: returned %d sensors (mask=%d)", __FUNCTION__, count, mask);
631 .name = "Goldfish SENSORS Module",