Lines Matching refs:mEnabled

223                          mEnabled(0),
1242 if (mEnabled == 0) {
1360 if (mEnabled == 0) {
1442 if (mEnabled & (1 << GameRotationVector)) {
1445 } else if (mEnabled & (1 << Accelerometer)) {
1447 } else if ((mEnabled & ( 1 << Gyro)) ||
1448 (mEnabled & (1 << RawGyro))) {
1559 if (mEnabled & (1 << GameRotationVector)) {
1568 } else if (mEnabled & (1 << Accelerometer)) {
1570 } else if ((mEnabled & ( 1 << Gyro)) ||
1571 (mEnabled & (1 << RawGyro))) {
1577 if (mEnabled & ( 1 << GameRotationVector)) {
1590 (!(mEnabled & (1 << Accelerometer))))) {
1599 (!(mEnabled & (1 << Gyro))))) {
1601 (!(mEnabled & (1 << RawGyro)))) {
1678 int enabled_sensors = mEnabled;
2132 if ((mEnabled & VIRTUAL_SENSOR_9AXES_MASK)
2133 || (mEnabled & VIRTUAL_SENSOR_GYRO_6AXES_MASK)) {
2168 int batchMode = computeBatchSensorMask(mEnabled, mBatchEnabled);
2250 LOGV_IF(ENG_VERBOSE, "HAL DEBUG: mEnabled");
2347 LOGV_IF(0, "mFeatureActiveMask=0x%016llx, mEnabled=0x%01x, mBatchEnabled=0x%x",
2348 mFeatureActiveMask, mEnabled, mBatchEnabled);
2349 if (((mEnabled & (1 << i)) && (mBatchEnabled & (1 << i))) ||
2377 (mEnabled & (1 << GameRotationVector)) &&
2390 ((mEnabled) ||
2399 if (en && (mEnabled & (1 << GameRotationVector)) &&
2407 if (mEnabled & (1 << GameRotationVector) && checkLPQRateSupported()) {
2458 if (mFeatureActiveMask || mEnabled)
2785 batchMode = computeBatchSensorMask(mEnabled, mBatchEnabled);
2872 ((mEnabled & (1 << what)) ? "en" : "dis"),
2880 if ((uint32_t(newState) << what) != (mEnabled & (1 << what))) {
2883 uint32_t lastEnabled = mEnabled, changed = 0;
2885 mEnabled &= ~(1 << what);
2886 mEnabled |= (uint32_t(flags) << what);
2890 computeLocalSensorMask(mEnabled);
2891 LOGV_IF(ENG_VERBOSE, "HAL:enable : mEnabled = %d", mEnabled);
2901 if ((!(mEnabled & VIRTUAL_SENSOR_GYRO_6AXES_MASK) &&
2902 !(mEnabled & VIRTUAL_SENSOR_9AXES_MASK)) &&
2903 ((lastEnabled & (1 << what)) != (mEnabled & (1 << what)))) {
2912 if (!(mEnabled & VIRTUAL_SENSOR_9AXES_MASK) &&
2913 ((lastEnabled & (1 << what)) != (mEnabled & (1 << what)))) {
2918 if ((lastEnabled & (1 << what)) != (mEnabled & (1 << what))) {
2929 (!en && !(mEnabled & VIRTUAL_SENSOR_ALL_MASK))
2931 (!en && (mEnabled & VIRTUAL_SENSOR_MAG_6AXES_MASK))) {
2933 if (!(mEnabled & (1 << i))) {
2948 (!en && !(mEnabled & VIRTUAL_SENSOR_9AXES_MASK))) {
2950 if (!(mEnabled & (1 << i))) {
2963 (!en && !(mEnabled & VIRTUAL_SENSOR_ALL_MASK))
2965 (!en && (mEnabled & VIRTUAL_SENSOR_GYRO_6AXES_MASK))) {
2967 if (!(mEnabled & (1<<i))) {
3082 if (!(mEnabled & (1 << what))) {
3130 //LOGV("what=%d mEnabled=%d mDelays[%d]=%lld previousDelay=%lld",
3131 //what, mEnabled, what, mDelays[what], previousDelay);
3132 if ((mEnabled & (1 << what)) && (previousDelay != mDelays[what])) {
3140 if (i != what && (mEnabled & (1 << i)) && ns > mDelays[i]) {
3152 if ((mEnabled & (1 << what)) && (previousDelay != mDelays[what])) {
3158 (((mEnabled & (1 << Gyro)) && ns > mDelays[Gyro]) ||
3159 ((mEnabled & (1 << RawGyro)) && ns > mDelays[RawGyro]) ||
3160 ((mEnabled & (1 << Accelerometer)) &&
3183 if (i != what && (mEnabled & (1 << i)) && ns > mDelays[i]) {
3205 if (mEnabled) {
3230 if (mEnabled & (1 << i)) {
3261 int enabled_sensors = mEnabled;
3418 (mEnabled & (1 << Gyro)? mDelays[Gyro]: mDelays[RawGyro]):
3419 (mEnabled & (1 << RawGyro)? mDelays[RawGyro]: mDelays[Gyro]));
3478 (mEnabled & (1 << MagneticField)? mDelays[MagneticField]: mDelays[RawMagneticField]):
3479 (mEnabled & (1 << RawMagneticField)? mDelays[RawMagneticField]: mDelays[MagneticField]));
3688 if (mEnabled & (1 << i)) {
4262 int enabled_sensors = mEnabled;
4308 if (!mEnabled){
4336 if (mEnabled){
4347 if (en || mEnabled || mFeatureActiveMask) {
5528 int enabled_sensors = mEnabled;
5572 if (!computeBatchSensorMask(mEnabled, tempBatch)) {
5587 "HAL:batch - requested sensor=0x%01x, batch delay=%lld", mEnabled & (1 << i), ns);
5638 LOGV_IF(ENG_VERBOSE, "batchMode =%d, featureMask=0x%x, mEnabled=%d",
5639 batchMode, featureMask, mEnabled);
5644 mEnabled & (1 << d), (mBatchEnabled & (1 << d)), mBatchTimeouts[d],
5653 if ((mEnabled & (1 << i) && mBatchEnabled & (1 << i)) ||
5701 (mEnabled & (1 << GameRotationVector)) &&
5718 if (mEnabled & (1 << GameRotationVector) && checkLPQRateSupported()) {
5733 (mEnabled & (1 << GameRotationVector))) {
5751 if (mEnabled & (1 << GameRotationVector) && checkLPQRateSupported()) {
5795 if ((mFeatureActiveMask == 0) && !(mEnabled & VIRTUAL_SENSOR_ALL_MASK)) {
5831 if (((what != StepDetector) && (!(mEnabled & (1 << what)))) ||
6008 int sensors = mEnabled;
6069 int enabled_sensors = mEnabled;
6333 if (!mEnabled) {
6340 if (mEnabled & (1 << i)) {