summaryrefslogtreecommitdiffstats
path: root/services/sensorservice/SensorService.cpp
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-09-13 23:17:30 -0700
committerMathias Agopian <mathias@google.com>2012-06-27 17:07:53 -0700
commit1e0b1e8491e5f6dc59faabe70cbfa942853150e0 (patch)
tree25c72aee36e1963def5b93dd448f59a3a140acb9 /services/sensorservice/SensorService.cpp
parentc4a930d1d5a432a1f302763ac55460d6e83fe7e0 (diff)
downloadframeworks_native-1e0b1e8491e5f6dc59faabe70cbfa942853150e0.zip
frameworks_native-1e0b1e8491e5f6dc59faabe70cbfa942853150e0.tar.gz
frameworks_native-1e0b1e8491e5f6dc59faabe70cbfa942853150e0.tar.bz2
Replace epoll() with poll() and rename PollLoop to Looper.
As part of this change, consolidated and cleaned up the Looper API so that there are fewer distinctions between the NDK and non-NDK declarations (no need for two callback types, etc.). Removed the dependence on specific constants from sys/poll.h such as POLLIN. Instead looper.h defines events like LOOPER_EVENT_INPUT for the events that it supports. That should help make any future under-the-hood implementation changes easier. Fixed a couple of compiler warnings along the way. Change-Id: I449a7ec780bf061bdd325452f823673e2b39b6ae
Diffstat (limited to 'services/sensorservice/SensorService.cpp')
-rw-r--r--services/sensorservice/SensorService.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/sensorservice/SensorService.cpp b/services/sensorservice/SensorService.cpp
index 3025f77..e204e04 100644
--- a/services/sensorservice/SensorService.cpp
+++ b/services/sensorservice/SensorService.cpp
@@ -529,7 +529,7 @@ status_t SensorService::SensorEventConnection::sendEvents(
LOGE_IF(size<0, "dropping %d events on the floor (%s)",
count, strerror(-size));
- return size < 0 ? size : NO_ERROR;
+ return size < 0 ? status_t(size) : status_t(NO_ERROR);
}
sp<SensorChannel> SensorService::SensorEventConnection::getSensorChannel() const