projects
/
GitHub
/
LineageOS
/
android_hardware_samsung.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c59eae1
)
power-libperfmgr: add a DOUBLE_TAP_TO_WAKE hint
author
Jesse Chan
<jc@lineageos.org>
Tue, 30 Jun 2020 13:19:08 +0000
(21:19 +0800)
committer
Andreas Schneider
<asn@cryptomilk.org>
Thu, 2 Jul 2020 07:22:55 +0000
(09:22 +0200)
Change-Id: I656b5eb836fb0c41fed8802efa51cbae9fdbc0c0
hidl/power-libperfmgr/Power.cpp
patch
|
blob
|
blame
|
history
diff --git
a/hidl/power-libperfmgr/Power.cpp
b/hidl/power-libperfmgr/Power.cpp
index fd576ddbf176f43bed7a02b4169c8910ff11a6f2..942ef94c0a70833f0ffb79f94bb166d3b6c83850 100644
(file)
--- a/
hidl/power-libperfmgr/Power.cpp
+++ b/
hidl/power-libperfmgr/Power.cpp
@@
-191,8
+191,14
@@
Return<void> Power::powerHint(PowerHint_1_0 hint, int32_t data) {
return Void();
}
-Return<void> Power::setFeature(Feature /*feature*/, bool /*activate*/) {
- // Nothing to do
+Return<void> Power::setFeature(Feature feature, bool activate) {
+ switch (feature) {
+ case Feature::POWER_FEATURE_DOUBLE_TAP_TO_WAKE:
+ updateHint("DOUBLE_TAP_TO_WAKE", activate);
+ break;
+ default:
+ break;
+ }
return Void();
}