OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5795291
)
Build fix SensorEventQueue.
author
Aravind Akella
<aakella@google.com>
Sat, 25 Apr 2015 03:30:09 +0000
(20:30 -0700)
committer
Aravind Akella
<aakella@google.com>
Sat, 25 Apr 2015 03:30:09 +0000
(20:30 -0700)
Change-Id: I3e6ba031d42bd37067591771f378b7185169ab48
libs/gui/SensorEventQueue.cpp
patch
|
blob
|
history
diff --git
a/libs/gui/SensorEventQueue.cpp
b/libs/gui/SensorEventQueue.cpp
index
b5b5d68
..
8b2018f
100644
(file)
--- a/
libs/gui/SensorEventQueue.cpp
+++ b/
libs/gui/SensorEventQueue.cpp
@@
-154,7
+154,7
@@
status_t SensorEventQueue::injectSensorEvent(const ASensorEvent& event) {
ssize_t size = ::send(mSensorChannel->getFd(), &event, sizeof(event), MSG_NOSIGNAL);
if (size < 0) {
ALOGE("injectSensorEvent failure %zd %d", size, mSensorChannel->getFd());
- return
size
;
+ return
INVALID_OPERATION
;
}
return NO_ERROR;
}