Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7fb72a4a authored by Kweku Adams's avatar Kweku Adams
Browse files

Moving BatterySaverPolicy into batterysaver directory.

This should make adding new methods that shouldn't be public easier.

Bug: 119261320
Test: atest com.android.server.power.PowerManagerServiceTest
and com.android.server.power.batterysaver.BatterySaverPolicyTest
and com.android.server.power.batterysaver.BatterySaverStateMachineTest

Change-Id: I8fdba4257be3d5602a738d2fffd55385775c3f81
parent 3b1ce723
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1326,7 +1326,7 @@ public final class PowerManager {
     * @return Battery saver state data.
     *
     * @hide
     * @see com.android.server.power.BatterySaverPolicy
     * @see com.android.server.power.batterysaver.BatterySaverPolicy
     * @see PowerSaveState
     */
    public PowerSaveState getPowerSaveState(@ServiceType int serviceType) {
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ public class PowerSaveState implements Parcelable {
    /**
     * Whether we should enable battery saver for this service.
     *
     * @see com.android.server.power.BatterySaverPolicy
     * @see com.android.server.power.batterysaver.BatterySaverPolicy
     */
    public final boolean batterySaverEnabled;
    /**
+2 −2
Original line number Diff line number Diff line
@@ -11254,14 +11254,14 @@ public final class Settings {
         * quick_doze_enabled                (boolean)
         * </pre>
         * @hide
         * @see com.android.server.power.BatterySaverPolicy
         * @see com.android.server.power.batterysaver.BatterySaverPolicy
         */
        public static final String BATTERY_SAVER_CONSTANTS = "battery_saver_constants";
        /**
         * Battery Saver device specific settings
         * This is encoded as a key=value list, separated by commas.
         * See {@link com.android.server.power.BatterySaverPolicy} for the details.
         * See {@link com.android.server.power.batterysaver.BatterySaverPolicy} for the details.
         *
         * @hide
         */
+1 −3
Original line number Diff line number Diff line
michaelwr@google.com
santoscordon@google.com

per-file BatterySaverPolicy.java=omakoto@google.com
per-file ShutdownThread.java=fkupolov@google.com
per-file ThermalManagerService.java=wvw@google.com
+1 −0
Original line number Diff line number Diff line
@@ -96,6 +96,7 @@ import com.android.server.lights.Light;
import com.android.server.lights.LightsManager;
import com.android.server.policy.WindowManagerPolicy;
import com.android.server.power.batterysaver.BatterySaverController;
import com.android.server.power.batterysaver.BatterySaverPolicy;
import com.android.server.power.batterysaver.BatterySaverStateMachine;
import com.android.server.power.batterysaver.BatterySavingStats;

Loading