Home | History | Annotate | Download | only in libsensors_iio

Lines Matching refs:sensor

197     /* instantiate pressure sensor on secondary bus */
420 /* initialize sensor data */
425 mPendingEvents[RotationVector].sensor = ID_RV;
431 mPendingEvents[GameRotationVector].sensor = ID_GRV;
437 mPendingEvents[LinearAccel].sensor = ID_LA;
443 mPendingEvents[Gravity].sensor = ID_GR;
448 mPendingEvents[Gyro].sensor = ID_GY;
453 mPendingEvents[RawGyro].sensor = ID_RG;
458 mPendingEvents[Accelerometer].sensor = ID_A;
465 mPendingEvents[MagneticField].sensor = ID_M;
471 mPendingEvents[RawMagneticField].sensor = ID_RM;
478 mPendingEvents[Pressure].sensor = ID_PS;
485 mPendingEvents[Orientation].sensor = ID_O;
491 mPendingEvents[GeomagneticRotationVector].sensor = ID_GMRV;
498 mSmEvents.sensor = ID_SM;
503 mSdEvents.sensor = ID_P;
508 mScEvents.sensor = ID_SC;
782 // 9x sensor fusion enables Compass fit
1111 // set sensor engine and fifo
1152 // set sensor data interrupt
1175 LOGV_IF(PROCESS_VERBOSE, "HAL:computeAndSetDmpState() Sensor Fusion = 1");
1178 unsigned long sensor = mLocalSensorMask & mMasterSensorMask;
1179 if (sensor & (INV_THREE_AXIS_ACCEL & INV_THREE_AXIS_GYRO)) {
1229 /* called when batch and hw sensor enabled*/
1260 //Disable Accel if no sensor needs it
1380 //Disable Accel if no sensor needs it
1490 //Disable Accel if no sensor needs it
2135 // Sequence to enable or disable a sensor
2137 // 2. enable or disable a sensor
2371 // if any one of the hardware sensor is in continuous data mode
2375 "hardware sensor on continuous mode:%d", i);
2380 "HAL:computeBatchSensorMask: hardware sensor is batch:%d",
2382 // if hardware sensor is batched, check if virtual sensor is also batched
2386 "HAL:computeBatchSensorMask: but virtual sensor is not:%d",
2397 "composite sensor on continuous mode:%d", i);
2515 /* reset sensor rate */
2522 // set sensor data interrupt
2552 LOGV_IF(ENG_VERBOSE, "sensor=%d, timeout=%lld", i, mBatchTimeouts[i]);
2618 /* these handlers transform mpl data into one of the Android sensor types */
3027 s->sensor = 0;
3036 s->meta_data.sensor = mFlushSensorEnabledVector[0];
3040 "sensor=%d - %lld - %d",
3041 s->type, s->meta_data.what, s->meta_data.sensor,
3076 LOGV_IF(PROCESS_VERBOSE, "HAL:enable - sensor %s (handle %d) %s -> %s",
3093 LOGV_IF(PROCESS_VERBOSE, "HAL:enable - sensor %s (handle %d) %s -> %s",
3115 LOGV_IF(PROCESS_VERBOSE, "HAL:enable - sensor %s (handle %d) %s -> %s",
3128 LOGV_IF(PROCESS_VERBOSE, "HAL:enable - sensor %s (handle %d) %s -> %s",
3194 LOGV_IF(PROCESS_VERBOSE, "HAL:enable - sensor %s (handle %d) %s -> %s",
3199 "HAL:%s sensor state change what=%d", sname.string(), what);
3423 // skip the 1st call for enalbing sensors called by ICS/JB sensor service
3452 /* store request rate to mDelays arrary for each sensor */
3487 "HAL:ignore delay set due to sensor %d", i);
3530 "HAL:ignore delay set due to sensor %d", i);
3554 // Sequence to change sensor's FIFO rate
3583 /* initialize rate for each sensor */
3632 "HAL:MPL virtual sensor sample rate: (mpl)=%d us (mpu)=%.2f Hz",
3950 mPendingFlushEvents[0].meta_data.sensor);
3956 mPendingFlushEvents[0].meta_data.sensor);
3978 // collect data for MPL (but NOT sensor service currently), from driver layer
4041 Need to flush it if no sensor is on, to avoid infinite
4853 temp.sensor = ID_SO;
5054 /** fill in the sensor list based on which sensors are configured.
5067 LOGE("HAL:sensor list too small, not populating.");
5854 LOGI_IF(EXTRA_VERBOSE, "HAL: Compass is disabled, Six-axis Sensor Fusion is used.");
5866 /* precondition: framework disallows this case, ie enable continuous sensor, */
5867 /* and enable batch sensor */
5868 /* if one sensor is in continuous mode, HAL disallows enabling batch for this sensor */
5879 /* Enables batch mode and sets timeout for the given sensor */
5937 LOGV_IF(PROCESS_VERBOSE, "HAL: batch - select sensor (handle %d)", handle);
5944 LOGV_IF(PROCESS_VERBOSE, "HAL: batch - select sensor (handle %d)", handle);
5948 LOGE("sensor (handle %d) is not supported in batch mode", handle);
5978 /* get minimum delay for each requested sensor */
5986 "HAL:batch - requested sensor=0x%01x, batch delay=%lld", mEnabled & (1 << i), ns);
6112 LOGV("HAL:batch - sensor=0x%01x", mBatchEnabled);
6114 LOGV("HAL:batch - sensor status=0x%01x batch status=0x%01x timeout=%lld delay=%lld",
6210 /* reset sensor rate */
6218 // set sensor data interrupt
6254 LOGV_IF(PROCESS_VERBOSE, "HAL: flush - select sensor %s (handle %d)", sname.string(), handle);
6259 LOGV_IF(ENG_VERBOSE, "HAL: flush - sensor %s not enabled", sname.string());
6264 LOGV_IF(PROCESS_VERBOSE, "HAL:flush - batch mode not enabled for sensor %s (handle %d)", sname.string(), handle);
6581 /* auto disable this sensor */
7011 /* Set sensor rate */