Lines Matching refs:what
2731 s->meta_data.what = flags; in metaHandler()
2738 s->type, s->meta_data.what, s->meta_data.sensor, in metaHandler()
2755 int what = -1, err = 0; in enable() local
2760 what = StepCounter; in enable()
2803 what = Accelerometer; in enable()
2807 what = MagneticField; in enable()
2811 what = RawMagneticField; in enable()
2815 what = Orientation; in enable()
2819 what = Gyro; in enable()
2823 what = RawGyro; in enable()
2827 what = Gravity; in enable()
2831 what = RotationVector; in enable()
2835 what = GameRotationVector; in enable()
2839 what = LinearAccel; in enable()
2843 what = GeomagneticRotationVector; in enable()
2847 what = Pressure; in enable()
2851 what = handle; in enable()
2856 if (uint32_t(what) >= NumSensors) in enable()
2864 ((mEnabled & (1 << what)) ? "en" : "dis"), in enable()
2865 ((uint32_t(newState) << what) ? "en" : "dis")); in enable()
2867 "HAL:%s sensor state change what=%d", sname.string(), what); in enable()
2872 if ((uint32_t(newState) << what) != (mEnabled & (1 << what))) { in enable()
2876 mEnabled &= ~(1 << what); in enable()
2877 mEnabled |= (uint32_t(flags) << what); in enable()
2888 switch (what) { in enable()
2894 ((lastEnabled & (1 << what)) != (mEnabled & (1 << what)))) { in enable()
2895 changed |= (1 << what); in enable()
2898 changed |= (1 << what); in enable()
2904 ((lastEnabled & (1 << what)) != (mEnabled & (1 << what)))) { in enable()
2905 changed |= (1 << what); in enable()
2909 if ((lastEnabled & (1 << what)) != (mEnabled & (1 << what))) { in enable()
2910 changed |= (1 << what); in enable()
2987 void MPLSensor::getHandle(int32_t handle, int &what, android::String8 &sname) in getHandle() argument
2991 what = -1; in getHandle()
2995 what = StepDetector; in getHandle()
2999 what = StepCounter; in getHandle()
3003 what = SignificantMotion; in getHandle()
3007 what = handle; in getHandle()
3010 what = Accelerometer; in getHandle()
3014 what = MagneticField; in getHandle()
3018 what = RawMagneticField; in getHandle()
3022 what = Orientation; in getHandle()
3026 what = Gyro; in getHandle()
3030 what = RawGyro; in getHandle()
3034 what = Gravity; in getHandle()
3038 what = RotationVector; in getHandle()
3042 what = GameRotationVector; in getHandle()
3046 what = LinearAccel; in getHandle()
3050 what = Pressure; in getHandle()
3054 what = handle; in getHandle()
3059 LOGI_IF(EXTRA_VERBOSE, "HAL:getHandle - what=%d, sname=%s", what, sname.string()); in getHandle()
3068 int what = -1; in setDelay() local
3073 if (!(mEnabled & (1 << what))) { in setDelay()
3085 getHandle(handle, what, sname); in setDelay()
3086 if (uint32_t(what) >= NumSensors) in setDelay()
3101 int64_t previousDelay = mDelays[what]; in setDelay()
3102 mDelays[what] = ns; in setDelay()
3103 … LOGV_IF(ENG_VERBOSE, "storing mDelays[%d] = %lld, previousDelay = %lld", what, ns, previousDelay); in setDelay()
3105 switch (what) { in setDelay()
3123 if ((mEnabled & (1 << what)) && (previousDelay != mDelays[what])) { in setDelay()
3131 if (i != what && (mEnabled & (1 << i)) && ns > mDelays[i]) { in setDelay()
3143 if ((mEnabled & (1 << what)) && (previousDelay != mDelays[what])) { in setDelay()
3174 if (i != what && (mEnabled & (1 << i)) && ns > mDelays[i]) { in setDelay()
5498 int what = -1; in batch() local
5512 getHandle(handle, what, sname); in batch()
5513 if(uint32_t(what) >= NumSensors) { in batch()
5514 LOGE("HAL:batch sensors %d not found", what); in batch()
5518 switch (what) { in batch()
5538 tempBatch = mBatchEnabled | (1 << what); in batch()
5540 tempBatch = mBatchEnabled & ~(1 << what); in batch()
5593 mBatchEnabled &= ~(1 << what); in batch()
5594 mBatchDelays[what] = 1000000000L; in batch()
5595 mBatchTimeouts[what] = 100000000000LL; in batch()
5597 mBatchEnabled |= (1 << what); in batch()
5598 mBatchDelays[what] = period_ns; in batch()
5599 mBatchTimeouts[what] = timeout; in batch()
5708 if (what == GameRotationVector) { in batch()
5793 int what = -1; in flush() local
5796 getHandle(handle, what, sname); in flush()
5797 if (uint32_t(what) >= NumSensors) { in flush()
5798 LOGE("HAL:flush - what=%d is invalid", what); in flush()
5802 if (((what != StepDetector) && (!(mEnabled & (1 << what)))) || in flush()
5803 ((what == StepDetector) && !(mFeatureActiveMask & INV_DMP_PEDOMETER))) { in flush()
5807 if(!(mBatchEnabled & (1 << what))) { in flush()