Home | History | Annotate | Download | only in libsensors_iio

Lines Matching refs:sensor

285     /* instantiate pressure sensor on secondary bus */
289 LOGE("HAL:ERR - Failed to instantiate pressure sensor class");
499 /* initialize sensor data */
503 mPendingEvents[RotationVector].sensor = ID_RV;
509 mPendingEvents[GameRotationVector].sensor = ID_GRV;
515 mPendingEvents[LinearAccel].sensor = ID_LA;
521 mPendingEvents[Gravity].sensor = ID_GR;
526 mPendingEvents[Gyro].sensor = ID_GY;
531 mPendingEvents[RawGyro].sensor = ID_RG;
536 mPendingEvents[Accelerometer].sensor = ID_A;
543 mPendingEvents[MagneticField].sensor = ID_M;
549 mPendingEvents[RawMagneticField].sensor = ID_RM;
555 mPendingEvents[Pressure].sensor = ID_PS;
561 mPendingEvents[Orientation].sensor = ID_O;
567 mPendingEvents[GeomagneticRotationVector].sensor = ID_GMRV;
660 /* disable driver master enable the first sensor goes on */
840 // 9x sensor fusion enables Compass fit
1183 /* called when batch and hw sensor enabled*/
1297 //Disable Accel if no sensor needs it
1415 //Disable Accel if no sensor needs it
2053 // Sequence to enable or disable a sensor
2055 // 2. enable or disable a sensor
2278 "hardware sensor on continuous mode:%d", i);
2279 // if any one of the hardware sensor is in continuous data mode
2285 "HAL:computeBatchSensorMask: hardware sensor is batch:%d",
2287 // if hardware sensor is batched, check if virtual sensor is batched
2291 "HAL:computeBatchSensorMask: but virtual sensor is not:%d",
2301 "composite sensor on continuous mode:%d", i);
2344 LOGV_IF(ENG_VERBOSE, "sensor=%d, timeout=%lld", i, mBatchTimeouts[i]);
2440 /* reset sensor rate */
2445 /* reset sensor rate */
2483 /* these handlers transform mpl data into one of the Android sensor types */
2662 /* Identify which sensor this event is for */
2664 s->sensor = ID_SM;
2723 s->sensor = 0;
2732 s->meta_data.sensor = mFlushEnabled;
2737 "sensor=%d - %lld - %d",
2738 s->type, s->meta_data.what, s->meta_data.sensor,
2762 LOGV_IF(PROCESS_VERBOSE, "HAL:enable - sensor %s (handle %d) %s -> %s",
2771 LOGV_IF(PROCESS_VERBOSE, "HAL:enable - sensor %s (handle %d) %s -> %s",
2786 LOGV_IF(PROCESS_VERBOSE, "HAL:enable - sensor %s (handle %d) %s -> %s",
2795 LOGV_IF(PROCESS_VERBOSE, "HAL:enable - sensor %s (handle %d) %s -> %s",
2862 LOGV_IF(PROCESS_VERBOSE, "HAL:enable - sensor %s (handle %d) %s -> %s",
2867 "HAL:%s sensor state change what=%d", sname.string(), what);
3071 // skip the 1st call for enalbing sensors called by ICS/JB sensor service
3100 /* store request rate to mDelays arrary for each sensor */
3133 "HAL:ignore delay set due to sensor %d", i);
3176 "HAL:ignore delay set due to sensor %d", i);
3200 // Sequence to change sensor's FIFO rate
3684 // collect data for MPL (but NOT sensor service currently), from driver layer
3760 Need to flush it if no sensor is on, to avoid infinite
4396 temp.sensor = ID_SO;
4689 /** fill in the sensor list based on which sensors are configured.
4702 LOGE("HAL:sensor list too small, not populating.");
5468 LOGI_IF(EXTRA_VERBOSE, "HAL: Compass is disabled, Six-axis Sensor Fusion is used.");
5480 /* precondition: framework disallows this case, ie enable continuous sensor, */
5481 /* and enable batch sensor */
5482 /* if one sensor is in continuous mode, HAL disallows enabling batch for this sensor */
5494 /* Enables batch mode and sets timeout for the given sensor */
5527 LOGV_IF(PROCESS_VERBOSE, "HAL: batch - select sensor (handle %d)", handle);
5531 LOGV_IF(PROCESS_VERBOSE, "sensor (handle %d) is not supported in batch mode", handle);
5550 /* get minimum delay for each requested sensor */
5558 "HAL:batch - requested sensor=0x%01x, batch delay=%lld", mEnabled & (1 << i), ns);
5612 LOGV("HAL:batch - sensor=0x%01x", mBatchEnabled);
5614 LOGV("HAL:batch - sensor status=0x%01x batch status=0x%01x timeout=%lld delay=%lld",
5776 /* reset sensor rate */
5804 LOGE("HAL: flush - sensor %s not enabled", sname.string());
5808 LOGE("HAL:flush - batch mode not enabled for sensor %s", sname.string());
5811 LOGV_IF(PROCESS_VERBOSE, "HAL:flush - sensor %s (handle %d)", sname.string(), handle);
5906 temp.sensor = id;
6286 /* Set sensor rate */