power-libperfmgr: add a NOT_INTERACTIVE hint for setInteractive

Change-Id: I0797c47e0b1d8bfee644f0028eaabd7650e39913
Signed-off-by: Jesse Chan <jc@lineageos.org>
tirimbino
Jesse Chan 5 years ago committed by Andreas Schneider
parent 6e68f025eb
commit c59eae188a
  1. 4
      hidl/power-libperfmgr/Power.cpp
  2. 2
      hidl/power-libperfmgr/Power.h

@ -116,8 +116,8 @@ Return<void> Power::updateHint(const char *hint, bool enable) {
}
// Methods from ::android::hardware::power::V1_0::IPower follow.
Return<void> Power::setInteractive(bool /* interactive */) {
return Void();
Return<void> Power::setInteractive(bool interactive) {
return updateHint("NOT_INTERACTIVE", !interactive);
}
Return<void> Power::powerHint(PowerHint_1_0 hint, int32_t data) {

@ -50,7 +50,7 @@ class Power : public IPower {
Power();
Return<void> setInteractive(bool /* interactive */) override;
Return<void> setInteractive(bool interactive) override;
Return<void> powerHint(PowerHint_1_0 hint, int32_t data) override;
Return<void> setFeature(Feature feature, bool activate) override;
Return<void> getPlatformLowPowerStats(getPlatformLowPowerStats_cb _hidl_cb) override;

Loading…
Cancel
Save