From c59eae188a1e21e94ea722f5be6d860efd7915ad Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Tue, 30 Jun 2020 21:01:06 +0800 Subject: [PATCH] power-libperfmgr: add a NOT_INTERACTIVE hint for setInteractive Change-Id: I0797c47e0b1d8bfee644f0028eaabd7650e39913 Signed-off-by: Jesse Chan --- hidl/power-libperfmgr/Power.cpp | 4 ++-- hidl/power-libperfmgr/Power.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hidl/power-libperfmgr/Power.cpp b/hidl/power-libperfmgr/Power.cpp index 5cb938f..fd576dd 100644 --- a/hidl/power-libperfmgr/Power.cpp +++ b/hidl/power-libperfmgr/Power.cpp @@ -116,8 +116,8 @@ Return Power::updateHint(const char *hint, bool enable) { } // Methods from ::android::hardware::power::V1_0::IPower follow. -Return Power::setInteractive(bool /* interactive */) { - return Void(); +Return Power::setInteractive(bool interactive) { + return updateHint("NOT_INTERACTIVE", !interactive); } Return Power::powerHint(PowerHint_1_0 hint, int32_t data) { diff --git a/hidl/power-libperfmgr/Power.h b/hidl/power-libperfmgr/Power.h index 8922dff..0e511dc 100644 --- a/hidl/power-libperfmgr/Power.h +++ b/hidl/power-libperfmgr/Power.h @@ -50,7 +50,7 @@ class Power : public IPower { Power(); - Return setInteractive(bool /* interactive */) override; + Return setInteractive(bool interactive) override; Return powerHint(PowerHint_1_0 hint, int32_t data) override; Return setFeature(Feature feature, bool activate) override; Return getPlatformLowPowerStats(getPlatformLowPowerStats_cb _hidl_cb) override; -- 2.20.1