Lines Matching refs:mPendingEvents
44 memset(mPendingEvents, 0, sizeof(mPendingEvents));
46 mPendingEvents[Accelerometer].version = sizeof(sensors_event_t);
47 mPendingEvents[Accelerometer].sensor = ID_A;
48 mPendingEvents[Accelerometer].type = SENSOR_TYPE_ACCELEROMETER;
49 mPendingEvents[Accelerometer].acceleration.status = SENSOR_STATUS_ACCURACY_HIGH;
51 mPendingEvents[MagneticField].version = sizeof(sensors_event_t);
52 mPendingEvents[MagneticField].sensor = ID_M;
53 mPendingEvents[MagneticField].type = SENSOR_TYPE_MAGNETIC_FIELD;
54 mPendingEvents[MagneticField].magnetic.status = SENSOR_STATUS_ACCURACY_HIGH;
56 mPendingEvents[Orientation ].version = sizeof(sensors_event_t);
57 mPendingEvents[Orientation ].sensor = ID_O;
58 mPendingEvents[Orientation ].type = SENSOR_TYPE_ORIENTATION;
59 mPendingEvents[Orientation ].orientation.status = SENSOR_STATUS_ACCURACY_HIGH;
217 mPendingEvents[j].timestamp = time;
219 //mPendingEvents[j].data[0],
220 //mPendingEvents[j].data[1],
221 //mPendingEvents[j].data[2]);
223 *data++ = mPendingEvents[j];
279 mPendingEvents[Accelerometer].acceleration.x = value * CONVERT_A;
283 mPendingEvents[Accelerometer].acceleration.y = value * CONVERT_A;
287 mPendingEvents[Accelerometer].acceleration.z = value * CONVERT_A;
292 mPendingEvents[MagneticField].magnetic.x = value * CONVERT_M;
296 mPendingEvents[MagneticField].magnetic.y = value * CONVERT_M;
300 mPendingEvents[MagneticField].magnetic.z = value * CONVERT_M;
304 mPendingEvents[MagneticField].magnetic.status = value;
309 mPendingEvents[Orientation].orientation.azimuth = value * CONVERT_O;
313 mPendingEvents[Orientation].orientation.pitch = value * CONVERT_O;
317 mPendingEvents[Orientation].orientation.roll = value * CONVERT_O;
321 mPendingEvents[Orientation].orientation.status = value;