Lines Matching refs:mPendingEvents
43 memset(mPendingEvents, 0, sizeof(mPendingEvents));
45 mPendingEvents[Accelerometer].version = sizeof(sensors_event_t);
46 mPendingEvents[Accelerometer].sensor = ID_A;
47 mPendingEvents[Accelerometer].type = SENSOR_TYPE_ACCELEROMETER;
48 mPendingEvents[Accelerometer].acceleration.status = SENSOR_STATUS_ACCURACY_HIGH;
50 mPendingEvents[MagneticField].version = sizeof(sensors_event_t);
51 mPendingEvents[MagneticField].sensor = ID_M;
52 mPendingEvents[MagneticField].type = SENSOR_TYPE_MAGNETIC_FIELD;
53 mPendingEvents[MagneticField].magnetic.status = SENSOR_STATUS_ACCURACY_HIGH;
55 mPendingEvents[Orientation ].version = sizeof(sensors_event_t);
56 mPendingEvents[Orientation ].sensor = ID_O;
57 mPendingEvents[Orientation ].type = SENSOR_TYPE_ORIENTATION;
58 mPendingEvents[Orientation ].orientation.status = SENSOR_STATUS_ACCURACY_HIGH;
216 mPendingEvents[j].timestamp = time;
218 //mPendingEvents[j].data[0],
219 //mPendingEvents[j].data[1],
220 //mPendingEvents[j].data[2]);
222 *data++ = mPendingEvents[j];
278 mPendingEvents[Accelerometer].acceleration.x = value * CONVERT_A;
282 mPendingEvents[Accelerometer].acceleration.y = value * CONVERT_A;
286 mPendingEvents[Accelerometer].acceleration.z = value * CONVERT_A;
291 mPendingEvents[MagneticField].magnetic.x = value * CONVERT_M;
295 mPendingEvents[MagneticField].magnetic.y = value * CONVERT_M;
299 mPendingEvents[MagneticField].magnetic.z = value * CONVERT_M;
303 mPendingEvents[MagneticField].magnetic.status = value;
308 mPendingEvents[Orientation].orientation.azimuth = value * CONVERT_O;
312 mPendingEvents[Orientation].orientation.pitch = value * CONVERT_O;
316 mPendingEvents[Orientation].orientation.roll = value * CONVERT_O;
320 mPendingEvents[Orientation].orientation.status = value;