Home | History | Annotate | Download | only in libsensors

Lines Matching refs:MPLSensor

35 #include "MPLSensor.h"
72 /* Base values for the sensor list, these need to be in the order defined in MPLSensor.h */
102 static MPLSensor* gMPLSensor = NULL;
125 void setCallbackObject(MPLSensor* gbpt)
143 MPLSensor::MPLSensor() :
159 ALOGV_IF(EXTRA_VERBOSE, "MPLSensor constructor: numSensors = %d", numSensors);
215 //ALOGD("MPLSensor falling back to timerirq for accel data");
251 mHandlers[RotationVector] = &MPLSensor::rvHandler;
252 mHandlers[LinearAccel] = &MPLSensor::laHandler;
253 mHandlers[Gravity] = &MPLSensor::gravHandler;
254 mHandlers[Gyro] = &MPLSensor::gyroHandler;
255 mHandlers[Accelerometer] = &MPLSensor::accelHandler;
256 mHandlers[MagneticField] = &MPLSensor::compassHandler;
257 mHandlers[Orientation] = &MPLSensor::orienHandler;
281 MPLSensor::~MPLSensor()
301 void MPLSensor::clearIrqData(bool* irq_set)
327 void MPLSensor::setPowerStates(int enabled_sensors)
443 void MPLSensor::initMPL()
509 void MPLSensor
550 void MPLSensor::setupCallbacks()
567 void MPLSensor::cbOnMotion(uint16_t val)
583 void MPLSensor::cbProcData()
593 void MPLSensor::gyroHandler(sensors_event_t* s, uint32_t* pending_mask,
606 void MPLSensor::accelHandler(sensors_event_t* s, uint32_t* pending_mask,
621 int MPLSensor::estimateCompassAccuracy()
635 void MPLSensor::compassHandler(sensors_event_t* s, uint32_t* pending_mask,
658 void MPLSensor::rvHandler(sensors_event_t* s, uint32_t* pending_mask,
700 void MPLSensor::laHandler(sensors_event_t* s, uint32_t* pending_mask,
713 void MPLSensor::gravHandler(sensors_event_t* s, uint32_t* pending_mask,
726 void MPLSensor::calcOrientationSensor(float *R, float *values)
769 void MPLSensor::orienHandler(sensors_event_t* s, uint32_t* pending_mask,
792 int MPLSensor::enable(int32_t handle, int en)
851 int MPLSensor::setDelay(int32_t handle, int64_t ns)
896 int MPLSensor::update_delay()
961 int64_t MPLSensor::now_ns(void)
971 int MPLSensor::readEvents(sensors_event_t* data, int count)
993 "MPLSensor::readEvents called, but there's nothing to do.");
1030 int MPLSensor::getFd() const
1032 //ALOGV("MPLSensor::getFd returning %d", data_fd);
1036 int MPLSensor::getAccelFd() const
1038 //ALOGV("MPLSensor::getAccelFd returning %d", accel_fd);
1042 int MPLSensor::getTimerFd() const
1044 //ALOGV("MPLSensor::getTimerFd returning %d", timer_fd);
1048 int MPLSensor::getPowerFd() const
1051 //ALOGV("MPLSensor::getPowerFd returning %d", hdl);
1055 int MPLSensor::getPollTime()
1060 bool MPLSensor::hasPendingEvents() const
1066 void MPLSensor::handlePowerEvent()
1085 void MPLSensor::sleepEvent()
1097 void MPLSensor::wakeEvent()
1114 int MPLSensor::populateSensorList(struct sensor_t *list, int len)
1171 void MPLSensor::fillAccel(unsigned char accel, struct sensor_t *list)
1245 void MPLSensor::fillCompass(unsigned char compass, struct sensor_t *list)
1298 void MPLSensor::fillGyro(const char* gyro, struct sensor_t *list)
1314 void MPLSensor::fillRV(struct sensor_t *list)
1324 void MPLSensor::fillOrientation(struct sensor_t *list)
1333 void MPLSensor::fillGravity( struct sensor_t *list)
1342 void MPLSensor::fillLinearAccel(struct sensor_t *list)