commit | c8c4c5d33d57c2bda168de96777497e9b313f3f2 | [log] [tgz] |
---|---|---|
author | Salvador Martinez <dehboxturtle@google.com> | Mon Mar 11 11:11:37 2019 -0700 |
committer | Salvador Martinez <dehboxturtle@google.com> | Tue Mar 12 15:58:04 2019 -0700 |
tree | d71d151f5fa8f20e56dff7ab2d3251c80699975d | |
parent | 75f61c59199af41d2dcba145a6e4e6e41625cdfd [diff] [blame] |
Rename setPowerSaverMode to setPowerSaverModeEnabled This will make it consistent with the boolean input Test: phone boots, tests pass Bug: 117154042 Change-Id: I30356413eafb90a93f10092ef4b0eeebe7ff7575
diff --git a/services/core/java/com/android/server/power/PowerManagerShellCommand.java b/services/core/java/com/android/server/power/PowerManagerShellCommand.java index 18b8f0e..edaa6d9 100644 --- a/services/core/java/com/android/server/power/PowerManagerShellCommand.java +++ b/services/core/java/com/android/server/power/PowerManagerShellCommand.java
@@ -68,7 +68,7 @@ pw.println("Error: " + ex.toString()); return -1; } - mInterface.setPowerSaveMode(mode == LOW_POWER_MODE_ON); + mInterface.setPowerSaveModeEnabled(mode == LOW_POWER_MODE_ON); return 0; }