Lines Matching refs:wanted
1565 int64_t wanted = 1000000000;
1584 wanted = wanted < ns ? wanted : ns;
1589 wanted_3rd_party_sensor = wanted;
1593 int rateInus = (int)wanted / 1000LL;
1598 LOGV_IF(PROCESS_VERBOSE, "HAL:wanted rate for all sensors : "
1600 wanted, rateInus, 1000000000.f / wanted);
1626 if (wanted < RATE_200HZ) {
1635 getDmpRate(&wanted);
1639 int64_t tempRate = wanted;
1671 wanted = (mDelays[Gyro] <= mDelays[RawGyro]?
1676 getDmpRate(&wanted);
1680 1000000000.f / wanted, mpu.gyro_fifo_rate, getTimestamp());
1682 res = write_attribute_sensor(tempFd, 1000000000.f / wanted);
1688 wanted = mDelays[Gyro];
1691 wanted = mDelays[RawGyro];
1694 wanted = mDelays[Accelerometer];
1698 getDmpRate(&wanted);
1703 1000000000.f / wanted, mpu.accel_fifo_rate, getTimestamp());
1707 res = write_attribute_sensor(tempFd, wanted / 1000000L);
1711 res = write_attribute_sensor(tempFd, 1000000000.f/wanted);
1719 wanted = mDelays[MagneticField];
1722 wanted = mDelays[Gyro];
1725 wanted = mDelays[RawGyro];
1727 wanted = mDelays[Accelerometer];
1729 wanted = mDelays[MagneticField];
1733 getDmpRate(&wanted);
1737 mCompassSensor->setDelay(ID_M, wanted);
2292 int MPLSensor::getDmpRate(int64_t *wanted)
2296 write_sysfs_int(mpu.dmp_output_rate, 1000000000.f / *wanted);
2297 LOGV_IF(PROCESS_VERBOSE, "HAL:DMP FIFO rate %.2f Hz", 1000000000.f / *wanted);
2300 *wanted= RATE_200HZ;
2301 LOGV_IF(PROCESS_VERBOSE, "HAL:DMP rate= %.2f Hz", 1000000000.f / *wanted);