Lines Matching defs:value
82 // read the actual value of all sensors if they're enabled already
89 mPendingEvents[Accelerometer].acceleration.x = absinfo.value * CONVERT_A_X;
92 mPendingEvents[Accelerometer].acceleration.y = absinfo.value * CONVERT_A_Y;
95 mPendingEvents[Accelerometer].acceleration.z = absinfo.value * CONVERT_A_Z;
101 mPendingEvents[MagneticField].magnetic.x = absinfo.value * CONVERT_M_X;
104 mPendingEvents[MagneticField].magnetic.y = absinfo.value * CONVERT_M_Y;
107 mPendingEvents[MagneticField].magnetic.z = absinfo.value * CONVERT_M_Z;
113 mPendingEvents[Orientation].orientation.azimuth = absinfo.value;
116 mPendingEvents[Orientation].orientation.pitch = absinfo.value;
119 mPendingEvents[Orientation].orientation.roll = -absinfo.value;
122 mPendingEvents[Orientation].orientation.status = uint8_t(absinfo.value & SENSOR_STATE_MASK);
230 processEvent(event->code, event->value);
257 void AkmSensor::processEvent(int code, int value)
262 mPendingEvents[Accelerometer].acceleration.x = value * CONVERT_A_X;
266 mPendingEvents[Accelerometer].acceleration.y = value * CONVERT_A_Y;
270 mPendingEvents[Accelerometer].acceleration.z = value * CONVERT_A_Z;
275 mPendingEvents[MagneticField].magnetic.x = value * CONVERT_M_X;
279 mPendingEvents[MagneticField].magnetic.y = value * CONVERT_M_Y;
283 mPendingEvents[MagneticField].magnetic.z = value * CONVERT_M_Z;
288 mPendingEvents[Orientation].orientation.azimuth = value * CONVERT_O_A;
292 mPendingEvents[Orientation].orientation.pitch = value * CONVERT_O_P;
296 mPendingEvents[Orientation].orientation.roll = value * CONVERT_O_R;
299 uint8_t status = uint8_t(value & SENSOR_STATE_MASK);