Lines Matching refs:changed
2126 int MPLSensor::enableSensors(unsigned long sensors, int en, uint32_t changed) argument
2141 changed & ((1 << Gyro) | (1 << RawGyro) | (1 << Accelerometer) |
2158 if (changed & ((1 << Gyro) | (1 << RawGyro))) {
2166 if (!cal_stored && (!en && (changed & (1 << Gyro)))) {
2172 if (changed & (1 << Accelerometer)) {
2186 if (changed & ((1 << MagneticField) | (1 << RawMagneticField))) {
2189 … res = enableCompass(!!(sensors & INV_THREE_AXIS_COMPASS), changed & (1 << RawMagneticField));
2194 if (!cal_stored && (!en && (changed & (1 << MagneticField)))) {
2201 if (changed & (1 << Pressure)) {
2216 if (!(changed & ((1 << Gyro)
2257 if (changed & ((1 << Gyro) | (1 << RawGyro) | (1 << Accelerometer) |
2318 } else if ((changed &
3207 uint32_t lastEnabled = mEnabled, changed = 0; local
3232 changed |= (1 << what);
3235 changed |= (1 << what);
3242 changed |= (1 << what);
3248 changed |= (1 << what);
3264 changed |= (1 << i);
3281 changed |= (1 << i);
3298 changed |= (1 << i);
3304 LOGV_IF(ENG_VERBOSE, "HAL:changed = %d", changed);
3305 enableSensors(sen_mask, flags, changed);