Lines Matching refs:what

3035         s->meta_data.what = flags;
3041 s->type, s->meta_data.what, s->meta_data.sensor,
3058 int what = -1, err = 0; local
3074 what = StepCounter;
3088 mBatchDelays[what] = 1000000000LL;
3091 what = StepDetector;
3111 mBatchDelays[what] = 1000000000LL;
3136 what = Accelerometer;
3140 what = MagneticField;
3144 what = RawMagneticField;
3148 what = Orientation;
3152 what = Gyro;
3156 what = RawGyro;
3160 what = Gravity;
3164 what = RotationVector;
3168 what = GameRotationVector;
3172 what = LinearAccel;
3176 what = GeomagneticRotationVector;
3181 what = Pressure;
3186 what = handle;
3196 ((mEnabled & (1 << what)) ? "en" : "dis"),
3197 ((uint32_t(newState) << what) ? "en" : "dis"));
3199 "HAL:%s sensor state change what=%d", sname.string(), what);
3204 if ((uint32_t(newState) << what) != (mEnabled & (1 << what))) {
3209 mEnabled &= ~(1 << what);
3210 mEnabled |= (uint32_t(flags) << what);
3225 switch (what) {
3231 ((lastEnabled & (1 << what)) != (mEnabled & (1 << what)))) {
3232 changed |= (1 << what);
3235 changed |= (1 << what);
3241 ((lastEnabled & (1 << what)) != (mEnabled & (1 << what)))) {
3242 changed |= (1 << what);
3247 if ((lastEnabled & (1 << what)) != (mEnabled & (1 << what))) {
3248 changed |= (1 << what);
3310 mEnabledTime[what] = android::elapsedRealtimeNano();
3312 mEnabledTime[what] = 0;
3315 mBatchDelays[what] = 1000000000LL;
3336 void MPLSensor::getHandle(int32_t handle, int &what, android::String8 &sname) argument
3340 what = -1;
3344 what = StepDetector;
3348 what = StepCounter;
3352 what = SignificantMotion;
3356 what = handle;
3360 what = Accelerometer;
3364 what = MagneticField;
3368 what = RawMagneticField;
3372 what = Orientation;
3376 what = Gyro;
3380 what = RawGyro;
3384 what = Gravity;
3388 what = RotationVector;
3392 what = GameRotationVector;
3396 what = LinearAccel;
3401 what = Pressure;
3406 what = handle;
3411 LOGI_IF(EXTRA_VERBOSE, "HAL:getHandle - what=%d, sname=%s", what, sname.string());
3420 int what = -1; local
3425 if (!(mEnabled & (1 << what))) {
3437 getHandle(handle, what, sname);
3438 if (uint32_t(what) >= NumSensors)
3453 int64_t previousDelay = mDelays[what];
3454 mDelays[what] = ns;
3455 … LOGV_IF(ENG_VERBOSE, "storing mDelays[%d] = %lld, previousDelay = %lld", what, ns, previousDelay);
3457 switch (what) {
3477 if ((mEnabled & (1 << what)) && (previousDelay != mDelays[what])) {
3485 if (i != what && (mEnabled & (1 << i)) && ns > mDelays[i]) {
3497 if ((mEnabled & (1 << what)) && (previousDelay != mDelays[what])) {
3528 if (i != what && (mEnabled & (1 << i)) && ns > mDelays[i]) {
5883 int what = -1; local
5904 getHandle(handle, what, sname);
5905 if(uint32_t(what) >= NumSensors) {
5906 LOGE("HAL:batch sensors %d not found", what);
5928 switch (what) {
5958 if (what == StepCounter) {
5966 tempBatch = mBatchEnabled | (1 << what);
5968 tempBatch = mBatchEnabled & ~(1 << what);
6007 mBatchEnabled &= ~(1 << what);
6008 mBatchDelays[what] = 1000000000LL;
6009 mDelays[what] = period_ns;
6010 mBatchTimeouts[what] = 100000000000LL;
6012 mBatchEnabled |= (1 << what);
6013 mBatchDelays[what] = period_ns;
6014 mDelays[what] = period_ns;
6015 mBatchTimeouts[what] = timeout;
6169 if (what == GameRotationVector) {
6246 int what = -1; local
6248 getHandle(handle, what, sname);
6249 if (uint32_t(what) >= NumSensors) {
6250 LOGE("HAL:flush - what=%d is invalid", what);
6257 if (((what != StepDetector) && (!(mEnabled & (1 << what)))) ||
6258 ((what == StepDetector) && !(mFeatureActiveMask & INV_DMP_PEDOMETER))) {
6263 if(!(mBatchEnabled & (1 << what))) {