Home | History | Annotate | Download | only in libsensors_iio

Lines Matching refs:sensor

289     /* instantiate pressure sensor on secondary bus */
293 LOGE("HAL:ERR - Failed to instantiate pressure sensor class");
503 /* initialize sensor data */
507 mPendingEvents[RotationVector].sensor = ID_RV;
513 mPendingEvents[GameRotationVector].sensor = ID_GRV;
519 mPendingEvents[LinearAccel].sensor = ID_LA;
525 mPendingEvents[Gravity].sensor = ID_GR;
530 mPendingEvents[Gyro].sensor = ID_GY;
535 mPendingEvents[RawGyro].sensor = ID_RG;
540 mPendingEvents[Accelerometer].sensor = ID_A;
547 mPendingEvents[MagneticField].sensor = ID_M;
553 mPendingEvents[RawMagneticField].sensor = ID_RM;
559 mPendingEvents[Pressure].sensor = ID_PS;
565 mPendingEvents[Orientation].sensor = ID_O;
571 mPendingEvents[GeomagneticRotationVector].sensor = ID_GMRV;
664 /* disable driver master enable the first sensor goes on */
844 // 9x sensor fusion enables Compass fit
1187 /* called when batch and hw sensor enabled*/
1301 //Disable Accel if no sensor needs it
1419 //Disable Accel if no sensor needs it
2058 // Sequence to enable or disable a sensor
2060 // 2. enable or disable a sensor
2283 "hardware sensor on continuous mode:%d", i);
2284 // if any one of the hardware sensor is in continuous data mode
2290 "HAL:computeBatchSensorMask: hardware sensor is batch:%d",
2292 // if hardware sensor is batched, check if virtual sensor is batched
2296 "HAL:computeBatchSensorMask: but virtual sensor is not:%d",
2306 "composite sensor on continuous mode:%d", i);
2351 LOGV_IF(ENG_VERBOSE, "sensor=%d, timeout=%lld", i, mBatchTimeouts[i]);
2447 /* reset sensor rate */
2452 /* reset sensor rate */
2490 /* these handlers transform mpl data into one of the Android sensor types */
2669 /* Identify which sensor this event is for */
2671 s->sensor = ID_SM;
2731 s->sensor = 0;
2740 s->meta_data.sensor = mFlushEnabled;
2745 "sensor=%d - %lld - %d",
2746 s->type, s->meta_data.what, s->meta_data.sensor,
2770 LOGV_IF(PROCESS_VERBOSE, "HAL:enable - sensor %s (handle %d) %s -> %s",
2779 LOGV_IF(PROCESS_VERBOSE, "HAL:enable - sensor %s (handle %d) %s -> %s",
2794 LOGV_IF(PROCESS_VERBOSE, "HAL:enable - sensor %s (handle %d) %s -> %s",
2803 LOGV_IF(PROCESS_VERBOSE, "HAL:enable - sensor %s (handle %d) %s -> %s",
2870 LOGV_IF(PROCESS_VERBOSE, "HAL:enable - sensor %s (handle %d) %s -> %s",
2875 "HAL:%s sensor state change what=%d", sname.string(), what);
3080 // skip the 1st call for enalbing sensors called by ICS/JB sensor service
3109 /* store request rate to mDelays arrary for each sensor */
3142 "HAL:ignore delay set due to sensor %d", i);
3185 "HAL:ignore delay set due to sensor %d", i);
3209 // Sequence to change sensor's FIFO rate
3703 // collect data for MPL (but NOT sensor service currently), from driver layer
3779 Need to flush it if no sensor is on, to avoid infinite
4417 temp.sensor = ID_SO;
4710 /** fill in the sensor list based on which sensors are configured.
4723 LOGE("HAL:sensor list too small, not populating.");
5497 LOGI_IF(EXTRA_VERBOSE, "HAL: Compass is disabled, Six-axis Sensor Fusion is used.");
5509 /* precondition: framework disallows this case, ie enable continuous sensor, */
5510 /* and enable batch sensor */
5511 /* if one sensor is in continuous mode, HAL disallows enabling batch for this sensor */
5523 /* Enables batch mode and sets timeout for the given sensor */
5556 LOGV_IF(PROCESS_VERBOSE, "HAL: batch - select sensor (handle %d)", handle);
5560 LOGV_IF(PROCESS_VERBOSE, "sensor (handle %d) is not supported in batch mode", handle);
5579 /* get minimum delay for each requested sensor */
5587 "HAL:batch - requested sensor=0x%01x, batch delay=%lld", mEnabled & (1 << i), ns);
5641 LOGV("HAL:batch - sensor=0x%01x", mBatchEnabled);
5643 LOGV("HAL:batch - sensor status=0x%01x batch status=0x%01x timeout=%lld delay=%lld",
5805 /* reset sensor rate */
5833 LOGE("HAL: flush - sensor %s not enabled", sname.string());
5837 LOGE("HAL:flush - batch mode not enabled for sensor %s", sname.string());
5840 LOGV_IF(PROCESS_VERBOSE, "HAL:flush - sensor %s (handle %d)", sname.string(), handle);
5937 temp.sensor = id;
6316 /* Set sensor rate */