Lines Matching defs:sensors

684     /* TODO: Turn off and close all sensors */
1013 int MPLSensor::enableSensors(unsigned long sensors, int /*en*/, uint32_t changed) {
1048 LOGV_IF(PROCESS_VERBOSE, "HAL:enableSensors - sensors: 0x%0x", (unsigned int)sensors);
1051 res = enableOneSensor(sensors & INV_THREE_AXIS_GYRO, "gyro", &MPLSensor::enableGyro);
1058 res = enableOneSensor(sensors & INV_THREE_AXIS_ACCEL, "accel", &MPLSensor::enableAccel);
1066 res = enableOneSensor(sensors & INV_THREE_AXIS_COMPASS, "compass", &MPLSensor::enableCompass);
1096 if (sensors &
1119 if ((sensors & INV_THREE_AXIS_ACCEL) == 0) {
1131 } else { // all sensors idle -> reduce power
1144 if ((sensors & INV_THREE_AXIS_ACCEL) == 0) {
1164 !(sensors & (INV_THREE_AXIS_GYRO | INV_THREE_AXIS_ACCEL
1480 // skip the 1st call for enalbing sensors called by ICS/JB sensor service
1580 /* search the minimum delay requested across all enabled sensors */
1598 LOGV_IF(PROCESS_VERBOSE, "HAL:wanted rate for all sensors : "
1744 unsigned long sensors = mLocalSensorMask & mMasterSensorMask;
1745 if (sensors &
1750 } else { // all sensors idle -> reduce power
1838 // load up virtual sensors
1866 sensors = ((mLocalSensorMask & INV_THREE_AXIS_GYRO)? 1 : 0) +
1871 nbyte= (8 * sensors + 8) * 1;
1884 if (sensors == 0) {
1891 LOGI("sensors: %d", sensors);
1912 LOGE("HAL:ERR Full data packet was not read. rsize=%zd nbyte=%d sensors=%d errno=%d(%s)",
1913 rsize, nbyte, sensors, errno, strerror(errno));
1935 mCachedCompassData[i] = *((short *) (rdata + i * 2 + 6 * (sensors - 1)));
1946 mSensorTimestamp = *((long long *) (rdata + 8 * sensors));
2476 /** fill in the sensor list based on which sensors are configured.
2477 * return the number of configured sensors.
2509 /* all sensors will be added to the list
2519 /* no 9-axis sensors, zero fill that part of the list */