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:
c6e0c64
)
Add wake gesture in Sensor.cpp
author
Etienne Le Grand
<etn@google.com>
Thu, 8 May 2014 02:49:05 +0000
(19:49 -0700)
committer
Etienne Le Grand
<etn@google.com>
Thu, 8 May 2014 02:49:05 +0000
(19:49 -0700)
Change-Id: Ifb1744acffc2d57da43112fb9966261e8246d6de
libs/gui/Sensor.cpp
patch
|
blob
|
history
diff --git
a/libs/gui/Sensor.cpp
b/libs/gui/Sensor.cpp
index
b363411
..
b73df7c
100644
(file)
--- a/
libs/gui/Sensor.cpp
+++ b/
libs/gui/Sensor.cpp
@@
-203,6
+203,10
@@
Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion)
mRequiredPermission = SENSOR_PERMISSION_BODY_SENSORS;
mWakeUpSensor = true;
break;
+ case SENSOR_TYPE_WAKE_GESTURE:
+ mStringType = SENSOR_STRING_TYPE_WAKE_GESTURE;
+ mWakeUpSensor = true;
+ break;
default:
// Only pipe the stringType, requiredPermission and flags for custom sensors.
if (halVersion >= SENSORS_DEVICE_API_VERSION_1_2 && hwSensor->stringType) {