Lines Matching refs:mSensorEventBuffer
261 mSensorEventBuffer = new sensors_event_t[minBufferSize];
507 ssize_t count = device.poll(mSensorEventBuffer, numEventMax);
515 mSensorEventBuffer[i].flags = 0;
535 if (isWakeUpSensorEvent(mSensorEventBuffer[i])) {
544 recordLastValueLocked(mSensorEventBuffer, count);
548 sensors_event_t const * const event = mSensorEventBuffer;
573 mSensorEventBuffer[count + k] = out;
580 recordLastValueLocked(&mSensorEventBuffer[count], k);
583 sortEventBuffer(mSensorEventBuffer, count);
591 if (mSensorEventBuffer[i].type == SENSOR_TYPE_ROTATION_VECTOR) {
594 mSensorEventBuffer[i].data[4] = -1;
603 // mSensorEventBuffer[i] if such a mapping exists (NULL otherwise).
605 if (mSensorEventBuffer[i].type == SENSOR_TYPE_META_DATA) {
606 const int sensor_handle = mSensorEventBuffer[i].meta_data.sensor;
616 if (mSensorEventBuffer[i].type == SENSOR_TYPE_DYNAMIC_SENSOR_META) {
617 if (mSensorEventBuffer[i].dynamic_sensor_meta.connected) {
618 int handle = mSensorEventBuffer[i].dynamic_sensor_meta.handle;
620 *(mSensorEventBuffer[i].dynamic_sensor_meta.sensor);
625 const auto& uuid = mSensorEventBuffer[i].dynamic_sensor_meta.uuid;
642 int handle = mSensorEventBuffer[i].dynamic_sensor_meta.handle;
667 activeConnections[i]->sendEvents(mSensorEventBuffer, count, mSensorEventScratch,
673 cleanupAutoDisabledSensorLocked(activeConnections[i], mSensorEventBuffer,