Lines Matching refs:wanted
3197 int64_t wanted = 1000000000LL; in update_delay() local
3218 wanted = wanted < ns ? wanted : ns; in update_delay()
3228 gyroRate = wanted; in update_delay()
3229 accelRate = wanted; in update_delay()
3230 compassRate = wanted; in update_delay()
3232 wanted_3rd_party_sensor = wanted; in update_delay()
3237 gyroRate = wanted; in update_delay()
3238 accelRate = wanted; in update_delay()
3239 compassRate = wanted; in update_delay()
3241 wanted_3rd_party_sensor = wanted; in update_delay()
3256 int64_t tempWanted = wanted; in update_delay()
3267 rateInus = (int)wanted / 1000LL; in update_delay()
3289 gyroRate = wanted; in update_delay()
3290 accelRate = wanted; in update_delay()
3291 compassRate = wanted; in update_delay()
3293 wanted_3rd_party_sensor = wanted; in update_delay()
3294 rateInus = (int)wanted / 1000LL; in update_delay()
3311 if (wanted <= RATE_200HZ) { in update_delay()
3319 rateInus, 1000000000.f / wanted); in update_delay()
3398 wanted = (mDelays[Gyro] <= mDelays[RawGyro]? in update_delay()
3407 inv_set_gyro_sample_rate((int)wanted/1000LL); in update_delay()
3409 "HAL:MPL gyro sample rate: (mpl)=%d us", int(wanted/1000LL)); in update_delay()
3411 1000000000.f / wanted, mpu.gyro_rate, getTimestamp()); in update_delay()
3413 res = write_attribute_sensor(tempFd, 1000000000.f / wanted); in update_delay()
3419 wanted = mDelays[Accelerometer]; in update_delay()
3422 wanted = mDelays[Gyro]; in update_delay()
3425 wanted = mDelays[RawGyro]; in update_delay()
3427 wanted = mDelays[Accelerometer]; in update_delay()
3436 inv_set_accel_sample_rate((int)wanted/1000LL); in update_delay()
3438 int(wanted/1000LL)); in update_delay()
3442 1000000000.f / wanted, mpu.accel_rate, in update_delay()
3447 res = write_attribute_sensor(tempFd, wanted / 1000000L); in update_delay()
3451 res = write_attribute_sensor(tempFd, 1000000000.f/wanted); in update_delay()
3462 wanted = compassWanted; in update_delay()
3465 wanted = compassWanted; in update_delay()
3469 wanted = mDelays[Gyro]; in update_delay()
3472 wanted = mDelays[RawGyro]; in update_delay()
3475 wanted = mDelays[Accelerometer]; in update_delay()
3477 wanted = compassWanted; in update_delay()
3487 mCompassSensor->setDelay(ID_M, wanted); in update_delay()
4434 int MPLSensor::getDmpRate(int64_t *wanted) in getDmpRate() argument
4441 int(1000000000.f / *wanted), mpu.three_axis_q_rate, in getDmpRate()
4443 write_sysfs_int(mpu.three_axis_q_rate, 1000000000.f / *wanted); in getDmpRate()
4445 "HAL:DMP three axis rate %.2f Hz", 1000000000.f / *wanted); in getDmpRate()
4448 int(1000000000.f / *wanted), mpu.six_axis_q_rate, in getDmpRate()
4450 write_sysfs_int(mpu.six_axis_q_rate, 1000000000.f / *wanted); in getDmpRate()
4452 "HAL:DMP six axis rate %.2f Hz", 1000000000.f / *wanted); in getDmpRate()
4455 int(1000000000.f / *wanted), mpu.ped_q_rate, in getDmpRate()
4457 write_sysfs_int(mpu.ped_q_rate, 1000000000.f / *wanted); in getDmpRate()
4459 "HAL:DMP ped quaternion rate %.2f Hz", 1000000000.f / *wanted); in getDmpRate()
4462 *wanted= RATE_200HZ; in getDmpRate()
4464 "HAL:DMP rate= %.2f Hz", 1000000000.f / *wanted); in getDmpRate()
5552 int64_t wanted = 1000000000LL, ns = 0; in batch() local
5560 wanted = (ns < wanted) ? ns : wanted; in batch()
5648 timeout, timeoutInMs, wanted); in batch()
5679 wanted = mBatchDelays[GameRotationVector]; in batch()
5682 int(1000000000.f / wanted), mpu.ped_q_rate, in batch()
5684 write_sysfs_int(mpu.ped_q_rate, 1000000000.f / wanted); in batch()
5686 "HAL:DMP ped quaternion rate %.2f Hz", 1000000000.f / wanted); in batch()
5712 wanted = mBatchDelays[GameRotationVector]; in batch()
5715 int(1000000000.f / wanted), mpu.six_axis_q_rate, in batch()
5717 write_sysfs_int(mpu.six_axis_q_rate, 1000000000.f / wanted); in batch()
5719 "HAL:DMP six axis rate %.2f Hz", 1000000000.f / wanted); in batch()
6245 int64_t wanted = 1000000000LL; in setBatchDataRates() local
6249 wanted = wanted < ns ? wanted : ns; in setBatchDataRates()
6252 gyroRate = wanted; in setBatchDataRates()
6253 accelRate = wanted; in setBatchDataRates()
6254 compassRate = wanted; in setBatchDataRates()
6255 pressureRate = wanted; in setBatchDataRates()
6294 int64_t wanted = 1000000000LL; in resetDataRates() local
6312 if ((wanted == ns) && (i != Pressure)) { in resetDataRates()
6317 wanted = wanted < ns ? wanted : ns; in resetDataRates()
6321 gyroRate = wanted; in resetDataRates()
6322 accelRate = wanted; in resetDataRates()
6323 compassRate = wanted; in resetDataRates()
6324 pressureRate = wanted; in resetDataRates()
6342 getDmpRate (&wanted); in resetDataRates()
6345 1000000000.f / wanted, mpu.gyro_fifo_rate, in resetDataRates()
6348 res = write_attribute_sensor(tempFd, 1000000000.f / wanted); in resetDataRates()