Home | History | Annotate | Download | only in sensorservice

Lines Matching refs:Sensor

20 #include <sensor/SensorEventQueue.h>
231 int32_t sensor_handle = buffer[i].sensor;
233 ALOGD_IF(DEBUG_CONNECTIONS, "flush complete event sensor==%d ",
234 buffer[i].meta_data.sensor);
235 // Setting sensor_handle to the correct sensor to ensure the sensor events per
236 // connection are filtered correctly. buffer[i].sensor is zero for meta_data
238 sensor_handle = buffer[i].meta_data.sensor;
242 // Check if this connection has registered for this sensor. If not continue to the
250 // Check if there is a pending flush_complete event for this sensor on this connection.
254 ALOGD_IF(DEBUG_CONNECTIONS, "First flush event for sensor==%d ",
255 buffer[i].meta_data.sensor);
260 // If there is a pending flush complete event for this sensor on this connection,
278 // Regular sensor event, just copy it to the scratch buffer.
281 } while ((i<numEvents) && ((buffer[i].sensor == sensor_handle &&
284 buffer[i].meta_data.sensor == sensor_handle)));
412 flushCompleteEvent.meta_data.sensor = handle;
424 flushCompleteEvent.meta_data.sensor);
493 ssize_t index = mSensorInfo.indexOfKey(scratch[j].meta_data.sensor);
495 ALOGW("%s: sensor 0x%x is not found in connection",
496 __func__, scratch[j].meta_data.sensor);
593 mService->getSensorInterfaceFromHandle(sensor_event.sensor);
633 // send sensor data that is stored in mEventCache for this connection.
647 const Sensor& sensor = si->getSensor();
648 if (sensor.getFifoReservedEventCount() == sensor.getFifoMaxEventCount()) {
649 // Each sensor has a reserved fifo. Sum up the fifo sizes for all wake up sensors and
651 if (sensor.isWakeUpSensor()) {
652 fifoWakeUpSensors += sensor.getFifoReservedEventCount();
654 fifoNonWakeUpSensors += sensor.getFifoReservedEventCount();
658 if (sensor.isWakeUpSensor()) {
659 fifoWakeUpSensors = fifoWakeUpSensors > sensor.getFifoMaxEventCount() ?
660 fifoWakeUpSensors : sensor.getFifoMaxEventCount();
663 fifoNonWakeUpSensors = fifoNonWakeUpSensors > sensor.getFifoMaxEventCount() ?
664 fifoNonWakeUpSensors : sensor.getFifoMaxEventCount();