Home | History | Annotate | Download | only in sensorhal

Lines Matching refs:HubConnection

19 #include "hubconnection.h"
92 const char SCHED_FIFO_PRIOIRTY[] = "sensor.hubconnection.sched_fifo";
98 Mutex HubConnection::sInstanceLock;
101 HubConnection *HubConnection::sInstance = NULL;
103 HubConnection *HubConnection::getInstance()
107 sInstance = new HubConnection;
132 HubConnection::HubConnection()
313 HubConnection::~HubConnection()
318 void HubConnection::onFirstRef()
320 run("HubConnection", PRIORITY_URGENT_DISPLAY);
323 ALOGV("Try activate sched-fifo priority for HubConnection thread");
332 void HubConnection::enableSchedFifoMode(sp<HubConnection> hub) {
346 ALOGW("Failed to retrieve maximum allowed priority for HubConnection.");
351 ALOGW("Failed to set SCHED_FIFO for HubConnection.");
361 ALOGW("Couldn't set SCHED_FIFO for HubConnection thread");
366 status_t HubConnection::initCheck() const
371 status_t HubConnection::getAliveCheck()
492 void HubConnection::saveSensorSettings() const {
549 ssize_t HubConnection::sendCmd(const void *buf, size_t count)
568 void HubConnection::setLeftyMode(bool enable) {
624 sensors_event_t *HubConnection::initEv(sensors_event_t *ev, uint64_t timestamp, uint32_t type, uint32_t sensor)
635 ssize_t HubConnection::decrementIfWakeEventLocked(int32_t sensor)
648 void HubConnection::protectIfWakeEventLocked(int32_t sensor)
659 void HubConnection::releaseWakeLockIfAppropriate()
669 void HubConnection::processSample(uint64_t timestamp, uint32_t type, uint32_t sensor, struct OneAxisSample *sample, __attribute__((unused)) bool highAccuracy)
742 uint8_t HubConnection::magAccuracyUpdate(sensors_vec_t *sv)
759 void HubConnection::processSample(uint64_t timestamp, uint32_t type, uint32_t sensor, struct RawThreeAxisSample *sample, __attribute__((unused)) bool highAccuracy)
841 void HubConnection::processSample(uint64_t timestamp, uint32_t type, uint32_t sensor, struct ThreeAxisSample *sample, bool highAccuracy)
1029 void HubConnection::discardInotifyEvent() {
1039 void HubConnection::waitOnNanohubLock() {
1055 void HubConnection::restoreSensorState()
1096 void HubConnection::postOsLog(uint8_t *buf, ssize_t len)
1124 void HubConnection::processAppData(uint8_t *buf, ssize_t len) {
1150 ssize_t HubConnection::processBuf(uint8_t *buf, size_t len)
1483 void HubConnection::sendCalibrationOffsets()
1591 bool HubConnection::threadLoop() {
1660 void HubConnection::setActivityCallback(ActivityEventHandler *eventHandler)
1666 void HubConnection::initConfigCmd(struct ConfigCmd *cmd, int handle)
1696 void HubConnection::queueActivate(int handle, bool enable)
1722 void HubConnection::queueSetDelay(int handle, nsecs_t sampling_period_ns)
1750 void HubConnection::queueBatch(
1785 void HubConnection::queueFlush(int handle)
1791 void HubConnection::queueFlushInternal(int handle, bool internal)
1829 void HubConnection::queueDataInternal(int handle, void *data, size_t length)
1852 void HubConnection::queueData(int handle, void *data, size_t length)
1858 void HubConnection::setOperationParameter(const additional_info_event_t &info) {
1886 void HubConnection::initNanohubLock() {
1909 ssize_t HubConnection::read(sensors_event_t *ev, size_t size) {
1928 ssize_t HubConnection::write(const sensors_event_t *ev, size_t n) {
1950 void HubConnection::queueUsbMagBias()
1972 status_t HubConnection::initializeUinputNode()
2016 void HubConnection::sendFolioEvent(int32_t data) {
2050 void HubConnection::sendDirectReportEvent(const sensors_event_t *nev, size_t n) {
2079 void HubConnection::mergeDirectReportRequest(struct ConfigCmd *cmd, int handle) {
2108 int HubConnection::addDirectChannel(const struct sensors_direct_mem_t *mem) {
2143 int HubConnection::removeDirectChannel(int channel_handle) {
2164 int HubConnection::stopAllDirectReportOnChannel(
2199 int HubConnection::configDirectReport(int sensor_handle, int channel_handle, int rate_level) {
2244 bool HubConnection::isDirectReportSupported() const {
2248 void HubConnection::updateSampleRate(int handle, int reason) {
2284 bool HubConnection::isSampleIntervalSatisfied(int handle, uint64_t timestamp) {
2301 uint64_t HubConnection::rateLevelToDeviceSamplingPeriodNs(int handle, int rateLevel) const {
2323 int HubConnection::addDirectChannel(const struct sensors_direct_mem_t *) {
2327 int HubConnection::removeDirectChannel(int) {
2331 int HubConnection::configDirectReport(int, int, int) {
2335 void HubConnection::sendDirectReportEvent(const sensors_event_t *, size_t) {
2338 void HubConnection::mergeDirectReportRequest(struct ConfigCmd *, int) {
2341 bool HubConnection::isDirectReportSupported() const {
2345 void HubConnection::updateSampleRate(int, int) {
2348 bool HubConnection::isSampleIntervalSatisfied(int, uint64_t) {