Lines Matching refs:update

2622     int update;
2624 update = inv_get_sensor_type_gyroscope(s->gyro.v, &s->gyro.status,
2627 update = inv_get_sensor_type_gyroscope(s->gyro.v, &s->gyro.status,
2633 update = 0;
2637 s->gyro.v[0], s->gyro.v[1], s->gyro.v[2], s->timestamp, update);
2638 return update;
2644 int update;
2646 update = inv_get_sensor_type_gyroscope_raw(s->uncalibrated_gyro.uncalib,
2649 update = inv_get_sensor_type_gyroscope_raw(s->uncalibrated_gyro.uncalib,
2655 update = 0;
2658 if(update) {
2662 s->uncalibrated_gyro.bias[2], s->timestamp, update);
2667 s->uncalibrated_gyro.uncalib[2], s->timestamp, update);
2668 return update;
2674 int update;
2676 update = inv_get_sensor_type_accelerometer(
2679 update = inv_get_sensor_type_accelerometer(
2685 update = 0;
2690 s->timestamp, update);
2692 return update;
2698 int update;
2701 update = inv_get_sensor_type_magnetic_field(
2704 update = inv_get_sensor_type_magnetic_field(
2711 update = 0;
2715 s->timestamp, update);
2717 return update | overflow;
2723 int update;
2728 update = mCompassSensor->readRawSample(s->uncalibrated_magnetic.uncalib, (int64_t *)(&s->timestamp));
2731 update = inv_get_sensor_type_magnetic_field_raw(s->uncalibrated_magnetic.uncalib,
2736 update = mCompassSensor->readRawSample(s->uncalibrated_magnetic.uncalib, &s->timestamp);
2739 update = inv_get_sensor_type_magnetic_field_raw(s->uncalibrated_magnetic.uncalib,
2747 update = 0;
2749 if(update) {
2753 s->uncalibrated_magnetic.bias[2], s->timestamp, update);
2758 s->uncalibrated_magnetic.uncalib[2], s->magnetic.status, s->timestamp, update);
2759 return update | overflow;
2770 int update;
2772 update = inv_get_sensor_type_rotation_vector(s->data, &status,
2775 update = inv_get_sensor_type_rotation_vector(s->data, &status,
2780 update |= isCompassDisabled();
2785 update = 0;
2790 update);
2792 return update;
2803 int update;
2805 update = inv_get_sensor_type_rotation_vector_6_axis(s->data, &status,
2808 update = inv_get_sensor_type_rotation_vector_6_axis(s->data, &status,
2816 update = 0;
2821 update);
2822 return update;
2828 int update;
2830 update = inv_get_sensor_type_linear_acceleration(
2833 update = inv_get_sensor_type_linear_acceleration(
2836 update |= isCompassDisabled();
2841 update = 0;
2845 s->gyro.v[0], s->gyro.v[1], s->gyro.v[2], s->timestamp, update);
2846 return update;
2852 int update;
2854 update = inv_get_sensor_type_gravity(s->gyro.v, &s->gyro.status,
2857 update = inv_get_sensor_type_gravity(s->gyro.v, &s->gyro.status,
2860 update |= isCompassDisabled();
2865 update = 0;
2869 s->gyro.v[0], s->gyro.v[1], s->gyro.v[2], s->timestamp, update);
2870 return update;
2876 int update;
2878 update = inv_get_sensor_type_orientation(
2881 update = inv_get_sensor_type_orientation(
2885 update |= isCompassDisabled();
2890 update = 0;
2895 s->timestamp, update);
2896 return update;
2902 int update = 1;
2915 update = 0;
2919 s->data[0], s->timestamp, update);
2920 return update;
2927 int update = 0;
2930 update = inv_get_sensor_type_geomagnetic_rotation_vector(s->data, &status,
2933 update = inv_get_sensor_type_geomagnetic_rotation_vector(s->data, &status,
2941 update = 0;
2945 s->data[0], s->data[1], s->data[2], s->data[3], s->data[4], s->orientation.status, s->timestamp, update);
2946 return update < 1 ? 0 :1;
2954 int update = 0;
2961 update = mPressureUpdate;
2968 update = 0;
2973 s->data[0], s->data[1], s->data[2], s->data[3], s->timestamp, update);
2974 return update < 1 ? 0 :1;
2981 int update = 1;
2992 s->data[0], s->timestamp, update);
2993 return update;
2999 int update = 1;
3005 s->u64.step_counter, s->timestamp, update);
3009 s->step_counter, s->timestamp, update);
3012 if (s->timestamp == 0 && update) {
3016 return update;
3022 int update = 1;
3042 s->timestamp, update);
3306 // update mEnabledCached afer all configurations done
3473 // need to update delay since they are different
3479 "HAL:need to update delay due to resetDataRates");
3495 // need to update delay since they are different
3499 "HAL:need to update delay due to resetDataRates");
3523 "HAL:need to update delay due to LPQ");
3612 LOGE_IF(res < 0, "HAL:sampling frequency update delay error");
3678 LOGE("HAL:GYRO update delay error");
3690 LOGE_IF(res < 0, "HAL:ACCEL update delay error");
3698 LOGE_IF(res < 0, "HAL:ACCEL update delay error");
3740 LOGE_IF(res < 0, "HAL:GYRO update delay error");
3768 LOGE_IF(res < 0, "HAL:ACCEL update delay error");
3805 LOGE_IF(res < 0, "HAL:PRESSURE update delay error");
3896 int update = 0;
3901 update = readDmpPedometerEvents(data, count, ID_P, 1);
3903 if(update == 1 && count > 0) {
3925 update = CALL_MEMBER_FN(this, mHandlers[i])(mPendingEvents + i);
3928 if (update && (count > 0)) {
6424 int update = 0;
6432 update = sdHandler(&mSdEvents);
6435 if (update && count > 0) {
6490 update = scHandler(&mScEvents);
6493 if (update && count > 0) {
6531 int update = 0;
6571 int update = smHandler(&mSmEvents);
6572 if (update && count > 0) {
6834 LOGE("HAL:GYRO update delay error");
6843 LOGE_IF(res < 0, "HAL:ACCEL update delay error");
6962 LOGE_IF(res < 0, "HAL:sampling frequency update delay error");
6971 LOGE("HAL:GYRO update delay error");
6980 LOGE_IF(res < 0, "HAL:ACCEL update delay error");