Lines Matching refs:changed
2074 int MPLSensor::enableSensors(unsigned long sensors, int en, uint32_t changed) argument
2089 changed & ((1 << Gyro) | (1 << RawGyro) | (1 << Accelerometer) |
2106 if (changed & ((1 << Gyro) | (1 << RawGyro))) {
2114 if (!cal_stored && (!en && (changed & (1 << Gyro)))) {
2120 if (changed & (1 << Accelerometer)) {
2134 if (changed & ((1 << MagneticField) | (1 << RawMagneticField))) {
2137 … res = enableCompass(!!(sensors & INV_THREE_AXIS_COMPASS), changed & (1 << RawMagneticField));
2142 if (!cal_stored && (!en && (changed & (1 << MagneticField)))) {
2149 if (changed & (1 << Pressure)) {
2164 if (!(changed & ((1 << Gyro)
2205 if (changed & ((1 << Gyro) | (1 << RawGyro) | (1 << Accelerometer) |
2266 } else if ((changed &
2961 uint32_t lastEnabled = mEnabled, changed = 0; local
2981 changed |= (1 << what);
2984 changed |= (1 << what);
2991 changed |= (1 << what);
2997 changed |= (1 << what);
3013 changed |= (1 << i);
3030 changed |= (1 << i);
3047 changed |= (1 << i);
3053 LOGV_IF(ENG_VERBOSE, "HAL:changed = %d", changed);
3054 enableSensors(sen_mask, flags, changed);