Lines Matching refs:mPendingEvents
65 memset(mPendingEvents, 0, sizeof(mPendingEvents));
67 mPendingEvents[Accelerometer].version = sizeof(sensors_event_t);
68 mPendingEvents[Accelerometer].sensor = ID_A;
69 mPendingEvents[Accelerometer].type = SENSOR_TYPE_ACCELEROMETER;
70 mPendingEvents[Accelerometer].acceleration.status = SENSOR_STATUS_ACCURACY_HIGH;
72 mPendingEvents[MagneticField].version = sizeof(sensors_event_t);
73 mPendingEvents[MagneticField].sensor = ID_M;
74 mPendingEvents[MagneticField].type = SENSOR_TYPE_MAGNETIC_FIELD;
75 mPendingEvents[MagneticField].magnetic.status = SENSOR_STATUS_ACCURACY_HIGH;
77 mPendingEvents[Orientation ].version = sizeof(sensors_event_t);
78 mPendingEvents[Orientation ].sensor = ID_O;
79 mPendingEvents[Orientation ].type = SENSOR_TYPE_ORIENTATION;
80 mPendingEvents[Orientation ].orientation.status = SENSOR_STATUS_ACCURACY_HIGH;
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);
237 mPendingEvents[j].timestamp = time;
239 *data++ = mPendingEvents[j];
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;
303 mPendingEvents[Orientation].orientation.status = status;