diff --git a/hidl/power-libperfmgr/Power.cpp b/hidl/power-libperfmgr/Power.cpp index 5cb938f8..fd576ddb 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 8922dfff..0e511dc6 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;