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:
b660196
)
Set default values for FifoMaxEventCount and ReservedEventCount.
author
Aravind Akella
<aakella@google.com>
Tue, 13 May 2014 00:14:56 +0000
(17:14 -0700)
committer
Aravind Akella
<aakella@google.com>
Tue, 13 May 2014 00:15:59 +0000
(17:15 -0700)
Change-Id: I4f610c2912ffe1697d1ffb99c556d1c88578466e
libs/gui/Sensor.cpp
patch
|
blob
|
history
diff --git
a/libs/gui/Sensor.cpp
b/libs/gui/Sensor.cpp
index
6f1a3f2
..
8f63870
100644
(file)
--- a/
libs/gui/Sensor.cpp
+++ b/
libs/gui/Sensor.cpp
@@
-54,6
+54,9
@@
Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion)
if (halVersion >= SENSORS_DEVICE_API_VERSION_1_1) {
mFifoReservedEventCount = hwSensor->fifoReservedEventCount;
mFifoMaxEventCount = hwSensor->fifoMaxEventCount;
+ } else {
+ mFifoReservedEventCount = 0;
+ mFifoMaxEventCount = 0;
}
// Ensure existing sensors have correct string type and required