Lines Matching refs:Sensor
19 #include <sensor/SensorEventQueue.h>
27 #include <sensor/Sensor.h>
28 #include <sensor/BitTube.h>
29 #include <sensor/ISensorEventConnection.h>
31 #include <android/sensor.h>
124 status_t SensorEventQueue::enableSensor(Sensor const* sensor) const {
125 return enableSensor(sensor, SENSOR_DELAY_NORMAL);
128 status_t SensorEventQueue::enableSensor(Sensor const* sensor, int32_t samplingPeriodUs) const {
129 return mSensorEventConnection->enableDisable(sensor->getHandle(), true,
133 status_t SensorEventQueue::disableSensor(Sensor const* sensor) const {
134 return mSensorEventConnection->enableDisable(sensor->getHandle(), false, 0, 0, 0);
151 status_t SensorEventQueue::setEventRate(Sensor const* sensor, nsecs_t ns) const {
152 return mSensorEventConnection->setEventRate(sensor->getHandle(), ns);
178 // Send mNumAcksToSend to acknowledge for the wake up sensor events received.