Lines Matching refs:mEnabled

223                          mEnabled(0),
1238 if (mEnabled == 0) {
1356 if (mEnabled == 0) {
1438 if (mEnabled & (1 << GameRotationVector)) {
1441 } else if (mEnabled & (1 << Accelerometer)) {
1443 } else if ((mEnabled & ( 1 << Gyro)) ||
1444 (mEnabled & (1 << RawGyro))) {
1555 if (mEnabled & (1 << GameRotationVector)) {
1564 } else if (mEnabled & (1 << Accelerometer)) {
1566 } else if ((mEnabled & ( 1 << Gyro)) ||
1567 (mEnabled & (1 << RawGyro))) {
1573 if (mEnabled & ( 1 << GameRotationVector)) {
1586 (!(mEnabled & (1 << Accelerometer))))) {
1595 (!(mEnabled & (1 << Gyro))))) {
1597 (!(mEnabled & (1 << RawGyro)))) {
1674 int enabled_sensors = mEnabled;
2127 if ((mEnabled & VIRTUAL_SENSOR_9AXES_MASK)
2128 || (mEnabled & VIRTUAL_SENSOR_GYRO_6AXES_MASK)) {
2163 int batchMode = computeBatchSensorMask(mEnabled, mBatchEnabled);
2245 LOGV_IF(ENG_VERBOSE, "HAL DEBUG: mEnabled");
2340 LOGV_IF(0, "mFeatureActiveMask=0x%016llx, mEnabled=0x%01x, mBatchEnabled=0x%x",
2341 mFeatureActiveMask, mEnabled, mBatchEnabled);
2342 if (((mEnabled & (1 << i)) && (mBatchEnabled & (1 << i))) ||
2370 (mEnabled & (1 << GameRotationVector)) &&
2383 ((mEnabled) ||
2392 if (en && (mEnabled & (1 << GameRotationVector)) &&
2400 if (mEnabled & (1 << GameRotationVector) && checkLPQRateSupported()) {
2451 if (mFeatureActiveMask || mEnabled)
2777 batchMode = computeBatchSensorMask(mEnabled, mBatchEnabled);
2864 ((mEnabled & (1 << what)) ? "en" : "dis"),
2872 if ((uint32_t(newState) << what) != (mEnabled & (1 << what))) {
2874 uint32_t lastEnabled = mEnabled, changed = 0;
2876 mEnabled &= ~(1 << what);
2877 mEnabled |= (uint32_t(flags) << what);
2881 computeLocalSensorMask(mEnabled);
2882 LOGV_IF(ENG_VERBOSE, "HAL:enable : mEnabled = %d", mEnabled);
2892 if ((!(mEnabled & VIRTUAL_SENSOR_GYRO_6AXES_MASK) &&
2893 !(mEnabled & VIRTUAL_SENSOR_9AXES_MASK)) &&
2894 ((lastEnabled & (1 << what)) != (mEnabled & (1 << what)))) {
2903 if (!(mEnabled & VIRTUAL_SENSOR_9AXES_MASK) &&
2904 ((lastEnabled & (1 << what)) != (mEnabled & (1 << what)))) {
2909 if ((lastEnabled & (1 << what)) != (mEnabled & (1 << what))) {
2920 (!en && !(mEnabled & VIRTUAL_SENSOR_ALL_MASK))
2922 (!en && (mEnabled & VIRTUAL_SENSOR_MAG_6AXES_MASK))) {
2924 if (!(mEnabled & (1 << i))) {
2939 (!en && !(mEnabled & VIRTUAL_SENSOR_9AXES_MASK))) {
2941 if (!(mEnabled & (1 << i))) {
2954 (!en && !(mEnabled & VIRTUAL_SENSOR_ALL_MASK))
2956 (!en && (mEnabled & VIRTUAL_SENSOR_GYRO_6AXES_MASK))) {
2958 if (!(mEnabled & (1<<i))) {
3073 if (!(mEnabled & (1 << what))) {
3121 //LOGV("what=%d mEnabled=%d mDelays[%d]=%lld previousDelay=%lld",
3122 //what, mEnabled, what, mDelays[what], previousDelay);
3123 if ((mEnabled & (1 << what)) && (previousDelay != mDelays[what])) {
3131 if (i != what && (mEnabled & (1 << i)) && ns > mDelays[i]) {
3143 if ((mEnabled & (1 << what)) && (previousDelay != mDelays[what])) {
3149 (((mEnabled & (1 << Gyro)) && ns > mDelays[Gyro]) ||
3150 ((mEnabled & (1 << RawGyro)) && ns > mDelays[RawGyro]) ||
3151 ((mEnabled & (1 << Accelerometer)) &&
3174 if (i != what && (mEnabled & (1 << i)) && ns > mDelays[i]) {
3196 if (mEnabled) {
3216 if (mEnabled & (1 << i)) {
3244 int enabled_sensors = mEnabled;
3399 (mEnabled & (1 << Gyro)? mDelays[Gyro]: mDelays[RawGyro]):
3400 (mEnabled & (1 << RawGyro)? mDelays[RawGyro]: mDelays[Gyro]));
3459 (mEnabled & (1 << MagneticField)? mDelays[MagneticField]: mDelays[RawMagneticField]):
3460 (mEnabled & (1 << RawMagneticField)? mDelays[RawMagneticField]: mDelays[MagneticField]));
3669 if (mEnabled & (1 << i)) {
4287 if (!mEnabled){
4315 if (mEnabled){
4326 if (en || mEnabled || mFeatureActiveMask) {
5499 int enabled_sensors = mEnabled;
5543 if (!computeBatchSensorMask(mEnabled, tempBatch)) {
5558 "HAL:batch - requested sensor=0x%01x, batch delay=%lld", mEnabled & (1 << i), ns);
5609 LOGV_IF(ENG_VERBOSE, "batchMode =%d, featureMask=0x%x, mEnabled=%d",
5610 batchMode, featureMask, mEnabled);
5615 mEnabled & (1 << d), (mBatchEnabled & (1 << d)), mBatchTimeouts[d],
5624 if ((mEnabled & (1 << i) && mBatchEnabled & (1 << i)) ||
5672 (mEnabled & (1 << GameRotationVector)) &&
5689 if (mEnabled & (1 << GameRotationVector) && checkLPQRateSupported()) {
5704 (mEnabled & (1 << GameRotationVector))) {
5722 if (mEnabled & (1 << GameRotationVector) && checkLPQRateSupported()) {
5766 if ((mFeatureActiveMask == 0) && !(mEnabled & VIRTUAL_SENSOR_ALL_MASK)) {
5802 if (((what != StepDetector) && (!(mEnabled & (1 << what)))) ||
5978 int sensors = mEnabled;
6039 int enabled_sensors = mEnabled;
6303 if (!mEnabled) {
6310 if (mEnabled & (1 << i)) {