Home | History | Annotate | Download | only in libsensors

Lines Matching full:msensor

138     SensorBase *mSensor[numSensorDrivers];
179 memset(mSensor, 0, sizeof(mSensor));
189 mSensor[mpl] = mplSensor;
190 mPollFds[mpl].fd = mSensor[mpl]->getFd();
194 mSensor[compass] = mplSensor;
199 mSensor[dmpOrient] = mplSensor;
200 mPollFds[dmpOrient].fd = ((MPLSensor*) mSensor[dmpOrient])->getDmpOrientFd();
204 mSensor[dmpSign] = mplSensor;
205 mPollFds[dmpSign].fd = ((MPLSensor*) mSensor[dmpSign])->getDmpSignificantMotionFd();
209 mSensor[dmpPed] = mplSensor;
210 mPollFds[dmpPed].fd = ((MPLSensor*) mSensor[dmpPed])->getDmpPedometerFd();
214 mSensor[light] = new LightSensor();
215 mPollFds[light].fd = mSensor[light]->getFd();
219 mSensor[proximity] = new ProximitySensor();
220 mPollFds[proximity].fd = mSensor[proximity]->getFd();
245 delete mSensor[i];
257 int err = mSensor[index]->enable(handle, enabled);
270 return mSensor[index]->setDelay(handle, ns);
281 SensorBase* const sensor(mSensor[i]);
341 if (((MPLSensor*) mSensor[mpl])->hasStepCountPendingEvents() == true) {
343 nb = ((MPLSensor*) mSensor[mpl])->readDmpPedometerEvents(data, count, ID_SC, SENSOR_TYPE_STEP_COUNTER, 0);
377 return mSensor[index]->batch(handle, flags, period_ns, timeout);
384 return mSensor[index]->flush(handle);