From: Jesse Chan Date: Tue, 30 Jun 2020 13:19:08 +0000 (+0800) Subject: power-libperfmgr: add a DOUBLE_TAP_TO_WAKE hint X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ac485bae7acdf2dbe284ef5f03f035837c2f8c56;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung.git power-libperfmgr: add a DOUBLE_TAP_TO_WAKE hint Change-Id: I656b5eb836fb0c41fed8802efa51cbae9fdbc0c0 --- diff --git a/hidl/power-libperfmgr/Power.cpp b/hidl/power-libperfmgr/Power.cpp index fd576dd..942ef94 100644 --- a/hidl/power-libperfmgr/Power.cpp +++ b/hidl/power-libperfmgr/Power.cpp @@ -191,8 +191,14 @@ Return Power::powerHint(PowerHint_1_0 hint, int32_t data) { return Void(); } -Return Power::setFeature(Feature /*feature*/, bool /*activate*/) { - // Nothing to do +Return 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(); }